From: Levin Du <zslevin@gmail.com>
To: 16449@debbugs.gnu.org
Subject: bug#16449: 24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on
Date: Fri, 17 Jan 2014 17:29:39 +0800 [thread overview]
Message-ID: <CAN6cQGP2DMkvYcWuz-k0ANNndaTQjsMCLZEfZA2tg3t6nzXbNg@mail.gmail.com> (raw)
In-Reply-To: <CAN6cQGPWNjjYSeABJuJWvESmOFHWW1BPRT2OZPKk8UOMpvzZ4g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 939 bytes --]
prev parent reply other threads:[~2014-01-17 9:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 3:16 bug#16449: 24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on Levin Du
2014-01-15 13:48 ` Agustin Martin
2014-01-15 14:58 ` Dmitry Antipov
2014-01-16 1:45 ` Levin Du
2014-01-17 9:29 ` Levin Du [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN6cQGP2DMkvYcWuz-k0ANNndaTQjsMCLZEfZA2tg3t6nzXbNg@mail.gmail.com \
--to=zslevin@gmail.com \
--cc=16449@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).