unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Sam Steingold <sds@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value
Date: Tue, 27 Apr 2010 17:32:03 -0400	[thread overview]
Message-ID: <wheii0bmzw.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <E1O6mXN-0006ds-3k@internal.in.savannah.gnu.org> (Sam Steingold's message of "Tue\, 27 Apr 2010 11\:13\:42 -0400")

Sam Steingold wrote:

> +2010-04-27  Sam Steingold  <sds@gnu.org>
> +
> +	* progmodes/bug-reference.el (bug-reference-url-format): Mark as
> +	`safe-local-variable' if the value is a string or a function,

I'm probably being thick, but I don't see how an arbitrary function
can be assumed to be safe. Eg consider a ChangeLog file:


2010-04-27  A N Other  <none@example.com>

    * configure.in: Blah. (Bug#123)

;; Local Variables:
;; mode: bug-reference
;; bug-reference-url-format: (lambda () (shell-command "touch /tmp/foo"))
;; End:


Optionally, replace "touch /tmp/foo" with "rm -rf ~".




       reply	other threads:[~2010-04-27 21:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1O6mXN-0006ds-3k@internal.in.savannah.gnu.org>
2010-04-27 21:32 ` Glenn Morris [this message]
2010-04-27 21:46   ` /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value Chong Yidong
2010-04-27 22:09   ` Sam Steingold
2010-04-27 22:39     ` Lennart Borgman
2010-04-27 22:42     ` Chong Yidong
2010-04-27 23:10       ` Sam Steingold
2010-04-28 15:32         ` Davis Herring
2010-04-28 15:51           ` Chong Yidong
2010-04-28 16:25             ` Davis Herring
2010-04-28 17:21               ` Chong Yidong

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=wheii0bmzw.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=sds@gnu.org \
    /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).