GNU bug report logs -
#8160
`hack-local-variables-confirm' <-- a confirmed hack!
Previous Next
Reported by: MON KEY <monkey <at> sandpframing.com>
Date: Wed, 2 Mar 2011 22:38:02 UTC
Severity: minor
Tags: notabug
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8160 in the body.
You can then email your comments to 8160 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8160
; Package
emacs
.
(Wed, 02 Mar 2011 22:38:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
MON KEY <monkey <at> sandpframing.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 02 Mar 2011 22:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
`hack-local-variables-confirm' should prompt for an alternative
location to save the safe local variables it "hacks".
As it is now, inadvertently selecting/typing "!" gives
`customize-save-variable' opportunity to trash my otherwise _empty_
custom file.
I don't wish to store large lists of safe-local-variables in either my
`custom-file' or `user-init-file' and have chosen instead to store
these elsewhere esp. where these pertain Common Lisp related
prop-line variables.
There are myriad Common Lisp related variables (current and legacy)
which appear in the prop-line e.g. "Package: FOO;"
The safety of a package name (and Emacs poorly informed consideration
thereof) is simply _NONE_ of Emacs' business!
Moreover, `hack-local-variables-confirm' completely steals focus and
hides my cursor with disgusting abuse around these forms:
(set (make-local-variable 'cursor-type) nil)
(let ((cursor-in-echo-area t)
(executing-kbd-macro executing-kbd-macro)
{...}
(condition-case nil
(scroll-up)
(error (goto-char (point-min))))
Worst of all is that if I "C-g' inside `hack-local-variables-confirm'
it doesn't even bother to clean up after itself with an
`unwind-protect' and instead leaves behind the "*Local Variables*"
buffer created with (get-buffer-create "*Local Variables*").
Presumably this is not an intended feature and is an oversight of
`hack-local-variables-confirm' because were I to switch into the
lingering "*Local Variables*" buffer to inspect the offending
variables I'm not even left with a visible cursor in the buffer!!!
--
/s_P\
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8160
; Package
emacs
.
(Sat, 05 Mar 2011 22:03:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 8160 <at> debbugs.gnu.org (full text, mbox):
MON KEY <monkey <at> sandpframing.com> writes:
> The safety of a package name (and Emacs poorly informed consideration
> thereof) is simply _NONE_ of Emacs' business!
If so, (setq enable-local-variables :all) will do the job for you (and
possibly lead to security problems, but it's your call).
> Worst of all is that if I "C-g' inside `hack-local-variables-confirm'
> it doesn't even bother to clean up after itself with an
> `unwind-protect' and instead leaves behind the "*Local Variables*"
> buffer created with (get-buffer-create "*Local Variables*").
This is so that you can go back and look at what the problematic
variables were.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8160
; Package
emacs
.
(Sun, 06 Mar 2011 08:13:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 8160 <at> debbugs.gnu.org (full text, mbox):
On Sat, Mar 5, 2011 at 2:46 PM, Chong Yidong <cyd <at> stupidchicken.com> wrote:
>
> If so, (setq enable-local-variables :all) will do the job for you (and
> possibly lead to security problems, but it's your call).
>
What specifically wrt:
"[Pp]ackage: FOO;"
are the potential security problem(s)?
>> Worst of all is that if I "C-g' inside `hack-local-variables-confirm'
>> it doesn't even bother to clean up after itself with an
>> `unwind-protect' and instead leaves behind the "*Local Variables*"
>> buffer created with (get-buffer-create "*Local Variables*").
>
> This is so that you can go back and look at what the problematic
> variables were.
>
Yes (as acknowledged of the original bug report):
,----
| Presumably this is not an intended feature and is an oversight of
| `hack-local-variables-confirm' because were I to switch into the
| lingering "*Local Variables*" buffer to inspect the offending
| variables I'm not even left with a visible cursor in the buffer!!!
`----
It is understood that this may have been the +intention+ and it falls
short by lacking the follow through to unwind-protect from this:
(set (make-local-variable 'cursor-type) nil)
There is a certain irony here, in order to protect the user form herself
implementation of this "security" feature requires Emacs completely
stealing focus _and_ all user access to the application top-level by
way of a *local-variable*... one which may itself be left in an "unsafe"
state.
--
/s_P\
Added tag(s) notabug.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 14 Jul 2011 18:53:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
8160 <at> debbugs.gnu.org and MON KEY <monkey <at> sandpframing.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 14 Jul 2011 18:53:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8160
; Package
emacs
.
(Thu, 14 Jul 2011 19:05:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 8160 <at> debbugs.gnu.org (full text, mbox):
MON KEY <monkey <at> sandpframing.com> writes:
> `hack-local-variables-confirm' should prompt for an alternative
> location to save the safe local variables it "hacks".
>
> As it is now, inadvertently selecting/typing "!" gives
> `customize-save-variable' opportunity to trash my otherwise _empty_
> custom file.
`customize-save-variable' is how Emacs saves user choices these days, so
I don't think this is a bug.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 12 Aug 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 318 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.