Bug 553346 - The Ctrl-c, Ctrl-b combination does not add new lines
Summary: The Ctrl-c, Ctrl-b combination does not add new lines
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karel Klíč
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-07 16:56 UTC by parli-rhbug
Modified: 2013-03-03 22:59 UTC (History)
4 users (show)

Fixed In Version: emacs-23.1-21.fc12
Clone Of:
Environment:
Last Closed: 2010-04-20 13:09:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description parli-rhbug 2010-01-07 16:56:27 UTC
Description of problem:

When I edit an XML file and hit ctrl-c followed by a ctrl-b after typing a beginning tag, I get the closing tag on the same line rather than on a new line as described in the documentation. This is identical behaviour to the ctrl-c, ctrl-i combination.

Version-Release number of selected component (if applicable):
emacs 23.1.7-fc11


How reproducible:
Always

Steps to Reproduce:
1. Open an xml file
2. Type <begin followed by ctrl-c and ctrl-b

Actual results:

<begin></begin>

Expected results:
<begin>
 
</begin>

the cursor should be located at an indented position on the line between the two begin's.

Additional info:

Comment 1 Tim Waugh 2010-03-29 13:58:22 UTC
Fixing component.

Comment 2 Jonathan Underwood 2010-03-29 14:11:31 UTC
I can't reproduce this - trying your recipe, when I press C-c C-b the point (cursor) just moves back to the begining of the tag. Looking at the key binding I see this is the expected behaviour:

C-c C-b runs the command sgml-skip-tag-backward, which is an interactive
compiled Lisp function.

It is bound to C-c C-b, C-c <left>, <menu-bar> <sgml>
<sgml-skip-tag-backward>.

(sgml-skip-tag-backward arg)

Skip to beginning of tag or matching opening tag if present.
With prefix argument arg, repeat this arg times.
Return non-nil if we skipped over matched tags.

Comment 3 Jonathan Underwood 2010-03-29 14:12:35 UTC
OK, I suspect the missing part of your recipe is that you're editing with nxml-mode turned on, right?

Comment 4 Jonathan Underwood 2010-03-29 14:21:23 UTC
Upstream bug report:

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2840

There's a fix in CVS/bzr apparently, but I haven't dug it out yet.

Comment 5 Jonathan Underwood 2010-03-29 14:27:48 UTC
This is the changeset that fixes this problem - won't have time to test it for a few hours yet tho:

http://bazaar.launchpad.net/~vcs-imports/emacs/trunk/revision/98299

Comment 6 parli-rhbug 2010-03-30 16:19:54 UTC
My apologies, yes, I am using nxml-mode.

Comment 7 Fedora Update System 2010-03-30 22:36:59 UTC
emacs-23.1-20.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/emacs-23.1-20.fc12

Comment 8 Fedora Update System 2010-03-30 23:17:25 UTC
emacs-23.1-11.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/emacs-23.1-11.fc11

Comment 9 Fedora Update System 2010-04-01 01:41:26 UTC
emacs-23.1-11.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update emacs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-11.fc11

Comment 10 Fedora Update System 2010-04-01 01:55:10 UTC
emacs-23.1-20.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update emacs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-20.fc12

Comment 11 Fedora Update System 2010-04-01 16:09:35 UTC
emacs-23.1-13.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/emacs-23.1-13.fc11

Comment 12 Fedora Update System 2010-04-01 16:12:52 UTC
emacs-23.1-21.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/emacs-23.1-21.fc12

Comment 13 parli-rhbug 2010-04-01 23:43:14 UTC
It looks like emacs-23.1-11.fc11 has fixed the issue. The line-feeds appear where I expect them. Thank you.

Comment 14 Fedora Update System 2010-04-09 01:28:30 UTC
emacs-23.1-21.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update emacs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-21.fc12

Comment 15 Fedora Update System 2010-04-09 01:44:52 UTC
emacs-23.1-13.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update emacs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-13.fc11

Comment 16 Fedora Update System 2010-04-20 13:08:12 UTC
emacs-23.1-13.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2010-04-20 13:30:23 UTC
emacs-23.1-21.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.