[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in comment-region

From: Karl Chen
Subject: Re: bug in comment-region
Date: Thu, 10 Jun 2004 02:11:20 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

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 <address@hidden> writes:
    >> 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> 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> Are there other commands which do the opposite if
    Werner> prefixed with C-u?
    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
Karl 2004-06-10 02:07

reply via email to

[Prev in Thread] Current Thread [Next in Thread]