emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fast todo kw / -> x
@ 2012-05-20  1:35 Samuel Wales
  2012-05-20 21:09 ` Neil Smithline
  2012-07-14  7:16 ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Samuel Wales @ 2012-05-20  1:35 UTC (permalink / raw)
  To: emacs-orgmode

NEXTKA below is selected by "x" instead of "/", which is surprising.

Perhaps it's worth documenting the allowable keys?

(setf org-todo-keywords
      '((type "REF(e)" "NAKA(i)" "META(=)" "GOAL(G)" "QUESTION(Q)"
         "NOTE(O)" "TELL(+)" "ASK(?)" "EXPECT(E!)" "SUGU(g)"
         "CHUU(h!)" "ONGOING(o)" "WHENEVER(r)" "WHEN(W)" "STARTED(R)"
         "NEXT(n)" "NEXTKA(/)"
         "|" "MOSTKA(L)" "MOST(M)" "DONEKA(k)" "DONE(d)"
         "DUPLICATEKA(u)" "DUPLICATE(D)" "MOOTKA(K)" "MOOT(m)"
         "WAKARANAI(a)" "ASSERT(X)")))

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

* Re: fast todo kw / -> x
  2012-05-20  1:35 fast todo kw / -> x Samuel Wales
@ 2012-05-20 21:09 ` Neil Smithline
  2012-06-01  3:10   ` Samuel Wales
  2012-07-14  7:16 ` Bastien
  1 sibling, 1 reply; 7+ messages in thread
From: Neil Smithline @ 2012-05-20 21:09 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

On Sat May 19 21:35:28 2012, Samuel Wales wrote:
> NEXTKA below is selected by "x" instead of "/", which is surprising.
>
> Perhaps it's worth documenting the allowable keys?
>
> (setf org-todo-keywords
>        '((type "REF(e)" "NAKA(i)" "META(=)" "GOAL(G)" "QUESTION(Q)"
>           "NOTE(O)" "TELL(+)" "ASK(?)" "EXPECT(E!)" "SUGU(g)"
>           "CHUU(h!)" "ONGOING(o)" "WHENEVER(r)" "WHEN(W)" "STARTED(R)"
>           "NEXT(n)" "NEXTKA(/)"
>           "|" "MOSTKA(L)" "MOST(M)" "DONEKA(k)" "DONE(d)"
>           "DUPLICATEKA(u)" "DUPLICATE(D)" "MOOTKA(K)" "MOOT(m)"
>           "WAKARANAI(a)" "ASSERT(X)")))

Samuel,

I definitely think that this is an omission in the doc. The doc for 
`org-todo-keywords' ascribes meaning to at (@), slash (/), bang (!), 
and at least close paren ()).

I would think that the quick keywords should be limited to word 
characters as defined by [[info:elisp#Char%20Classes][info:elisp#Char 
Classes]].

I bet if you provide suggested rewording for variable and info that 
someone on this will push it into the doc.

Neil Smithline
http://www.neilsmithline.com
Proud GNU Emacs user since 1986, v. 18.24.

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

* Re: fast todo kw / -> x
  2012-05-20 21:09 ` Neil Smithline
@ 2012-06-01  3:10   ` Samuel Wales
  0 siblings, 0 replies; 7+ messages in thread
From: Samuel Wales @ 2012-06-01  3:10 UTC (permalink / raw)
  To: Neil Smithline; +Cc: emacs-orgmode

Hi Neil,

"I definitely think that this is an omission in the doc. The doc for
`org-todo-keywords' ascribes meaning to at (@), slash (/), bang (!),
and at least close paren ())."

I find symbols useful, but I see now that / is used in that part.  I
like plists as you can separate keys from semantics.  :)  My docstring
does not mention close paren as having meaning in the same way / does.

Not sure if docs need updating or not.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

* Re: fast todo kw / -> x
  2012-05-20  1:35 fast todo kw / -> x Samuel Wales
  2012-05-20 21:09 ` Neil Smithline
@ 2012-07-14  7:16 ` Bastien
  2012-07-14 17:12   ` Samuel Wales
  1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2012-07-14  7:16 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> NEXTKA below is selected by "x" instead of "/", which is surprising.
>
> Perhaps it's worth documenting the allowable keys?

I updated a docstring and a part of the manual to make it clearer 
only letters are supported.

Thanks,

-- 
 Bastien

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

* Re: fast todo kw / -> x
  2012-07-14  7:16 ` Bastien
@ 2012-07-14 17:12   ` Samuel Wales
  2012-08-02 10:00     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Samuel Wales @ 2012-07-14 17:12 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

On 7/14/12, Bastien <bzg@gnu.org> wrote:
> I updated a docstring and a part of the manual to make it
> clearer only letters are supported.

Thanks, Bastien.  :) I appreciate the clarity in the manual.

Just so you know my use case:

I have 49 todo keywords and will have a few more soon, so I
will keep using . ? - = + ( ) ' ; .

Non-alpha are useful mnemonically for me.  For example, ? is
for QUESTION.

I specify my keywords using a struct:

  (make-alpha-kw :key "." :kw "NEXTREPEAT" :group :contingent
                 :face '(:inherit org-todo
                         :weight normal))

If I want modifiers, I add :mod.

This gets mapped into the org-todo-keywords string.

The advantage for me is that it keeps the keys and the
modifier semantics separate.  Also, it allows me to keep all
keyword-related information, currently including faces and
todo groups, together.

The drawback for me is that org-todo-keywords combines the separate
items into strings (so modifier symbols can't be used).  :/ Allowing more
symbols would be useful for me.

If anybody wants the struct definition and mapper, I will
extract and post them.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

* Re: fast todo kw / -> x
  2012-07-14 17:12   ` Samuel Wales
@ 2012-08-02 10:00     ` Bastien
  2012-08-07 22:01       ` Samuel Wales
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-08-02 10:00 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hi Samuel,

Samuel Wales <samologist@gmail.com> writes:

> On 7/14/12, Bastien <bzg@gnu.org> wrote:
>> I updated a docstring and a part of the manual to make it
>> clearer only letters are supported.
>
> Thanks, Bastien.  :) I appreciate the clarity in the manual.

Actually I was wrong.  All characters are supported for fast
todo selection, except @ / and !.  I've fixed the manual and
the docstring.

-- 
 Bastien

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

* Re: fast todo kw / -> x
  2012-08-02 10:00     ` Bastien
@ 2012-08-07 22:01       ` Samuel Wales
  0 siblings, 0 replies; 7+ messages in thread
From: Samuel Wales @ 2012-08-07 22:01 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

On 8/2/12, Bastien <bzg@gnu.org> wrote:
> Actually I was wrong.  All characters are supported for fast
> todo selection, except @ / and !.  I've fixed the manual and
> the docstring.

Excellent, thank you!

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

end of thread, other threads:[~2012-08-07 22:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-20  1:35 fast todo kw / -> x Samuel Wales
2012-05-20 21:09 ` Neil Smithline
2012-06-01  3:10   ` Samuel Wales
2012-07-14  7:16 ` Bastien
2012-07-14 17:12   ` Samuel Wales
2012-08-02 10:00     ` Bastien
2012-08-07 22:01       ` Samuel Wales

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).