From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Typo in 'org-without-partial-completion' Date: Sat, 02 Jul 2011 11:26:59 +0200 Message-ID: <8762nlghi4.fsf@gnu.org> References: <87wrg3k7io.fsf@gnu.org> <871uybdsqf.wl%dmaus@ictsoc.de> <87iprl9lv6.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcwTI-0003aj-Hr for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 05:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcwTC-0000YQ-Ps for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 05:26:36 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:53293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcwT9-0000WA-HP for emacs-orgmode@gnu.org; Sat, 02 Jul 2011 05:26:32 -0400 Received: by fxd18 with SMTP id 18so3491957fxd.39 for ; Sat, 02 Jul 2011 02:26:30 -0700 (PDT) In-Reply-To: <87iprl9lv6.wl%dmaus@ictsoc.de> (David Maus's message of "Sat, 02 Jul 2011 09:34:37 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: Paul Sexton , emacs-orgmode@gnu.org Hi David and Paul, David Maus writes: > #+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 That's clearly better -- thanks for this. I applied this change, thanks for this improvement! Paul, please let me know if things don't behave as expected. -- Bastien