emacs-devel
[Top][All Lists]
Advanced

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

Re: region-active-p


From: Juri Linkov
Subject: Re: region-active-p
Date: Tue, 11 Dec 2007 11:59:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> I came up with a better solution to the question of what region-active-p
>> should do when the region is empty: make it a user option.
>> I think that will make people happy, because I expect most users will
>> have the same preference for all the commands.
>>
>> I will install it when I have a good connection.
>
> To be more precisely: For the special case "region
> exist but empty" XEmacs has already the function
> `region-exists-p'. `region-active-p' fails in
> that case and I see no reason to make things more
> complicated at this point.
>
> It's quite easy to follow in both cases, remaining
> differences caused by routines below will not be
> remarkable by users as was stated correctly.

`region-exists-p' in XEmacs would be equivalent in Emacs to:

(defun region-exists-p ()
    (not (null mark-active)))

I don't see how this is comparable to `region-active-p'
with "region exist but empty" in Emacs.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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