unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Policy for declaring safe local variable values
@ 2021-10-08  9:11 Titus von der Malsburg
  2021-10-08  9:55 ` Joost Kremers
  2021-10-08 10:09 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Titus von der Malsburg @ 2021-10-08  9:11 UTC (permalink / raw)
  To: emacs-devel


I have a configuration variable (in package bibtex-completion) that can usefully be set to a local value via a ‘Local Variable‘ comment in the file.  E.g:

# Local Variables:
# bibtex-completion-bibliography: "/path/to/bibliography.bib"
# End:

However, it’s annoying that users have to confirm that the local value for this variable is safe every time they open a file with a different value for that variable.  Question: Can I declare the variable safe for local values in my package, e.g.

(put 'bibtex-completion-bibliography 'safe-local-variable (lambda (_) t))

or would that violate Emacs conventions?

  Titus



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

end of thread, other threads:[~2021-10-08 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  9:11 Policy for declaring safe local variable values Titus von der Malsburg
2021-10-08  9:55 ` Joost Kremers
2021-10-08 14:51   ` Titus von der Malsburg
2021-10-08 15:06     ` Joost Kremers
2021-10-08 10:09 ` Lars Ingebrigtsen

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