[Top][All Lists]

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

Re: [External] : Re: Fix for `use-region-p' problem [was: Elisp test f

From: address@hidden
Subject: Re: [External] : Re: Fix for `use-region-p' problem [was: Elisp test for whether `mouse-1' is pressed?]
Date: Tue, 9 Nov 2021 17:58:52 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Nov 09, 2021 at 04:17:01PM +0000, Drew Adams wrote:
> > Oh, I think I get it now. So I did the following experiment:
> > 
> >   (setq my-timer
> >         (run-with-timer 0 0.05
> >                         (lambda()
> >                           (message "%s  REG=%s"
> >                                    (current-time-string)
> >                                    (use-region-p)))))
> ...
> Cool.  Thanks for trying, and looking into it.
> > Now while the above is running, when I click with mouse-1, REG
> > says "nil" /until/ I move the mouse far enough that the region
> > is at least one char wide: then REG says t. If I go back to the
> > starting point (while keeping mouse-1 down all the time), REG
> > says nil again.
> That's exactly right.  That's the point of the fix.
> I know that you're talking about using that recipe
> _without_ the fix.  And you're right, in what you say.
> But only when option `use-empty-active-region' is nil.

Oh, now I see it, too. Thanks.

In this light, I'd think your fix makes sense.

 - t

Attachment: signature.asc
Description: Digital signature

reply via email to

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