From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27066: 25.1; dired unsafe variables Date: Thu, 25 May 2017 19:06:49 +0300 Message-ID: <83efvcly3q.fsf@gnu.org> References: <83k255klmy.fsf@gnu.org> Reply-To: Eli Zaretskii 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 1495728492 15096 195.159.176.226 (25 May 2017 16:08:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 16:08:12 +0000 (UTC) Cc: 27066@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 25 18:08:09 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 1dDvIz-0003mj-QT for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 18:08:05 +0200 Original-Received: from localhost ([::1]:60814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDvJ5-0001oX-37 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 12:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDvIz-0001np-Cv for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 12:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDvIw-0002LQ-7f for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 12:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDvIw-0002LM-4D for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 12:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDvIv-0003NL-Ro for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 12:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2017 16:08:01 +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.149572842812914 (code B ref 27066); Thu, 25 May 2017 16:08:01 +0000 Original-Received: (at 27066) by debbugs.gnu.org; 25 May 2017 16:07:08 +0000 Original-Received: from localhost ([127.0.0.1]:37858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvI3-0003MD-VR for submit@debbugs.gnu.org; Thu, 25 May 2017 12:07:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvI2-0003Ls-Sq for 27066@debbugs.gnu.org; Thu, 25 May 2017 12:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDvHw-0001xk-Om for 27066@debbugs.gnu.org; Thu, 25 May 2017 12:07:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDvHr-0001uT-7f; Thu, 25 May 2017 12:06:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2634 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dDvHq-0002Se-Dt; Thu, 25 May 2017 12:06:55 -0400 In-reply-to: (message from Francesco =?UTF-8?Q?Potort=C3=AC?= on Thu, 25 May 2017 17:54:50 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:132839 Archived-At: > Date: Thu, 25 May 2017 17:54:50 +0200 > From: Francesco Potortì > Cc: 27066@debbugs.gnu.org > > >I'm not sure why this is deemed a bug: you have a .dir-locals.el file > >in that directory, which specifies directory-local variables. What > >exactly is the problem with the prompt? > > I have not created that file myself (downloaded the source code from > Github), and before reading your answer I did not know about the > existence of .dir-locals.el files which get loaded automatically. I > can't find the "dir-local" string anywhere either in the Emacs or Elisp > manuals. How did you search? Typing "i directory-local RET" lands me on the right place, as does "C-s dir-local" followed by C-s enough times. > Moreover the warning message does not mention .dir-locals.el > anywhere. > > So first, there is a documentation problem about the .dir-locals.el > files. Please suggest how to improve the existing docs. > Second, probably dired should prompt *before* ever loading that file and > parse it only if the user agrees. Am I too conservative? I think you are too conservative. We treat directory-local variables like we treat file-local variables: as soon as you visit the file/directory, the variables are interpreted. Perhaps we should offer an option to ask the question you mentioned, but I think in general it will annoy too much.