From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Ihm Subject: Re: Error when using org-ctrl-c-ctrl-c to add tags Date: Sun, 19 Apr 2015 16:36:37 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjqKw-0003fC-0S for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 10:36:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjqKs-00050x-QT for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 10:36:41 -0400 Received: from smtp02.udag.de ([62.146.106.18]:39849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjqKs-00050d-Ky for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 10:36:38 -0400 In-Reply-To: (Vicente Vera's message of "Sat, 18 Apr 2015 15:50:48 -0300") 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: Vicente Vera Cc: emacs-orgmode , rasmus@gmx.us Vicente Vera writes: > Hi. > Don't think there are more details to provide. The error message > appears upon pressing C-c C-c (bound to the org-ctrl-c-ctrl-c command) > on a headline, doesn't matter which level. > It happened in 3 different Org files, one of which was created for testing. > Also tried with "emacs -q" but the error persisted. > > Strange message though, org-tags-completion-function is a function, > not a variable, so why is Emacs complaining that it isn't a list? > Probably related to commit acf7f47ecd20a48c05f97dc660b00d1850b57e10? I see this error too; the patch below fixes it for me (and corrects the nexting level of 'completing-read too ...) best regards Marc diff --git a/lisp/org.el b/lisp/org.el index 8a00847..f440382 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -10512,10 +10512,11 @@ from." (listp (second args))) 'org-iswitchb-completing-read) (t (or (and (boundp 'completing-read-function) - completing-read-function) - 'completing-read))) + completing-read-function)) + 'completing-read)) (concat (car args)) - (if (consp (car (nth 1 args))) + (if (and (consp (nth 1 args)) + (consp (car (nth 1 args)))) (mapcar 'car (nth 1 args)) (nth 1 args)) (cddr args)))))