emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] The syntax class of ", /, =, ~


From: Nicolas Goaziou
Subject: Re: [O] The syntax class of ", /, =, ~
Date: Sun, 19 Aug 2018 10:33:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

address@hidden (Omar AntolĂ­n) writes:

> In a nutshell, I propose that ", /, = and ~ be assigned to the syntax class 
> "paired delimiter", which is $. (This would allow electric-pair-mode to work 
> with them.)
>
> The definition of org-mode as a derived mode contains the following lines:
>
>   (modify-syntax-entry ?@ "w")
>   (modify-syntax-entry ?\" "\"")
>   (modify-syntax-entry ?\\ "_")
>   (modify-syntax-entry ?~ "_")
>
> What is the rationale behind the choices for ~ and "? It feels to me
> like both should be assigned class "paired delimiters" (i.e., class
> $). I would also expect / and = to be paired delimiters, but maybe I'm
> missing some subtlety.

What about file:~/todo.org and \(a=b\)? I don't think we can assure ~,
/, and = are always paired. Also, what is wrong with " belonging to string
quote class?

Regards,

-- 
Nicolas Goaziou



reply via email to

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