unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Christopher J. Madsen" <cjm@cjmweb.net>
Cc: 385@debbugs.gnu.org
Subject: bug#385: [PATCH] comment-indent doesn't respect comment-indent-function
Date: Mon, 29 Feb 2016 15:59:01 +1100	[thread overview]
Message-ID: <87ziukw1re.fsf@gnus.org> (raw)
In-Reply-To: <20080611171102.7261.qmail@byte.local> (Christopher J. Madsen's message of "11 Jun 2008 17:11:02 -0000")

"Christopher J. Madsen" <cjm@cjmweb.net> 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





  parent reply	other threads:[~2016-02-29  4:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 17:11 bug#385: [PATCH] comment-indent doesn't respect comment-indent-function Christopher J. Madsen
2008-06-11 18:04 ` Stefan Monnier
2008-06-11 18:59   ` Christopher J. Madsen
2008-06-13 16:47     ` bug#385: [PATCH] comment-indent doesn't respect Stefan Monnier
2017-06-14  4:33   ` bug#385: [PATCH] comment-indent doesn't respect comment-indent-function npostavs
2017-07-06  2:58     ` npostavs
2016-02-29  4:59 ` Lars Ingebrigtsen [this message]
2016-03-03  5:03   ` Christopher J. Madsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziukw1re.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=385@debbugs.gnu.org \
    --cc=cjm@cjmweb.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).