GNU bug report logs - #12077
Abort in replace-regexp with an after-change-functions hook

Previous Next

Package: emacs;

Reported by: Rob Browning <rlb <at> defaultvalue.org>

Date: Sat, 28 Jul 2012 18:01:02 UTC

Severity: normal

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 12077 <at> debbugs.gnu.org
Subject: bug#12077: Abort in replace-regexp with an after-change-functions hook
Date: Tue, 19 Feb 2013 13:04:50 -0500
Glenn Morris wrote:

>>>     (with-temp-buffer
>>>       (insert "#\n*\n")
>>>       (goto-char (point-min))
>>>       (add-hook 'after-change-functions
>>>                 (lambda (a b c) (re-search-forward "\n" nil t)))
>>>       (replace-regexp "^\\*" " *"))
>
> By experiment, this issue is present in at least 22.3 through 24.2.93,
> but is fixed in the current trunk.

PS if someone feels like checking exactly what fixed this, then if it is
a simple and obviously safe change, it could go in emacs-24. But since
this is a long-standing issue, this is not essential.




This bug report was last modified 12 years and 153 days ago.

Previous Next


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