all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Zimmerman <bayard@newsguy.com>
Subject: Re: comment-kill and the state of the world
Date: 30 Oct 2003 15:59:52 -0800	[thread overview]
Message-ID: <87fzhauvif.fsf@newsguy.com> (raw)
In-Reply-To: jwvsmlipgvc.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca


Ian> I'd tried that.  comment-indent then leaves point in the wrong
Ian> place (right before the second hyphen).

Stefan> But that's the case as well if you call `comment-indent' with a
Stefan> pre-existing comment, right?  So it's an unrelated bug which
Stefan> comment-padding-foo would not fix (one I remember fixing a while
Stefan> back, but probably only in Emacs-CVS).  What was happening is
Stefan> that comment-indent skips the comment starter and the leading
Stefan> spaces to get to the actual content of the comment, but with an
Stefan> empty comment, that tends to leave you right before the
Stefan> commend-end which is not what you want when there's padding.

Ian> Even if the two branches can be made to behave the same now, the
Ian> more they change the harder it will be to achieve that.

Stefan> Feel free to write the patch for it.  It already took
Stefan> significant effort to get things as they are, such that it all
Stefan> works the way all the major modes expect it, including using
Stefan> various combinations of comment-start, comment-end,
Stefan> block-comment-start, block-comment-end, comment-multi-line,
Stefan> various ways to call auto-fill, ...

Stefan> And don't forget to come up with a good argument to convince RMS
Stefan> that it's worth it to change the behavior of comment-indent (he
Stefan> happens to like code duplication, as odd as it sounds to most of
Stefan> us).

Stefan> A new pair of eyes will surely help to simplify the code, tho.

OK, looks like there's hope :-)

-- 
"Rap music is our punishment for neglecting music education."
An anonymous teacher

      reply	other threads:[~2003-10-30 23:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16 17:54 comment-kill and the state of the world Ian Zimmerman
2003-10-16 19:11 ` Stefan Monnier
2003-10-17 16:37   ` Ian Zimmerman
2003-10-17 20:01     ` Stefan Monnier
2003-10-18 17:42       ` Ian Zimmerman
2003-10-19 23:14         ` Stefan Monnier
2003-10-23 22:01           ` Ian Zimmerman
2003-10-24 15:41             ` Stefan Monnier
2003-10-24 17:17               ` Ian Zimmerman
2003-10-24 19:48                 ` Stefan Monnier
2003-10-30 23:59                   ` Ian Zimmerman [this message]

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

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

  git send-email \
    --in-reply-to=87fzhauvif.fsf@newsguy.com \
    --to=bayard@newsguy.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.