From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Don't change "+" syntax in guix/.dir-locals.el Date: Mon, 21 May 2018 21:31:42 +0300 Message-ID: <87k1rwvp0x.fsf@gmail.com> References: <87y3geksl6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKpbi-0000HZ-8X for guix-devel@gnu.org; Mon, 21 May 2018 14:32:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKpaz-0008JY-Ox for guix-devel@gnu.org; Mon, 21 May 2018 14:32:30 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:47078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKpaz-0008In-5g for guix-devel@gnu.org; Mon, 21 May 2018 14:31:45 -0400 Received: by mail-lf0-x235.google.com with SMTP id t22-v6so6101086lff.13 for ; Mon, 21 May 2018 11:31:44 -0700 (PDT) In-Reply-To: <87y3geksl6.fsf@gmail.com> (Pierre Neidhardt's message of "Sun, 20 May 2018 21:57:57 +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" To: Pierre Neidhardt Cc: Guix-devel 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