From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vicente Vera Subject: Re: Error when using org-ctrl-c-ctrl-c to add tags Date: Sun, 19 Apr 2015 12:03:42 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yjql7-0002wX-3c for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 11:03:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yjql6-0004pD-8w for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 11:03:45 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:35819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yjql6-0004mK-25 for emacs-orgmode@gnu.org; Sun, 19 Apr 2015 11:03:44 -0400 Received: by widdi4 with SMTP id di4so71367710wid.0 for ; Sun, 19 Apr 2015 08:03:42 -0700 (PDT) In-Reply-To: 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: Marc Ihm Cc: emacs-orgmode , rasmus@gmx.us Hello Marc. Yes, upon further inspection it seems the problem is in org-icompleting-read. This function is complaining that org-tags-completion--function---one of its arguments---is not a list. 2015-04-19 11:36 GMT-03:00 Marc Ihm : > 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)))))