GNU bug report logs - #77704
30.1; xml-mode enters infinite loop when saving with unclosed XML comment

Previous Next

Package: emacs;

Reported by: TANIKAWAKoji <kojie.yk <at> icloud.com>

Date: Thu, 10 Apr 2025 14:09:02 UTC

Severity: normal

Tags: unreproducible

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: TANIKAWAKoji <kojie.yk <at> icloud.com>
Cc: 77704 <at> debbugs.gnu.org
Subject: Re: bug#77704: 30.1;
 xml-mode enters infinite loop when saving with unclosed XML  comment
Date: Sat, 12 Apr 2025 13:34:56 +0300
> Date: Thu, 10 Apr 2025 16:49:25 +0900
> From:  TANIKAWAKoji via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 
> To reproduce:
> 
> 1. emacs -Q
> 2. Open a new buffer and enter: <!--
> 3. Set mode to xml-mode: M-x xml-mode
> 4. Save buffer: C-x C-s
> 
> Expected: Save succeeds, or a warning about unclosed comment.
> 
> Actual: Emacs enters an infinite loop or hangs. Requires external termination.

I cannot reproduce this, neither with the stock Emacs 29.1 nor with
later versions.  Are you sure you are using xml-mode from Emacs?  In
Emacs 29.1, xml-mode is just an alias for nxml-mode.

Maybe this is macOS specific?




This bug report was last modified 10 days ago.

Previous Next


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