unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4930: 23.1.50; C-mouse-1 undefined?
@ 2009-11-15 14:39 Peter Dyballa
  2010-03-30 23:28 ` bug#4930: Fix for timestamp related popup-menu problem with some X servers Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2009-11-15 14:39 UTC (permalink / raw)
  To: emacs-pretest-bug

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:

	<C-down-mouse-1> at that spot runs the command mouse-buffer-menu,
	which is an interactive compiled Lisp function in `mouse.el'.
	
	It is bound to <C-down-mouse-1>.
	
	(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:

	"<C-mouse-1> 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:
<down-mouse-1> <mouse-1> C-h k <C-down-mouse-1> <C-mouse-1>
<down-mouse-1> <mouse-1> <C-down-mouse-1> <C-mouse-1>
<help-echo> <down-mouse-1> <mouse-1> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report>


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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4930: 23.1.50; C-mouse-1 undefined?
@ 2009-11-15 15:21 Peter Dyballa
  2010-01-10 21:37 ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2009-11-15 15:21 UTC (permalink / raw)
  To: 4930

Hello!

<S-mouse-1> is also undefined...

--
Greetings

   Pete

If you don't find it in the index, look very carefully through the  
entire catalogue.
		–  Sears, Roebuck, and Co., Consumer's Guide, 1897






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4930: 23.1.50; C-mouse-1 undefined?
@ 2010-01-05 12:45 Clathrate Boink
  0 siblings, 0 replies; 5+ messages in thread
From: Clathrate Boink @ 2010-01-05 12:45 UTC (permalink / raw)
  To: 4930

With further investigation I think I may have found the problem.
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<xxx>
which appears to be failing when given such a truncated timestamp.

As for what to do about it, I'm a bit stuck...

Clathrate






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4930: 23.1.50; C-mouse-1 undefined?
  2009-11-15 15:21 bug#4930: 23.1.50; C-mouse-1 undefined? Peter Dyballa
@ 2010-01-10 21:37 ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2010-01-10 21:37 UTC (permalink / raw)
  To: 4930


Am 15.11.2009 um 16:21 schrieb Peter Dyballa:

> Hello!
>
> <S-mouse-1> is also undefined...
>


Since some days/maybe a week I have C-mouse-1 and S-mouse-1 reliably  
working...

--
Greetings

   Pete

Globalisation – communism from above.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4930: Fix for timestamp related popup-menu problem with some X servers
  2009-11-15 14:39 bug#4930: 23.1.50; C-mouse-1 undefined? Peter Dyballa
@ 2010-03-30 23:28 ` Chong Yidong
  0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2010-03-30 23:28 UTC (permalink / raw)
  To: Bernhard Herzog; +Cc: Peter Dyballa, Clathrate Boink, 4930-done

> 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.






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-30 23:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15 14:39 bug#4930: 23.1.50; C-mouse-1 undefined? Peter Dyballa
2010-03-30 23:28 ` bug#4930: Fix for timestamp related popup-menu problem with some X servers Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-11-15 15:21 bug#4930: 23.1.50; C-mouse-1 undefined? Peter Dyballa
2010-01-10 21:37 ` Peter Dyballa
2010-01-05 12:45 Clathrate Boink

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).