From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Is it generally better practice to specify local variables at the first line for Org files? Date: Wed, 05 Oct 2016 15:50:15 +0200 Message-ID: <84fuoaucq0.fsf@gmail.com> References: <84vax7uwls.fsf@gmail.com> <87shsbnnsh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brmbL-0000t7-Sl for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 09:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brmbF-0002SB-Vl for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 09:51:15 -0400 Received: from [195.159.176.226] (port=46694 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brmbF-0002Rd-Q0 for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 09:51:09 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1brmav-0003sc-8U for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 15:50:49 +0200 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" To: emacs-orgmode@gnu.org > Local variables at the end of the buffer are, indeed, a bit painful to > handle under Org. Org Footnote handles them reasonably well, I think, > but that's about it. > > I would welcome a general solution to this, as long as it does not > impede speed of most basic Org commands. > > Do you have an idea about it? I think it's difficult to find a good way to keep something (e.g. the local variables) at the bottom of an org file. Up to now the bottommost tree contains the rest of the file. There is no bottom. A certain bottom would somehow disturb the tree structure as it is, AFAICS. For the implementation you need to check for many operations if the bottom is involved. The header of an org file on the other side is a save place with regards to operations in the tree. Personally, if Emacs would allow to place the local variables block at the beginning of a file, I'd do that. > Maybe a start would be to have a dedicated > Org version of `outline-next-heading' that moves before local variables > when it reaches the end of the buffer. This sounds like a good idea to me. This step would keep the local variables a bit saver, AFAICS. I can imagine that the implementation of this idea (and more ideas like this) could yield an almost pain free local variable experience for org files. Ciao, -- Marco