From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#385: [PATCH] comment-indent doesn't respect comment-indent-function Date: Mon, 29 Feb 2016 15:59:01 +1100 Message-ID: <87ziukw1re.fsf@gnus.org> References: <20080611171102.7261.qmail@byte.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456722028 27809 80.91.229.3 (29 Feb 2016 05:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 05:00:28 +0000 (UTC) Cc: 385@debbugs.gnu.org To: "Christopher J. Madsen" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 06:00:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaFwJ-0004D4-9y for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 06:00:11 +0100 Original-Received: from localhost ([::1]:34070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaFwI-00047h-Ls for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 00:00:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaFwD-00043k-SP for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 00:00:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaFwA-00009w-NC for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 00:00:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaFwA-00009r-Kj for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 00:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaFwA-0001hQ-F3 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 00:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 385-submit@debbugs.gnu.org id=B385.14567219706432 (code B ref 385); Mon, 29 Feb 2016 05:00:02 +0000 Original-Received: (at 385) by debbugs.gnu.org; 29 Feb 2016 04:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:51348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaFve-0001fg-HS for submit@debbugs.gnu.org; Sun, 28 Feb 2016 23:59:30 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36306) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaFvd-0001fY-4k for 385@debbugs.gnu.org; Sun, 28 Feb 2016 23:59:29 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aaFvF-0002KU-6c; Mon, 29 Feb 2016 05:59:05 +0100 In-Reply-To: <20080611171102.7261.qmail@byte.local> (Christopher J. Madsen's message of "11 Jun 2008 17:11:02 -0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aaFvF-0002KU-6c MailScanner-NULL-Check: 1457326746.65769@/2WYFFrRcExiy+4akQmHMQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114091 Archived-At: "Christopher J. Madsen" writes: > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > It appears that comment-indent changed in 22.1. It gained some code > to attempt to align the comment with those on surrounding lines. > Unfortunately, this made it impossible to do certain things with > comment-indent-function. > > For example, I had a custom indent function that placed comments > immediately after a closing brace. However, in Emacs 22, I'd see this: > > while (1) { > while (2) { > > } # end 2 <-- this comment placed correctly > } # end 1 <-- this comment was aligned with the previous one > > instead of this: > > while (1) { > while (2) { > > } # end 2 > } # end 1 <-- here's where comment-indent-function placed it Is this still an issue in Emacs 25? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no