Re: mode line mouse-2 problems
Michael Heerdegen <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Perry Smith <[email protected]> writes: > I’m on macOS 26.4.1 using Emacs 30.2. My laptop has a trackpad. I > start emacs with “emacs -q” from the command line. Then I do Esc-: > (define-key key-translation-map (kbd "<s-mouse-1>") (kbd "<mouse-2>”)) > Then I hold the left command key and click on the (Fundamental) text > in the mode line and I get an error: mouse-delete-other-windows must > be bound to an event with parameters I don't know, but maybe your approach is too simplistic? A binding can also be a function. Like this in mouse.el: #+begin_src emacs-lisp (define-key key-translation-map [mouse-1] #'mouse--click-1-maybe-follows-link) #+end_src for example. It might be worth to try to achieve what you want using a similar function. Michael.