GNU bug report logs - #16449
24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on

Previous Next

Package: emacs;

Reported by: Levin Du <zslevin <at> gmail.com>

Date: Wed, 15 Jan 2014 03:21:02 UTC

Severity: normal

Tags: confirmed, fixed

Merged with 20995, 22319, 24253, 28040

Found in versions 24.3.50, 24.5, 25.1.50, 25.2

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Levin Du <zslevin <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.3.50; emacs hangs while deleting comment in xml file with
 flyspell-mode on
Date: Fri, 17 Jan 2014 17:29:39 +0800
[Message part 1 (text/plain, inline)]
I trace down to the while loop in nxml-forward-single-balanced-item:

(defun nxml-forward-single-balanced-item ()
  (condition-case err
      (goto-char (let ((end (nxml-token-after)))
   (save-excursion
     (while (eq xmltok-type 'space)
       (goto-char end)
       (setq end (nxml-token-after)))
     (cond ((/= (point) xmltok-start)

In my test xml file, when the last comment char is deleted, `end' will be
65, then (nxml-token-after) also returns 65  , so this is a endless loop.
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.