From unknown Fri Aug 15 15:34:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4127 <4127@debbugs.gnu.org> To: bug#4127 <4127@debbugs.gnu.org> Subject: Status: 23.1; mwheel in --daemon mode Reply-To: bug#4127 <4127@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:34:01 +0000 retitle 4127 23.1; mwheel in --daemon mode reassign 4127 emacs submitter 4127 John Prevost severity 4127 normal thanks From prevost1@cert.org Tue Aug 11 10:34:22 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Aug 2009 17:34:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7BHYKBW003438 for ; Tue, 11 Aug 2009 10:34:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MavEq-00041n-BV for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:34:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MavEl-0003ur-9Q for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:34:19 -0400 Received: from [199.232.76.173] (port=38892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MavEl-0003uZ-58 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:34:15 -0400 Received: from telperion.wv.cc.cmu.edu ([128.237.240.133]:53538) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MavEk-0005bm-Lw for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:34:14 -0400 Received: by TELPERION.WV.CC.CMU.EDU (Postfix, from userid 501) id C530E4B471A; Tue, 11 Aug 2009 13:34:08 -0400 (EDT) From: John Prevost To: bug-gnu-emacs@gnu.org Subject: 23.1; mwheel in --daemon mode User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (darwin) Date: Tue, 11 Aug 2009 13:34:08 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When emacs is started in --daemon mode, the window-system variable is initially 'nil'. In mwheel.el, mouse-wheel-down-event and mouse-wheel-up-event are bound with defcustom declarations like the following: (defcustom mouse-wheel-down-event ;; In the latest versions of XEmacs, we could just use mouse-%s as well. (if (memq window-system '(w32 ns)) 'wheel-up (intern (format (if (featurep 'xemacs) "button%s" "mouse-%s") mouse-wheel-down-button))) "Event used for scrolling down." :group 'mouse :type 'symbol :set 'mouse-wheel-change-button) Since these run before any terminal is created in the --daemon case, window-system may not be set to anything at all. It is possible that this is a bug in mwheel, and that mwheel (and other packages) should take care not to make use of the window-system variable until startup. (This may be particularly important if it's possible for a single emacs binary to have support for multiple window systems.) It is possible that a better solution to the problem that mwheel solves above would be for either term/x-win.el to define-key mouse-4 and mouse-5 to wheel-up and wheel-down, or for term/w32-win.el and term/ns-win.el to define-key wheel-up and wheel-down to mouse-4 and mouse-5, so that mwheel and other packages can use the same symbol on all window systems. Either way, the current state of the world is that --daemon results in a non-functional mouse wheel on w32 and ns. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Users/prevost1/Documents/src/emacs-23.1/nextstep/Emacs.app/Contents/Resources/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-08-07 on TELPERION.WV.CC.CMU.EDU Windowing system distributor `Apple', version 10.3.949 configured using `configure '--prefix=/opt/emacs-23.1' '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-x r e p o r t M-x r e p o t r t - e m Recent messages: Loading /Users/prevost1/Documents/src/elisp/nxml-mode/rng-auto.el (source)...done Loading /Users/prevost1/Documents/src/elisp/mercurial.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Terminal setup done kill-region: The mark is not set now, so there is no region From rgm@gnu.org Tue Aug 11 12:27:08 2009 Received: (at control) by emacsbugs.donarmstrong.com; 11 Aug 2009 19:27:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7BJR7tg016020 for ; Tue, 11 Aug 2009 12:27:08 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mawzy-0002TF-IF; Tue, 11 Aug 2009 15:27:06 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19073.50698.463603.40432@fencepost.gnu.org> Date: Tue, 11 Aug 2009 15:27:06 -0400 From: Glenn Morris To: control Subject: control merge 4122 4125 reassign 4113 emacs,ns merge 4124 4127 reassign 4128 emacs,ns From unknown Fri Aug 15 15:34:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Sep 2009 14:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator