emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64281: closed ([Feature Request] Recognize “#” syntax when reading l


From: GNU bug Tracking System
Subject: bug#64281: closed ([Feature Request] Recognize “#” syntax when reading local-variables)
Date: Mon, 26 Jun 2023 12:22:02 +0000

Your message dated Mon, 26 Jun 2023 15:21:36 +0300
with message-id <83wmzqwh0v.fsf@gnu.org>
and subject line Re: bug#64281: [Feature Request] Recognize “#” syntax
has caused the debbugs.gnu.org bug report #64281,
regarding [Feature Request] Recognize “#” syntax when reading local-variables
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64281: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64281
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [Feature Request] Recognize “#” syntax when reading local-variables Date: Sun, 25 Jun 2023 11:54:02 +0000
For example, if I want to use UTF-8-UNIX only for files directly under
directory DIR, and those under DIR/SUBDIR/ or its subdirectories, I
can write this way:

    ((nil . ((subdirs . nil)
               . #1=((coding . utf-8-unix))))
     ("SUBDIR" . ((nil . #1#))))

If “#” can be recognized when reading local-variables, we can write
“((coding . utf-8-unix))” only once.  Thanks.

--
shynur


--- End Message ---
--- Begin Message --- Subject: Re: bug#64281: [Feature Request] Recognize “#” syntax Date: Mon, 26 Jun 2023 15:21:36 +0300
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Shynur Xie <one.last.kiss@outlook.com>,  64281@debbugs.gnu.org
> Date: Sun, 25 Jun 2023 11:46:13 -0400
> 
> >> It seems that this is a intentional behavior:
> >>
> >> <https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Local-Variables.html>:
> >>
> >> > For additional safety, read-circle is temporarily bound to nil when
> >> > Emacs reads file-local variables.
> >>
> >> No further question; can be closed now.
> >>
> >> (I wonder if we can treat ~/.emacs.d/.dir-locals.el specially, or tell
> >>  Emacs which files can be treated specially -- enable read-circle.)
> >
> > Stefan, any comments before we close this?
> 
> file/dir-local variables are dangerous enough as it is, I think.  If you
> want to do better, you can use an actual ELisp file.

Agreed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]