unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 24625@debbugs.gnu.org
Subject: bug#24625: 26.0.50; Local variables list at beginning of a file
Date: Fri, 15 Nov 2019 10:07:22 +0100	[thread overview]
Message-ID: <84lfshwlrp.fsf@gmail.com> (raw)
In-Reply-To: <874kz5om9c.fsf@marxist.se> (Stefan Kangas's message of "Fri, 15 Nov 2019 04:23:59 +0100")

Stefan Kangas <stefan@marxist.se> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> For people who want to keep the first line short this feature could
>>> help.
>>> 
>>> Possibly of interest:
>>> 
>>> My motivation asking for this feature was local variables at the bottom
>>> of outline/Org files.  In my experience for those kind of files, which
>>> typically consist of some trees, it is rather difficult to keep
>>> something (here the local variables) at the bottom.  Too easily a
>>> further tree gets appended at the end of the file or the trees in the
>>> file get sorted.  On the other hand the top of those kind of files stays
>>> relatively static.
>
> I usually set up a header like the following at the end of the
> file:
>
> * org-mode configuration    :noexport:
>
> #+STARTUP: content hidestars indent
> # Local Variables:
>
> # ispell-local-dictionary: "swedish"
> # End:
>
> That avoids accidentally exporting the header or moving it
> around.  YMMV.

Thanks for this idea..

>> If this is for Org, perhaps Org could have its own private feature?
>
> Org already has this for various settings, but not for arbitrary Lisp
> variables.  Perhaps someone could suggest to add missing options to
> the org mode developer.

Good idea, I think.  Possibly I'll try to go down that (Org) path if the
issue bothers me again.

>> In general, having the variables at the beginning will get in the way
>> of reading the file's contents by humans: you will first need to skip
>> the variables' section and wonder what does that do there.
>
> Agreed.

Agreed.

Possibly it's time to close bug#24625.


Thanks all!






  reply	other threads:[~2019-11-15  9:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06  8:22 bug#24625: 26.0.50; Local variables list at beginning of a file marcowahlsoft
2019-11-08  2:55 ` Stefan Kangas
2019-11-13 10:42   ` Marco Wahl
2019-11-14 13:21     ` Eli Zaretskii
2019-11-15  3:23       ` Stefan Kangas
2019-11-15  9:07         ` Marco Wahl [this message]
2019-12-05 11:17           ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84lfshwlrp.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --cc=24625@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).