help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: I want to make C-d works in two ways.


From: Andreas Politz
Subject: Re: I want to make C-d works in two ways.
Date: Wed, 08 Dec 2010 15:20:59 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Elena <egarrulo@gmail.com> writes:

> On Jul 24, 9:14 pm, Andreas Politz <poli...@fh-trier.de> wrote:
>> That's easy.  Use `use-region-p' to branch to the desired command and
>> `call-interactively' for not having to bother about the arguments.
>
> Thank you very much, Andreas.
>
> Is this the recommended way to write commands which act on the region?
> Until now, I was just using `region-active-p'.

Take a look at the function doc and it'll tell you the difference.

-ap


reply via email to

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