* [bug] Must declare value as string in org-agenda-custom-commands easy customize interface
@ 2011-01-06 16:45 Jeff Horn
2011-01-16 10:43 ` David Maus
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Horn @ 2011-01-06 16:45 UTC (permalink / raw)
To: Org-mode ml
Only a minor annoyance. Posting in case anyone else runs into the same issue.
In the easy customize interface, when setting the value for a variable
in "local settings" for a custom command, the
org-agenda-todo-ignore-deadlines value of "all" must be preceded by a
single quote.[1] I expected this to automatically happen, as the easy
customize interface generally takes care of such escaping.
The parenthetical "sexp" leads me to believe this is the intended
behavior. Is this correct?
Footnotes:
[1] http://cl.ly/3ta0
--
Jeffrey Horn
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] Must declare value as string in org-agenda-custom-commands easy customize interface
2011-01-06 16:45 [bug] Must declare value as string in org-agenda-custom-commands easy customize interface Jeff Horn
@ 2011-01-16 10:43 ` David Maus
2011-01-16 12:49 ` Jeff Horn
0 siblings, 1 reply; 4+ messages in thread
From: David Maus @ 2011-01-16 10:43 UTC (permalink / raw)
To: Jeff Horn; +Cc: Org-mode ml
[-- Attachment #1.1: Type: text/plain, Size: 974 bytes --]
At Thu, 6 Jan 2011 11:45:42 -0500,
Jeff Horn wrote:
>
> Only a minor annoyance. Posting in case anyone else runs into the same issue.
>
> In the easy customize interface, when setting the value for a variable
> in "local settings" for a custom command, the
> org-agenda-todo-ignore-deadlines value of "all" must be preceded by a
> single quote.[1] I expected this to automatically happen, as the easy
> customize interface generally takes care of such escaping.
>
> The parenthetical "sexp" leads me to believe this is the intended
> behavior. Is this correct?
From my understanding this is correct. The dialog allows you to set
an arbitrary symbol to an arbitrary value, i.e. not limited to another
symbol (e.g. 'all). Thus a sexp is required and the single quote in
front of the symbol all is the short hand notation of (quote all).
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] Must declare value as string in org-agenda-custom-commands easy customize interface
2011-01-16 10:43 ` David Maus
@ 2011-01-16 12:49 ` Jeff Horn
2011-01-18 9:02 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Horn @ 2011-01-16 12:49 UTC (permalink / raw)
To: David Maus; +Cc: Org-mode ml
On Sun, Jan 16, 2011 at 5:43 AM, David Maus <dmaus@ictsoc.de> wrote:
> From my understanding this is correct. The dialog allows you to set
> an arbitrary symbol to an arbitrary value, i.e. not limited to another
> symbol (e.g. 'all). Thus a sexp is required and the single quote in
> front of the symbol all is the short hand notation of (quote all).
Thanks for your reply, David. If this is the case, shouldn't this be a
dropdown menu with "sexp" as an option for entering your own symbols?
It's just a minor gripe, and one for which I would submit a patch if I
knew enough elisp.
--
Jeffrey Horn
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] Must declare value as string in org-agenda-custom-commands easy customize interface
2011-01-16 12:49 ` Jeff Horn
@ 2011-01-18 9:02 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2011-01-18 9:02 UTC (permalink / raw)
To: Jeff Horn; +Cc: David Maus, Org-mode ml
Hi Jeff,
Jeff Horn <jrhorn424@gmail.com> writes:
> On Sun, Jan 16, 2011 at 5:43 AM, David Maus <dmaus@ictsoc.de> wrote:
>> From my understanding this is correct. The dialog allows you to set
>> an arbitrary symbol to an arbitrary value, i.e. not limited to another
>> symbol (e.g. 'all). Thus a sexp is required and the single quote in
>> front of the symbol all is the short hand notation of (quote all).
>
> Thanks for your reply, David.
Yes, David is right, in the case demonstrated by your screenshot, the
customize interface asks for the sexp "'all" -- not just "all", since
the value of the variable is indeed "'all" -- not "all" :)
> If this is the case, shouldn't this be a
> dropdown menu with "sexp" as an option for entering your own symbols?
I'm not sure what you mean.
Defining local settings lets you pick up a local setting from a list
(defined in org-agenda-custom-commands-local-options). When selecting
the last choice "Any variable", it lets you define a variable that is
*not* in this list (there are so many of them available!) -- such a
variable asks for a sexp.
> It's just a minor gripe, and one for which I would submit a patch if I
> knew enough elisp.
Maybe I misunderstood what you ask... please rephrase if necessary :)
Best,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-18 9:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 16:45 [bug] Must declare value as string in org-agenda-custom-commands easy customize interface Jeff Horn
2011-01-16 10:43 ` David Maus
2011-01-16 12:49 ` Jeff Horn
2011-01-18 9:02 ` Bastien
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).