|
From: | Alex Kost |
Subject: | Re: Don't change "+" syntax in guix/.dir-locals.el |
Date: | Mon, 21 May 2018 21:31:42 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Pierre Neidhardt (2018-05-20 21:57 +0200) wrote: > I recently noticed that guix-devel-mode misbehaved on packages ending > with a "+" (like my recent emacs-image+). > > See https://github.com/alezost/guix.el/issues/24 for more details. > > Alex Kost suggested we removed the syntax change in .dir-locals.el: > > ;; This notably allows '(' in Paredit to not insert a space when the > ;; preceding symbol is one of these. > (eval . (modify-syntax-entry ?~ "'")) > (eval . (modify-syntax-entry ?$ "'")) > - (eval . (modify-syntax-entry ?+ "'")) Here is my point: I believe (re-search-forward "\\s_" nil t) should find "+" character in lisp/scheme modes because it may be part of symbol names there. Even elisp manual mentions this fact: https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-Class-Table.html#Syntax-Class-Table So I think that ".dir-locals.el" shouldn't break this default behavior. -- Alex
[Prev in Thread] | Current Thread | [Next in Thread] |