GNU bug report logs - #2840
[emacs-nxml-mode] C-c C-b doesn't work as expected

Previous Next

Package: emacs;

Reported by: Jason Rumney <jasonr <at> gnu.org>

Date: Wed, 1 Apr 2009 08:05:06 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2840 in the body.
You can then email your comments to 2840 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, mail <at> chaitanyagupta.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2840; Package emacs. (Wed, 01 Apr 2009 08:05:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jason Rumney <jasonr <at> gnu.org>:
New bug report received and forwarded. Copy sent to mail <at> chaitanyagupta.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 01 Apr 2009 08:05:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: emacs-pretest-bug <emacs-pretest-bug <at> gnu.org>
Subject: Re: [emacs-nxml-mode] C-c C-b doesn't work as expected
Date: Wed, 01 Apr 2009 15:54:02 +0800
X-Debbugs-Cc: mail <at> chaitanyagupta.com

Chaitanya Gupta wrote:
> Hi,
>
> I am using GNU Emacs 23.0.92.1 and the nxml-mode which comes with it. 
> C-c C-b (nxml-balanced-close-start-tag-block) doesn't seem to work as 
> expected.
>
> e.g. if my buffer is like this: (-!- indicates the point)
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head-!-
> </html>
>
>
> And I press C-c C-b, I get this
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head>-!-</head>
> </html>
>
>
> instead of what I was expecting:
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head>
>      -!-
>    </head>
> </html>
>   

This appears to be a bug in Emacs. If I run through 
nxml-balanced-close-start-tag in edebug, then it works as you expected, 
but if I let nxml-balanced-close-start-tag run without debugging, it 
acts as if 'inline was specified rather than 'block.





Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Sat, 24 Oct 2009 21:40:09 GMT) Full text and rfc822 format available.

Notification sent to Jason Rumney <jasonr <at> gnu.org>:
bug acknowledged by developer. (Sat, 24 Oct 2009 21:40:09 GMT) Full text and rfc822 format available.

Message #10 received at 2840-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: mail <at> chaitanyagupta.com
Cc: 2840-done <at> debbugs.gnu.org
Subject: Re: [emacs-nxml-mode] C-c C-b doesn't work as expected
Date: Sat, 24 Oct 2009 17:33:36 -0400
> if my buffer is like this: (-!- indicates the point)
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head-!-
> </html>
>
>
> And I press C-c C-b, I get this
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head>-!-</head>
> </html>

I have checked a fix into Emacs CVS.  Thanks for the bug report.



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sun, 22 Nov 2009 15:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 215 days ago.

Previous Next


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