emacs-devel
[Top][All Lists]
Advanced

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

Re: New Context Menu and mouse-1


From: Juri Linkov
Subject: Re: New Context Menu and mouse-1
Date: Mon, 30 Aug 2021 10:22:01 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> BTW, maybe another way to look at the problem is to say that
>> invoking the context-menu should not exit the transient map (but this
>> may come with its own set of problems, of course).
>
> +         (when (memq (car-safe last-input-event) '(mouse-1 drag-mouse-1))
> +           (deactivate-mark)
> +           (pop-mark))))))

Or rather

+         (unless (and context-menu-mode
+                      (eq (car-safe (aref (this-command-keys-vector) 0))
+                          'down-mouse-3))
+           (deactivate-mark)
+           (pop-mark))))))



reply via email to

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