emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Agenda todo states autocompletion: suggestion for improvement
Date: Thu, 21 Feb 2019 15:47:57 -0300	[thread overview]
Message-ID: <CAELgYheuyaA+=KmfbTjgnpbqyLWFwvFBYNEMhP-zaPZP-0jVNg@mail.gmail.com> (raw)

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

             reply	other threads:[~2019-02-21 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21 18:47 Carlos Pita [this message]
2019-02-21 18:54 ` Agenda todo states autocompletion: suggestion for improvement Carlos Pita
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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAELgYheuyaA+=KmfbTjgnpbqyLWFwvFBYNEMhP-zaPZP-0jVNg@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 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).