David Maus <dm...@ictsoc.de> 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