unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Ignore a Local Variables list
@ 2024-12-21 18:07 Joseph Turner
  2024-12-22  9:06 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Turner @ 2024-12-21 18:07 UTC (permalink / raw)
  To: Emacs Devel Mailing List; +Cc: Max Nikulin, Bohong Huang

As described in this Org mailing list thread:

https://yhetil.org/orgmode/dc5901c1-720a-4bec-9611-c62f9cfee45a@gmail.com/T/#t

I'm looking to ignore a Local Variables list (in an Org file).

Current solutions:

Add a form feed character (with C-q C-l) below the Local Variables list.
This works, but the form feed makes the document less portable,
negatively affecting readability in other programs like Thunderbird.
Also, it breaks certain Org workflows, such as exporting to odt.

Another solution is to put an empty Local Variables list *above* the one
I want to ignore.  This solution seems fragile, since Emacs only looks
within the last 3000 characters for a Local Variables list.

Any other suggestions?

Thank you!

Joseph



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ignore a Local Variables list
  2024-12-21 18:07 Ignore a Local Variables list Joseph Turner
@ 2024-12-22  9:06 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2024-12-22  9:06 UTC (permalink / raw)
  To: Joseph Turner; +Cc: Emacs Devel Mailing List, Max Nikulin, Bohong Huang

Joseph Turner <joseph@breatheoutbreathe.in> writes:

> Any other suggestions?

Have a look at the docstring of the function `hack-local-variables'
which cites `inhibit-local-variables-regexps' which you could extend
with regexps matching only the file names whose local variables you want
to ignore.

HTH,
Tassilo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-22  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-21 18:07 Ignore a Local Variables list Joseph Turner
2024-12-22  9:06 ` Tassilo Horn

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