diff options
author | Bastien Guerry <bzg@altern.org> | 2012-08-05 11:40:47 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-08-05 11:40:47 +0200 |
commit | 4f627f86d7ee060703fcf70a779ab6d75273b073 (patch) | |
tree | 94464be45d24f58285f9053ee668c81198c81445 | |
parent | 216768531f2661c4b1890eef6454f58e6cb8a241 (diff) | |
download | org-mode-4f627f86d7ee060703fcf70a779ab6d75273b073.tar.gz |
org.el: Fix bug in ̀org-open-at-point'.
* org.el (org-open-at-point): Only set
`clean-buffer-list-kill-buffer-names' when the feature
'midnight has been loaded.
Thanks to François Allisson for reporting this bug.
-rw-r--r-- | lisp/org.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el index b60bba2..8765370 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9835,9 +9835,10 @@ application the system uses for this file type." 'face 'org-warning)))) (progn (message "Executing %s" cmd) - (setq clean-buffer-list-kill-buffer-names - (cons buf clean-buffer-list-kill-buffer-names)) - (shell-command cmd buf)) + (shell-command cmd buf) + (if (featurep 'midnight) + (setq clean-buffer-list-kill-buffer-names + (cons buf clean-buffer-list-kill-buffer-names)))) (error "Abort")))) ((string= type "elisp") |