emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* orgmode-contacts "wrong type arguments"
@ 2015-02-16 13:17 Tory S. Anderson
  2015-02-17  8:55 ` Alexis
  2015-02-17 13:40 ` Nick Dokos
  0 siblings, 2 replies; 4+ messages in thread
From: Tory S. Anderson @ 2015-02-16 13:17 UTC (permalink / raw)
  To: orgmode list, julien

Presumably this is related to my having upgraded to:
Org-mode version 8.2.10 (8.2.10-33-g880a2b-elpa)
GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2015-02-10 on localhost.localdomain

I use org-contacts[1] to autofill addresses in GNUs. Normally can use "+CATEGORY" to add all names in a category; but now that particular functionality seems to be broken (although the package is otherwise functional). In my efforts to improve my elisp, can anyone tell me why the code doesn't work, and what might have changed to cause it to break?

Error: 
completion-in-region: Wrong type argument: listp, #("NAME <address@gmail.com>, NAME <address@aol.com>, NAME <address@gmail.com>, NAME <address@gatech.edu>" 0 15 (fontified nil org-category "contacts") 44 65 (fontified nil org-category "contacts") 88 99 (fontified nil org-category "contacts") 127 141 (fontified nil org-category "contacts"))

Footnotes: 
[1]  https://julien.danjou.info/projects/emacs-packages#org-contacts

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: orgmode-contacts "wrong type arguments"
  2015-02-16 13:17 orgmode-contacts "wrong type arguments" Tory S. Anderson
@ 2015-02-17  8:55 ` Alexis
  2015-02-17 13:40 ` Nick Dokos
  1 sibling, 0 replies; 4+ messages in thread
From: Alexis @ 2015-02-17  8:55 UTC (permalink / raw)
  To: emacs-orgmode


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> <address@gmail.com>, NAME <address@aol.com>, NAME 
 TSA> <address@gmail.com>, NAME <address@gatech.edu>" 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: orgmode-contacts "wrong type arguments"
  2015-02-16 13:17 orgmode-contacts "wrong type arguments" Tory S. Anderson
  2015-02-17  8:55 ` Alexis
@ 2015-02-17 13:40 ` Nick Dokos
  2015-02-17 16:07   ` Tory S. Anderson
  1 sibling, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2015-02-17 13:40 UTC (permalink / raw)
  To: emacs-orgmode

torys.anderson@gmail.com (Tory S. Anderson) writes:

> Presumably this is related to my having upgraded to:
> Org-mode version 8.2.10 (8.2.10-33-g880a2b-elpa)
> GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2015-02-10 on localhost.localdomain
>
> I use org-contacts[1] to autofill addresses in GNUs. Normally can use
> "+CATEGORY" to add all names in a category; but now that particular
> functionality seems to be broken (although the package is otherwise
> functional). In my efforts to improve my elisp, can anyone tell me why
> the code doesn't work, and what might have changed to cause it to
> break?
>
> Error: 
> completion-in-region: Wrong type argument: listp, #("NAME
> <address@gmail.com>, NAME <address@aol.com>, NAME <address@gmail.com>,
> NAME <address@gatech.edu>" 0 15 (fontified nil org-category
> "contacts") 44 65 (fontified nil org-category "contacts") 88 99
> (fontified nil org-category "contacts") 127 141 (fontified nil
> org-category "contacts"))
>
> Footnotes: 
> [1]  https://julien.danjou.info/projects/emacs-packages#org-contacts
>

When you get an error, the first thing you should do is get a backtrace:

   (info "(org) Feeback") 

It's far more likely that you can find the error (or somebody can find
it for you) with a backtrace in hand.
-- 
Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: orgmode-contacts "wrong type arguments"
  2015-02-17 13:40 ` Nick Dokos
@ 2015-02-17 16:07   ` Tory S. Anderson
  0 siblings, 0 replies; 4+ messages in thread
From: Tory S. Anderson @ 2015-02-17 16:07 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Thanks Nick for the tip; I've recently learned about debug-on-entry, which I attempted to use to no avail last night, but the functions listed in the info manual you cited are useful. Following them I have found that the problem seems to be a conflict bewteen Org-Contacts and Helm; loading without helm enabled fixes the problem. Unfortunately, this seems like a lose-lose tradeoff to disable helm or go without mailing list functionality. I'm open to any suggestions, now that I know that a Helm conflict is apparently causing the listp error. 

Nick Dokos <ndokos@gmail.com> writes:

> torys.anderson@gmail.com (Tory S. Anderson) writes:
>
>> Presumably this is related to my having upgraded to:
>> Org-mode version 8.2.10 (8.2.10-33-g880a2b-elpa)
>> GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2015-02-10 on localhost.localdomain
>>
>> I use org-contacts[1] to autofill addresses in GNUs. Normally can use
>> "+CATEGORY" to add all names in a category; but now that particular
>> functionality seems to be broken (although the package is otherwise
>> functional). In my efforts to improve my elisp, can anyone tell me why
>> the code doesn't work, and what might have changed to cause it to
>> break?
>>
>> Error: 
>> completion-in-region: Wrong type argument: listp, #("NAME
>> <address@gmail.com>, NAME <address@aol.com>, NAME <address@gmail.com>,
>> NAME <address@gatech.edu>" 0 15 (fontified nil org-category
>> "contacts") 44 65 (fontified nil org-category "contacts") 88 99
>> (fontified nil org-category "contacts") 127 141 (fontified nil
>> org-category "contacts"))
>>
>> Footnotes: 
>> [1]  https://julien.danjou.info/projects/emacs-packages#org-contacts
>>
>
> When you get an error, the first thing you should do is get a backtrace:
>
>    (info "(org) Feeback") 
>
> It's far more likely that you can find the error (or somebody can find
> it for you) with a backtrace in hand.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-17 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-16 13:17 orgmode-contacts "wrong type arguments" Tory S. Anderson
2015-02-17  8:55 ` Alexis
2015-02-17 13:40 ` Nick Dokos
2015-02-17 16:07   ` Tory S. Anderson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).