[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escape
From: |
Alan Mackenzie |
Subject: |
bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped. |
Date: |
Tue, 22 Sep 2020 19:41:10 +0000 |
Hello, Stefan.
On Tue, Sep 22, 2020 at 10:09:43 -0400, Stefan Monnier wrote:
> Hi Alan,
> > Hello, Emacs and Stefan.
> > In the following C comment:
> > 1 /*
> > 2 \*/
> > 3 /**/
> > , with point at BOL 1, do M-: (forward-comment 1). This leaves point
> > wrongly at EOL 2.
> That seems to be correct w.r.t the highlighting I see, OTOH.
> IOW the bug seems to affect both forward-comment and parse-partial-sexp,
> right?
Yes.
> > It should end up at EOL 3, since the apparent comment
> > ender on L2 is actually escaped.
> > The following patch fixes this.
> Does it fix it for `parse-partial-sexp` as well?
It does, yes. The patch is in forw_comment, which is called by
Fforward_comment, scan_lists, and scan_sexps_forward.
> > Are there any objections to me installing it?
> None from me, no.
Thanks!
> Stefan
--
Alan Mackenzie (Nuremberg, Germany).
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Alan Mackenzie, 2020/09/22
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Mattias EngdegÄrd, 2020/09/23
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Alan Mackenzie, 2020/09/23
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Alan Mackenzie, 2020/09/24
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Stefan Monnier, 2020/09/24
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Alan Mackenzie, 2020/09/24
- bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped., Stefan Monnier, 2020/09/24