* Re: Automatic global tag list? [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> 0 siblings, 2 replies; 7+ messages in thread From: Carsten Dominik @ 2010-11-23 5:52 UTC (permalink / raw) To: Uriel Avalos; +Cc: emacs On Nov 23, 2010, at 1:30 AM, Uriel Avalos wrote: > Is there a way to auto-magically construct the global tag list (org- > tag-alist)? > That is, tags would get added to the global list as you add them. > > Alternatively, is there a way to construct the global list of all tags > in use (in the agenda files or given set of files)? There is the function `org-global-tags-completion-table' which will construct this list for the agenda files or for any other list of files you are giving it. For each of these files it will at the tags defined in #+TAGS: lines as well as any other tags being used in that file. HTH - Carsten ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic global tag list? 2010-11-23 5:52 ` Automatic global tag list? Carsten Dominik @ 2010-11-23 15:45 ` Uriel Avalos [not found] ` <20101123104500.6275e344amscopub-mail@yahoo.com@dove.localdomain> 1 sibling, 0 replies; 7+ messages in thread From: Uriel Avalos @ 2010-11-23 15:45 UTC (permalink / raw) To: emacs-orgmode On Tue, 23 Nov 2010 06:52:34 +0100 Carsten Dominik <carsten.dominik@gmail.com> wrote: > > On Nov 23, 2010, at 1:30 AM, Uriel Avalos wrote: > > > Is there a way to auto-magically construct the global tag list (org- > > tag-alist)? > > That is, tags would get added to the global list as you add them. > > > > Alternatively, is there a way to construct the global list of all tags > > in use (in the agenda files or given set of files)? > > There is the function `org-global-tags-completion-table' which will > construct this list for the agenda files or for any other list of > files you are giving it. For each of these files it will at the tags > defined in #+TAGS: lines as well as any other tags being used in that > file. > > HTH > > - Carsten > Thanks for the reply. However, I'm afraid that I'm not (yet) a lisp programmer. What would the definition of such a function look like? This function seems to be undocumented. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20101123104500.6275e344amscopub-mail@yahoo.com@dove.localdomain>]
* Re: Automatic global tag list? [not found] ` <20101123104500.6275e344amscopub-mail@yahoo.com@dove.localdomain> @ 2010-11-23 16:50 ` Carsten Dominik 2010-11-23 17:59 ` amscopub-mail 0 siblings, 1 reply; 7+ messages in thread From: Carsten Dominik @ 2010-11-23 16:50 UTC (permalink / raw) To: Uriel Avalos; +Cc: emacs-orgmode On Nov 23, 2010, at 4:45 PM, Uriel Avalos wrote: > On Tue, 23 Nov 2010 06:52:34 +0100 > Carsten Dominik <carsten.dominik@gmail.com> wrote: > >> >> On Nov 23, 2010, at 1:30 AM, Uriel Avalos wrote: >> >>> Is there a way to auto-magically construct the global tag list (org- >>> tag-alist)? >>> That is, tags would get added to the global list as you add them. >>> >>> Alternatively, is there a way to construct the global list of all >>> tags >>> in use (in the agenda files or given set of files)? >> >> There is the function `org-global-tags-completion-table' which will >> construct this list for the agenda files or for any other list of >> files you are giving it. For each of these files it will at the tags >> defined in #+TAGS: lines as well as any other tags being used in that >> file. >> >> HTH >> >> - Carsten >> > > Thanks for the reply. However, I'm afraid that I'm not (yet) a lisp > programmer. What would the definition of such a function look like? > This function seems to be undocumented. The function is there, and it is documented. But I think they key question is: what you you want to do with the list of tags. If you tell us, maybe you can get an answer! - Carsten ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic global tag list? 2010-11-23 16:50 ` Carsten Dominik @ 2010-11-23 17:59 ` amscopub-mail 2010-11-24 5:01 ` Matt Lundin 0 siblings, 1 reply; 7+ messages in thread From: amscopub-mail @ 2010-11-23 17:59 UTC (permalink / raw) To: emacs-orgmode I just want to keep tag names consistent across files and I want to know what tags are in use in all files as I add a tag. However, it's too tedious to manually maintain org-tag-alist because I use a large and arbitrary number of tags at any given time. It would also be great if there was a way to list all tags in global use. (I'm thinking something like a tag cloud here.) BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's not documented there? U Avalos --- On Tue, 11/23/10, Carsten Dominik <carsten.dominik@gmail.com> wrote: > From: Carsten Dominik <carsten.dominik@gmail.com> > Subject: Re: [Orgmode] Automatic global tag list? > To: "Uriel Avalos" <amscopub-mail@yahoo.com> > Cc: emacs-orgmode@gnu.org > Date: Tuesday, November 23, 2010, 11:50 AM > > On Nov 23, 2010, at 4:45 PM, Uriel Avalos wrote: > > > On Tue, 23 Nov 2010 06:52:34 +0100 > > Carsten Dominik <carsten.dominik@gmail.com> > wrote: > > > >> > >> On Nov 23, 2010, at 1:30 AM, Uriel Avalos wrote: > >> > >>> Is there a way to auto-magically construct the > global tag list (org- > >>> tag-alist)? > >>> That is, tags would get added to the global > list as you add them. > >>> > >>> Alternatively, is there a way to construct the > global list of all tags > >>> in use (in the agenda files or given set of > files)? > >> > >> There is the function > `org-global-tags-completion-table' which will > >> construct this list for the agenda files or for > any other list of > >> files you are giving it. For each of these > files it will at the tags > >> defined in #+TAGS: lines as well as any other tags > being used in that > >> file. > >> > >> HTH > >> > >> - Carsten > >> > > > > Thanks for the reply. However, I'm afraid that I'm not > (yet) a lisp > > programmer. What would the definition of such a > function look like? > > This function seems to be undocumented. > > The function is there, and it is documented. But I > think they key question is: what you you want to do > with the list of tags. If you tell us, maybe you can > get an answer! > > - Carsten > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic global tag list? 2010-11-23 17:59 ` amscopub-mail @ 2010-11-24 5:01 ` Matt Lundin 2010-11-24 8:38 ` Sébastien Vauban 0 siblings, 1 reply; 7+ messages in thread From: Matt Lundin @ 2010-11-24 5:01 UTC (permalink / raw) To: amscopub-mail; +Cc: emacs-orgmode amscopub-mail@yahoo.com writes: > I just want to keep tag names consistent across files and I want to > know what tags are in use in all files as I add a tag. However, it's > too tedious to manually maintain org-tag-alist because I use a large > and arbitrary number of tags at any given time. > > It would also be great if there was a way to list all tags in global > use. (I'm thinking something like a tag cloud here.) > 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. Best, Matt ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic global tag list? 2010-11-24 5:01 ` Matt Lundin @ 2010-11-24 8:38 ` Sébastien Vauban 2010-11-25 1:35 ` Uriel Avalos 0 siblings, 1 reply; 7+ messages in thread From: Sébastien Vauban @ 2010-11-24 8:38 UTC (permalink / raw) To: emacs-orgmode-mXXj517/zsQ 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: Automatic global tag list? 2010-11-24 8:38 ` Sébastien Vauban @ 2010-11-25 1:35 ` Uriel Avalos 0 siblings, 0 replies; 7+ messages in thread From: Uriel Avalos @ 2010-11-25 1:35 UTC (permalink / raw) To: emacs-orgmode Thanks. That did the trick. I found that I also had to disable org-use-fast-tag-selection. For some reason, with that set to t or auto, I couldn't select from the global tag list. On Wed, 24 Nov 2010 09:38:26 +0100 Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote: > 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@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-25 1:35 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20101122193057.6e59460camscopub-mail@yahoo.com@dove.localdomain> 2010-11-23 5:52 ` Automatic global tag list? 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 2010-11-25 1:35 ` Uriel Avalos
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).