all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#47162: Mouse Wheel Won't Work When Emacs Built without Any Window System
@ 2021-03-15 14:44 张强
  2021-03-18  5:23 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: 张强 @ 2021-03-15 14:44 UTC (permalink / raw)
  To: 47162

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

Dear All,


I found the mouse wheel can't work when I build emacs without any window system, after some investigation I found below code snippet in file "lisp/loadup.el".


(if (fboundp 'x-create-frame)
    ;; Do it after loading term/foo-win.el since the value of the
    ;; mouse-wheel-*-event vars depends on those files being loaded or not.
    (load "mwheel"))


It is strange to me, because the mouse click work well no matter left/right mouse click or double click, but the mouse wheel will not, from comments in above code snippet, it seems the package "mwheel" need to be loaded after "xxx-win.el" for the initialization of variables "mouse-wheel-*-event".
After add below code snippet to my emacs configuration file, I found the package "mwheel" can work well when the emacs built without any window system.


  (load "mwheel")
  (mouse-wheel-mode t)


so I want to know whether the package "mwheel" should be loaded without precondition?
The window system is useless for me, and most of the time the lib needed by window system is not available, so I want to build emacs with configuration options like "--without-x / --without-ns" to reduce the dependent libraries as more as possible. But mouse wheel is important to me, it is very useful especially I discuss problem with my colleagues and they want scroll my emacs screen temporarily.




Thanks.




--

Best Regards,

Qiang Zhang



[-- Attachment #2: Type: text/html, Size: 4525 bytes --]

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

end of thread, other threads:[~2021-08-04  6:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 14:44 bug#47162: Mouse Wheel Won't Work When Emacs Built without Any Window System 张强
2021-03-18  5:23 ` Lars Ingebrigtsen
2021-07-30  8:32   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-30 10:57     ` Eli Zaretskii
2021-07-30 15:53       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-30 10:59     ` Lars Ingebrigtsen
2021-07-30 15:54       ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-30 16:02         ` Lars Ingebrigtsen
2021-07-30 16:30           ` Lars Ingebrigtsen
2021-07-31 13:15           ` Eli Zaretskii
2021-07-31 14:14             ` Lars Ingebrigtsen
2021-07-31 14:24               ` Eli Zaretskii
2021-07-31 17:10                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-31 17:18                   ` Eli Zaretskii
2021-07-31 18:07                   ` Lars Ingebrigtsen
2021-07-31 18:09                     ` Lars Ingebrigtsen
2021-08-02  4:39                       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-04  6:11                         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.