From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#8160: `hack-local-variables-confirm' <-- a confirmed hack! Date: Wed, 2 Mar 2011 17:37:19 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1299107225 31665 80.91.229.12 (2 Mar 2011 23:07:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 23:07:05 +0000 (UTC) To: 8160@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 00:07:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Puv8H-0004Kt-2x for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 00:07:01 +0100 Original-Received: from localhost ([127.0.0.1]:53482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puv8G-0002W5-17 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 18:07:00 -0500 Original-Received: from [140.186.70.92] (port=43494 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puv87-0002TP-0g for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 18:06:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puv85-0003fZ-MN for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 18:06:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puv85-0003fV-Jb for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 18:06:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PuugE-0005b7-Gh; Wed, 02 Mar 2011 17:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Mar 2011 22:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8160 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129910545221476 (code B ref -1); Wed, 02 Mar 2011 22:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Mar 2011 22:37:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Puufk-0005aL-9h for submit@debbugs.gnu.org; Wed, 02 Mar 2011 17:37:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Puufi-0005a9-C8 for submit@debbugs.gnu.org; Wed, 02 Mar 2011 17:37:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puufc-0005Qd-Eb for submit@debbugs.gnu.org; Wed, 02 Mar 2011 17:37:25 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:59572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puufc-0005QZ-CP for submit@debbugs.gnu.org; Wed, 02 Mar 2011 17:37:24 -0500 Original-Received: from [140.186.70.92] (port=37286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puufb-0002Mr-88 for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:37:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puufa-0005Pc-1e for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:37:23 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:60832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuufZ-0005PK-T7 for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:37:22 -0500 Original-Received: by wyi11 with SMTP id 11so582851wyi.0 for ; Wed, 02 Mar 2011 14:37:20 -0800 (PST) Original-Received: by 10.216.156.149 with SMTP id m21mr1213015wek.22.1299105439995; Wed, 02 Mar 2011 14:37:19 -0800 (PST) Original-Received: by 10.216.26.4 with HTTP; Wed, 2 Mar 2011 14:37:19 -0800 (PST) X-Google-Sender-Auth: lCfGXcgP-JM8mQm6vAAotcLWaQU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Mar 2011 17:38:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44532 Archived-At: `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\