From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 07:57:38 2017 Received: (at submit) by debbugs.gnu.org; 25 May 2017 11:57:38 +0000 Received: from localhost ([127.0.0.1]:37008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDrOb-0002B7-R2 for submit@debbugs.gnu.org; Thu, 25 May 2017 07:57:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDrOZ-0002Au-PI for submit@debbugs.gnu.org; Thu, 25 May 2017 07:57:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDrOR-0004IE-4d for submit@debbugs.gnu.org; Thu, 25 May 2017 07:57:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDrOR-0004I4-18 for submit@debbugs.gnu.org; Thu, 25 May 2017 07:57:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDrOL-0000mx-Ue for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 07:57:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDrOI-0004B3-Lp for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 07:57:22 -0400 Received: from mx-all.isti.cnr.it ([194.119.192.3]:10988 helo=blade3.isti.cnr.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDrOI-00047y-AD for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 07:57:18 -0400 Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.5-x6 #1609) with ESMTPSA id <01QERDQUDC3KCZ90PR@mx-all.isti.cnr.it> for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 13:55:49 +0200 (MEST) Received: from pot by tucano.isti.cnr.it with local (Exim 4.89) (envelope-from ) id 1dDrOD-0004JL-4o for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 13:57:13 +0200 Date: Thu, 25 May 2017 13:57:12 +0200 From: =?utf-8?Q?Francesco_Potort=C3=AC?= Subject: 25.1; dired unsafe variables To: bug-gnu-emacs@gnu.org Message-id: Organization: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Recipe: $ wget http://fly.isti.cnr.it/tmp/leela.tar # 48 MB $ tar -xf leela.tar $ emacs -nw -Q opt/leela I am prompted to accept reading the directory because it contains unsafe variables In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2017-04-23, modified by Debian built on trouble Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.0 (stretch) Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-d2FC1K/emacs25-25.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LC_COLLATE: it_IT.UTF-8 value of $LC_CTYPE: it_IT.UTF-8 value of $LC_NUMERIC: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: diff-auto-refine-mode: t TeX-PDF-mode: t desktop-save-mode: t epa-global-mail-mode: t shell-dirtrack-mode: t openwith-mode: t xterm-mouse-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent messages: Deleting...done dbus-launch atril /home/pot/www/tmp/ranieri.pdf? (y or n) y openwith-file-handler: Opened ranieri.pdf in external program Deleting...done Deleting...done Quit Deleting...done Parsing archive file...done. Deleting...done Report a bug for a [P]ackage or [F]ile: (default P) Quit Load-path shadows: ~/elisp/bhl hides /usr/share/emacs/25.1/site-lisp/bhl ~/elisp/bhl hides /usr/share/emacs/site-lisp/bhl /usr/share/emacs/25.1/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs25/site-lisp/flim/md4 hides /usr/share/emacs/25.1/lisp/md4 /usr/share/emacs25/site-lisp/flim/hex-util hides /usr/share/emacs/25.1/lisp/hex-util /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.1/lisp/textmodes/rst ~/elisp/bibtex hides /usr/share/emacs/25.1/lisp/textmodes/bibtex /usr/share/emacs25/site-lisp/flim/ntlm hides /usr/share/emacs/25.1/lisp/net/ntlm /usr/share/emacs25/site-lisp/flim/hmac-md5 hides /usr/share/emacs/25.1/lisp/net/hmac-md5 /usr/share/emacs25/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/25.1/lisp/net/sasl-ntlm /usr/share/emacs25/site-lisp/flim/sasl-digest hides /usr/share/emacs/25.1/lisp/net/sasl-digest /usr/share/emacs25/site-lisp/flim/sasl hides /usr/share/emacs/25.1/lisp/net/sasl /usr/share/emacs25/site-lisp/flim/sasl-cram hides /usr/share/emacs/25.1/lisp/net/sasl-cram /usr/share/emacs25/site-lisp/flim/hmac-def hides /usr/share/emacs/25.1/lisp/net/hmac-def /usr/share/emacs25/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold /usr/share/emacs25/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en /usr/share/emacs25/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info /usr/share/emacs25/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex /usr/share/emacs25/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik /usr/share/emacs25/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp /usr/share/emacs25/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl /usr/share/emacs25/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x /usr/share/emacs25/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex /usr/share/emacs25/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp /usr/share/emacs25/site-lisp/auctex/tex-ispell hides /usr/share/emacs/site-lisp/auctex/tex-ispell /usr/share/emacs25/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite /usr/share/emacs25/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/share/emacs25/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex /usr/share/emacs25/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs /usr/share/emacs25/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style /usr/share/emacs25/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context /usr/share/emacs25/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview /usr/share/emacs25/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font /usr/share/emacs25/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar /usr/share/emacs25/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex /usr/share/emacs25/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf Features: (shadow emacsbug debian-bug arc-mode archive-mode pcmpl-gnu tabify vc-git pcmpl-unix nero url-handlers etags xref project anything-config anything woman man cl shr-color color rmailkwd doc-view grep locate log-edit pcvs-util add-log nroff-mode dabbrev diff-mode vc mailalias rmailout dired-aux time-stamp parse-time unrmail misearch multi-isearch server url-util shr dom subr-x browse-url jka-compr sh-script executable generic image-mode js json map imenu info sgml-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs bibtex qp plain-tex latexenc rmailmm message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 vc-dispatcher vc-svn preview prv-emacs tex-bar tex-buf toolbar-x noutline outline font-latex latex easy-mmode edmacro kmacro tex-ispell tex-style tex dbus xml crm tex-mode compile vc-filewise vc-rcs octave smie desktop frameset solar cal-dst pot skeleton warnings rmailsum rmail sendmail rfc2047 rfc2045 ietf-drums mime-compose epa-mail mail-utils epa derived epg view holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ring format-spec advice bhl visual-fill-column switch-to-shell openwith hi-lock xt-mouse ffap thingatpt url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util time-date mm-util help-fns mail-prsvr password-cache url-vars scroll-in-place filladapt ansi-color time quail dired-x dired generic-x disp-table finder-inf package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib debian-el debian-el-loaddefs w3m-load vm-autoload vm-autoloads vm-version vm-vars vm-init preview-latex tex-site auto-loads mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 710983 83547) (symbols 48 41997 12) (miscs 40 4426 3546) (strings 32 120046 15486) (string-bytes 1 3656642) (vectors 16 65564) (vector-slots 8 1797200 184111) (floats 8 918 594) (intervals 56 52443 108) (buffers 976 143)) From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:21:45 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 15:21:45 +0000 Received: from localhost ([127.0.0.1]:37796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDua8-0002DY-V3 for submit@debbugs.gnu.org; Thu, 25 May 2017 11:21:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDua7-0002DM-EF for 27066@debbugs.gnu.org; Thu, 25 May 2017 11:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDua1-0000cZ-9n for 27066@debbugs.gnu.org; Thu, 25 May 2017 11:21:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDuZt-0000Yl-J6; Thu, 25 May 2017 11:21:29 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2613 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dDuZs-0001sn-Uh; Thu, 25 May 2017 11:21:29 -0400 Date: Thu, 25 May 2017 18:21:25 +0300 Message-Id: <83k255klmy.fsf@gnu.org> From: Eli Zaretskii To: Francesco =?utf-8?Q?Potort=C3=AC?= In-reply-to: (message from Francesco =?utf-8?Q?Potort=C3=AC?= on Thu, 25 May 2017 13:57:12 +0200) Subject: Re: bug#27066: 25.1; dired unsafe variables References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 25 May 2017 13:57:12 +0200 > From: Francesco Potortì > > Recipe: > > $ wget http://fly.isti.cnr.it/tmp/leela.tar # 48 MB > $ tar -xf leela.tar > $ emacs -nw -Q opt/leela > > I am prompted to accept reading the directory because it contains unsafe > variables 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? From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:54:56 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 15:54:56 +0000 Received: from localhost ([127.0.0.1]:37834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDv6G-00031T-DH for submit@debbugs.gnu.org; Thu, 25 May 2017 11:54:56 -0400 Received: from mx1.isti.cnr.it ([194.119.192.3]:34446 helo=blade3.isti.cnr.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDv6E-00031K-He for 27066@debbugs.gnu.org; Thu, 25 May 2017 11:54:55 -0400 Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.5-x6 #1609) with ESMTPSA id <01QERM2FQVTACZ8JCI@mx-all.isti.cnr.it> for 27066@debbugs.gnu.org; Thu, 25 May 2017 17:53:27 +0200 (MEST) Received: from pot by tucano.isti.cnr.it with local (Exim 4.89) (envelope-from ) id 1dDv6A-0003Th-Vp; Thu, 25 May 2017 17:54:51 +0200 Date: Thu, 25 May 2017 17:54:50 +0200 From: =?utf-8?Q?Francesco_Potort=C3=AC?= Subject: Re: bug#27066: 25.1; dired unsafe variables In-reply-to: <83k255klmy.fsf@gnu.org> To: Eli Zaretskii Message-id: Organization: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 References: <83k255klmy.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) >> Date: Thu, 25 May 2017 13:57:12 +0200 >> From: Francesco Potortì >> >> Recipe: >> >> $ wget http://fly.isti.cnr.it/tmp/leela.tar # 48 MB >> $ tar -xf leela.tar >> $ emacs -nw -Q opt/leela >> >> I am prompted to accept reading the directory because it contains unsafe >> variables > >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. Moreover the warning message does not mention .dir-locals.el anywhere. So first, there is a documentation problem about the .dir-locals.el files. Second, probably dired should prompt *before* ever loading that file and parse it only if the user agrees. Am I too conservative? Anyway, that is something that is unespected, and should be treated differently, in my opinion. From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 12:07:08 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 16:07:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Thu, 25 May 2017 19:06:49 +0300 Message-Id: <83efvcly3q.fsf@gnu.org> From: Eli Zaretskii To: Francesco =?utf-8?Q?Potort=C3=AC?= In-reply-to: (message from Francesco =?utf-8?Q?Potort=C3=AC?= on Thu, 25 May 2017 17:54:50 +0200) Subject: Re: bug#27066: 25.1; dired unsafe variables References: <83k255klmy.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 12:58:16 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 16:58:16 +0000 Received: from localhost ([127.0.0.1]:37934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDw5Y-0006Pn-3e for submit@debbugs.gnu.org; Thu, 25 May 2017 12:58:16 -0400 Received: from mx-all.isti.cnr.it ([194.119.192.3]:48571 helo=blade3.isti.cnr.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDw5W-0006Pe-0U for 27066@debbugs.gnu.org; Thu, 25 May 2017 12:58:14 -0400 Received: from tucano.isti.cnr.it ([146.48.81.102]) by mx-all.isti.cnr.it (PMDF V6.5-x6 #1609) with ESMTPSA id <01QERO9ZPBLCCZ8JCI@mx-all.isti.cnr.it> for 27066@debbugs.gnu.org; Thu, 25 May 2017 18:56:48 +0200 (MEST) Received: from pot by tucano.isti.cnr.it with local (Exim 4.89) (envelope-from ) id 1dDw5T-0000pQ-Rk; Thu, 25 May 2017 18:58:11 +0200 Date: Thu, 25 May 2017 18:58:11 +0200 From: =?utf-8?Q?Francesco_Potort=C3=AC?= Subject: Re: bug#27066: 25.1; dired unsafe variables In-reply-to: <83efvcly3q.fsf@gnu.org> To: Eli Zaretskii Message-id: Organization: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 References: <83k255klmy.fsf@gnu.org> <83efvcly3q.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) >> 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. Hm. It turns out that Debian, for some reason, did not update my dir info file after installing emacs25 side-by-side with emacs22, so I was reading emacs22 docs. Sorry for the inaccurate info. >> 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. 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. >> 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. I don't know. It's a relatively recent innovation, and I bet very few users have ever stumbled into it. In my opinion, dired should warn the user and ask for permission to go on whenever it wants to read a .dir-locals.el file. Probably a customisation variable could avoid this prompt. And maybe in the future the current behaviour could become the default, but not now. From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 14:10:07 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 18:10:07 +0000 Received: from localhost ([127.0.0.1]:38030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDxD5-00087U-Da for submit@debbugs.gnu.org; Thu, 25 May 2017 14:10:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDxD3-00086v-Pz for 27066@debbugs.gnu.org; Thu, 25 May 2017 14:10:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDxCx-0005f8-SH for 27066@debbugs.gnu.org; Thu, 25 May 2017 14:10:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDxCr-0005d8-CP; Thu, 25 May 2017 14:09:53 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3194 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dDxCq-0002if-HR; Thu, 25 May 2017 14:09:53 -0400 Date: Thu, 25 May 2017 21:09:47 +0300 Message-Id: <834lw8lses.fsf@gnu.org> From: Eli Zaretskii To: Francesco =?utf-8?Q?Potort=C3=AC?= In-reply-to: (message from Francesco =?utf-8?Q?Potort=C3=AC?= on Thu, 25 May 2017 18:58:11 +0200) Subject: Re: bug#27066: 25.1; dired unsafe variables References: <83k255klmy.fsf@gnu.org> <83efvcly3q.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 25 May 2017 18:58:11 +0200 > From: Francesco Potortì > Cc: 27066@debbugs.gnu.org > > >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. > > Hm. It turns out that Debian, for some reason, did not update my dir > info file after installing emacs25 side-by-side with emacs22, so I was > reading emacs22 docs. Sorry for the inaccurate info. Ah, Debian with its user-unfriendly documentation policies... > >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. > >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... From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 15:25:42 2017 Received: (at 27066) by debbugs.gnu.org; 25 May 2017 19:25:42 +0000 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 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 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) 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 Date: Thu, 25 May 2017 21:25:36 +0200 From: =?utf-8?Q?Francesco_Potort=C3=AC?= Subject: Re: bug#27066: 25.1; dired unsafe variables In-reply-to: <834lw8lses.fsf@gnu.org> To: Eli Zaretskii Message-id: Organization: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 References: <83k255klmy.fsf@gnu.org> <83efvcly3q.fsf@gnu.org> <834lw8lses.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 27066 Cc: 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) >> >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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 11:10:21 2022 Received: (at 27066) by debbugs.gnu.org; 23 Jan 2022 16:10:21 +0000 Received: from localhost ([127.0.0.1]:40932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfRd-0007L0-1E for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:10:21 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfRb-0007Ke-OH for 27066@debbugs.gnu.org; Sun, 23 Jan 2022 11:10:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RWuKiiQ3a4IuIOEhZwhinHgq/wGyvNRpwbLaKjOOc3s=; b=jF40Z+rnrhQUtmrML26/PzGUTz 3ZoPPJjikwweYRf57Z37QF8vX6uXj1HHqC7dfwRp+Dk/GcJ8E0EbiRa26/5OtcWIcsai1pQbsZNgB 9eJ4Kdl2J2flZolANbilA5FPHN6D4Nfg01puTp52ko69QbDfayNgNrIxSAKk3TNbchzk=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBfRS-0006R2-LY; Sun, 23 Jan 2022 17:10:13 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#27066: 25.1; dired unsafe variables References: <83k255klmy.fsf@gnu.org> <83efvcly3q.fsf@gnu.org> <834lw8lses.fsf@gnu.org> X-Now-Playing: Hector Zazou's _Reivax au Congo_: "Chanson Bongolaise" Date: Sun, 23 Jan 2022 17:10:09 +0100 In-Reply-To: <834lw8lses.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 May 2017 21:09:47 +0300") Message-ID: <874k5u8mce.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > 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, a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27066 Cc: Francesco =?utf-8?Q?Potort=C3=AC?= , 27066@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > 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. I've now just mentioned "or .dir-locals.el" in the message in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 11:10:26 2022 Received: (at control) by debbugs.gnu.org; 23 Jan 2022 16:10:26 +0000 Received: from localhost ([127.0.0.1]:40935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfRi-0007LJ-8G for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:10:26 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfRg-0007Ks-Ko for control@debbugs.gnu.org; Sun, 23 Jan 2022 11:10:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BbaBDTLeiQDA9Xv8QJfMnHF6aVzepnCrVY0Vo0s00Pw=; b=lQ/SCVlANNiOIJWY1UAPa6y/kU vWlFH82Jyr2AC16bxXB/pU+OYbX7i1G3duzi2S7tEYDLwVxN/pvXN41K2Z4ZBMFO8+7tMlWwSLds2 aRePJGXNFgpJK7q6bVRo4MtLJ7aHttD6YnKi1gp9bil8yOJmJqJQ+Y4SNJS2rV5vCfiM=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBfRY-0006RA-On for control@debbugs.gnu.org; Sun, 23 Jan 2022 17:10:18 +0100 Date: Sun, 23 Jan 2022 17:10:16 +0100 Message-Id: <8735le8mc7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27066 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 27066 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 27066 29.1 quit From unknown Sat Jun 21 12:19:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Feb 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator