From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47162: Mouse Wheel Won't Work When Emacs Built without Any Window System Date: Thu, 18 Mar 2021 06:23:39 +0100 Message-ID: <874kh9t4pw.fsf@gnus.org> References: <2774d41f.9c06.178365811f7.Coremail.johnson9009@163.com> 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="31464"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47162@debbugs.gnu.org To: =?UTF-8?Q?=E5=BC=A0=E5=BC=BA?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 06:24:11 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 1lMl8l-00085i-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 06:24:11 +0100 Original-Received: from localhost ([::1]:37428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMl8k-00013F-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 01:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMl8c-00012u-P2 for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 01:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMl8c-0003XB-HZ for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 01:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMl8c-00087O-Dd for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 01:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Mar 2021 05:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47162 X-GNU-PR-Package: emacs Original-Received: via spool by 47162-submit@debbugs.gnu.org id=B47162.161604503131178 (code B ref 47162); Thu, 18 Mar 2021 05:24:02 +0000 Original-Received: (at 47162) by debbugs.gnu.org; 18 Mar 2021 05:23:51 +0000 Original-Received: from localhost ([127.0.0.1]:44633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMl8R-00086o-7H for submit@debbugs.gnu.org; Thu, 18 Mar 2021 01:23:51 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:38832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMl8P-00086Z-2c for 47162@debbugs.gnu.org; Thu, 18 Mar 2021 01:23:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9wcCNxzYVTfjRUqPz8CbVzASaNYJd+BPD6BDi0HKaTo=; b=UyC1GttAPI6CCfWbJwEneYRtS9 jAEwRCe32dPTLbhh1c2PAWFmQzL6bbYLls/reEbu4VWBXZQcradnAgr8MudHr0ybQh9gewKNKEWoD p92Q3Q1SKynq26TEN7etnXtqddmUFxQFEH4cTiorHmldYFx80rMSv707674yF5KWW6Bk=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMl8G-0008Oi-K2; Thu, 18 Mar 2021 06:23:43 +0100 X-Now-Playing: Themselves's _CrownsDown_: "daxstrong" In-Reply-To: <2774d41f.9c06.178365811f7.Coremail.johnson9009@163.com> ("=?UTF-8?Q?=E5=BC=A0=E5=BC=BA?= "'s message of "Mon, 15 Mar 2021 22:44:04 +0800 (CST)") 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:202558 Archived-At: =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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no