From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36830: 26.2; find-file-visit-truename is not honored as file local variable Date: Sun, 25 Aug 2019 10:31:32 +0300 Message-ID: <83wof1hfaj.fsf@gnu.org> References: <87d0hufamm.fsf@gmail.com> <87ftlsfp3v.fsf@gnus.org> <87h8688233.fsf@gmail.com> <874l27btck.fsf@gnus.org> <83d0gvk5m0.fsf@gnu.org> <87blwdajn2.fsf@gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="137555"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36830@debbugs.gnu.org, gusbrs.2016@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 25 09:32:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1n0X-000ZfF-8D for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 09:32:13 +0200 Original-Received: from localhost ([::1]:41228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1n0V-0006ni-Oy for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 03:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33794) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1n0P-0006nQ-Ln for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 03:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1n0N-0001Uf-K7 for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 03:32:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1n0M-0001U5-NP for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 03:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1n0M-0004nW-Gi for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 03:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Aug 2019 07:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36830 X-GNU-PR-Package: emacs Original-Received: via spool by 36830-submit@debbugs.gnu.org id=B36830.156671830118415 (code B ref 36830); Sun, 25 Aug 2019 07:32:02 +0000 Original-Received: (at 36830) by debbugs.gnu.org; 25 Aug 2019 07:31:41 +0000 Original-Received: from localhost ([127.0.0.1]:43527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1n00-0004mx-Oi for submit@debbugs.gnu.org; Sun, 25 Aug 2019 03:31:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1mzz-0004mi-O3 for 36830@debbugs.gnu.org; Sun, 25 Aug 2019 03:31:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1mzu-0001KU-J2; Sun, 25 Aug 2019 03:31:34 -0400 Original-Received: from [176.228.60.248] (port=2250 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1mzu-0005yZ-3e; Sun, 25 Aug 2019 03:31:34 -0400 In-reply-to: <87blwdajn2.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 25 Aug 2019 07:39:29 +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: 209.51.188.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:165809 Archived-At: > From: Lars Ingebrigtsen > Cc: gusbrs.2016@gmail.com, 36830@debbugs.gnu.org > Date: Sun, 25 Aug 2019 07:39:29 +0200 > > > Maybe we should just document that this variable cannot be file-local. > > files.el has this: > > (put 'find-file-visit-truename 'safe-local-variable 'booleanp) > > It was changed to booleanp in 2007 (from the presumably invalid > `boolean'), so it didn't work before 2007 for that reason, and it hasn't > worked after 2007 because it's checked too late. > > So perhaps the fix here is to just remove that `put'? Fine with me. > On the other hand, it would be nice if it worked, because it seems like > a pretty useful thing to be able to customise on a per-file basis. I agree. If someone can come up with a way to resolve the race, I'm all ears. We have similar problems in startup.el, with variables that depend on potentially customizable other variables, and the solutions are... not pretty and quite fragile. In particular, that kind of problems was the main reason why we introduced the early-init file.