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

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.

> 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.

> 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.

Best regards,
Stefan Kangas





  reply	other threads:[~2019-11-15  3:23 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 [this message]
2019-11-15  9:07         ` Marco Wahl
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=874kz5om9c.fsf@marxist.se \
    --to=stefan@marxist.se \
    --cc=24625@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=marcowahlsoft@gmail.com \
    /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).