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: 17 Oct 2003 09:37:28 -0700 Organization: http://extra.newsguy.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r81byg53.fsf@newsguy.com> References: <878ynldq65.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 1066411095 30003 80.91.224.253 (17 Oct 2003 17:18:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2003 17:18:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 19:18:12 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 1AAYEu-0001Nw-00 for ; Fri, 17 Oct 2003 19:18:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAYDx-0000n9-Bw for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2003 13:17:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: p-609.newsdawg.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:117369 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:13299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13299 Ian> Why in the world does comment-kill reindent the affected line? Stefan> No idea. You're the first person I know who uses this command. Ah, but you get the same thing with comment-dwim with an argument on a line with an existing comment. Is that any better? Ian> Look at newcomment.el, one gets the general feeling of unfinished Ian> business :-) Stefan> Thanks for the support. But please make it more specific, so I Stefan> get a chance of fixing or at least defending my code. It comes down to comment-dwim. It really tries to do too much. The different situations should be separated, and then common patterns will emerge to make into subroutines. Right now, comment-dwim calls comment-indent if not a blank line, but inserts a comment itself on a blank one. The two braches are quite different, use different customization variables, etc. And, let me repeat myself, the reindent in comment-kill is a bug. -- Wer Schoenheit angeschaut mit Augen, hat dem Tode schon Anheim gegeben. Von Platen.