emacs-devel
[Top][All Lists]
Advanced

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

Re: region-active-p


From: Stefan Monnier
Subject: Re: region-active-p
Date: Sun, 28 Oct 2007 21:40:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>     I expect the opposite makes more sense:
>        (defun region-active-p (&optional allow-empty)
>        "Return non-nil if the region is active.
>        Optional argument ALLOW-EMPTY non-nil means that an empty region
>        may also be considered as active."
>        ...)

>     This is because in most cases we've seen we want to treat empty regions as
>     inactive.

> I agree this would be better.  I made my proposal the way I did
> because it is an upward compatible change for XEmacs.  But if that is
> not a factor in the decision, let's define the argument as you suggest.

As I said elsewhere, I do not think compatibility is an issue because the
potential difference will only cause different behavior for the user, but
will not cause bugs.


        Stefan




reply via email to

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