summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakaaki ISHIKAWA <takaxp@ieee.org>2019-12-09 13:08:56 +0900
committerKyle Meyer <kyle@kyleam.com>2019-12-09 05:33:00 -0500
commitc7ad3f88454290ac072753f4158221db7323f2fe (patch)
treecf57175d537b28678f8d5443bde734e991780fe8
parenteab7c4e581a08ec42eb0b679266add4a5da45877 (diff)
downloadorg-mode-c7ad3f88454290ac072753f4158221db7323f2fe.tar.gz
ox.el: Replace error with user-error to exit org-export-dispatch
* lisp/ox.el (org-export--dispatch-action): Replace error with user-error a user-error so that user can quit `org-export-dispatch' without entering debugging mode. Modified from a patch proposal by Takaaki Ishikawa. <https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00071.html>
-rw-r--r--lisp/ox.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 5b4134e..10286e1 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -6929,7 +6929,7 @@ options as CDR."
(org-export--dispatch-ui options first-key expertp))
;; q key at first level aborts export. At second level, cancel
;; first key instead.
- ((eq key ?q) (if (not first-key) (error "Export aborted")
+ ((eq key ?q) (if (not first-key) (user-error "Export aborted")
(org-export--dispatch-ui options nil expertp)))
;; Help key: Switch back to standard interface if expert UI was
;; active.