[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace-match's problem
From: |
SAITO Takuya |
Subject: |
Re: replace-match's problem |
Date: |
Mon, 22 Sep 2003 22:18:57 +0900 (JST) |
> Does this fix it?
replace-match does not change text-property any more.
But still emacs aborts with this:
(with-temp-buffer
(insert "abcd")
(put-text-property 3 4 'test t)
(goto-char (point-min))
(looking-at "abcd")
(replace-match (match-string 0) t t))
And your patch introduce a new problem.
(with-temp-buffer
(insert "abcdefgh")
(put-text-property 4 5 'test t)
(goto-char (point-min))
(looking-at "a\\(bcde\\)fg")
(replace-match (match-string 1) t t))
results in the infinite loop.