From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#385: [PATCH] comment-indent doesn't respect Date: Fri, 13 Jun 2008 12:47:41 -0400 Message-ID: References: <20080611171102.7261.qmail@byte.local> <21310.75.39.61.37.1213210741.squirrel@cjm.myvnc.com> Reply-To: Stefan Monnier , 385@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213376881 4488 80.91.229.12 (13 Jun 2008 17:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 17:08:01 +0000 (UTC) To: 385@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 19:08:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7Ckz-0006Yx-HI for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2008 19:08:09 +0200 Original-Received: from localhost ([127.0.0.1]:40524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7CkB-0007k1-Kx for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2008 13:07:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7Ck5-0007h5-Ol for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2008 13:07:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7Ck3-0007cK-7V for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2008 13:07:13 -0400 Original-Received: from [199.232.76.173] (port=50430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Ck3-0007c6-0A for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2008 13:07:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44051) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7Ck2-0004Xt-3l for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2008 13:07:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5DH77BM029045; Fri, 13 Jun 2008 10:07:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m5DGt5Xf024937; Fri, 13 Jun 2008 09:55:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 13 Jun 2008 16:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 385 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 385-submit@emacsbugs.donarmstrong.com id=B385.121337569923630 (code B ref 385); Fri, 13 Jun 2008 16:55:05 +0000 Original-Received: (at 385) by emacsbugs.donarmstrong.com; 13 Jun 2008 16:48:19 +0000 Original-Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5DGmD64023624 for <385@emacsbugs.donarmstrong.com>; Fri, 13 Jun 2008 09:48:14 -0700 Original-Received: from ceviche.home (vpn-132-204-232-131.acd.umontreal.ca [132.204.232.131]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m5DGmBlW026536 for <385@emacsbugs.donarmstrong.com>; Fri, 13 Jun 2008 12:48:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6F462B4087; Fri, 13 Jun 2008 12:47:41 -0400 (EDT) In-Reply-To: <21310.75.39.61.37.1213210741.squirrel@cjm.myvnc.com> (Christopher J. Madsen's message of "Wed, 11 Jun 2008 13:59:01 -0500 (CDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered HAS_X_HELO=0, RV3038=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 13 Jun 2008 13:07:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18365 Archived-At: severity 385 minor thanks > I thought about something like that. The problem is that current versions > of Emacs would have no idea what to do with a return value that's not an > integer. I use a variety of Emacs versions on a number of machines. The > indent function would have to check emacs-version and change the return > value accordingly. That's always a mess. I understand, but a variable like you suggests makes it impossible to have the special indentation you want together with the auto-alignment for other comment cases. I don't want a half solution, just to make the transition easier. You're trading off a minor short term gain again a long term loss. Stefan