[Top][All Lists]

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

Re: address@hidden: [patch] factor out comment-or-uncomment feature from

From: Stefan Monnier
Subject: Re: address@hidden: [patch] factor out comment-or-uncomment feature from comment-dwim]
Date: Wed, 10 Apr 2002 12:36:53 -0400

>     On a related note:
>     how about a transient form of transient-mark-mode ?
>     We agreed that it would be desirable a while back, but the concrete 
> details
>     weren't clear at the time.  I have a more concrete proposal now:
> How would you use this?

With transient-mark-mode, you can do

        C-SPC ...move... M-;

With the code I sent, people who don't have transient-mark-mode turned on
can still use the comment-region behavior of M-; by doing:

        M-x mark-and-highlight RET ...move... M-;
        C-SPC ...move... M-x activate-and-highlight-region RET M-;

This could also be used with other functions who operate on the
region only when transient-mark-mode is turned ON.

Both mark-and-highlight and activate-and-highlight-region are useful and
they should both be provided.  The question is mostly where to bind those
two commands.  I wish mark-and-highlight could be bound to something
similar to C-u SPC and I think that activate-and-highlight-region could
be bound to C-u C-x C-x.


reply via email to

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