From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: tagging during creation Date: Wed, 31 Oct 2007 15:17:38 +0000 Message-ID: <87k5p3jotp.fsf@bzg.ath.cx> References: <87ir4nl6rq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InEOD-0005O1-Mj for emacs-orgmode@gnu.org; Wed, 31 Oct 2007 10:17:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InEOB-0005LX-TE for emacs-orgmode@gnu.org; Wed, 31 Oct 2007 10:17:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InEOB-0005LL-Kq for emacs-orgmode@gnu.org; Wed, 31 Oct 2007 10:17:47 -0400 Received: from fk-out-0910.google.com ([209.85.128.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1InEOB-0006c0-BD for emacs-orgmode@gnu.org; Wed, 31 Oct 2007 10:17:47 -0400 Received: by fk-out-0910.google.com with SMTP id 19so178224fkr for ; Wed, 31 Oct 2007 07:17:46 -0700 (PDT) In-Reply-To: (Richard G. Riley's message of "Wed, 31 Oct 2007 14:48:04 +0100") 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: emacs-orgmode@gnu.org --=-=-= Richard G Riley writes: >> (define-key org-mode-map "\C-cc" 'org-set-tags) >> >> HTH, > > And how to do with the proper tags interface showing "tab for free" etc > so I can see the existing tags to choose from ? e.g as you currently get > when you hit C-c C-c C-c in an org file. `org-set-tags' won't use the fast selection interface unless it knows about a pre-defined set of available tags. Since you cannot set this directly in the org-remember buffer, you need to use `org-tag-alist': See the manual (info "(org)Setting tags"): (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l))) I had to make a patch to get this working with Org 5.13h, otherwise Org would just reinitialize `org-tag-alist' each time org-mode is run, i.e. each time a new Org buffer is open - including the remember buffer and regardless of the fact that `org-tag-alist' has been globally defined. Please try it and give me feedback. Thanks, --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch diff -u /home/guerry/elisp/testing/org/org.el /home/guerry/elisp/testing/bzg/org.el --- /home/guerry/elisp/testing/org/org.el 2007-10-31 15:05:32.000000000 +0000 +++ /home/guerry/elisp/testing/bzg/org.el 2007-10-31 15:05:44.000000000 +0000 @@ -4173,7 +4173,7 @@ (string-to-char (match-string 2 e))) tgs)) (t (push (list e) tgs)))) - (org-set-local 'org-tag-alist nil) + (org-set-local 'org-tag-alist org-tag-alist) (while (setq e (pop tgs)) (or (and (stringp (car e)) (assoc (car e) org-tag-alist)) Diff finished. Wed Oct 31 15:11:13 2007 --=-=-= -- Bastien --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--