From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Will Farrington <wcfarrington@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: comment-dwim has no behavior to comment out the current line without a region
Date: Tue, 09 Dec 2008 13:40:15 -0500 [thread overview]
Message-ID: <jwvhc5dxkmu.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <D2129C42-3116-49C3-BAEF-F4352DACBD52@gmail.com> (Will Farrington's message of "Tue, 9 Dec 2008 01:06:56 -0500")
> The proposed diff adds the following additional behavior:
> If the point is at `line-beginning-position' (and the region is inactive),
> call `comment-region'
> on the whole line (unless the line consists of comments, in which
> case it calls `uncomment-region').
Sadly, BOL is a very common starting point to perform comment-indent,
which is what M-; does currently (and has done for ages) instead of
commenting out a region.
So I don't think this new behavior is compatible with the current use of
M-;.
Stefan
next prev parent reply other threads:[~2008-12-09 18:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 6:06 comment-dwim has no behavior to comment out the current line without a region Will Farrington
2008-12-09 8:28 ` Will Farrington
2008-12-09 9:22 ` Will Farrington
2008-12-09 12:40 ` Eli Zaretskii
2008-12-09 18:27 ` Stefan Monnier
2008-12-09 22:54 ` Eli Zaretskii
2008-12-09 18:40 ` Stefan Monnier [this message]
2008-12-09 18:50 ` Will Farrington
2008-12-09 19:48 ` Stefan Monnier
2008-12-09 20:03 ` Will Farrington
2008-12-10 12:22 ` Will Farrington
2008-12-11 15:27 ` Stefan Monnier
2008-12-11 18:26 ` Ted Zlatanov
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=jwvhc5dxkmu.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=wcfarrington@gmail.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.