From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexis Subject: Re: orgmode-contacts "wrong type arguments" Date: Tue, 17 Feb 2015 19:55:23 +1100 Message-ID: <87wq3gnchw.fsf@gmail.com> References: <87lhjyngfs.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNdwM-0007LC-Rx for emacs-orgmode@gnu.org; Tue, 17 Feb 2015 03:55:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNdwJ-0006YC-Ie for emacs-orgmode@gnu.org; Tue, 17 Feb 2015 03:55:34 -0500 Received: from mail-pd0-f181.google.com ([209.85.192.181]:44274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNdwJ-0006Xz-C5 for emacs-orgmode@gnu.org; Tue, 17 Feb 2015 03:55:31 -0500 Received: by pdbnh10 with SMTP id nh10so38134658pdb.11 for ; Tue, 17 Feb 2015 00:55:30 -0800 (PST) Received: from localhost (ppp118-209-226-212.lns20.mel8.internode.on.net. [118.209.226.212]) by mx.google.com with ESMTPSA id rb3sm17162532pab.29.2015.02.17.00.55.27 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Feb 2015 00:55:29 -0800 (PST) In-reply-to: <87lhjyngfs.fsf@gmail.com> 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: emacs-orgmode@gnu.org On 2015-02-17T00:17:59+1100, Tory S. Anderson said: TSA> In my efforts to improve my elisp, can anyone tell me why the code TSA> doesn't work, and what might have changed to cause it to break? TSA> Error: completion-in-region: Wrong type argument: listp, #("NAME TSA> , NAME , NAME TSA> , NAME " 0 15 (fontified TSA> nil org-category "contacts") 44 65 (fontified nil org-category TSA> "contacts") 88 99 (fontified nil org-category "contacts") 127 TSA> 141 (fontified nil org-category "contacts")) It looks like something in `completion-in-region` wanted a plain old list of items, but instead got a propertized string. For further information, check out section "31.19.2, Changing Text Properties" of the Emacs Lisp Reference Manual - in particular, the entry for the `propertize` function. Alexis.