|
From: | João Távora |
Subject: | Re: electric-pair-mode as a minor mode? |
Date: | Mon, 30 Mar 2015 21:42:25 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) |
Stefan Monnier <address@hidden> writes: >> (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. Well spotted. Though it shouldn't hurt to have a buffer pos ending a comment that never started. Otoh I see no reason why it shouldn't be `end' to `(1+ end)' instead... João
[Prev in Thread] | Current Thread | [Next in Thread] |