unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: warren.l.dodge@tektronix.com
Cc: emacs-pretest-bug@gnu.org
Subject: Re: perl-mode problem in C-x ;  comment-set-column
Date: Thu, 27 Sep 2007 16:46:51 -0400	[thread overview]
Message-ID: <jwv3awzn8ts.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200709262040.l8QKen6B032305@lwe127084.cse.tek.com> (Warren L. Dodge's message of "Wed\, 26 Sep 2007 13\:40\:49 -0700")

> If you take the file I send as is and do
> emacs-22.0.990  -Q filename
> C-x(C-s#<cr><esc>;C-aC-nC-x)

> I.E. define a macro to search for #, stop the search, do <esc>; , and then
> move to the next line beginning.

> Then execute that macro for the whole buffer you will see (at least I do )
> that the lines do not change

Oh, yes I see it now.  The explanation for the behavior is that it prefers
to align with a comment on the next line (or previous line, but the crucial
part is that it also looks at the next), so it will tend to align comments
on successive lines together rather than align them with comment-column.

This has been fixed on the trunk where M-; still looks at subsequent lines
to try and make sure blocks of comments can be aligned, but where M-;
doesn't actually align with subsequent lines, only with the previous line.

Maybe this change should be backported to the 22 branch?


        Stefan

  reply	other threads:[~2007-09-27 20:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  3:12 perl-mode problem in C-x ; comment-set-column Warren L Dodge
2007-09-26 20:09 ` Stefan Monnier
2007-09-26 20:40   ` Warren L Dodge
2007-09-27 20:46     ` Stefan Monnier [this message]
2007-09-28 19:03       ` Richard Stallman
2007-09-28 20:20         ` Stefan Monnier

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=jwv3awzn8ts.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=warren.l.dodge@tektronix.com \
    /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).