From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Prevost Newsgroups: gmane.emacs.bugs Subject: bug#4124: 23.1; mwheel in --daemon mode Date: Tue, 11 Aug 2009 11:47:55 -0400 Message-ID: Reply-To: John Prevost , 4124@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250009673 24132 80.91.229.12 (11 Aug 2009 16:54:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 16:54:33 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 11 18:54:27 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MaucC-0005Sh-Gz for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Aug 2009 18:54:25 +0200 Original-Received: from localhost ([127.0.0.1]:42619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaucA-0004v6-RQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Aug 2009 12:54:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MatsG-0005IC-VY for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 12:06:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MatsC-0005Gg-I4 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 12:06:56 -0400 Original-Received: from [199.232.76.173] (port=43636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MatsC-0005GT-15 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 12:06:52 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57458) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MatsB-0008Lt-5D for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 12:06:51 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7BG6mRP026815; Tue, 11 Aug 2009 09:06:49 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7BFt5Vd024751; Tue, 11 Aug 2009 08:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: John Prevost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 11 Aug 2009 15:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4124 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125000569324174 (code B ref -1); Tue, 11 Aug 2009 15:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Aug 2009 15:48:13 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 n7BFm7Vh024169 for ; Tue, 11 Aug 2009 08:48:09 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mata2-0001bV-JC for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 11:48:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MatZx-0001ZX-IB for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 11:48:05 -0400 Original-Received: from [199.232.76.173] (port=43888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MatZx-0001ZQ-0j for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 11:48:01 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:13103) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MatZv-0003LN-VF for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 11:48:00 -0400 Original-Received: from telperion.wv.cc.cmu.edu ([128.237.240.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MatZs-0008L7-Gg for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 11:47:56 -0400 Original-Received: by TELPERION.WV.CC.CMU.EDU (Postfix, from userid 501) id 2E9614B4315; Tue, 11 Aug 2009 11:47:55 -0400 (EDT) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (darwin) X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 11 Aug 2009 12:06:56 -0400 X-Mailman-Approved-At: Tue, 11 Aug 2009 12:52:26 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30103 Archived-At: 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