emacs-devel
[Top][All Lists]
Advanced

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

Re: lisp-mode: how to disable parentheses matching on non-ASCII '[({]' '


From: Jason Vas Dias
Subject: Re: lisp-mode: how to disable parentheses matching on non-ASCII '[({]' '[})]' UTF-8 parenthesis chars ?
Date: Tue, 8 Aug 2023 18:23:22 +0100

That worked, thank you!

 (mapcar (lambda (c)
         (eval (list 'modify-syntax-entry c "."))
        )
 '( ?\❨ ?\❩ ?\❪ ?\❫ ?\⟮ ?\⟯ ?\⦅ ?\⦆ ?\⸨ ?\⸩ ?\﴾ ?\﴿ ?\《 ?\》 ?\﹙ ?\﹚
?\(  ?\) ?\⦅ ?\⦆)
)

Strange, I am not able to get that to work without the 'eval' .


On 08/08/2023, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Tuesday,  8 Aug 2023 at 08:37, Jason Vas Dias wrote:
>>    Please could some emacs guru let me know how the 'lisp-mode' based
>>    source editing modes can be made to ignore / treat as normal
>>    characters such not-ascii-'(' and not-ascii-')' characters and to
>>    NOT attempt to balance them or to consider them parenthesis syntax
>>    ? No LISP parser I am using considers them to be syntax.
>
> You could try
>
>     (modify-syntax-entry ?< ".")
>
> where you replace < with each individual character you do not wish to be
> treated as a paren.
>
> --
> Eric S Fraga via gnus (Emacs 30.0.50 2023-08-07) on Debian 12.1
>
>
>



reply via email to

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