emacs-devel
[Top][All Lists]
Advanced

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

Re: electric-pair-mode as a minor mode?


From: Stefan Monnier
Subject: Re: electric-pair-mode as a minor mode?
Date: Mon, 30 Mar 2015 16:33:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Makes sense. Look better?

Yup.

>         (concat "^" message-cite-prefix-regexp ".*$") ; citations
[...]
>               (add-text-properties start (1+ start)
>                                    '(syntax-table (11 . nil)))
>               (add-text-properties (1- end) end
>                                    '(syntax-table (12 . nil))))))

The above regexp might match only 1 character and hence (1- end) can be
equal to start.


        Stefan



reply via email to

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