From Peter_Dyballa@GMX.DE Sun Nov 15 06:40:13 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Nov 2009 14:40:14 +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 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 nAFEeC6O017312 for ; Sun, 15 Nov 2009 06:40:13 -0800 Received: from mail.gnu.org ([199.232.76.166]:60484 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N9gGw-0002Up-JH for emacs-pretest-bug@gnu.org; Sun, 15 Nov 2009 09:40:10 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N9gGt-0003BQ-RU for emacs-pretest-bug@gnu.org; Sun, 15 Nov 2009 09:40:10 -0500 Received: from mail.gmx.net ([213.165.64.20]:36819) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N9gGt-0003Am-5d for emacs-pretest-bug@gnu.org; Sun, 15 Nov 2009 09:40:07 -0500 Received: (qmail invoked by alias); 15 Nov 2009 14:40:03 -0000 Received: from p5B23F0F3.dip.t-dialin.net (EHLO [192.168.1.2]) [91.35.240.243] by mail.gmx.net (mp014) with SMTP; 15 Nov 2009 15:40:03 +0100 X-Authenticated: #27706302 X-Provags-ID: V01U2FsdGVkX18PTR4pvp8PZUxskjkamjahTGE3sxCu8ApINNE1mN l2o5j63AFCBuKx Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <14FD2A86-691C-46A8-AB7D-FB9EA91B28FF@GMX.DE> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: emacs-pretest-bug@gnu.org From: Peter Dyballa Subject: 23.1.50; C-mouse-1 undefined? Date: Sun, 15 Nov 2009 15:39:56 +0100 X-Mailer: Apple Mail (2.753.1) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Hello! I don't have a real mouse, only a trackpad. In GNU Emacs 22.3 C- mouse-1 lets pop up the Buffer Menu, GNU Emacs 23.1.50 with NS from middle of October or today shows the same behaviour. X11 client from 2009-11-08 and from 2009-11-15 show both a faulty behaviour... (since last weekend, previously, i.e., in October, they were working, popping up the menu) C-h k C-trackpad tells me: at that spot runs the command mouse-buffer-menu, which is an interactive compiled Lisp function in `mouse.el'. It is bound to . (mouse-buffer-menu EVENT) Pop up a menu of buffers for selection with the mouse. This switches buffers in the window that you clicked on, and selects that window. but when I actually control-click the trackpad I receive in echo area: " is undefined" In GNU Emacs 23.1.50.1 (powerpc-apple-darwin8.11.0, GTK+ Version 2.18.2) of 2009-11-15 on Latsche.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--without-sound' '--without-pop' '-- with-dbus' '--with-libotf' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--x-libraries=/opt/local/lib' '--x- includes=/opt/local/include' '--enable-locallisppath=/Library/ Application Support/Emacs/calendar23:/Library/Application Support/ Emacs' 'PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/opt/local/share/ pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig' 'CPPFLAGS=-no- cpp-precomp' 'CFLAGS=-ggdb3 -gfull -mtraceback=full -Wno-pointer-sign -H -pipe -fPIC -mcpu=7450 -mtune=7450 -mtune=G4 -fast -mpim-altivec - ftree-vectorize -foptimize-register-move -freorder-blocks -fthread- jumps -fpeephole -fno-crossjumping' 'LDFLAGS=-dead_strip - multiply_defined suppress'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-h k Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sendmail regexp-opt help-fns help-mode easymenu view tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gtk x-toolkit x multi-tty emacs) -- Greetings Pete These are my principles and if you don't like them... well, I have others. - Groucho Marx From Peter_Dyballa@Freenet.DE Sun Nov 15 07:21:58 2009 Received: (at 4930) by emacsbugs.donarmstrong.com; 15 Nov 2009 15:21:58 +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=-2.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mout5.freenet.de (mout5.freenet.de [195.4.92.95]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAFFLu23021398 for <4930@emacsbugs.donarmstrong.com>; Sun, 15 Nov 2009 07:21:57 -0800 Received: from [195.4.92.22] (helo=12.mx.freenet.de) by mout5.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #92) id 1N9gvL-0006fC-1j for 4930@emacsbugs.donarmstrong.com; Sun, 15 Nov 2009 16:21:55 +0100 Received: from p5b23f0f3.dip.t-dialin.net ([91.35.240.243]:64060 helo=[192.168.1.2]) by 12.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.69 #94) id 1N9gvK-0000sv-7w for 4930@emacsbugs.donarmstrong.com; Sun, 15 Nov 2009 16:21:55 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: <837FC810-6C4A-42A0-82D5-2831B300FDC0@Freenet.DE> Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed To: 4930@debbugs.gnu.org From: Peter Dyballa Subject: 23.1.50; C-mouse-1 undefined? Date: Sun, 15 Nov 2009 16:21:51 +0100 X-Mailer: Apple Mail (2.753.1) Hello! is also undefined... -- Greetings Pete If you don't find it in the index, look very carefully through the =20 entire catalogue. =96 Sears, Roebuck, and Co., Consumer's Guide, 1897 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 31 12:30:18 2009 Received: (at 4930) by debbugs.gnu.org; 31 Dec 2009 17:30:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQOqo-0000AF-3V for submit@debbugs.gnu.org; Thu, 31 Dec 2009 12:30:18 -0500 Received: from mail-ew0-f222.google.com ([209.85.219.222]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQNMC-0007mR-Ie for 4930@debbugs.gnu.org; Thu, 31 Dec 2009 10:54:37 -0500 Received: by ewy22 with SMTP id 22so14156386ewy.39 for <4930@debbugs.gnu.org>; Thu, 31 Dec 2009 07:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Ejd/EzgRWoajGf+DkX0l0f5V4QkFtd5CUjVajzEHqM0=; b=gO7quehN5bAtTFHisCcUNRGa8+63KbT1COYz5DoezlG1Q0J2lctbHVeMwuFPW7MnQk ++TvNM34cYJxDV2yyfPibABhpFNoe4VhH9IrncKZ6fEYXdZw775XfD/yxViuWH3i2avg SFo+91pdrPIez9FrP5g53WtFvJy9etdiAK/ok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=U7IOIsJZcskNUA2027ZSp5xEFp6amQLrNKZuVSXSnx+Q3obX6xfMXmSYn5060MUfYu IHSFmY83gya3+jgUYajlQoN6KsFnc62+qhGeI6XB4hxCU3WZhAZGQ00U74y7sZCEYl8/ iBYlZLAc91fj0WOAFNTfW2SAOMR5+6AlTAwG8= MIME-Version: 1.0 Received: by 10.216.89.12 with SMTP id b12mr562512wef.93.1262274871183; Thu, 31 Dec 2009 07:54:31 -0800 (PST) Date: Thu, 31 Dec 2009 17:54:30 +0200 Message-ID: <8bdc0da80912310754u5194f02bg8ad7257edfb30b30@mail.gmail.com> Subject: bug#4930 From: Clathrate Boink To: 4930@debbugs.gnu.org Content-Type: multipart/alternative; boundary=0016e6da2e7e4e4b21047c0845ff X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 4930 X-Mailman-Approved-At: Thu, 31 Dec 2009 12:30:17 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --0016e6da2e7e4e4b21047c0845ff Content-Type: text/plain; charset=ISO-8859-1 I get this too. I did a git bisect, and have found the offending change: commit 2789519cf18504fd045b3384f011184ac66b8e89 Author: Chong Yidong Date: Sat Nov 7 23:49:08 2009 +0000 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to xmenu_show. (xmenu_show): New arg. Pass it to create_and_show_popup_menu. (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup. I appreciate that emacs is using bzr, not git, but this is what I have set up right now. I don't have an immediate fix, but I'm confident that the above change is causing the problem. I will continue to investigate, but I'm new to emacs hacking so please bear with me... Clathrate --0016e6da2e7e4e4b21047c0845ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I get this too.=A0 I did a git bisect, and have found the offending change:=

commit 2789519cf18504fd045b3384f011184ac66b8e89
Author: Chong Yi= dong <cyd@stupidchicken.com= >
Date:=A0=A0 Sat Nov 7 23:49:08 2009 +0000

=A0=A0=A0 * xmenu.c (Fx_po= pup_menu): Extract event timestamp.=A0 Pass it to
=A0=A0=A0 xmenu_show.<= br>=A0=A0=A0 (xmenu_show): New arg.=A0 Pass it to create_and_show_popup_men= u.
=A0=A0=A0 (create_and_show_popup_menu): New arg.=A0 Pass it to gtk_me= nu_popup.

I appreciate that emacs is using bzr, not git, but this is what I have = set up right now.

I don't have an immediate fix, but I'm con= fident that the above change is causing the problem.

I will continue= to investigate, but I'm new to emacs hacking so please bear with me...=

Clathrate
--0016e6da2e7e4e4b21047c0845ff-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 09:08:50 2010 Received: (at 4930) by debbugs.gnu.org; 5 Jan 2010 14:08:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NSA5a-0003iA-JL for submit@debbugs.gnu.org; Tue, 05 Jan 2010 09:08:50 -0500 Received: from mail-ew0-f222.google.com ([209.85.219.222]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NS8md-00035r-Hd for 4930@debbugs.gnu.org; Tue, 05 Jan 2010 07:45:12 -0500 Received: by ewy22 with SMTP id 22so17738186ewy.39 for <4930@debbugs.gnu.org>; Tue, 05 Jan 2010 04:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=SaQ/AItEwRauS291YKqBUpbFdD7DLACxW26SpiwN6ng=; b=b/Um6HwuR5wL7Fo9349O25kMiksDVPU8Lueyl692aL5OFsCukv2avJEJTv0iRPcU8I WOk/88zK0P3f2ZcWi503Y1x9N14yu4ks1zmcGWPONmCMxu8039vCflNVbitPw32r7+X8 VPZNQRNF86beF9REke6wzf/eoxX1qn3C/0sQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=gT6knCo7zt5Xx91VEAFC6EB6r/6BHzi7t+uIAoPvmUIbr3uMh+PzDQST8AmAMZXlRu qYoAKxilaNJGtjiYpgKvvlptzSncMdnzBJ+MBHwd1AHck4ex/iF0LVc1Qa59mdBA00rS vXbF6ayWrdW4qmBubNG2culkNWANW+i2AScic= MIME-Version: 1.0 Received: by 10.216.87.206 with SMTP id y56mr1211762wee.207.1262695504404; Tue, 05 Jan 2010 04:45:04 -0800 (PST) Date: Tue, 5 Jan 2010 14:45:04 +0200 Message-ID: <8bdc0da81001050445x16c5b8eey3a1af90a58bfaa09@mail.gmail.com> Subject: 23.1.50; C-mouse-1 undefined? From: Clathrate Boink To: 4930@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 4930 X-Mailman-Approved-At: Tue, 05 Jan 2010 09:08:25 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) With further investigation I think I may have found the problem. Emacs lisp ints are only 30 bits wide.=A0 Timestamps come in from XButtonEvent and make_lispy_event calls make_lispy_position, which uses make_number to stash away the event timestamp.=A0 Unfortunately this will truncate the top two bits of the timestamp.=A0 This is subsequently passed to gtk_menu_popup via xmenu_show/create_and_show_popup_menu. It ends up going to XGrab which appears to be failing when given such a truncated timestamp. As for what to do about it, I'm a bit stuck... Clathrate From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 16:37:57 2010 Received: (at 4930) by debbugs.gnu.org; 10 Jan 2010 21:37:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU5Tx-0001Ie-Mu for submit@debbugs.gnu.org; Sun, 10 Jan 2010 16:37:57 -0500 Received: from mout3.freenet.de ([195.4.92.93]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU5Tk-0001IP-2d for 4930@emacsbugs.donarmstrong.com; Sun, 10 Jan 2010 16:37:56 -0500 Received: from [195.4.92.22] (helo=12.mx.freenet.de) by mout3.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.70 #1) id 1NU5Tf-0008FS-KD for 4930@emacsbugs.donarmstrong.com; Sun, 10 Jan 2010 22:37:39 +0100 Received: from p5b23b6b8.dip.t-dialin.net ([91.35.182.184]:59091 helo=[192.168.1.2]) by 12.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.69 #94) id 1NU5Tf-0007lC-BL for 4930@emacsbugs.donarmstrong.com; Sun, 10 Jan 2010 22:37:39 +0100 Message-Id: <8BF43374-9D5F-4DBC-88FA-D87D539941FD@Freenet.DE> From: Peter Dyballa To: 4930@debbugs.gnu.org In-Reply-To: <837FC810-6C4A-42A0-82D5-2831B300FDC0@Freenet.DE> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: 23.1.50; C-mouse-1 undefined? Date: Sun, 10 Jan 2010 22:37:36 +0100 References: <837FC810-6C4A-42A0-82D5-2831B300FDC0@Freenet.DE> X-Mailer: Apple Mail (2.936) X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 4930 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Am 15.11.2009 um 16:21 schrieb Peter Dyballa: > Hello! > > is also undefined... > Since some days/maybe a week I have C-mouse-1 and S-mouse-1 reliably =20 working... -- Greetings Pete Globalisation =96 communism from above. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 14 21:34:16 2010 Received: (at control) by debbugs.gnu.org; 15 Jan 2010 02:34:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVc0u-0002Nz-7E for submit@debbugs.gnu.org; Thu, 14 Jan 2010 21:34:16 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVc0s-0002Nt-9H for control@debbugs.gnu.org; Thu, 14 Jan 2010 21:34:14 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NVc0o-0003pu-Q3; Thu, 14 Jan 2010 21:34:10 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19279.54306.760765.98090@gargle.gargle.HOWL> Date: Thu, 14 Jan 2010 21:34:10 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: :m~t}wvg-c(~($msYvZ|;v.!JomO'3d}hwb{k1S4tPrXRnrVb!DCq)dD@=s-a^i3cq17iH X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) tags 3642 moreinfo unreproducible severity 3699 minor severity 3870 minor severity 4438 minor severity 4952 minor severity 5154 minor close 5215 severity 5239 wishlist close 5318 severity 5360 wishlist severity 5362 minor tags 4974 moreinfo unreproducible severity 4408 wishlist severity 4089 wishlist tags 4089 wontfix reassign 4044 emacs,ns merge 2280 5252 tags 5374 moreinfo reassign 4828 emacs,cc-mode tags 4828 patch reassign 5001 emacs,erc close 5371 reassign 4517 emacs,ns severity 3230 minor close 4930 close 5249 From unknown Tue Aug 19 01:58:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Feb 2010 12:24:04 +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 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 22 19:27:56 2010 Received: (at control) by debbugs.gnu.org; 22 Mar 2010 23:27:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntr2J-00086n-Pq for submit@debbugs.gnu.org; Mon, 22 Mar 2010 19:27:56 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntr2H-00086h-UW for control@debbugs.gnu.org; Mon, 22 Mar 2010 19:27:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ntr2E-0004BG-3t; Mon, 22 Mar 2010 19:27:50 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19367.64757.949525.881698@fencepost.gnu.org> Date: Mon, 22 Mar 2010 19:27:49 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: white X-Ran: l6h~]T%W[SgFf|LH"gi6Dl6#M$aMnw>T~*&1*rC1L'_X~jp\\Z'-iPu~uQ[&Zw0= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) unarchive 4930 reopen 4930 From unknown Tue Aug 19 01:58:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Mon, 22 Mar 2010 23:28:01 +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: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 22 19:29:57 2010 Received: (at 4930-quiet) by debbugs.gnu.org; 22 Mar 2010 23:29:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntr4H-000887-1H for submit@debbugs.gnu.org; Mon, 22 Mar 2010 19:29:57 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntr43-00087i-D9 for 4930-quiet@debbugs.gnu.org; Mon, 22 Mar 2010 19:29:43 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ntr3z-0004Hu-OW for 4930-quiet@debbugs.gnu.org; Mon, 22 Mar 2010 19:29:39 -0400 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Mon Mar 22 15:04:09 2010 Received: from mx10.gnu.org ([199.232.76.166]:54723) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntmv3-0008UV-68 for rgm@gnu.org; Mon, 22 Mar 2010 15:04:09 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ntmv1-0003NY-Ir for rgm@gnu.org; Mon, 22 Mar 2010 15:04:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, UNPARSEABLE_RELAY autolearn=unavailable version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:45454) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ntmv1-0003NO-C8 for rgm@gnu.org; Mon, 22 Mar 2010 15:04:07 -0400 Received: from localhost ([127.0.0.1]:42582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntmv0-0006b1-RZ for rgm@gnu.org; Mon, 22 Mar 2010 15:04:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntmtt-00063G-HV for emacs-devel@gnu.org; Mon, 22 Mar 2010 15:02:57 -0400 Received: from [140.186.70.92] (port=54635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntmts-00061S-3q for emacs-devel@gnu.org; Mon, 22 Mar 2010 15:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntmtq-0004IW-2l for emacs-devel@gnu.org; Mon, 22 Mar 2010 15:02:55 -0400 Received: from aktaia.intevation.org ([212.95.126.10]:39027 helo=kolab.intevation.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntmtp-0004IL-MG for emacs-devel@gnu.org; Mon, 22 Mar 2010 15:02:54 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kolab.intevation.de (Postfix) with ESMTP id B031994D16B for ; Mon, 22 Mar 2010 20:02:50 +0100 (CET) X-Virus-Scanned: by amavisd-new at intevation.de Received: from localhost (localhost.localdomain [127.0.0.1]) by kolab.intevation.de (Postfix) with ESMTP id 8373194D178 for ; Mon, 22 Mar 2010 20:02:49 +0100 (CET) Received: from beroe.hq.intevation.de (aktaia.hq.intevation.de [192.168.11.254]) by kolab.intevation.de (Postfix) with ESMTP id 75DD694D16B for ; Mon, 22 Mar 2010 20:02:49 +0100 (CET) Received: from thoe.hq.intevation.de (thoe.hq.intevation.de [192.168.11.35]) by beroe.hq.intevation.de (Postfix) with SMTP id 6915B5ED4F for ; Mon, 22 Mar 2010 20:02:49 +0100 (CET) Received: (nullmailer pid 7863 invoked by uid 10008); Mon, 22 Mar 2010 19:02:49 -0000 From: Bernhard Herzog To: 4930-quiet@debbugs.gnu.org X-Debbugs-No-Ack: yes Date: Mon, 22 Mar 2010 20:02:46 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Fix for timestamp related popup-menu problem with some X servers X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Lines: 90 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-=" X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 4930-quiet X-Mailman-Approved-At: Mon, 22 Mar 2010 19:29:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) --=-=-= [ resent from http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01011.html ] Hi, I'm regularly running into a problem with the popup menus bound by default to C-down-mouse-1 and other events. The symptom is that instead of a popup menu, I only get the error message: is undefined. This is exactly the same problem as described in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4930. The root cause is as described in there in message #16: Emacs lisp ints are only 30 bits wide. Timestamps come in from XButtonEvent and make_lispy_event calls make_lispy_position, which uses make_number to stash away the event timestamp. Unfortunately this will truncate the top two bits of the timestamp. This is subsequently passed to gtk_menu_popup via xmenu_show/create_and_show_popup_menu. It ends up going to XGrab which appears to be failing when given such a truncated timestamp. So, whether this defect can be observed depends on the value of the timestamp. That timestamp is a 32 bit value giving the time since an X-server dependent point in time in milliseconds. This means it will wrap around about every 50 days. Different servers seem to choose different starting points for the timestamp. Some may reset the timer when the server is reset or started, others, including one I regularly use at work (the one coming with Debian etch), apparently base the timestamp on the system time, which has the effect that for a quarter of the 50 days the timestamps are small enough and the popup menus work, and the rest of the time, they don't. Anyway, to cut the story short, below is a patch to fix this problem. It uses last_event_timestamp from keyboard.c instead of the timestamp >From the button event. AFAICT, last_event_timestamp is the timestamp >From the button event, most of the time anyway, because usually the button event that will lead to the popup-menu being displayed is the last one that was processed. Here's the patch: === modified file 'src/menu.c' --- src/menu.c 2010-01-13 08:35:10 +0000 +++ src/menu.c 2010-03-21 15:57:51 +0000 @@ -61,6 +61,11 @@ #define HAVE_BOXES 1 #endif +/* The timestamp of the last input event Emacs received from the X server. */ +/* Defined in keyboard.c. */ +extern unsigned long last_event_timestamp; + + extern Lisp_Object QCtoggle, QCradio; Lisp_Object menu_items; @@ -1320,7 +1325,7 @@ #else /* MSDOS and X11 */ selection = xmenu_show (f, xpos, ypos, for_click, keymaps, title, &error_name, - INTEGERP (timestamp) ? XUINT (timestamp) : 0); + last_event_timestamp); #endif UNBLOCK_INPUT; Regards Bernhard --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFLp77W0vCiU5+ISsgRApQDAKDJDjE4cYUZywSab74wKoPoqgiodwCgju0Z 8fntWlggC+ssrVw+IZUzlzU= =jYo3 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 19:28:18 2010 Received: (at 4930-done) by debbugs.gnu.org; 30 Mar 2010 23:28:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwkr3-0000ow-Om for submit@debbugs.gnu.org; Tue, 30 Mar 2010 19:28:18 -0400 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwkr2-0000or-4l for 4930-done@debbugs.gnu.org; Tue, 30 Mar 2010 19:28:16 -0400 Received: from furry (dhcp128036014175.central.yale.edu [128.36.14.175]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o2UNSBTx005543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Mar 2010 19:28:11 -0400 Received: by furry (Postfix, from userid 1000) id 9384AC05D; Tue, 30 Mar 2010 19:28:11 -0400 (EDT) From: Chong Yidong To: Bernhard Herzog Subject: Re: Fix for timestamp related popup-menu problem with some X servers Date: Tue, 30 Mar 2010 19:28:11 -0400 Message-ID: <87634dfkz8.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 4930-done Cc: Peter Dyballa , Clathrate Boink , 4930-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) > Anyway, to cut the story short, below is a patch to fix this problem. > It uses last_event_timestamp from keyboard.c instead of the timestamp > From the button event. AFAICT, last_event_timestamp is the timestamp > From the button event, most of the time anyway, because usually the > button event that will lead to the popup-menu being displayed is the > last one that was processed. Thanks. I've checked your patch into the emacs-23 branch. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 31 18:31:20 2010 Received: (at 4930-done) by debbugs.gnu.org; 31 Mar 2010 22:31:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx6RU-0003tk-2T for submit@debbugs.gnu.org; Wed, 31 Mar 2010 18:31:20 -0400 Received: from mout5.freenet.de ([195.4.92.95]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx6RS-0003tY-A2 for 4930-done@debbugs.gnu.org; Wed, 31 Mar 2010 18:31:19 -0400 Received: from [195.4.92.17] (helo=7.mx.freenet.de) by mout5.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.72 #3) id 1Nx6RM-0002Fd-Cg; Thu, 01 Apr 2010 00:31:12 +0200 Received: from p5b23e5a6.dip.t-dialin.net ([91.35.229.166]:61178 helo=[192.168.1.2]) by 7.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.72 #3) id 1Nx6RL-0007MZ-Sy; Thu, 01 Apr 2010 00:31:12 +0200 Message-Id: From: Peter Dyballa To: Chong Yidong In-Reply-To: <87634dfkz8.fsf@stupidchicken.com> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Fix for timestamp related popup-menu problem with some X servers Date: Thu, 1 Apr 2010 00:31:05 +0200 References: <87634dfkz8.fsf@stupidchicken.com> X-Mailer: Apple Mail (2.936) X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 4930-done Cc: Bernhard Herzog , Clathrate Boink , 4930-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) Am 31.03.2010 um 01:28 schrieb Chong Yidong: >> Anyway, to cut the story short, below is a patch to fix this problem. >> It uses last_event_timestamp from keyboard.c instead of the timestamp >> =46rom the button event. AFAICT, last_event_timestamp is the = timestamp >> =46rom the button event, most of the time anyway, because usually the >> button event that will lead to the popup-menu being displayed is the >> last one that was processed. > > Thanks. I've checked your patch into the emacs-23 branch. Hello! I updated GNU Emacs 23.1.90 via CVS approximately ten hours after you =20= sent the message. I compiled on my Mac the default GTK and the Xaw3d X =20= clients, using the libraries either provided by by Fink or by =20 MacPorts. The results are clear and unchanged: =95 the Xaw3d based Emacsen know C-mouse-1, =95 the GTK based Emacsen do *not* know C-mouse-1 and complain and =20 dump a core when killed with xkill. Grep finds last_event_timestamp here: ./src/keyboard.c:369:unsigned long last_event_timestamp; ./src/keyboard.c:3866: last_event_timestamp =3D = event->timestamp; ./src/keyboard.c:4152: last_event_timestamp =3D = event->timestamp; ./src/keyboard.c:4440: last_event_timestamp =3D = event->timestamp; ./src/xselect.c:139:extern unsigned long last_event_timestamp; ./src/xselect.c:391: Time time =3D last_event_timestamp; ./src/xselect.c:1388: Time requestor_time =3D = last_event_timestamp; ./src/xselect.c:2227: timestamp =3D last_event_timestamp; Are these the updated sources? -- Greetings Pete Sorry my terrible English, my native language Lisp From unknown Tue Aug 19 01:58:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Apr 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator