diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2013-03-20 16:57:56 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2013-03-20 16:58:48 +0100 |
commit | fbb30a5e798590461853a6d4b6abf5abbcd121a1 (patch) | |
tree | 3004c9ef172d50be79ff87fa17b84558400b3415 | |
parent | 73fe0ab77aa61ca0244674ba1d49c835b258a09e (diff) | |
download | org-mode-fbb30a5e798590461853a6d4b6abf5abbcd121a1.tar.gz |
ox: Move a function in the file
* lisp/ox.el (org-export--copy-to-kill-ring-p): Move function
elsewhere in the file.
-rw-r--r-- | lisp/ox.el | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -2701,7 +2701,8 @@ Return the updated communication channel." ;; its derivatives, `org-export-to-buffer', `org-export-to-file' and ;; `org-export-string-as'. They differ either by the way they output ;; the resulting code (for the first two) or by the input type (for -;; the latter). +;; the latter). `org-export--copy-to-kill-ring-p' determines if +;; output of these function should be added to kill ring. ;; ;; `org-export-output-file-name' is an auxiliary function meant to be ;; used with `org-export-to-file'. With a given extension, it tries @@ -3226,6 +3227,13 @@ file should have." (org-babel-exp-process-buffer)) (kill-buffer reference)))) +(defun org-export--copy-to-kill-ring-p () + "Return a non-nil value when output should be added to the kill ring. +See also `org-export-copy-to-kill-ring'." + (if (eq org-export-copy-to-kill-ring 'if-interactive) + (not (or executing-kbd-macro noninteractive)) + (eq org-export-copy-to-kill-ring t))) + ;;; Tools For Back-Ends @@ -5701,14 +5709,7 @@ options as CDR." ;; Otherwise, enter sub-menu. (t (org-export--dispatch-ui options key expertp))))) -;;; Miscellaneous -(defun org-export--copy-to-kill-ring-p () - "Should we copy the export buffer to the kill ring? -See also `org-export-copy-to-kill-ring'." - (if (eq org-export-copy-to-kill-ring 'if-interactive) - (not (or executing-kbd-macro noninteractive)) - (eq org-export-copy-to-kill-ring t))) (provide 'ox) |