summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 23:43:36 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 23:43:36 +0100
commit01a4f335689594e7fcfd9473d4e8436a852071cc (patch)
tree0ee8de6cda9978c437778e8dc48646b8cfb10e48
parent776679ee0a1a80f627d5062e79e4fbd1c85429a1 (diff)
parent3216cbe776900135c7ab5e1bbe4fc7cab921e9d5 (diff)
downloadorg-mode-01a4f335689594e7fcfd9473d4e8436a852071cc.tar.gz
Merge branch 'master' into next
-rw-r--r--lisp/ox.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 2e8141b..e5aa7db 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))