GNU bug report logs - #76384
Incorrect mouse events / tool-bar event is undefined error.

Previous Next

Package: emacs;

Reported by: mjk <mkajola <at> gmail.com>

Date: Tue, 18 Feb 2025 04:16:03 UTC

Severity: normal

Merged with 76385

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: mjk <mkajola <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76384 <at> debbugs.gnu.org
Subject: bug#76384: Incorrect mouse events / tool-bar event is undefined error.
Date: Wed, 19 Feb 2025 15:04:20 +0200
Hello Eli,

On fedora 40 with gnome. This was after throwing .emacs and .emacs.d aside.
I also tested as you instructed with -Q and it is just the same. 
*scratch* is enough.
I suppose it is the same in any window for me. And it seems to be fully 
repeatable.
Maybe I should try some other windowing system just for reference.

The output of report-emacs-bug below:

In GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
 3.24.42, cairo version 1.18.0) of 2024-07-16 built on
 27527c2e06f843c0962737354e0b3cf7
System Description: Fedora Linux 40 (Workstation Edition)

Configured using:
 'configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-cairo --with-dbus --with-gif
 --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules
 --with-native-compilation=aot --with-pgtk --with-png --with-rsvg
 --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm
 --with-xwidgets build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2
 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
 -pipe -Wall -Werror=format-security
 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64
 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
 LDFLAGS=-Wl,-z,relro
 PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++
 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g
 -grecord-gcc-switches -pipe -Wall -Werror=format-security
 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64
 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: fi_FI.UTF-8
  value of $LC_NUMERIC: fi_FI.UTF-8
  value of $LC_TIME: fi_FI.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Message

Minor modes in effect:
  mml-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-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
  line-number-mode: t
  auto-fill-function: message-do-auto-fill
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort emacsbug comp comp-cstr warnings icons rx cl-extra
help-mode url-util url-parse auth-source cl-seq eieio eieio-core
url-vars mail-extr message sendmail mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr mailabbrev mail-utils gmm-utils mailheader clang-rename
clang-include-fixer let-alist json subr-x map byte-opt bytecomp
byte-compile clang-format cl-macs gv xml cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win
term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads xwidget-internal dbusbind inotify dynamic-setting
system-font-setting font-render-setting cairo gtk pgtk multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 96060 9792)
 (symbols 48 7993 0)
 (strings 32 23040 2318)
 (string-bytes 1 697119)
 (vectors 16 18706)
 (vector-slots 8 376260 22697)
 (floats 8 169 21)
 (intervals 56 374 0)
 (buffers 984 13))




On 19.2.2025 13.49, Eli Zaretskii wrote:
>> Date: Mon, 17 Feb 2025 22:59:42 +0200
>> From: mjk <mkajola <at> gmail.com>
>>
>> I had irritating mouse problems originally in lsp/dap mode.
>> The mouse caused many-many beeps due to mouse move errors.
>>
>> This is probably combination of problems in the basic thing and the lsp
>> gui packages together.
>>
>> I was able to pinpoint one factor of this problem into configuration
>> where I had removed my .emacs and .emacs.d, so that I was in a pretty clean
>> configuration.
>>
>> In this state I get spurious errors like:
>>
>> <tool-bar> <wheel-up> is undefined
>> <tool-bar> <wheel-down> is undefined
>> <tool-bar> <double-wheel-down> is undefined
>>
>> when I rotate the mouse wheel in the window area (pretty much any, like
>> *scratch*). Note, in the text window, not in the tool bar.
> This is very strange.  Does it only happen in LSP/DAP mode?  If so,
> the reason is probably in those packages.  But if this happens also in
> "emacs -Q", if you just turn the mouse wheel in that upper part of the
> window, below the tool bar, and see these messages, then we'd need to
> look at the mouse coordinates as reported to Emacs in your case.  It
> would help if you tell what is the Emacs version where you see it and
> on what platform.  (For best results, post the data about the Emacs
> build where it happens which is collected by "M-x report-emacs-bug".)
>
> Thanks.






This bug report was last modified 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.