From f8fcf5b6816fa7e3e4cc9cc64b12c5cced4a546c Mon Sep 17 00:00:00 2001 From: rasmus Date: Tue, 7 Oct 2014 11:20:10 +0200 Subject: [PATCH] ox: Quickly INCLUDE contents from same file. * ox.el (org-export-expand-include-keyword): Try buffer file name if filename is nil. --- lisp/ox.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index ec52203..ded3b2f 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -3349,8 +3349,9 @@ paths." (setq matched (replace-match "" nil nil matched 1))) (expand-file-name - (org-remove-double-quotes - matched) + (or (org-string-nw-p + (org-remove-double-quotes matched)) + (buffer-file-name)) dir))) (setq value (replace-match "" nil nil value))))) (only-contents -- 2.1.2