From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Local variables in org files Date: Thu, 09 Jan 2014 11:05:29 -0500 Message-ID: <87ob3luomu.fsf@alphaville.bos.redhat.com> References: <87a9f5xjsv.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1I7C-0006al-Qz for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:05:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1I76-0004O6-JY for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:05:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:43151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1I76-0004Nv-Cb for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:05:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1I73-0002yD-VE for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 17:05:41 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 17:05:41 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 17:05:41 +0100 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 Michael Albinus writes: > Hi, > > I'm trying to save the result of "M-x debbugs-org" into a file (this is > a TODO list). For further handling, also some buffer local variables > must survive. Therefore, I append at the very end of that file something > like this: > > * Local Variables > ** Local Variables: > ** eval: (debbugs-org-mode 1) > ** debbugs-org-ids: (1 2 3) > ** End: > > This has the nice effect, that those variables do not disturb in > overview mode, because they look like > > * Local Variables... > > Being invisible would be even better, but so what. > > Unfortunately, the value of debbugs-org-ids could be very loooong, > exceeding the 3000 chars limit the "Local Variables:" section size is > allowed to be in Emacs. So I must rearrange things like this: > > * Local Variables > ** debbugs-org-ids: (1 2 3) > ** Local Variables: > ** eval: (debbugs-org-mode 1) > ** debbugs-org-ids: (access-the-value-above) > ** End: > > Is there some functionality in org I could use implementing > `access-the-value-above'? It is org structure, so I'm hoping there is an > easy way to access a given node with a well defined position. > > Or maybe there is already a clever way storing local variables in an org > file, which I'm not aware of. > > Thanks, and best regards, Michael. Not sure if there are any limits for the top style but maybe you could combine the two styles of local variables - maybe: --8<---------------cut here---------------start------------->8--- # -*- foo: (1 2 3 4) -*- * foo #+BEGIN_SRC elisp debbugs-org-ids #+END_SRC #+RESULTS: | 1 | 2 | 3 | 4 | * COMMENT Local variables ** Local Variables: ** eval: (setq debbugs-org-ids foo) ** End: --8<---------------cut here---------------end--------------->8--- Nick