GNU bug report logs -
#29326
26.0.90; Emacs crash on running comment-dwim
Previous Next
Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>
Date: Thu, 16 Nov 2017 19:44:02 UTC
Severity: normal
Found in version 26.0.90
Done: Kaushal Modi <kaushal.modi <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Kaushal Modi <kaushal.modi <at> gmail.com>
> Date: Fri, 17 Nov 2017 20:04:06 +0000
> Cc: npostavs <at> users.sourceforge.net, 29326-done <at> debbugs.gnu.org
>
> Thanks, I installed a change which should fix this. Please try the
> latest release branch.
>
> That's a bulls-eye fix! Rebuilt from emacs-26 HEAD, and now C-x ; causes no more crashes in that test file.
Thanks for testing.
> I would have thought it is quite common to comment this way in src blocks in Org files.. also what's surprising
> that this crash happened only when doing C-x ; after a particular line.. and that "particular line" happens to be
> after Org fontification regexp starts misbehaving[1]. So I am not sure that that Org fontification bug had
> anything to do with this crash.
The trigger was the call to line-move-visual in nim-mode. So you need
to do something that causes that function to be called by nim-mode,
when Org does the indent thing. I think this doesn't happen
frequently because most modes used in source snippets in Org buffers
don't call line-move-visual (why would they? that function is for
interactively moving cursor vertically).
This bug report was last modified 7 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.