From unknown Sat Jun 14 19:46:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59655: 27.1; My Menu Button Works on Windows, Fails on Ubuntu Resent-From: plowmail@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2022 10:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59655 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 59655@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: plowmail+emacsbug@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.16696328041752 (code B ref -1); Mon, 28 Nov 2022 10:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Nov 2022 10:53:24 +0000 Received: from localhost ([127.0.0.1]:47842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozblJ-0000S5-3U for submit@debbugs.gnu.org; Mon, 28 Nov 2022 05:53:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:57552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozUiC-0006GU-Qx for submit@debbugs.gnu.org; Sun, 27 Nov 2022 22:21:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozUiC-00019f-JC for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 22:21:40 -0500 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozUiA-000486-S0 for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 22:21:40 -0500 Received: by mail-qv1-xf34.google.com with SMTP id mn15so2702657qvb.13 for ; Sun, 27 Nov 2022 19:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:to:content-language:reply-to :user-agent:mime-version:date:message-id:from:from:to:cc:subject :date:message-id:reply-to; bh=Gd7PLvgEoPQu2xW1NVdg+HMNa+JWC2vd6a4bA54aY44=; b=JNk8vP3+Gr4Ja4jG/HgzIBUF+ckX0HLSMO4kIWVNHn4fM9xBOyKEYfC2CMP4CHLtJh 5jg6BwjFlek3pnakIp720+CSqhMwQhOVhD07/gAFlMGIK+anopKJTo+2JAYTsgLA8XgN tunqB8MS0hbFc9xpHpFRjN4lw9X0D5emJoUR9kGcdibK1UcDziGWVn+vCVqNG4aT8YEN ticlvMxDQhR16vL7sjCI+jOnaa2eO0aNkgXiq8X62KyZwsicep7TDmWM1CC87SKnS2OY cQoRtuYbG1RsuS3r7XgS7qFMdwR1jptelmcZZk7w3qfxJ4LnDu1IRGru6SdZM3AvOOD7 waJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:to:content-language:reply-to :user-agent:mime-version:date:message-id:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Gd7PLvgEoPQu2xW1NVdg+HMNa+JWC2vd6a4bA54aY44=; b=grqud6CVACcvC2Fjohk6tiuu7XzgCMjbc5GDvi8yhnd8vEBkxkiAjqlh16uVGL+lcw A9nSbL8hxlgHStdCy7CZ0QcIIDceXWHNrMlOC5VhkCCGysnBptT6Z5HexIw9C8lprPWC p3e1+PnsZu8D41TBuQzcRszDeQS3MTD0YhOm1tdYFzWN5O6FxCbyOD5Xz/iIrmJE4FQE MXoSQ79BlFaoCqoANS2rN9PEVsl5HE4afJ57mETq2k6AjKfo1F0LZ39G3FzYG0eOWfP9 QSYcLGkKDYe48CTl8Oiw7o8wU+Z0ny7Eksqhg/CbcxoOH0LxK1z+XY9DSnA/NFBm/dSv cFdA== X-Gm-Message-State: ANoB5pncf63eGXuZYFEYK7YcKK1rDXTyNMjEoprS7LEQWMf9ZBvMxwB+ YJf4YrERqiuoOq6CR7Q+q9mDYvh+sS0= X-Google-Smtp-Source: AA0mqf5tW53u9LIzOQLToRAT1dNvWn8P8AgSkoGJ223HFMPeUb9m0APzb71Pq3kEEeeWc9Hs0lo71g== X-Received: by 2002:ad4:5445:0:b0:4c6:62af:5e14 with SMTP id h5-20020ad45445000000b004c662af5e14mr30334361qvt.95.1669605696871; Sun, 27 Nov 2022 19:21:36 -0800 (PST) Received: from [192.168.0.167] (h69-131-4-108.cntcnh.broadband.dynamic.tds.net. [69.131.4.108]) by smtp.googlemail.com with ESMTPSA id i20-20020ac84894000000b003996aa171b9sm6156872qtq.97.2022.11.27.19.21.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Nov 2022 19:21:36 -0800 (PST) From: plowmail@gmail.com X-Google-Original-From: plowmail+emacsbug@gmail.com Message-ID: <0fdc93cb-00b3-7829-284f-decf2387339c@gmail.com> Date: Mon, 28 Nov 2022 03:21:35 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=plowmail@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: 19 X-Spam_score: 1.9 X-Spam_bar: + X-Spam_report: (1.9 / 5.0 requ) BAYES_00=-1.9, DATE_IN_FUTURE_03_06=3.027, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ubuntu 22.10 Windows 7 emacs versions: On linux 27.1 On Windows 27.1 and 28.2 I load this elisp at startup: (define-key-after ; Save (lookup-key global-map [menu-bar]) ; map is the "key" named menu-bar [x9] ; key name '(menu-item "Save" ;label (lambda () (interactive) (save-buffer) ;function ) ) 'tools ;put t [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (plowmail[at]gmail.com) 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 1.0 FREEMAIL_REPLYTO Reply-To/From or Reply-To/body contain different freemails 1.9 SPOOFED_FREEM_REPTO Forged freemail sender with freemail reply-to X-Mailman-Approved-At: Mon, 28 Nov 2022 05:53:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ubuntu 22.10 Windows 7 emacs versions: On linux 27.1 On Windows 27.1 and 28.2 I load this elisp at startup: (define-key-after ;Save (lookup-key global-map [menu-bar]) ;map is the "key" named menu-bar [x9] ;key name '(menu-item "Save" ;label (lambda () (interactive) (save-buffer) ;function ) ) 'tools ;put the new button after the Tools button ) This places a menu button after the Tools button. On Windows, the button works as expected; it saves the current buffer. On linux, it displays a small, white window, and then starts the game "5x5". The button for "5x5" is the first displayed in the Tools submenu Games. For the tools entry and for my x9 entry, the global-map variables on linux and Windows look the same. My post on stackexchange received the response "same behavior here on Fedora" In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2022-01-24, modified by Debian built on lgw01-amd64-048 Windowing system distributor 'The X.Org Foundation', version 11.0.12201003 System Description: Ubuntu 22.10 Recent messages: Auto-saving...done Mark set Auto-saving...done Saving file /media/rjd/Data1/barn/LinuxFiles/barn/emacs/notebook.txt... Wrote /media/rjd/Data1/barn/LinuxFiles/barn/emacs/notebook.txt Composing main Info directory...done user-error: Info file emacs does not existUnable to load color "systemmenutext" Unable to load color "systemmenu" Unable to load color "systemmenutext" Unable to load color "systemmenu" Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -ffile-prefix-map=/build/emacs-NbbgEv/emacs-27.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: text-scale-mode: t tabbar-mwheel-mode: t tabbar-mode: t msb-mode: t recentf-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: /Q/barn/emacs/OtherElisp/goto-chg hides /Q/barn/emacs/goto-chg /Q/barn/emacs/OtherElisp/browse-kill-ring hides /Q/barn/emacs/browse-kill-ring /Q/barn/emacs/OtherElisp/ido hides /usr/share/emacs/27.1/lisp/ido /Q/barn/emacs/OtherElisp/files hides /usr/share/emacs/27.1/lisp/files Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils info time-date subr-x face-remap browse-url cus-edit tabbar bookmark text-property-search pp msb two-column thingatpt server recentf tree-widget wid-edit cl-loaddefs cl-lib easymenu time delsel cus-start cus-load tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 82151 11224) (symbols 48 9221 1) (strings 32 25068 2026) (string-bytes 1 765160) (vectors 16 16064) (vector-slots 8 566107 62482) (floats 8 52 48) (intervals 56 290 1) (buffers 1000 12))