From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: tagging during creation
Date: Wed, 31 Oct 2007 15:17:38 +0000 [thread overview]
Message-ID: <87k5p3jotp.fsf@bzg.ath.cx> (raw)
In-Reply-To: <pszlxzfl9n.fsf@home.net> (Richard G. Riley's message of "Wed, 31 Oct 2007 14:48:04 +0100")
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
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,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org.el.patch --]
[-- Type: text/x-diff, Size: 583 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 13 bytes --]
--
Bastien
[-- Attachment #4: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2007-10-31 14:17 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 [this message]
2007-11-04 7:22 ` Carsten Dominik
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k5p3jotp.fsf@bzg.ath.cx \
--to=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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).