all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23869@debbugs.gnu.org
Subject: bug#23869: 25.0.95; replace-match can crash emacs
Date: Thu, 30 Jun 2016 11:27:07 +0800	[thread overview]
Message-ID: <m1shvvgxv8.fsf@gmail.com> (raw)
In-Reply-To: <8360ssvv17.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 29 Jun 2016 19:07:00 +0300")

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





  reply	other threads:[~2016-06-30  3:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 14:17 bug#23869: 25.0.95; replace-match can crash emacs Leo Liu
2016-06-29 15:37 ` Eli Zaretskii
2016-06-29 16:00   ` Leo Liu
2016-06-29 16:07     ` Eli Zaretskii
2016-06-30  3:27       ` Leo Liu [this message]
2016-06-30 15:04         ` Eli Zaretskii
2016-07-03 18:53           ` Leo Liu
2016-07-03 19:32             ` Eli Zaretskii
2016-07-03 20:08           ` Stefan Monnier
2016-07-03 20:33             ` Eli Zaretskii
2016-07-03 21:06               ` Stefan Monnier
2016-07-04 15:36                 ` Eli Zaretskii
2016-07-06 14:32                   ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1shvvgxv8.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=23869@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.