From: Carlos Pita <carlosjosepita@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Agenda todo states autocompletion: suggestion for improvement
Date: Thu, 21 Feb 2019 15:54:06 -0300 [thread overview]
Message-ID: <CAELgYhen_pV+EHQt3aXZVsMj4t-XjBH+Kej8Q5acaV+T8qMfUA@mail.gmail.com> (raw)
In-Reply-To: <CAELgYheuyaA+=KmfbTjgnpbqyLWFwvFBYNEMhP-zaPZP-0jVNg@mail.gmail.com>
It doesn't seem to be any relevant computational penalty:
(when (equal arg '(4))
(setq org-select-this-todo-keyword
(completing-read "Keyword (or KWD1|K2D2|...): "
(mapcar #'list kwds) nil nil)))
<------------ (1)
(and (equal 0 arg) (setq org-select-this-todo-keyword nil))
(catch 'exit
(when org-agenda-sticky
(setq org-agenda-buffer-name
(if (stringp org-select-this-todo-keyword)
(format "*Org Agenda(%s:%s)*" (or org-keys "t")
org-select-this-todo-keyword)
(format "*Org Agenda(%s)*" (or org-keys "t")))))
(org-agenda-prepare "TODO") <------------ (2)
It's true that the user might abort the prompt (1) without executing
(2) but that's an exceptional use case.
next prev parent reply other threads:[~2019-02-21 18:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-21 18:47 Agenda todo states autocompletion: suggestion for improvement Carlos Pita
2019-02-21 18:54 ` Carlos Pita [this message]
2019-02-21 19:12 ` Carlos Pita
2019-02-22 18:59 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAELgYhen_pV+EHQt3aXZVsMj4t-XjBH+Kej8Q5acaV+T8qMfUA@mail.gmail.com \
--to=carlosjosepita@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.