From 3216cbe776900135c7ab5e1bbe4fc7cab921e9d5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 27 Nov 2018 23:42:16 +0100 Subject: [PATCH] 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 --- lisp/ox.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 743fcd772..ad4942be0 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))