From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Subject: Re: Access org-tag-alist from #+FILETAGS Date: Tue, 13 Mar 2012 20:16:52 -0400 Message-ID: <4F5FE374.607@verizon.net> References: <4F4D2ACF.20407@verizon.net> <4F5F8B68.2080201@verizon.net> <16933.1331664504@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7cql-0005xu-BN for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 21:18:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7cqg-0004ry-Sp for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 21:17:58 -0400 Received: from vms173021pub.verizon.net ([206.46.173.21]:28698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7cqg-0004rc-Ny for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 21:17:54 -0400 Received: from [10.0.0.2] ([unknown] [71.176.86.28]) by vms173021.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M0U00MGJM45VUY0@vms173021.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 13 Mar 2012 19:16:55 -0500 (CDT) In-reply-to: <16933.1331664504@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick, Thank you. I'll give it a try. Charlie Millar On 3/13/2012 2:48 PM, Nick Dokos wrote: snip > Charlie Millar On 2/28/2012 2:28 PM, Charles wrote: >>> I use a few tags and usually two or three will apply to all entries >>> in a particular file, e.g. :work:Client:OpenFile: or :Personal:Home: >>> >>> All my tags are in my .emacs using the org-tag-alist and I want to >>> use these consistently. >>> >>> Is there a way to access org-tag-alist from the in-buffer settings >>> #+FILETAGS or #+TAGS? C-c C-c, of course, refreshes the local >>> setting; C-c C-q gives an error(?) message "Before first headline at >>> position 1 in buffer . . ." >>> >>> At the moment my work around is: start the file's first line with >>> *#+FILETAGS, then C-c C-c, and after setting tags delete the >>> *. >>> > Have you tried a setup file? > > tag.org: > --8<---------------cut here---------------start------------->8--- > #+TAGS: one two three > --8<---------------cut here---------------end--------------->8--- > > > and the "real" file is: > --8<---------------cut here---------------start------------->8--- > #+SETUPFILE: tag.org > > #+TAGS: foo bar baz > > * two > * four > * three :bar:baz: > * one :foo: > * five :foo:baz: > > #+BEGIN_SRC elisp > org-tag-alist > #+END_SRC > > #+RESULTS: > | one | > | two | > | three | > | :newline | > | foo | > | bar | > | baz | > > everything plus :newline (whatever that is). > --8<---------------cut here---------------end--------------->8--- > > Nick > >