emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 134ba45: Allow two mouse functions to work with


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 134ba45: Allow two mouse functions to work with Rectangle Mark mode
Date: Sat, 27 Oct 2018 20:30:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> By implementing `reactivate-mark-function` alone, the problem of not
> knowing the region type would still remain. If we store the region
> type instead, then the value could be read directly, and
> `reactivate-mark` could be implemented as:
>
> (defun reactivate-mark ()
>   (pcase region-type
>     ('normal ...)
>     ('rectangle ...)
>      ...))

We don't want the code to list the finite set of known region types, I think.

We could try and make it a cl-defgeneric, but we need something on which
to dispatch.


        Stefan



reply via email to

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