unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5003: Allow marking a local variable as permanently unsafe
@ 2009-11-21 12:14 Lennart Borgman
  2009-11-23  3:50 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-11-21 12:14 UTC (permalink / raw)
  To: Emacs Bugs

When you open a file with a local variable list you may get a warning like this:

The local variables list in ess-mous.el
contains values that may not be safe (*).

Do you want to apply it?  You can type
y  -- to apply the local variables list.
n  -- to ignore the local variables list.
!  -- to apply the local variables list, and permanently mark these
      values (*) as safe (in the future, they will be set automatically.)

  * outline-minor-mode : nil
    mode : outline-minor
    outline-regexp : "\f\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"


You can get rid of this warning by allowing those variable permanently
(which is good for your own files), but wouldn't it be good to be able
to also permanently disallow those warnings (for other peoples files)
from this prompt?






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

* bug#5003: Allow marking a local variable as permanently unsafe
  2009-11-21 12:14 bug#5003: Allow marking a local variable as permanently unsafe Lennart Borgman
@ 2009-11-23  3:50 ` Stefan Monnier
  2021-07-18 15:18   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-11-23  3:50 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 5003, Emacs Bugs

> You can get rid of this warning by allowing those variable permanently
> (which is good for your own files), but wouldn't it be good to be able
> to also permanently disallow those warnings (for other peoples files)
> from this prompt?

Yes,


        Stefan





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

* bug#5003: Allow marking a local variable as permanently unsafe
  2009-11-23  3:50 ` Stefan Monnier
@ 2021-07-18 15:18   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-18 15:18 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 5003, Lennart Borgman

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> You can get rid of this warning by allowing those variable permanently
>> (which is good for your own files), but wouldn't it be good to be able
>> to also permanently disallow those warnings (for other peoples files)
>> from this prompt?
>
> Yes,

This has now been added to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-07-18 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-21 12:14 bug#5003: Allow marking a local variable as permanently unsafe Lennart Borgman
2009-11-23  3:50 ` Stefan Monnier
2021-07-18 15:18   ` 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).