forked from mirrors/org-mode
ox: Preserve properties when duplicating buffer before exporting
* lisp/ox.el (org-export--generate-copy-script): Preserve properties when duplicating buffer before exporting. Reported-by: John Kitchin <jkitchin@andrew.cmu.edu> <http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00329.html>
This commit is contained in:
parent
b16feed40c
commit
3216cbe776
|
@ -2673,10 +2673,7 @@ The function assumes BUFFER's major mode is `org-mode'."
|
||||||
(quote ,val))
|
(quote ,val))
|
||||||
vars))))))
|
vars))))))
|
||||||
;; Whole buffer contents.
|
;; Whole buffer contents.
|
||||||
(insert
|
(insert ,(org-with-wide-buffer (buffer-string)))
|
||||||
,(org-with-wide-buffer
|
|
||||||
(buffer-substring-no-properties
|
|
||||||
(point-min) (point-max))))
|
|
||||||
;; Narrowing.
|
;; Narrowing.
|
||||||
,(if (org-region-active-p)
|
,(if (org-region-active-p)
|
||||||
`(narrow-to-region ,(region-beginning) ,(region-end))
|
`(narrow-to-region ,(region-beginning) ,(region-end))
|
||||||
|
|
Loading…
Reference in New Issue