all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: tagging during creation
Date: Sun, 4 Nov 2007 08:22:24 +0100	[thread overview]
Message-ID: <630A9B9D-9387-45C0-8E0A-82EF38D733D8@science.uva.nl> (raw)
In-Reply-To: <87k5p3jotp.fsf@bzg.ath.cx>


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

> Richard G Riley <rileyrgdev@googlemail.com> 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	other threads:[~2007-11-04  7:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 12:39 tagging during creation Richard G Riley
2007-10-31 14:04 ` Bastien
     [not found]   ` <pszlxzfl9n.fsf@home.net>
2007-10-31 15:17     ` Bastien
2007-11-04  7:22       ` Carsten Dominik [this message]
2007-11-04 13:05         ` Bastien
2007-11-04 13:46           ` Carsten Dominik
2007-11-05 10:58             ` Andrew J. Korty

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

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

  git send-email \
    --in-reply-to=630A9B9D-9387-45C0-8E0A-82EF38D733D8@science.uva.nl \
    --to=carsten.dominik@gmail.com \
    --cc=bzg@altern.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.