summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 23:42:16 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 23:42:16 +0100
commit3216cbe776900135c7ab5e1bbe4fc7cab921e9d5 (patch)
tree22b68f75cdd442e0285cd3ee322591085e710e7b
parentb16feed40c7f519ada0cd9315251dcc257be31d2 (diff)
downloadorg-mode-3216cbe776900135c7ab5e1bbe4fc7cab921e9d5.tar.gz
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>
-rw-r--r--lisp/ox.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 743fcd7..ad4942b 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2673,10 +2673,7 @@ The function assumes BUFFER's major mode is `org-mode'."
(quote ,val))
vars))))))
;; Whole buffer contents.
- (insert
- ,(org-with-wide-buffer
- (buffer-substring-no-properties
- (point-min) (point-max))))
+ (insert ,(org-with-wide-buffer (buffer-string)))
;; Narrowing.
,(if (org-region-active-p)
`(narrow-to-region ,(region-beginning) ,(region-end))