From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: .dir-locals.el vs. guix-devel-mode Date: Tue, 29 Sep 2015 14:06:33 +0300 Message-ID: <87d1x1jxhi.fsf@gmail.com> References: <871tdm6i0i.fsf@gmail.com> <8737y28fss.fsf@gnu.org> <87d1x57yhg.fsf@gmail.com> <87si5zwqqu.fsf@gnu.org> <878u7qybjn.fsf_-_@gmail.com> <87eghi1f9c.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgsk2-0002i9-Rb for guix-devel@gnu.org; Tue, 29 Sep 2015 07:06:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgsjy-0003R4-Iw for guix-devel@gnu.org; Tue, 29 Sep 2015 07:06:38 -0400 In-Reply-To: <87eghi1f9c.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Mon, 28 Sep 2015 22:05:19 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?= Cc: guix-devel@gnu.org Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer" (2015-09-28 23:05 +0300) wrote: > Alex Kost writes: > >> [...] >> >> More generally, I'm strongly against using "eval" in .dir-locals. IMO >> this file should be used only to set local variables, and ideally it >> shouldn't evaluate an arbitrary code. > > Just to clarify: I suppose you mean using eval for things other than > which Emacs can automatically determine to be safe. E.g. > > (eval . (put 'foo 'scheme-indent-function )) > > for integer is safe; Emacs will eval that silently if I'm not > mistaken. Actually I don't like .dir-locals.el in general. I consider it a workaround for the case when there are no appropriate major/minor modes for editing the project files. > But for things where Emacs pesters the user because it finds it > "unsafe," I find that very annoying. Indeed; it may be even scaring for newbies. At least it was for me when I first faced such "unsafe" warning, so I used (setq enable-local-variables nil) for some time :-) --=20 Alex