emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda todo states autocompletion: suggestion for improvement
@ 2019-02-21 18:47 Carlos Pita
  2019-02-21 18:54 ` Carlos Pita
  0 siblings, 1 reply; 4+ messages in thread
From: Carlos Pita @ 2019-02-21 18:47 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

M-x org-agenda T prompts for a todo keyword. But it builds the
completion list while preparing the agenda buffers and this is done
*after* prompting. So the first time no completion is presented, the
second time completions from previous invocation of
org-agenda-prepare-buffers are presented, etc.

This has some drawbacks:

1. The first time one has to explicitly type the state.

2. I'm not sure about this but: aren't completions potentially
outdated, since the last time the list was built was for a previous
agenda?

To prepare the buffers before showing the prompt will fix both issues
but maybe at a high computational cost, I've not investigated the code
in any depth yet. Otherwise, at least the default list of state
keywords could be shown when org-todo-keywords-for-agenda is nil,
couldn't it?

Best regards
--
Carlos

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

end of thread, other threads:[~2019-02-22 19:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 18:47 Agenda todo states autocompletion: suggestion for improvement Carlos Pita
2019-02-21 18:54 ` Carlos Pita
2019-02-21 19:12   ` Carlos Pita
2019-02-22 18:59     ` Nicolas Goaziou

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