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 16:54:04 +0100 Message-ID: <874kcbvlur.fsf@tcd.ie> References: <2774d41f.9c06.178365811f7.Coremail.johnson9009@163.com> <874kh9t4pw.fsf@gnus.org> <87o8akxkvd.fsf@tcd.ie> <87eebgqd7w.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="26161"; 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 17:55:25 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 1m9Ur5-0006S7-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 17:55:23 +0200 Original-Received: from localhost ([::1]:57100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9Ur3-0007xR-Iy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 11:55:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Uqk-0007xA-M5 for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 11:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9Uqk-0000N9-ET for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9Uqk-0007yO-EX for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2021 11:55:02 -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 15:55:02 +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.162766045330562 (code B ref 47162); Fri, 30 Jul 2021 15:55:02 +0000 Original-Received: (at 47162) by debbugs.gnu.org; 30 Jul 2021 15:54:13 +0000 Original-Received: from localhost ([127.0.0.1]:60729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Upx-0007wr-AB for submit@debbugs.gnu.org; Fri, 30 Jul 2021 11:54:13 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:37803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Upv-0007wU-Cn for 47162@debbugs.gnu.org; Fri, 30 Jul 2021 11:54:11 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id d8so11882712wrm.4 for <47162@debbugs.gnu.org>; Fri, 30 Jul 2021 08:54:11 -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=yk9GmHtNs3d78rK3odP0HZfFXye4X6ydLLyqkQ0vQfU=; b=RCK9CwBKseDnSdkm/zCKmtslMzF9Akmm09of/5u5shrSj3AtGAMlkeNlY8FLQqZTIS kbTd2qCCN/INSovZbS4zASYvgHMBipUZIr+nFQvp++dKCNq6dwDnoT6z1v+8vvToAWCP yUSzH4++CnDZw+/MD5R4ESRtly8UTNvJKfN/xjAwwgA/29CU41pORAvy6yPxlWtKxOha VLoK70pnWXVRI3U3bQTCnG1vIuvFpDzGXr2NkRhWGof1HA3LbA5Rucw0EfXeHEthzbdo /+nCtWlq73gsJcDarfdZj789kuEr52F0Iao8GgUB3zOdXnH+1b6rRzT+58nDBC1Mlv1Q cu/g== 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=yk9GmHtNs3d78rK3odP0HZfFXye4X6ydLLyqkQ0vQfU=; b=E5uuPQ7kySK1tELWCc9vISQMsTdQdAesGEvywe8Jl1GYfQjqVLgmvlbTWv9E21Uxr/ lO5qw+oACO3ppqzlodco49poh2d2gAD/VNal+UwhXbvoGmYgZVCj6GplVS7DlWSUU8P8 TBUUfDpVKKgH7avyMwiX7HKX+6NgIij/z9mtkQZu708zNgROPSAGn3BxdcqviI24nyJQ NFJcTBZ31Nati5LGlhB+8DNLX56qEBtxB/rYmAuPO0dtCN1Vnzo2j86PaFiYmlc3rPuK ALzJR62rrjtoegXQd25bpAVwkQQL07aCq8AU+5GtwN4pNyTirxXjB8fR6au6GXYSPw7x vG9A== X-Gm-Message-State: AOAM532F9UkSgT207KIHtU327Qfmp3PIoIblOAyLBMU5KgLIoYq2o0Gi jNyLefYJ+Wff9djN9HlWc4Tdvg== X-Google-Smtp-Source: ABdhPJy4rkNhGEig7jLo7j30aVi+bxPGs12qrjHxnJ9F7okSgPiCHPgyhyZPHTTrJxoCIU4QZns8Yg== X-Received: by 2002:adf:ea52:: with SMTP id j18mr3782427wrn.294.1627660445663; Fri, 30 Jul 2021 08:54:05 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id h16sm2084676wre.52.2021.07.30.08.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 08:54:05 -0700 (PDT) In-Reply-To: <87eebgqd7w.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 30 Jul 2021 12:59:31 +0200") 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:210918 Archived-At: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> 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? > > Sounds like a bug -- I don't understand how adding an ;;;###autoload to > a function would lead to Emacs being pre-built with the .el file the > function exists in. Unless there's something checking for that function > during the build and then loading mwheel? Didn't see anything like that > in loadup.el... My guess is the salient difference lies in lisp/loaddefs.el, where autoload cookie results in the following additions: --8<---------------cut here---------------start------------->8--- (defcustom mouse-wheel-mode t "\ Non-nil if Mouse-Wheel mode is enabled. See the `mouse-wheel-mode' command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node `Easy Customization') or call the function `mouse-wheel-mode'." :set #'custom-set-minor-mode :ini= tialize 'custom-initialize-delay :group 'mouse :type 'boolean) (custom-autoload 'mouse-wheel-mode "mwheel" nil) (autoload 'mouse-wheel-mode "mwheel" "\ Toggle mouse wheel support (Mouse Wheel mode). If called interactively, toggle `Mouse-Wheel mode'. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is `toggle'. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. The mode's hook is called both when the mode is enabled and when it is disabled. \(fn &optional ARG)" t nil) --8<---------------cut here---------------end--------------->8--- BTW, another way to tell that mwheel is now being loaded is that the following warnings disappear following the autoload in nox builds: --8<---------------cut here---------------start------------->8--- In edmacro-fix-menu-commands: edmacro.el:625:34: Warning: reference to free variable =E2=80=98mouse-wheel-down-event=E2=80=99 edmacro.el:625:57: Warning: reference to free variable =E2=80=98mouse-wheel= -up-event=E2=80=99 edmacro.el:626:34: Warning: reference to free variable =E2=80=98mouse-wheel-right-event=E2=80=99 edmacro.el:627:34: Warning: reference to free variable =E2=80=98mouse-wheel-left-event=E2=80=99 --8<---------------cut here---------------end--------------->8--- --=20 Basil