From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Local variables in org files Date: Thu, 09 Jan 2014 16:21:36 +0100 Message-ID: <87a9f5xjsv.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1HQg-0003Qa-J4 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 10:22:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1HQZ-0007hh-9U for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 10:21:54 -0500 Received: from mout.gmx.net ([212.227.15.18]:57320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1HQY-0007hY-R6 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 10:21:47 -0500 Received: from detlef.gmx.de ([93.209.81.126]) by mail.gmx.com (mrgmx001) with ESMTPS (Nemesis) id 0Lmb2Z-1VRfUg2jvH-00aB3S for ; Thu, 09 Jan 2014 16:21:45 +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" 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.