From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#27066: 25.1; dired unsafe variables Date: Thu, 25 May 2017 21:25:36 +0200 Message-ID: References: <83k255klmy.fsf@gnu.org> <83efvcly3q.fsf@gnu.org> <834lw8lses.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1495740372 5634 195.159.176.226 (25 May 2017 19:26:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 19:26:12 +0000 (UTC) Cc: 27066@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 25 21:26:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDyOd-0001MF-O6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 21:26:07 +0200 Original-Received: from localhost ([::1]:33384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDyOj-0004UF-5J for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 15:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDyOc-0004Ty-M6 for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 15:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDyOY-0006BP-F4 for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 15:26:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDyOY-0006BJ-8u for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 15:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDyOY-0001TO-3x for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 15:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2017 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27066 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27066-submit@debbugs.gnu.org id=B27066.14957403425636 (code B ref 27066); Thu, 25 May 2017 19:26:02 +0000 Original-Received: (at 27066) by debbugs.gnu.org; 25 May 2017 19:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:38123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDyOD-0001Sp-Tq for submit@debbugs.gnu.org; Thu, 25 May 2017 15:25:42 -0400 Original-Received: from mx1.isti.cnr.it ([194.119.192.3]:47923 helo=blade3.isti.cnr.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDyOC-0001Sh-7j for 27066@debbugs.gnu.org; Thu, 25 May 2017 15:25:41 -0400 Original-Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.5-x6 #1609) with ESMTPSA id <01QERTES8056CZ9CXH@mx-all.isti.cnr.it> for 27066@debbugs.gnu.org; Thu, 25 May 2017 21:24:13 +0200 (MEST) Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.89) (envelope-from ) id 1dDyO9-0007lN-4Z; Thu, 25 May 2017 21:25:37 +0200 In-reply-to: <834lw8lses.fsf@gnu.org> X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132857 Archived-At: >> >Please suggest how to improve the existing docs. >> >> The warning message should not say that risky variables are present in the >> directory: that makes sense only if you know where to look. When >> reading that message, I thought about some bug somewhere. >> >> The warning message should name the file where the offending variables >> were found, instead. > >Patches are welcome to add the file name. AFAICT, the function that >actually applies the variables doesn't know on which file the >variables were found, as there could be more than one of them, and >they all are read to produce a list of variables, before the >variables' values are applied. First, sorry to say this, there is no hope I could ever create a patch of tht kind. Second, I already suspected that. Unfortunately, I fear that in fact this is important. It makes no sense to me to know that the directory contains some risky variables. I personally know what are file-local variables. Probably a minority of Emacs users know that. But I had no idea that directory-local risky variables existed. >> >Perhaps we should offer an option to ask the question you mentioned, >> >but I think in general it will annoy too much. >> >> I don't know. It's a relatively recent innovation, and I bet very few >> users have ever stumbled into it. > >Well, not too recent: it was introduced in Emacs 23.1, 8 years ago. >Time flies... Yes. Time flies :) But that is not something that you are bound to see. You only notice it when someone else us uses it and you download a tree where that's used. A pretty unlikely situation, all in all. I understand that this is a matter of (personal?) judgement, but it is an uncommon corner case. And given the problem above, when you don't even know where that variables come from, it should not be treated lightly, in my opinion.