From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: comment-kill and the state of the world Date: 30 Oct 2003 15:59:52 -0800 Organization: http://extra.newsguy.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fzhauvif.fsf@newsguy.com> References: <878ynldq65.fsf@newsguy.com> <87r81byg53.fsf@newsguy.com> <87brsejvdc.fsf@newsguy.com> <87vfqfd35x.fsf@newsguy.com> <87ekx2v9lu.fsf@newsguy.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067560867 2407 80.91.224.253 (31 Oct 2003 00:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2003 00:41:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 01:41:05 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFNLc-0006QF-00 for ; Fri, 31 Oct 2003 01:41:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AFNCL-0004dq-H4 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Oct 2003 19:31:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: p-476.newsdawg.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:117739 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13676 Ian> I'd tried that. comment-indent then leaves point in the wrong Ian> place (right before the second hyphen). Stefan> But that's the case as well if you call `comment-indent' with a Stefan> pre-existing comment, right? So it's an unrelated bug which Stefan> comment-padding-foo would not fix (one I remember fixing a while Stefan> back, but probably only in Emacs-CVS). What was happening is Stefan> that comment-indent skips the comment starter and the leading Stefan> spaces to get to the actual content of the comment, but with an Stefan> empty comment, that tends to leave you right before the Stefan> commend-end which is not what you want when there's padding. Ian> Even if the two branches can be made to behave the same now, the Ian> more they change the harder it will be to achieve that. Stefan> Feel free to write the patch for it. It already took Stefan> significant effort to get things as they are, such that it all Stefan> works the way all the major modes expect it, including using Stefan> various combinations of comment-start, comment-end, Stefan> block-comment-start, block-comment-end, comment-multi-line, Stefan> various ways to call auto-fill, ... Stefan> And don't forget to come up with a good argument to convince RMS Stefan> that it's worth it to change the behavior of comment-indent (he Stefan> happens to like code duplication, as odd as it sounds to most of Stefan> us). Stefan> A new pair of eyes will surely help to simplify the code, tho. OK, looks like there's hope :-) -- "Rap music is our punishment for neglecting music education." An anonymous teacher