Toggle partial-completion-mode only if it is turned on

* org-macs.el (org-without-partial-completion): Toggle
partial-completion-mode only if it is turned on.
This commit is contained in:
David Maus 2011-07-02 16:51:55 +02:00
parent 43a380708e
commit eaa724404b
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ Also, do not record undo information."
(defmacro org-without-partial-completion (&rest body)
`(if (and (boundp 'partial-completion-mode)
partial-completion-mode
(fboundp 'partial-completion-mode))
(unwind-protect
(progn