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: Wed, 13 Nov 2019 11:42:19 +0100	[thread overview]
Message-ID: <847e44gir8.fsf@gmail.com> (raw)
In-Reply-To: <87pni3vzzh.fsf@marxist.se> (Stefan Kangas's message of "Fri, 08 Nov 2019 03:55:14 +0100")

Stefan Kangas <stefan@marxist.se> writes:

> marcowahlsoft@gmail.com writes:
>
>> This a feature request.
>>
>> Feature: A local variables list can be put near the beginning of a
>> file
>> and gets interpreted when the file gets loaded.  (Completely
>> analogue to
>> the behavior of the local variables list near the bottom of a file.)
>
> Thank you for suggesting this feature.
>
> I think this would unduly slow down opening of files, and the benefit
> is not clear since we also have the "-*- ... -*-" line.  I would
> therefore suggest to not implement this feature.
>
> Does anyone else have an opinion here?

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.







  reply	other threads:[~2019-11-13 10:42 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 [this message]
2019-11-14 13:21     ` Eli Zaretskii
2019-11-15  3:23       ` Stefan Kangas
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=847e44gir8.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).