From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47162: Mouse Wheel Won't Work When Emacs Built without Any Window System Date: Fri, 30 Jul 2021 09:32:22 +0100 Message-ID: <87o8akxkvd.fsf@tcd.ie> References: <2774d41f.9c06.178365811f7.Coremail.johnson9009@163.com> <874kh9t4pw.fsf@gnus.org> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?UTF-8?Q?=E5=BC=A0=E5=BC=BA?= , 47162@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 30 10:33:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Nx7-0003M7-RO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 10:33:10 +0200 Original-Received: from localhost ([::1]:45670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9Nx6-0003VF-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 04:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Nx0-0003V4-4x for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 04:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9Nwz-0007BL-UI for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 04:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9Nwz-0004dE-SL for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 04:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jul 2021 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47162 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47162-submit@debbugs.gnu.org id=B47162.162763395317250 (code B ref 47162); Fri, 30 Jul 2021 08:33:01 +0000 Original-Received: (at 47162) by debbugs.gnu.org; 30 Jul 2021 08:32:33 +0000 Original-Received: from localhost ([127.0.0.1]:58972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9NwW-0004Th-86 for submit@debbugs.gnu.org; Fri, 30 Jul 2021 04:32:32 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:45849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9NwU-0004OM-8p for 47162@debbugs.gnu.org; Fri, 30 Jul 2021 04:32:31 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id l11-20020a7bcf0b0000b0290253545c2997so5836665wmg.4 for <47162@debbugs.gnu.org>; Fri, 30 Jul 2021 01:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=xl+0B9uNQBeAbiedIK2ctR0hPYm/KL/d7wU9w1j1hos=; b=NevVB5pzBt3wGMJPlKPWP2JToRNbEepWGB+NH+niCVovnxNKCXInZMjteSkzXQcztD BsPD1gDNN7rpDFWnpa2V9RxEeA5O/0pM9P7r71UIFHVQjBgv/t7+JyEsmzQAWb8C8AO8 gxOfOHJl8fQofpyTqc7U47+0xr6GBn6OKW+/yXirmTtvbW/tNsQMX747YkfaGAZs7g9D TX7BMvl3iJSUZcJDsYqJIpazRQ7Pcnc8QK5/ZE/xVEHO0ZfsFmQHUcljJnUiK9tcWBCR afAVkn4jok/XAiJeKE9dAW/lErh49hI8Rh/i2ReOmGOiIOqNmXz68EJDMUmY0B2GG0rH TK1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=xl+0B9uNQBeAbiedIK2ctR0hPYm/KL/d7wU9w1j1hos=; b=FU8RhSIUpbkHORr3VPXkU2ZcHQOQwnoQPF4w6MTX3QNYuDwWxjvXheXvJe2u24n5Zd 2ZH4GrAi4hrFUQVHc4eQRRWZ3W+0a9f9ow/3vGY6RqxP69s0K/TYf5atpLzf6d69WU8U 3CuxVSWPLN1yvtKxi+MVfp6z3HF0bTCXFVtPjedCMCDLH1XyaSvE5LPXpCFJx9AZAXIp I4R2IoC/HYg4r+xhXtq0oz0wWFzYFUbjOTasA62yt0OrUGMKcjP3xTMlwNrJ1LXgEgdK uCt6pnWwQlrH1jsEjbK30MQT111P6d8goX4GPxNMz4wlMmMYzcF7fPt6RrtIfITa2woA /GSQ== X-Gm-Message-State: AOAM531wqYLaJqluj+y3i3vwaRWtIq4D+YKEm7Dz1uSCyp/hxwz+eJAw uxTyWM62jX6T/vgTCD7zzQ7NTw== X-Google-Smtp-Source: ABdhPJwT5Av2cCZQs79vTHknrrmkKaI0bk2KMMUJXBlVwR9JYXez5/aZ7pnVt6bdyrV/CQFM9LWPtA== X-Received: by 2002:a7b:ce89:: with SMTP id q9mr1548662wmj.156.1627633944417; Fri, 30 Jul 2021 01:32:24 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id n30sm1112100wra.1.2021.07.30.01.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 01:32:23 -0700 (PDT) In-Reply-To: <874kh9t4pw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 18 Mar 2021 06:23:39 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210877 Archived-At: Lars Ingebrigtsen writes: > =E5=BC=A0=E5=BC=BA 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, --=20 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=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --program-suffix=3D-nox --enable-checking=3Dstructs --with-file-notification=3Dyes --with-x-toolkit=3Dno --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=3Dibus 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)