[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12077: Abort in replace-regexp with an after-change-functions hook
From: |
Glenn Morris |
Subject: |
bug#12077: Abort in replace-regexp with an after-change-functions hook |
Date: |
Tue, 19 Feb 2013 12:08:34 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Version: 24.4
Rob Browning wrote:
>> When this expression is evaluated, Emacs will abort.
>>
>> (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.
- bug#12077: Abort in replace-regexp with an after-change-functions hook,
Glenn Morris <=