GNU bug report logs - #35119
Zero-length regexp matches at point when doing re-search-backward

Previous Next

Package: emacs;

Reported by: Sam Halliday <sam.halliday <at> gmail.com>

Date: Wed, 3 Apr 2019 11:20:01 UTC

Severity: normal

Found in version 26.1

Full log


Message #8 received at 35119 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sam Halliday <sam.halliday <at> gmail.com>
Cc: 35119 <at> debbugs.gnu.org
Subject: Re: bug#35119: 26.1;
 narrow-to-region loses word-start/symbol-start information at end
Date: Wed, 03 Apr 2019 14:25:42 +0300
> From: Sam Halliday <sam.halliday <at> gmail.com>
> Date: Wed, 03 Apr 2019 12:19:08 +0100
> 
> If the function `narrow-to-region' (as it is in `looking-back') is used
> to restrict the region prior to an invocation of re-search-forward or
> looking-at, then zero length regexp patterns are lost at the boundaries.

Could you please provide a recipe to reproduce the issue?  I'm not
sure I understand what is the problem you are describing.

Thanks.




This bug report was last modified 3 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.