Explorar el Código

org-export: Small changes to UI, allow q to quit

* contrib/lisp/org-export.el (org-export-dispatch): Small changes to
  UI, allow q to quit.
Nicolas Goaziou hace 13 años
padre
commit
7f816c6073
Se han modificado 1 ficheros con 23 adiciones y 15 borrados
  1. 23 15
      contrib/lisp/org-export.el

+ 23 - 15
contrib/lisp/org-export.el

@@ -3245,6 +3245,8 @@ Return an error if key pressed has no associated command."
     ;; Translate "C-a", "C-b"... into "a", "b"... Then take action
     ;; depending on user's key pressed.
     (case (if (< raw-key 27) (+ raw-key 96) raw-key)
+      ;; Allow to quit with "q" key.
+      (?q nil)
       ;; Export with `e-ascii' back-end.
       ((?A ?N ?U)
        (let ((outbuf
@@ -3329,28 +3331,34 @@ back to standard interface.
 Return value is a list with key pressed as CAR and a list of
 final interactive export options as CDR."
   (let ((help
-	 (format "--------------------  General Options  --------------------
-\[1] Body only:     %s        [2] Export scope:     %s
-\[3] Visible only:  %s        [4] Force publishing: %s
+	 (format "---- (Options) -------------------------------------------
 
+\[1] Body only:     %s       [2] Export scope:     %s
+\[3] Visible only:  %s       [4] Force publishing: %s
 
---------------  ASCII/Latin-1/UTF-8 Export  ---------------
-\[a/n/u] to TXT file           [A/N/U] to temporary buffer
 
----------------------  LaTeX Export  ----------------------
-\[l] to TEX file               [L] to temporary buffer
-\[p] to PDF file               [d] ... and open it
+----(ASCII/Latin-1/UTF-8 Export)--------------------------
 
----------------------  HTML Export  -----------------------
-\[h] to HTML file              [b] ... and open it
+\[a/n/u] to TXT file          [A/N/U] to temporary buffer
+
+----(HTML Export)-----------------------------------------
+
+\[h] to HTML file             [b] ... and open it
 \[H] to temporary buffer
 
----------------------  ODF Export  -----------------------
-\[o] to ODT file               [O] ... and open it
+----(LaTeX Export)----------------------------------------
+
+\[l] to TEX file              [L] to temporary buffer
+\[p] to PDF file              [d] ... and open it
+
+----(ODF Export)------------------------------------------
+
+\[o] to ODT file              [O] ... and open it
+
+----(Publish)---------------------------------------------
 
-------------------------- Publish -------------------------
-\[F] current file              [P] current project
-\[X] a project                 [E] every project"
+\[F] current file             [P] current project
+\[X] a project                [E] every project"
 		 (if (memq 'body options) "On " "Off")
 		 (if (memq 'subtree options) "Subtree" "Buffer ")
 		 (if (memq 'visible options) "On " "Off")