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#4127: 23.1; mwheel in --daemon mode Date: Tue, 11 Aug 2009 13:34:08 -0400 Message-ID: Reply-To: John Prevost , 4127@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 1250046817 17387 80.91.229.12 (12 Aug 2009 03:13:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 03:13:37 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 12 05:13:30 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 1Mb4HJ-0002yz-DL for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Aug 2009 05:13:29 +0200 Original-Received: from localhost ([127.0.0.1]:52258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb4HG-0003d7-WB for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Aug 2009 23:13:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MavR2-0001dh-Iv for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:46:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MavQx-0001co-VJ for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:46:56 -0400 Original-Received: from [199.232.76.173] (port=47300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MavQx-0001ce-Ke for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:46:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46548) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MavQx-0000Qz-09 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2009 13:46: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 n7BHkmGN004778; Tue, 11 Aug 2009 10:46:49 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7BHe4wg004021; Tue, 11 Aug 2009 10:40:04 -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 17:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4127 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12500120623441 (code B ref -1); Tue, 11 Aug 2009 17:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Aug 2009 17:34:22 +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 n7BHYKBW003438 for ; Tue, 11 Aug 2009 10:34:22 -0700 Original-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 Original-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 Original-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 Original-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 Original-Received: by TELPERION.WV.CC.CMU.EDU (Postfix, from userid 501) id C530E4B471A; Tue, 11 Aug 2009 13:34:08 -0400 (EDT) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (darwin) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 11 Aug 2009 13:46:56 -0400 X-Mailman-Approved-At: Tue, 11 Aug 2009 23:13:11 -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:30118 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