all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: 38456@debbugs.gnu.org
Subject: bug#38456: 27.0.50; Assertion failure in 'smerge-match-conflict'
Date: Mon, 2 Dec 2019 10:54:46 +0100	[thread overview]
Message-ID: <db8cbfbd-84a7-d720-1d43-7456fd2fdfb3@gmx.at> (raw)

Whenever git reports conflicts in a file, Emacs automatically enters
'smerge-mode' when I visit that file and moves point to the first
conflict in its buffer.  When 'debug-on-error' is non-nil and there is
no further conflict, typing C-c ^ n to invoke 'smerge-next' fails as

Debugger entered--Lisp error: (cl-assertion-failed ((< orig-point (match-end 0)) nil))
   cl--assertion-failed((< orig-point (match-end 0)))
   smerge-match-conflict()
   smerge-refine()
   smerge-next(1)
   funcall-interactively(smerge-next 1)
   call-interactively(smerge-next nil nil)
   command-execute(smerge-next)

Whatever that means, it makes Emacs behave erratically from now on,
like no more popping up menu bar items or not recognizing some of my
key bindings.  Quitting the debugger mitigates that but apparently
still leaves 'smerge-mode' unusable and I have to revert the buffer.
Note that all this happens in a situation where I am usually more
occupied about the reasons of the conflicts and how to resolve them
then about how the underlying resolution mechanism works.

I've been observing this behavior for years and never got around
reporting it because I always tried to understand the underlying
behaviors of 'smerge-match-conflict' and the debugger first.
Admittedly, I failed.  Does anyone have an idea about what goes on
here internally and how to fix that?

TIA, martin


In GNU Emacs 27.0.50 (build 63, x86_64-w64-mingw32)
  of 2019-12-01 built on MACHNO





             reply	other threads:[~2019-12-02  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-02  9:54 martin rudalics [this message]
2020-01-18 10:06 ` bug#38456: 27.0.50; Assertion failure in 'smerge-match-conflict' Stefan Kangas
2020-01-21 19:24 ` Stefan Monnier
2020-01-21 19:54   ` Eli Zaretskii
2020-01-21 20:59     ` Stefan Monnier
2020-01-22 17:44   ` martin rudalics

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=db8cbfbd-84a7-d720-1d43-7456fd2fdfb3@gmx.at \
    --to=rudalics@gmx.at \
    --cc=38456@debbugs.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.