From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: comment-dwim and indentation Date: Fri, 14 Sep 2007 15:06:36 -0700 Message-ID: <200709142206.l8EM6alv029627@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189807800 23897 80.91.229.12 (14 Sep 2007 22:10:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 22:10:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 15 00:09:55 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IWJMD-0004ZV-Vc for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 00:09:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWJMB-0004kN-Hc for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 18:09:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWJM7-0004jb-08 for emacs-devel@gnu.org; Fri, 14 Sep 2007 18:09:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWJM5-0004jM-9Q for emacs-devel@gnu.org; Fri, 14 Sep 2007 18:09:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWJM5-0004jJ-2i for emacs-devel@gnu.org; Fri, 14 Sep 2007 18:09:41 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWJM4-0000u9-3p for emacs-devel@gnu.org; Fri, 14 Sep 2007 18:09:40 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l8EM6alv029627 for ; Fri, 14 Sep 2007 15:06:40 -0700 (PDT) Original-Lines: 8 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-Detected-Kernel: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78918 Archived-At: comment-dwim is great, it has one wrinkle though: it places the comments in column 0. So if one comments out a region in a C function and then reindents the function, all the comments will be indented. Wouldn't it be better if comment-dwim would try to put comments at the right indentation level so that reindenting would become an nop? (I don't know how feasible this would be, but asking doesn't hurt :-)