From c54f87cd6b99fe12c9497c5d273194325d0458c7 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Tue, 6 Dec 2016 11:12:37 +0100 Subject: [PATCH] fix for bba-export-jira-org - without region write-region saves the whole buffer even if it's narrowed. Signed-off-by: Andreas Gerler --- bba.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bba.org b/bba.org index 73db2262..f26486c5 100644 --- a/bba.org +++ b/bba.org @@ -878,7 +878,9 @@ the jira ticket: (description (last (split-string (if (match-end 3) (match-string-no-properties 3) (match-string-no-properties 1)) ":")))) - (write-region nil nil (concat "/tmp/" (car description) ".org") nil nil ) + (mark-whole-buffer) + (write-region (mark) (point) (concat "/tmp/" (car description) ".org") nil nil ) + (deactivate-mark) (if (string-equal system-type "darwin")(shell-command "open /tmp/")) ))) ) -- 2.47.3