From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Dynamic tag completion with all tags from all agenda files Date: Thu, 12 Nov 2009 08:55:27 +0100 Message-ID: <8BCB46F4-83FB-4131-87EA-9EB48874D41A@gmail.com> References: <87d43o7r22.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8UWp-0005Dc-WA for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 02:55:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8UWk-00057l-KW for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 02:55:39 -0500 Received: from [199.232.76.173] (port=60781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8UWk-00057O-Bu for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 02:55:34 -0500 Received: from mx20.gnu.org ([199.232.41.8]:20918) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8UWh-0001Hg-PJ for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 02:55:33 -0500 Received: from ey-out-1920.google.com ([74.125.78.149]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8UWg-0005gn-Uw for emacs-orgmode@gnu.org; Thu, 12 Nov 2009 02:55:31 -0500 Received: by ey-out-1920.google.com with SMTP id 3so478798eyh.34 for ; Wed, 11 Nov 2009 23:55:30 -0800 (PST) In-Reply-To: <87d43o7r22.fsf@thinkpad.tsdh.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tassilo Horn Cc: emacs-orgmode@gnu.org Hi Tassilo, %^G in a remember template gives you completion on all tags, globally. The fast tag interface does not, indeed. On the list, but not now... - Carsten On Nov 11, 2009, at 9:19 PM, Tassilo Horn wrote: > Hi all, > > is there a way to get the tag completion suggest all tags from all my > agenda files? > > The rationale is that I use `org-remember' very extensively, and I > often > want to tag the new entry. But there's no dynamic completion, because > that uses only the current file's tags and the remember buffer has > none. > > I could setup all tags in `org-tag-alist', but tags are not really > static. I could add a new one with TAB in the tag interface, but > then I > would have to add it to `org-tag-alist' manually. Not very nifty... > > What would be cool, was that org collected all tags from all agenda > files as soon as the agenda is built the first time. Then it uses > those > cached tags for completion (maybe with some automatic fast selection > key > calculation *dreaming*). When a user adds a new tag with TAB in the > tag > interface, it is added to that list. > > I don't know exactly how the behavior should be with `org-tag-alist' > set > to something. Maybe a good approach for the whole wish would be > adding > a special entry to org-tag-alist: > > ;; Use all tags from all agenda files, and add the tags foo and bar, > ;; even if they are not used anywhere. > (setq org-tag-alist '(:all foo bar)) > > Now only the behavior of the TAGS keyword in files has to be defined > somehow. Well, I don't have an opinion. There are two options: 1) > extend the dynamic list of all tags with the ones defined in TAGS > (consistent with the :all keyword above), or 2) the dynamic list is > disabled and only those tags are shown (consistent with the current > behavior). > > What do you think? > > Bye, > Tassilo > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten