unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: comment-dwim has no behavior to comment out the current line without a region
Date: Thu, 11 Dec 2008 12:26:29 -0600	[thread overview]
Message-ID: <861vwetvoq.fsf@lifelogs.com> (raw)
In-Reply-To: jwv3aguag52.fsf-monnier+emacs@gnu.org

On Thu, 11 Dec 2008 10:27:04 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

>> On second inspection, C-M-; is not bound by default.
>> How would you feel about binding the following function to that keybinding?

SM> To tell you the truth, I'm not very enthusiastic at the idea of using
SM> one of the few remaining bindings for such a small feature.  I'd much
SM> rather provide a "mark-line" key that could then be combined with M-; to
SM> comment out the current line (since it would then be usable in other
SM> contexts as well).

SM> I think that M-; M-; holds more promise.

Also it's less painful (in terms of finger contortion) to do M-; twice,
and it will work on all terminals with the ESC key for Meta, so I like
it much better.

Ted





      reply	other threads:[~2008-12-11 18:26 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
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 [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

  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=861vwetvoq.fsf@lifelogs.com \
    --to=tzz@lifelogs.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 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).