[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Typo in 'org-without-partial-completion'
From: |
Nick Dokos |
Subject: |
Re: [O] Typo in 'org-without-partial-completion' |
Date: |
Sat, 02 Jul 2011 10:40:31 -0400 |
David Maus <address@hidden> wrote:
> #+begin_src emacs-lisp
> (defmacro org-without-partial-completion (&rest body)
> `(when (and (boundp 'partial-completion-mode)
> (fboundp 'partial-completion-mode))
> (unwind-protect
> (progn
> (partial-completion-mode -1)
> ,@body)
> (partial-completion-mode 1))))
> #+end_src
>
> This avoids leaking if 'body happens to uses a symbol 'pc-mode-p in a
> different context.
>
Won't this turn on the mode even if it was off before the macro ws called?
And if so, isn't that a problem?
Nick