|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] master 134ba45: Allow two mouse functions to work with Rectangle Mark mode |
Date: | Tue, 30 Oct 2018 08:52:05 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Right, to use cl-defgeneric, the region would need to be represented > with different types of objects depending on the region type (from > what I understand about the mechanics of cl-defgeneric). The dispatch can also be done based on a particular value. E.g. (cl-defmethod reactivate-mark ((marktype (eql t))) ;; Normal mark, nothing special to do. ) (cl-defmethod reactivate-mark ((marktype (eql rectangle))) ;; Rectangular mark (rectangle-mark-mode)) ... -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |