From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Automatic global tag list? Date: Wed, 24 Nov 2010 09:38:26 +0100 Message-ID: <80tyj7ktfh.fsf@missioncriticalit.com> References: <754893.88649.qm@web120711.mail.ne1.yahoo.com> <87hbf7z55o.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 |=20 | 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). |=20 | (add-hook 'org-remember-mode-hook | (lambda () | (set (make-local-variable | 'org-complete-tags-always-offer-all-agenda-tags) | t))) |=20 | You can customize this variable. |=20 | [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 a= nywhere 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). =20 - (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 --=20 S=C3=A9bastien 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