Article View: gnu.emacs.bug
Article #99994kill-comment doesn't know about comment ends
From: Jonathan I. Kamens
Date: Mon, 19 Feb 1990 18:40
Date: Mon, 19 Feb 1990 18:40
24 lines
1483 bytes
1483 bytes
The kill-comment function has no idea how to deal with a comment
ending on the same line -- it assumes that comments always extend to
the end of a line.
At the very least, it should barf and exit if "comment-end" is not
an empty string when it is called. Better would be for it to
understand about comment-end and be able to deal with comments ending
in the middle of a line, comments extending over multiple lines, etc.
Example of the wrong behavior:
1. Go into C mode.
2. Put the following line into the buffer:
/* if ( count == 7 ) printf("ds(%d) ",count); */ ds(count, i,j);
3. put the cursor on this line and execute kill-paragraph.
Jonathan Kamens USnail:
MIT Project Athena 11 Ashford Terrace
jik@Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8495 Home: 617-782-0710
Technical Details
Message-ID:
<9002191840.AA19979@pit-manager.MIT.EDU>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!tut.cis.ohio-state.edu!PIT-MANAGER.MIT.EDU!jikShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,a6d2c60897fd48f0,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-02-19 17:48:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!tut.cis.ohio-state.edu!PIT-MANAGER.MIT.EDU!jik From: jik@PIT-MANAGER.MIT.EDU (Jonathan I. Kamens) Newsgroups: gnu.emacs.bug Subject: kill-comment doesn't know about comment ends Message-ID: <9002191840.AA19979@pit-manager.MIT.EDU> Date: 19 Feb 90 18:40:14 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 24 Posted: Mon Feb 19 19:40:14 1990