all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Karl Chen <quarl@hkn.eecs.berkeley.edu>
Cc: emacs-devel@gnu.org, miles@gnu.org
Subject: Re: bug in comment-region
Date: Thu, 10 Jun 2004 02:11:20 -0700	[thread overview]
Message-ID: <quack.20040610T0211.j58yevlqvb@hkn.eecs.berkeley.edu> (raw)
In-Reply-To: <20040610.010621.18288090.wl@gnu.org> (Werner LEMBERG's message of "Thu, 10 Jun 2004 01:06:21 +0200 (CEST)")



I use C-u comment-region / comment-dwim all the time.  Perhaps
that functionality could be moved to M-- (negative-argument)
instead of C-u though.

(BTW: I actually use my own function `comment-line-or-region'
which is much more useful when transient-mark-mode is on)

>>> "Werner" == Werner LEMBERG <wl@gnu.org> writes:
    Werner> 
    >> Thanks.  Anyway, my suggestion w.r.t. C-u still holds --
    >> IMHO it is quite inconvenient to control the behaviour of
    >> such a versatile function with a global variable.
    >> 
    >> `comment-region' and `comment-dwim' already have a (much
    >> more useful) meaning for C-u (in fact, comment-region has
    >> several).
    Werner> 
    Werner> I haven't yet used comment-dwim, so I won't say
    Werner> something about this function.  But IMHO it is a
    Werner> strange idea to have `C-u something' do exactly the
    Werner> opposite of `something'.  Until now I've considered
    Werner> the C-u prefix as a means to get an extended or
    Werner> slightly modified functionality of a function.
    Werner> 
    Werner> Are there other commands which do the opposite if
    Werner> prefixed with C-u?
    Werner> 
    Werner> And I don't agree with your conclusion that the
    Werner> several meanings of C-u for `comment-region' are `much
    Werner> more useful'.  For me, they are useful for
    Werner> `uncomment-region' only.
    Werner> 
    Werner> 
    Werner>     Werner
    Werner> 
-- 
Karl 2004-06-10 02:07

      parent reply	other threads:[~2004-06-10  9:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 13:36 bug in comment-region Werner LEMBERG
2004-06-09 14:01 ` Karl Chen
2004-06-09 14:08   ` Werner LEMBERG
2004-06-09 14:14     ` David Kastrup
2004-06-09 14:42       ` Werner LEMBERG
2004-06-09 21:09     ` Miles Bader
2004-06-09 23:06       ` Werner LEMBERG
2004-06-10  1:36         ` Miles Bader
2004-06-10  9:11         ` Karl Chen [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=quack.20040610T0211.j58yevlqvb@hkn.eecs.berkeley.edu \
    --to=quarl@hkn.eecs.berkeley.edu \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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.