[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `s
From: |
Sam Steingold |
Subject: |
Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value |
Date: |
Tue, 27 Apr 2010 18:09:34 -0400 |
On 4/27/10, Glenn Morris <address@hidden> wrote:
> Sam Steingold wrote:
>
> > +2010-04-27 Sam Steingold <address@hidden>
> > +
> > + * 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
You are right.
this means that I cannot really set bug-reference-url-format in the
"Local Variables:"
section together with "mode: bug-reference" if I also set
enable-local-variables to :safe.
if I set it to "t", I get asked about local variable for _every_ file
operation (including diff!)
in the emacs tree and anything else ignores my local settings of
bug-reference-url-format.
For your reference, I set bug-reference-url-format to
clisp-bug-reference-url-format:
(defun clisp-bug-reference-url-format ()
(concat "http://sourceforge.net/tracker/index.php?func=detail&aid="
(match-string-no-properties 2)
"&group_id=1355&atid="
(let ((kind (match-string-no-properties 1)))
(cond ((string-match "[Bb]ug" kind) "101355")
((string-match "[Pp]atch" kind) "301355")
((string-match "RFE" kind) "351355")
(t (error "unknown bug kind [%s]" kind))))))
I expect this kind of setting to be fairly common unless one is using
the gnu bug tracker or something similar.
the bottom line is that there _must_ be a way to use something
reasonably flexible here and still not be asked "local variable"
question for each C-x v =
--
Sam Steingold <http://sds.podval.org>
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Glenn Morris, 2010/04/27
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Chong Yidong, 2010/04/27
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value,
Sam Steingold <=
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Lennart Borgman, 2010/04/27
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Chong Yidong, 2010/04/27
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Sam Steingold, 2010/04/27
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Davis Herring, 2010/04/28
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Chong Yidong, 2010/04/28
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Davis Herring, 2010/04/28
- Re: /srv/bzr/emacs/trunk r100059: (bug-reference-url-format): Mark as `safe-local-variable' if the value, Chong Yidong, 2010/04/28