emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] tagging during creation


From: Carsten Dominik
Subject: Re: [Orgmode] tagging during creation
Date: Sun, 4 Nov 2007 08:22:24 +0100


On  31Oct2007, at 4:17 PM, Bastien wrote:

Richard G Riley <address@hidden> 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,

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

I don't think this patch is correct. This code is only executed when there is a #+TAGS line in the buffer, and then it needs to be executed, to overrule the global settings.
If there is no #+TAGS line, the global value will be used.

What exactly are you trying to fix with this patch?

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]