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.
This commit is contained in:
Bastien Guerry 2012-08-05 11:40:47 +02:00
parent 216768531f
commit 4f627f86d7
1 changed files with 4 additions and 3 deletions

View File

@ -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")