unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Better mouse navigation in Info-mode
@ 2024-09-20 11:31 jonas
  2024-09-20 15:54 ` [External] : " Drew Adams
  2024-09-28  9:33 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: jonas @ 2024-09-20 11:31 UTC (permalink / raw)
  To: emacs-devel


Some computer mice have additional buttons off to the side, Emacs
supports two of these additional buttons as `<mouse-8>` and `<mouse-9>`.

Conventionally, in web-browsers and similar applications these buttons
are mapped to history-backwards and history-forwards respectively.

I suggest implementing this for Info-mode by default, with:

(define-key Info-mode-map (kbd "<mouse-8>") #'Info-history-back)
(define-key Info-mode-map (kbd "<mouse-9>") #'Info-history-forward)

And similarly for other modes that have history navigation.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [External] : Better mouse navigation in Info-mode
  2024-09-20 11:31 Better mouse navigation in Info-mode jonas
@ 2024-09-20 15:54 ` Drew Adams
  2024-09-28  9:33 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2024-09-20 15:54 UTC (permalink / raw)
  To: jonas@moller.systems, emacs-devel@gnu.org

> Some computer mice have additional buttons off to the side, Emacs
> supports two of these additional buttons as `<mouse-8>` and `<mouse-9>`.
> 
> Conventionally, in web-browsers and similar applications these buttons
> are mapped to history-backwards and history-forwards respectively.
> 
> I suggest implementing this for Info-mode by default, with:
> 
> (define-key Info-mode-map (kbd "<mouse-8>") #'Info-history-back)
> (define-key Info-mode-map (kbd "<mouse-9>") #'Info-history-forward)
> 
> And similarly for other modes that have history navigation.

Dunno if relevant, but info+.el has long had this:

;; For other than `w32-win' and `ns-win', `mouse-4' and
;; `mouse-4' scroll, so cannot be used for history movement.
(when (and (boundp 'mouse-wheel-up-event) ; Emacs 22+
           (eq mouse-wheel-up-event 'wheel-down))
  (define-key Info-mode-map [mouse-4] 'Info-history-back)
  (define-key Info-mode-map [mouse-5] 'Info-history-forward))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Better mouse navigation in Info-mode
  2024-09-20 11:31 Better mouse navigation in Info-mode jonas
  2024-09-20 15:54 ` [External] : " Drew Adams
@ 2024-09-28  9:33 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2024-09-28  9:33 UTC (permalink / raw)
  To: jonas; +Cc: emacs-devel

> Date: Fri, 20 Sep 2024 11:31:26 +0000
> From: jonas@moller.systems
> 
> 
> Some computer mice have additional buttons off to the side, Emacs
> supports two of these additional buttons as `<mouse-8>` and `<mouse-9>`.
> 
> Conventionally, in web-browsers and similar applications these buttons
> are mapped to history-backwards and history-forwards respectively.
> 
> I suggest implementing this for Info-mode by default, with:
> 
> (define-key Info-mode-map (kbd "<mouse-8>") #'Info-history-back)
> (define-key Info-mode-map (kbd "<mouse-9>") #'Info-history-forward)
> 
> And similarly for other modes that have history navigation.

I don't see any harm in adding this.  Patches welcome.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-28  9:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 11:31 Better mouse navigation in Info-mode jonas
2024-09-20 15:54 ` [External] : " Drew Adams
2024-09-28  9:33 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).