emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Automatic global tag list?
Date: Wed, 24 Nov 2010 09:38:26 +0100	[thread overview]
Message-ID: <80tyj7ktfh.fsf@missioncriticalit.com> (raw)
In-Reply-To: <87hbf7z55o.fsf@fastmail.fm>

Hi Matt,

Matt Lundin wrote:
> Have you tried the following setting?
>
> (setq org-complete-tags-always-offer-all-agenda-tags t)
>
>> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
>> not documented there?
>
> C-h f org-global-tags-completion-table.

C-h v org-complete-tags-always-offer-all-agenda-tags says:

    ,----
    | org-complete-tags-always-offer-all-agenda-tags is a variable defined in `org.el'.
    | Its value is nil
    | 
    | Documentation:
    | If non-nil, always offer completion for all tags of all agenda files.
    | Instead of customizing this variable directly, you might want to
    | set it locally for remember buffers, because there no list of
    | tags in that file can be created dynamically (there are none).
    | 
    |   (add-hook 'org-remember-mode-hook
    |             (lambda ()
    |               (set (make-local-variable
    |                     'org-complete-tags-always-offer-all-agenda-tags)
    |                    t)))
    | 
    | You can customize this variable.
    | 
    | [back]
    `----

(didn't know about that var)

You see that one should sed 's/remember/capture/g'.

--8<---------------cut here---------------start------------->8---
--- INDEX:/lisp/org.el
+++ WORKDIR:/lisp/org.el
@@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert anywhere in the file:
 (defcustom org-complete-tags-always-offer-all-agenda-tags nil
   "If non-nil, always offer completion for all tags of all agenda files.
 Instead of customizing this variable directly, you might want to
-set it locally for remember buffers, because there no list of
+set it locally for capture buffers, because there no list of
 tags in that file can be created dynamically (there are none).
 
-  (add-hook 'org-remember-mode-hook
+  (add-hook 'org-capture-mode-hook
             (lambda ()
               (set (make-local-variable
                     'org-complete-tags-always-offer-all-agenda-tags)
--8<---------------cut here---------------end--------------->8---

It seems there are a lot more references to remember, but I'm not sure which
can be safely removed.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-11-24  8:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20101122193057.6e59460camscopub-mail@yahoo.com@dove.localdomain>
2010-11-23  5:52 ` Carsten Dominik
2010-11-23 15:45   ` Uriel Avalos
     [not found]   ` <20101123104500.6275e344amscopub-mail@yahoo.com@dove.localdomain>
2010-11-23 16:50     ` Carsten Dominik
2010-11-23 17:59       ` amscopub-mail
2010-11-24  5:01         ` Matt Lundin
2010-11-24  8:38           ` Sébastien Vauban [this message]
2010-11-25  1:35             ` Uriel Avalos
2010-11-23  0:30 Uriel Avalos

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=80tyj7ktfh.fsf@missioncriticalit.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    --subject='Re: Automatic global tag list?' \
    /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

Code repositories for project(s) associated with this 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).