all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: comment-dwim and indentation
Date: Fri, 14 Sep 2007 23:26:58 +0100	[thread overview]
Message-ID: <m2veacc28d.fsf@cam.ac.uk> (raw)
In-Reply-To: 200709142206.l8EM6alv029627@oogie-boogie.ics.uci.edu

On 2007-09-14 23:06 +0100, Dan Nicolaescu wrote:
> comment-dwim is great, it has one wrinkle though: it places the
> comments in column 0. So if one comments out a region in a C function
> and then reindents the function, all the comments will be indented. 
>
> Wouldn't it be better if comment-dwim would try to put comments at the
> right indentation level so that reindenting would become an nop? 
> (I don't know how feasible this would be, but asking doesn't hurt :-)

I agree. It would be much better this way.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

=>             "(require 'cl) considered harmful" considered harmful
=>           http://dto.freeshell.org/blog/blog-2007-09-07-2323.html

  reply	other threads:[~2007-09-14 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14 22:06 comment-dwim and indentation Dan Nicolaescu
2007-09-14 22:26 ` Leo [this message]
2007-09-15  1:23 ` Stefan Monnier
2007-09-15  7:33   ` Leo

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=m2veacc28d.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.