GNU bug report logs -
#14303
24.3; Bug in comment-search-backward
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Mon, 29 Apr 2013 13:29:02 UTC
Severity: normal
Found in version 24.3
Done: Leo Liu <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 14303 <at> debbugs.gnu.org (full text, mbox):
Am 17.05.2013 13:34, schrieb Leo Liu:
> On 2013-05-17 19:14 +0800, Andreas Röhler wrote:
>> The succession of things doesn't look right yet.
>>
>> if (eq comment-use-syntax nil)
>>
>> re-search-backward based solution
>>
>> which is very seldom. Grep shows 4 cases.
>>
>> Otherwise syntax-ppss - , prog1 and nth 4 goto char nth 8 - or so.
>> Make sure wrong regexp isn't called then/no wrong matches.
>>
>> Andreas
>
> There is possible optimisation when 'end' is in a string.
Don't understand. "end" can't be in a string, if syntax-ppss is used.
Other than
> that do you have a case where my solution will fail?
Not just fail.
However most if this code looks redundant, useless employing of re-search-..., which will slow down Emacs when called from a program.
>
> Leo
>
This bug report was last modified 12 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.