GNU bug report logs -
#51557
27.2; `mouse-1' with `cua-rectangle-mark-mode'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 1 Nov 2021 19:15:02 UTC
Severity: minor
Tags: moreinfo
Found in version 27.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Drew Adams <drew.adams <at> oracle.com> writes:
> M-x cua-rectangle-mark-mode ; (after selecting a region or not)
>
> Click `mouse-1' somewhere. No effect, it seems. The mode remains in
> effect (same key help is displayed).
>
> Click `mouse-1' again (anywhere). It seems that that exits
> `cua-rectangle-mode'.
It seems like the intention is to re-start the rectangle on mouse-1? I
don't use the mode either, but that does seem to make sense to me.
(defun cua-mouse-set-rectangle-mark (event)
"Start rectangle at mouse click position."
(interactive "e")
(when cua--rectangle
(cua--deactivate-rectangle)
(cua--deactivate t))
(setq cua--last-rectangle nil)
(mouse-set-point event)
;; FIX ME -- need to calculate virtual column.
(cua-set-rectangle-mark)
(setq cua--buffer-and-point-before-command nil)
(setq cua--mouse-last-pos nil))
And I guess the "FIX ME" is part of the problem here. Anybody else got
any insights here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 172 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.