- without region write-region saves the whole buffer even if it's narrowed.
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
(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/"))
)))
)