all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: emacs-devel@gnu.org
Subject: comment-dwim and indentation
Date: Fri, 14 Sep 2007 15:06:36 -0700	[thread overview]
Message-ID: <200709142206.l8EM6alv029627@oogie-boogie.ics.uci.edu> (raw)


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 :-)

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14 22:06 Dan Nicolaescu [this message]
2007-09-14 22:26 ` comment-dwim and indentation Leo
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=200709142206.l8EM6alv029627@oogie-boogie.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --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.