all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 张强 <johnson9009@163.com>, 47162@debbugs.gnu.org
Subject: bug#47162: Mouse Wheel Won't Work When Emacs Built without Any Window System
Date: Fri, 30 Jul 2021 09:32:22 +0100	[thread overview]
Message-ID: <87o8akxkvd.fsf@tcd.ie> (raw)
In-Reply-To: <874kh9t4pw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 18 Mar 2021 06:23:39 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 张强 <johnson9009@163.com> writes:
>
>> 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?
>
> I'm not sure that preloading the mwheel package in non-window builds is
> optimal (I think a minority of users use mwheel in non-window builds).
> But the mode should be autoloaded, at least, so that you don't have to
> say (load "mwheel") to use it.
>
> I've now made this change in Emacs 28.

FYI, as a result of this change mwheel is now effectively preloaded even
--without-x, in the sense that (featurep 'mwheel) returns non-nil even
when starting nox builds with -Q (see my signature for details).

Bother or feature?

Thanks,

-- 
Basil

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu)
 of 2021-07-30 built on tia
Repository revision: 5fb8b20fa35a931660d9d59afc9ca863dd33a123
Repository branch: master
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache
 --prefix=/home/blc/.local --program-suffix=-nox
 --enable-checking=structs --with-file-notification=yes
 --with-x-toolkit=no --without-x'

Configured features:
ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES
NOTIFY INOTIFY PDUMPER SECCOMP SOUND THREADS XIM ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  mouse-wheel-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail tool-bar
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv
bytecomp byte-compile cconv regexp-opt mwheel iso-transl tooltip eldoc
                                       ^^^^^^
electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list
replace newcomment text-mode elisp-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev
obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote threads
dbusbind inotify lcms2 multi-tty make-network-process emacs)





  reply	other threads:[~2021-07-30  8:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8akxkvd.fsf@tcd.ie \
    --to=bug-gnu-emacs@gnu.org \
    --cc=47162@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=johnson9009@163.com \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.