[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23869: 25.0.95; replace-match can crash emacs
From: |
Leo Liu |
Subject: |
bug#23869: 25.0.95; replace-match can crash emacs |
Date: |
Thu, 30 Jun 2016 11:27:07 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (OS X 10.11.5) |
On 2016-06-29 19:07 +0300, Eli Zaretskii wrote:
> Thanks, reproduced. I will take a look if no one beats me to it.
Thanks, the bug is in good hands.
There may be another bug in replace-match. But it was something I saw
nearly half a year ago. I was in a hurry and chose a quick workaround to
move on.
The bug is this: replace-match may move point to point-min when changed
region doesn't involve point-min. The trigger is similar to this bug
i.e. smie-config-guess in first-change-hook. Unfortunately I forgot how
to reproduce this bug. I thought I mention it in case it is obvious from
the code.
My workaround is to wrap replace-match in save-excursion. I'll remove
the save-excursion and see if it comes up again.
Leo