unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: tex-mode.el dependency on (cl) every?
Date: Mon, 17 Sep 2007 16:36:36 +0200	[thread overview]
Message-ID: <867imp740b.fsf@lola.quinscape.zz> (raw)
In-Reply-To: <jwvwsupjs1r.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon\, 17 Sep 2007 10\:17\:27 -0400")

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

>> And why is this needed at all?  tex-verbatim-environments is only ever
>> passed to regexp-opt and member, so any old value will be _safe_.  So
>> it should be ok just to do
>
>> (put 'tex-verbatim-environments 'safe-local-variable t)
>
> We like `safe-local-variable' to be conservative.  To reduce probablity of
> introducing holes in the future.

listp is ok here, I think.  Anyway, since in most cases
"safe-local-variable" amounts to "matches type defined by customize"
anyway, why don't we just add something like an explicit ":safe" tag
to our customization types?  This could cover part or all of the
customization type, and so everything not matching the "safe" parts of
a customization pattern (including not matching the customize type at
all) would be considered unsafe.

Since the "safe" tag would be a visible part of the customization
type, the likelihood of introducing eval-capable extensions without
thinking about security implications would likely be less than what we
have now.

-- 
David Kastrup

  reply	other threads:[~2007-09-17 14:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 13:04 tex-mode.el dependency on (cl) every? David Kastrup
2007-09-17 14:07 ` David Kastrup
2007-09-17 14:17 ` Stefan Monnier
2007-09-17 14:36   ` David Kastrup [this message]
2007-09-17 22:24 ` Richard Stallman

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=867imp740b.fsf@lola.quinscape.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).