From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Agenda todo states autocompletion: suggestion for improvement Date: Thu, 21 Feb 2019 15:54:06 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwtUG-00058O-2Q for emacs-orgmode@gnu.org; Thu, 21 Feb 2019 13:54:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwtUD-0005Wy-5k for emacs-orgmode@gnu.org; Thu, 21 Feb 2019 13:54:23 -0500 Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]:36135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwtUB-0005WA-Qm for emacs-orgmode@gnu.org; Thu, 21 Feb 2019 13:54:20 -0500 Received: by mail-yb1-xb2c.google.com with SMTP id f5so769600ybf.3 for ; Thu, 21 Feb 2019 10:54:19 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode 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.