From unknown Sun Sep 21 08:58:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64927 <64927@debbugs.gnu.org> To: bug#64927 <64927@debbugs.gnu.org> Subject: Status: 30.0.50; kill-ring with no X Reply-To: bug#64927 <64927@debbugs.gnu.org> Date: Sun, 21 Sep 2025 15:58:48 +0000 retitle 64927 30.0.50; kill-ring with no X reassign 64927 emacs submitter 64927 Colin Baxter severity 64927 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 29 05:47:48 2023 Received: (at submit) by debbugs.gnu.org; 29 Jul 2023 09:47:49 +0000 Received: from localhost ([127.0.0.1]:46443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPgY7-0004bt-3z for submit@debbugs.gnu.org; Sat, 29 Jul 2023 05:47:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPgY4-0004b3-3L for submit@debbugs.gnu.org; Sat, 29 Jul 2023 05:47:45 -0400 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 1qPgXy-0005QA-I8 for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 05:47:38 -0400 Received: from forward101c.mail.yandex.net ([2a02:6b8:c03:500:1:45:d181:d101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPgXt-0001jC-VM for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 05:47:38 -0400 Received: from mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:d315:0:640:bb64:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id B77566003E for ; Sat, 29 Jul 2023 12:47:26 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OlKA2aKWriE0-pmt5XuWl; Sat, 29 Jul 2023 12:47:25 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1690624046; bh=mwGBee68dbMFEphgZLr+y8Zx6H33YJdgHzcWqe+bp48=; h=Subject:To:From:Message-Id:Date; b=fnA3pY4RfoOmTGSwCKyTZA5nBe/I3Jtm3YGAl9ZMb1f+criDPjIqM/BeR0HEBY1Yr RqZdxXx0cFPURzSPmX+pMWzXK5nq7FNTjFUgpGKu+8WkhbNWkeYf8v5AG1InDRhnYo 9j1/aXC3oJAbTj3wqBll3Bp3y6Bq1KYmIiaBBMuE= Authentication-Results: mail-nwsmtp-smtp-production-main-31.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.com Date: Sat, 29 Jul 2023 10:47:23 +0100 Message-Id: <87edkrdp78.fsf@yandex.com> From: Colin Baxter To: bug-gnu-emacs@gnu.org Subject: 30.0.50; kill-ring with no X Received-SPF: pass client-ip=2a02:6b8:c03:500:1:45:d181:d101; envelope-from=m43cap@yandex.com; helo=forward101c.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) 1. Emacs-30.0.50 compiled --with-x-toolkit=no 2. emacs -Q 3. C-x C-f test.txt 4. Enter some text, e.g. "This is a test." 5. Enter some more text, e.g. "This is another test." 6. Place the cursor somewhere and press 7. Select Edit --> Paste from kill menu --> This is test. 8. popup-menu: Invalid `key-parse' syntax: %S: ["This is a test"] This only seems to effect "no X" emacs. Colin Baxter. In GNU Emacs 30.0.50 (build 1, i686-pc-linux-gnu, cairo version 1.14.8) of 2023-07-29 built on bluestar Repository revision: deb74de4f2e6a16b81663cbd95f97bfc9e24e467 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9 (stretch) Configured using: 'configure --prefix=/home/redknight/local/opt/emacs-dev --with-x-toolkit=no --with-mailutils --without-sqlite3 --without-sound --with-cairo --with-imagemagick --without-xaw3d --with-native-compilation=no --without-toolkit-scroll-bars' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP THREADS TIFF X11 XDBE XIM XINPUT2 XPM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8 Major mode: Eshell Minor modes in effect: eshell-prompt-mode: t eshell-pred-mode: t eshell-hist-mode: t eshell-cmpl-mode: t global-auto-revert-mode: t TeX-source-correlate-mode: t auto-insert-mode: t server-mode: t global-emojify-mode: t emojify-mode: t eshell-proc-mode: t eshell-arg-mode: t savehist-mode: t display-time-mode: t global-so-long-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/redknight/git/emacs-w3m/w3m-session hides /home/redknight/.emacs.d/lisp/w3m-session /home/redknight/git/org-mode/lisp/ob-gnuplot hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-gnuplot /home/redknight/git/org-mode/lisp/ob-tangle hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-tangle /home/redknight/git/org-mode/lisp/oc-natbib hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc-natbib /home/redknight/git/org-mode/lisp/ol-bibtex hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-bibtex /home/redknight/git/org-mode/lisp/ob-fortran hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-fortran /home/redknight/git/org-mode/lisp/ob-forth hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-forth /home/redknight/git/org-mode/lisp/ol-gnus hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-gnus /home/redknight/git/org-mode/lisp/oc-csl hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc-csl /home/redknight/git/org-mode/lisp/ol-irc hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-irc /home/redknight/git/org-mode/lisp/ob-org hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-org /home/redknight/git/org-mode/lisp/ob-calc hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-calc /home/redknight/git/org-mode/lisp/ob-plantuml hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-plantuml /home/redknight/git/org-mode/lisp/org-capture hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-capture /home/redknight/git/org-mode/lisp/oc hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc /home/redknight/git/org-mode/lisp/ob-R hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-R /home/redknight/git/org-mode/lisp/ob-C hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-C /home/redknight/git/org-mode/lisp/ox-texinfo hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-texinfo /home/redknight/git/org-mode/lisp/ob-haskell hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-haskell /home/redknight/git/org-mode/lisp/ob-sed hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-sed /home/redknight/git/org-mode/lisp/ox-md hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-md /home/redknight/git/org-mode/lisp/ox-html hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-html /home/redknight/git/org-mode/lisp/ob-groovy hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-groovy /home/redknight/git/org-mode/lisp/ox-beamer hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-beamer /home/redknight/git/org-mode/lisp/org-keys hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-keys /home/redknight/git/org-mode/lisp/org-clock hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-clock /home/redknight/git/org-mode/lisp/ob-exp hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-exp /home/redknight/git/org-mode/lisp/org-footnote hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-footnote /home/redknight/git/org-mode/lisp/ol-doi hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-doi /home/redknight/git/org-mode/lisp/org-plot hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-plot /home/redknight/git/org-mode/lisp/ox-publish hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-publish /home/redknight/git/org-mode/lisp/org-macs hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-macs /home/redknight/git/org-mode/lisp/ol-bbdb hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-bbdb /home/redknight/git/org-mode/lisp/ob-octave hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-octave /home/redknight/git/org-mode/lisp/ob-makefile hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-makefile /home/redknight/git/org-mode/lisp/ol-eshell hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-eshell /home/redknight/git/org-mode/lisp/org-list hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-list /home/redknight/git/org-mode/lisp/ox hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox /home/redknight/git/org-mode/lisp/org-protocol hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-protocol /home/redknight/git/org-mode/lisp/ob-ditaa hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-ditaa /home/redknight/git/org-mode/lisp/ob-screen hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-screen /home/redknight/git/org-mode/lisp/ob-matlab hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-matlab /home/redknight/git/org-mode/lisp/ol-w3m hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-w3m /home/redknight/git/org-mode/lisp/org-macro hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-macro /home/redknight/git/org-mode/lisp/ol hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol /home/redknight/git/org-mode/lisp/ox-koma-letter hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-koma-letter /home/redknight/git/org-mode/lisp/ob-maxima hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-maxima /home/redknight/git/org-mode/lisp/ox-icalendar hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-icalendar /home/redknight/git/org-mode/lisp/ob-lilypond hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-lilypond /home/redknight/git/org-mode/lisp/org-ctags hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-ctags /home/redknight/git/org-mode/lisp/org-faces hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-faces /home/redknight/git/org-mode/lisp/org-attach hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-attach /home/redknight/git/org-mode/lisp/org-colview hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-colview /home/redknight/git/org-mode/lisp/org-pcomplete hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-pcomplete /home/redknight/git/org-mode/lisp/org-habit hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-habit /home/redknight/git/org-mode/lisp/ob-sass hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-sass /home/redknight/git/org-mode/lisp/org-timer hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-timer /home/redknight/git/org-mode/lisp/org-duration hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-duration /home/redknight/git/org-mode/lisp/ob-latex hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-latex /home/redknight/git/org-mode/lisp/ob-julia hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-julia /home/redknight/git/org-mode/lisp/ob-processing hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-processing /home/redknight/git/org-mode/lisp/oc-biblatex hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc-biblatex /home/redknight/git/org-mode/lisp/ob-perl hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-perl /home/redknight/git/org-mode/lisp/ox-latex hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-latex /home/redknight/git/org-mode/lisp/org-feed hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-feed /home/redknight/git/org-mode/lisp/org-fold-core hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-fold-core /home/redknight/git/org-mode/lisp/ol-info hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-info /home/redknight/git/org-mode/lisp/org-mouse hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-mouse /home/redknight/git/org-mode/lisp/ol-man hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-man /home/redknight/git/org-mode/lisp/ob-core hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-core /home/redknight/git/org-mode/lisp/ox-org hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-org /home/redknight/git/org-mode/lisp/org-datetree hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-datetree /home/redknight/git/org-mode/lisp/ob-ref hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-ref /home/redknight/git/org-mode/lisp/org-compat hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-compat /home/redknight/git/org-mode/lisp/ox-ascii hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-ascii /home/redknight/git/org-mode/lisp/ob-shell hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-shell /home/redknight/git/org-mode/lisp/org-table hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-table /home/redknight/git/org-mode/lisp/ob-lisp hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-lisp /home/redknight/git/org-mode/lisp/ob-js hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-js /home/redknight/git/org-mode/lisp/org-archive hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-archive /home/redknight/git/org-mode/lisp/org-tempo hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-tempo /home/redknight/git/org-mode/lisp/ob-lua hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-lua /home/redknight/git/org-mode/lisp/org-refile hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-refile /home/redknight/git/org-mode/lisp/oc-basic hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc-basic /home/redknight/git/org-mode/lisp/org-inlinetask hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-inlinetask /home/redknight/git/org-mode/lisp/org-id hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-id /home/redknight/git/org-mode/lisp/ob-lob hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-lob /home/redknight/git/org-mode/lisp/org-num hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-num /home/redknight/git/org-mode/lisp/org-src hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-src /home/redknight/git/org-mode/lisp/ob-ocaml hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-ocaml /home/redknight/git/org-mode/lisp/ox-odt hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-odt /home/redknight/git/org-mode/lisp/ob-ruby hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-ruby /home/redknight/git/org-mode/lisp/org-entities hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-entities /home/redknight/git/org-mode/lisp/org hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org /home/redknight/git/org-mode/lisp/ob-css hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-css /home/redknight/git/org-mode/lisp/org-version hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-version /home/redknight/git/org-mode/lisp/org-loaddefs hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-loaddefs /home/redknight/git/org-mode/lisp/org-indent hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-indent /home/redknight/git/org-mode/lisp/org-attach-git hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-attach-git /home/redknight/git/org-mode/lisp/org-lint hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-lint /home/redknight/git/org-mode/lisp/ob-table hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-table /home/redknight/git/org-mode/lisp/ob hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob /home/redknight/git/org-mode/lisp/ob-sqlite hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-sqlite /home/redknight/git/org-mode/lisp/ob-clojure hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-clojure /home/redknight/git/org-mode/lisp/ob-scheme hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-scheme /home/redknight/git/org-mode/lisp/ox-man hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ox-man /home/redknight/git/org-mode/lisp/org-goto hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-goto /home/redknight/git/org-mode/lisp/org-persist hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-persist /home/redknight/git/org-mode/lisp/ob-python hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-python /home/redknight/git/org-mode/lisp/ol-eww hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-eww /home/redknight/git/org-mode/lisp/org-mobile hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-mobile /home/redknight/git/org-mode/lisp/ob-java hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-java /home/redknight/git/org-mode/lisp/org-cycle hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-cycle /home/redknight/git/org-mode/lisp/ob-comint hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-comint /home/redknight/git/org-mode/lisp/ob-sql hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-sql /home/redknight/git/org-mode/lisp/ol-docview hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-docview /home/redknight/git/org-mode/lisp/ob-dot hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-dot /home/redknight/git/org-mode/lisp/org-crypt hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-crypt /home/redknight/git/org-mode/lisp/oc-bibtex hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/oc-bibtex /home/redknight/git/org-mode/lisp/ob-eval hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-eval /home/redknight/git/org-mode/lisp/ol-rmail hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-rmail /home/redknight/git/org-mode/lisp/ol-mhe hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ol-mhe /home/redknight/git/org-mode/lisp/org-agenda hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-agenda /home/redknight/git/org-mode/lisp/ob-emacs-lisp hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-emacs-lisp /home/redknight/git/org-mode/lisp/org-fold hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-fold /home/redknight/git/org-mode/lisp/ob-awk hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-awk /home/redknight/git/org-mode/lisp/ob-eshell hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/ob-eshell /home/redknight/git/org-mode/lisp/org-element hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/org/org-element /home/redknight/.emacs.d/lisp/obsoleted/linum hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/obsolete/linum /home/redknight/.emacs.d/lisp/obsoleted/quickurl hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/obsolete/quickurl /home/redknight/.emacs.d/lisp/obsoleted/netrc hides /home/redknight/local/opt/emacs-dev/share/emacs/30.0.50/lisp/obsolete/netrc Features: (shadow bbdb-message mailalias emacsbug em-unix em-term em-script em-prompt em-pred em-ls em-hist em-glob em-extpipe em-cmpl em-dirs em-basic em-banner em-alias slime etags fileloop xref hyperspec reftex-parse autorevert oc-basic ol-w3m org-tempo cl-extra tempo ol-rmail ol-mhe ox-md ol-irc ol-info org-inlinetask ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap utf7 gnus-spec gnus-win org-expiry ol-eww eww-lnum eww url-queue shr pixel-fill kinsoku url-file svg browse-url mm-url ol-eshell esh-mode esh-var ol-docview doc-view filenotify jka-compr org-collector ol-bibtex ol-bbdb help-fns radix-tree cl-print debug backtrace time-stamp bibtex vc-git diff-mode vc-dispatcher preview reftex-dcr reftex-auc font-latex latex edmacro latex-flymake flymake-proc flymake warnings tex-ispell tex-style tex texmathp tex-mode latexenc flyspell simple-dark-theme ibuffer ibuffer-loaddefs display-line-numbers autoinsert printing ps-print ps-print-loaddefs lpr kmacro osm-ol osm dom bookmark pp ssh ovpn-mode tramp tramp-loaddefs trampver tramp-integration tramp-compat parse-time iso8601 netrc preview-latex tex-site ltxaccnt server image-dired+ help-mode dired+ image-dired image-dired-tags image-dired-external image-dired-util image-mode exif image-file image-converter dired-x dired-aux page-break-lines orgtbl-aggregate calc-arith ox-bibtex ox-texinfo ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox reftex-cite reftex reftex-loaddefs reftex-vars org-screenshot emojify apropos tar-mode arc-mode archive-mode ht iimage ob-sqlite ob-sql ob-shell ob-ruby ob-rec ob-R ob-python python project pcase ob-plantuml ob-org ob-perl ob-lisp ob-latex ob-gnuplot ob-fortran ob-eshell eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups ob-dot ob-ditaa ob-calc calc-store calc-trail calc-ext calc calc-loaddefs rect calc-macs ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds ob-awk org-clock dbus org-rainbow-tags easy-mmode ido org-journal org-crypt cal-iso org-habit org-agenda org-element org-element-ast inline org-persist xdg org-id avl-tree generator org-refile bbdb-mua bbdb-com crm bbdb bbdb-site timezone bbdb-loaddefs insert-shebang lusty-explorer htmlize my-eshell esh-util files-x term disp-table shell ehelp mw-thesaurus dash org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs format-spec xml request url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map byte-opt gv bytecomp byte-compile url-vars synonyms my-rmail mairix cus-edit cus-load icons procmaillog nndoc nnoo nnmail gnus-int mail-source gnus-range gnus wid-edit message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader nnheader gnus-util time-date subr-x mm-util mail-prsvr mail-utils range ftnchek-mode compile text-property-search fortran cc-styles cc-align cc-engine cc-vars cc-defs cpan comint ansi-osc ansi-color ring browse-kill-ring+ second-sel browse-kill-ring delsel savehist generic-x facemenu ispell time so-long linum-ex isearch+ isearch-prop thingatpt+ thingatpt color advice heaven-and-hell slime-autoloads cl-loaddefs cl-lib early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 8 578033 192165) (symbols 24 61116 0) (strings 16 296934 11325) (string-bytes 1 7599283) (vectors 8 125226) (vector-slots 4 4373985 131660) (floats 8 840 554) (intervals 28 14091 282) (buffers 556 24)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 29 07:25:40 2023 Received: (at submit) by debbugs.gnu.org; 29 Jul 2023 11:25:40 +0000 Received: from localhost ([127.0.0.1]:46527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPi4p-0007nY-Uj for submit@debbugs.gnu.org; Sat, 29 Jul 2023 07:25:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPi4n-0007nK-Q6 for submit@debbugs.gnu.org; Sat, 29 Jul 2023 07:25:38 -0400 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 1qPi4i-0005Xe-8W for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 07:25:32 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPi4g-0008Av-LW for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 07:25:32 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qPi4c-000A1b-CA for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 13:25:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Colin Baxter Subject: Re: bug#64927: 30.0.50; kill-ring with no X Date: Sat, 29 Jul 2023 12:25:16 +0100 Message-ID: <87a5vfdko3.fsf@yandex.com> References: <87edkrdp78.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Cancel-Lock: sha1:WnV2tb6SD1XFebKPGim3rT+aZts= X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit 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: , Reply-To: m43cap@yandex.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) >>>>> Colin Baxter writes: > 1. Emacs-30.0.50 compiled --with-x-toolkit=no > 2. emacs -Q > 3. C-x C-f test.txt > 4. Enter some text, e.g. "This is a test." > 5. Enter some more text, e.g. "This is another test." > 6. Place the cursor somewhere and press > 7. Select Edit --> Paste from kill menu --> This is test. > 8. popup-menu: Invalid > `key-parse' syntax: %S: ["This is a test"] Forget to mention that the text 4, 5 has of course to be copied to the kill-ring using C- M-w. Sorry about that! Colin Baxter. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 05:51:23 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 09:51:23 +0000 Received: from localhost ([127.0.0.1]:50911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRUzL-0004o2-4w for submit@debbugs.gnu.org; Thu, 03 Aug 2023 05:51:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRUzJ-0004np-0b for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 05:51:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRUzC-0002Rd-Rz; Thu, 03 Aug 2023 05:51:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ihf1wQqdZPGra6b7WsLmoGy7fc4y7hE8vBwqSp+G9w0=; b=og9BxARiSOM5 V0NoIgs93ZCQrfFJuw7s2eJPVCq2sMO9sX8/3z04dAm3GfHieWAk1eGnUhKMYlxG3k19/J0Zl+tLe n0GX0E8lSzZ2oRyZRDjcACdFo4v7q0yAauXPZAUhyvVAHAoQQjX4GFTxgcD7RbOCPlUTH/Fl8ZTpY qyi+uR2sUGYm7WrsLE2PE2k60PPimEtJ+aW/n6iI+UddWkuErDlSjqomZDvWUlHiiZusgMCuqolNs tRrm234sKa19ldomqN7oVimPMnKoc3E/JDrJwl7opT1Db9feaVP73tNxbwypJmJMVikKJHaO5EIMl WC/RIjbqX9u9MHhRNQFKvw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRUzC-00023N-BP; Thu, 03 Aug 2023 05:51:14 -0400 Date: Thu, 03 Aug 2023 12:51:23 +0300 Message-Id: <838rasxxlw.fsf@gnu.org> From: Eli Zaretskii To: m43cap@yandex.com, Stefan Monnier In-Reply-To: <87a5vfdko3.fsf@yandex.com> (message from Colin Baxter on Sat, 29 Jul 2023 12:25:16 +0100) Subject: Re: bug#64927: 30.0.50; kill-ring with no X References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: 64927@debbugs.gnu.org, Lars Ingebrigtsen 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: -3.3 (---) > From: Colin Baxter > Date: Sat, 29 Jul 2023 12:25:16 +0100 > > >>>>> Colin Baxter writes: > > > 1. Emacs-30.0.50 compiled --with-x-toolkit=no > > 2. emacs -Q > > 3. C-x C-f test.txt > > 4. Enter some text, e.g. "This is a test." > > 5. Enter some more text, e.g. "This is another test." > > 6. Place the cursor somewhere and press > > 7. Select Edit --> Paste from kill menu --> This is test. > > 8. popup-menu: Invalid > > `key-parse' syntax: %S: ["This is a test"] > > Forget to mention that the text 4, 5 has of course to be copied to the > kill-ring using C- M-w. Sorry about that! I can reproduce the same problem on a TTY frame by activating the menu with F10, but not if the menu is activated with a mouse (on a text-mode terminal that has a mouse). Do you see the same problem in the non-toolkit build if you use the mouse instead of the keyboard? This also affects Emacs 29, and is a regression from Emacs 28, which is related to the use of the new key-* functions. Specifically, the error is signaled by the call to key-valid-p issued by possibly_translate_key_sequence, which is a subroutine of lookup-key. The argument KEY of possibly_translate_key_sequence in this case is a vector whose only element is a string with text properties: [#("create a file" 0 13 (face font-lock-comment-face fontified t))] key-valid-p doesn't support such strings, it expects strings that describe key sequences. Significantly, possibly_translate_key_sequence calls key-parse after it calls key-valid-p, and key-parse copes with this string quite well. So I'm thinking of removing the key-valid-p call from possibly_translate_key_sequence, since I believe key-parse can detect any problems by itself? Stefan, WDYT? Colin, can you try such a change and see if it produces any regressions? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 11:11:35 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 15:11:35 +0000 Received: from localhost ([127.0.0.1]:52703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRZzD-0008UH-GI for submit@debbugs.gnu.org; Thu, 03 Aug 2023 11:11:35 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRZzC-0008U1-9J for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 11:11:34 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id ED6A380502; Thu, 3 Aug 2023 11:11:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1691075487; bh=Y8upz8E3A2lO54tdCed4RFWs5dOz/rCvAbxB3XXiNyE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cQhguHU4J6y28A2dwj2CO7odv/nVTbgrTDrArdXMsCaG2QrEM/VinsSmVl+9y20h+ //N4lOAW1k7jqaRAiy1Qv8YSwI/4+tdJTrXma19dp7CvClUXxh2hjVnCl0UfjNKPBJ Oluk1+4TlOLixfZPnhpFg08kDSSwQItfZi2aWkVVzNinGLcmvRHqQYbRMRdCtpCf93 Hy4R+9skPmYIsYhjtWmrUMMTm8z5qTpb93m9WuYbzIWHTrjzwz1SSUJnPS/QcVt6H5 unbdvsDxZRqwj23k0+F4U4NEqTh6bbPEKD3CVS34wZIipPIPq/4bA6d8sRzLbjbsSZ tLlTFf3htnSbw== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9FF9780575; Thu, 3 Aug 2023 11:11:27 -0400 (EDT) Received: from alfajor (unknown [181.44.118.150]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 71BBD120270; Thu, 3 Aug 2023 11:11:26 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#64927: 30.0.50; kill-ring with no X In-Reply-To: <838rasxxlw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Aug 2023 12:51:23 +0300") Message-ID: References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> Date: Thu, 03 Aug 2023 11:11:24 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.066 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, Lars Ingebrigtsen , 64927@debbugs.gnu.org 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: -3.3 (---) > This also affects Emacs 29, and is a regression from Emacs 28, which > is related to the use of the new key-* functions. Specifically, the > error is signaled by the call to key-valid-p issued by > possibly_translate_key_sequence, which is a subroutine of lookup-key. > The argument KEY of possibly_translate_key_sequence in this case is a > vector whose only element is a string with text properties: > > [#("create a file" 0 13 (face font-lock-comment-face fontified t))] > > key-valid-p doesn't support such strings, it expects strings that > describe key sequences. > > Significantly, possibly_translate_key_sequence calls key-parse after > it calls key-valid-p, and key-parse copes with this string quite well. No, `key-parse` doesn't handle this correctly either. The ["create a file"] above is an "internal" key-sequence of length 1 that happens to use a string as the sole key. `possibly_translate_key_sequence` instead is trying to handle the new "external" key-sequence format [] where is using the `kbd` syntax, i.e. the string is not itself a key but represents a key-sequence. IOW, this is a fundamental incompatibility introduced by the support for this new [] format in `define-key`: keys cannot be arbitrary objects any more (among other things they can't be strings any more). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 12:00:17 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 16:00:17 +0000 Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRakK-0001UT-O5 for submit@debbugs.gnu.org; Thu, 03 Aug 2023 12:00:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRakI-0001UB-Ri for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 12:00:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRakC-00085v-IX; Thu, 03 Aug 2023 12:00:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=F4Mz9XYOeT0Rjq9CDkFZdM/s51S+wc2N9+HUSbKXPhU=; b=r/1djY+W/44K R+jnEKhSXMhxIPvcLj8HjzDTo2q07Pr+iOptJp9zkd41pnab8rd8c05K37MqaQ7bQG3emoYRQpWzO yh1YlIcy5B6OH+W9qZ5jXAXKw1udwlpoPMwS3Iuo7oErHgORfVtwt+CzLHAQmLEeS/3HgTgfRY67N MUtU2AjsHMGKjO7YHOIanOYyDnZ1Fyr6XYQbnpBisH61zPQ/FtqH6l9N5yxDxWEvYUysm8j/DRStz vaLVvQVPROx1B3s4AC7j7OuKsjF1eO+gG6ObmR/kWcOsJvWPRiMMFGObgiu5v/yMRdF1lLkhnHY+Z wIMBl8P4wUevJivYAEsnzw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRakC-0003TX-0g; Thu, 03 Aug 2023 12:00:08 -0400 Date: Thu, 03 Aug 2023 19:00:18 +0300 Message-Id: <83y1isw1yl.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Thu, 03 Aug 2023 11:11:24 -0400) Subject: Re: bug#64927: 30.0.50; kill-ring with no X References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org 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: -3.3 (---) > From: Stefan Monnier > Cc: m43cap@yandex.com, 64927@debbugs.gnu.org, Lars Ingebrigtsen > > Date: Thu, 03 Aug 2023 11:11:24 -0400 > > The ["create a file"] above is an "internal" key-sequence of length > 1 that happens to use a string as the sole key. > > `possibly_translate_key_sequence` instead is trying to handle the new > "external" key-sequence format [] where is using > the `kbd` syntax, i.e. the string is not itself a key but represents > a key-sequence. > > IOW, this is a fundamental incompatibility introduced by the support for > this new [] format in `define-key`: keys cannot be arbitrary > objects any more (among other things they can't be strings any more). Hmm... that's bad, isn't it? Menus always supported strings like that, so we have no lost that? Do you see any reasonably practical way to get that back? And here we are not calling define-key, we are calling lookup-key instead, btw. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 12:06:55 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 16:06:55 +0000 Received: from localhost ([127.0.0.1]:52783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRaql-0001h0-4n for submit@debbugs.gnu.org; Thu, 03 Aug 2023 12:06:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRaqi-0001gf-N8 for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 12:06:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRaqc-0002VH-9w; Thu, 03 Aug 2023 12:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=taHdCLa9ph4lB2El6pHH+UiKrTQacha3TVOwhjJGz6o=; b=T0Pi/kBNEAA3 i/k/4QF7zvxCKwflv/ngXytppNkdlJpa/sL0ZeI51ianVKhM4h3Ql19BeEd3L7KPH7GIVIFeJB9rU sQ21JGOFZsv8O0tH1PRWgw5VBnUTvd9UmUT8zXvV8lbF1tTrhjQIv0/3L6zqbIQL/gyjvprjk7t5U 2Jc8YB5V0Yh4hKC0yECHQg+f0NGCwxPCTPl+NreC7es3Gs+oCsNpgZuAYNWgskpaNIhp0tnYNT1Lg Vi0wSg/86nbkvLJ2OObCeoBpp0fzkuwH6Gm4hGT8fP5iZ1AGHTMndoyEzwYrOtEJ4bpSzV/IOhWAq PX4ongIWSvw7y9Bn7RJWlg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRaqb-0003NQ-PZ; Thu, 03 Aug 2023 12:06:46 -0400 Date: Thu, 03 Aug 2023 19:06:56 +0300 Message-Id: <83v8dww1nj.fsf@gnu.org> From: Eli Zaretskii To: monnier@iro.umontreal.ca In-Reply-To: <83y1isw1yl.fsf@gnu.org> (message from Eli Zaretskii on Thu, 03 Aug 2023 19:00:18 +0300) Subject: Re: bug#64927: 30.0.50; kill-ring with no X References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org 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: -3.3 (---) > Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org > Date: Thu, 03 Aug 2023 19:00:18 +0300 > From: Eli Zaretskii > > Hmm... that's bad, isn't it? Menus always supported strings like > that, so we have no lost that? Do you see any reasonably practical ^^ That was supposed to be "now", sorry. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 12:30:49 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 16:30:49 +0000 Received: from localhost ([127.0.0.1]:52800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRbDs-0002KQ-W4 for submit@debbugs.gnu.org; Thu, 03 Aug 2023 12:30:49 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRbDr-0002KD-Ap for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 12:30:47 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BD46F44467B; Thu, 3 Aug 2023 12:30:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1691080240; bh=hecXTN/5NP2ARybgQjwMSYUmpTTKB7djUYX1wqs9VXI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iKCzHz0WO/X1Z321saS0cpzf9n+PW/wmWMHiW+1y8TxHkMavbx6nj1mb7+XHMMDaH 36UR7GPUTHVTqwI7ylUXvlPWMKmnjEY9ePz/G/bcC+OUvb01japYIDo/reLSUeh/nl aYq9Lv6Kzl0P7vbwXHUJAmPNsSay5XCR6n+EC5A1cnIxJUAAQsVjFgCHwesKpNYpn+ qUCWbL07tHceAd4bBzuN2ZII2jwElAQ3UDZgb3gspdH9PvMrZtYatAuPt9SjCmsIQx ExfjtTyXCkXNhBOTHy77OLcDfh9AvR0xZwp4a3JhLeFDGAstVmYNpR9ofKKxE/a/py OzoWmfiWhJykA== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3CEB0444678; Thu, 3 Aug 2023 12:30:40 -0400 (EDT) Received: from alfajor (unknown [181.44.118.150]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 085FF1202E4; Thu, 3 Aug 2023 12:30:38 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#64927: 30.0.50; kill-ring with no X In-Reply-To: <83y1isw1yl.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Aug 2023 19:00:18 +0300") Message-ID: References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> Date: Thu, 03 Aug 2023 12:30:36 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.016 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org 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: -3.3 (---) >> IOW, this is a fundamental incompatibility introduced by the support for >> this new [] format in `define-key`: keys cannot be arbitrary >> objects any more (among other things they can't be strings any more). > Hmm... that's bad, isn't it? Menus always supported strings like > that, so we have now lost that? Yes, tho admittedly such unconventional keys had various rough corners (e.g. they triggered a few bugs over the years). I think this problem was noticed when the new feature was introduced and we fixed the generation of the kill-ring menu, but apparently nobody fixed the problem in the second part of the code which generates the kill-ring (I remember I mentioned at the time that we should try and consolidate those two code paths). > Do you see any reasonably practical way to get that back? The best we can do is to use `key-valid-p` as a best-effort test to decide whether we're in the presence of the new or the old format, but it will inevitably suffer from false positives/negatives. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 14:26:46 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 18:26:46 +0000 Received: from localhost ([127.0.0.1]:52914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRd26-0005R2-5M for submit@debbugs.gnu.org; Thu, 03 Aug 2023 14:26:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRd24-0005Qo-9Z for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 14:26:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRd1x-0007Tq-V3; Thu, 03 Aug 2023 14:26:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ENcmT/A+A1aAXshPCndN9/KI9pyKFuLkGY93Z0Bibd8=; b=aSSuQUcpfVJf y1A72Yc9ED2xXA6fE7C81Q97OIkSG9Oxq60YJHuEYW4bfn82OjV+NLJ0pfkiuJVav/MnbmYEtfxsR QxC9w/Uu4i9BsmlpaZUdvm6Pl3ZLj78zBI7bj3ItygMCCYJEc+FQgCSnquxD234a636ZaL/2JAVv9 JioXVv9MhhpGPNVF/gwHzLO4JeZBL/+AYJkG2iclia51rIBCd/we4Ib5hIzPdJdiZExgsibvs/u43 mK85H4fdhwbK3NZCiNFBjyQ9W7cCq9B2WjTj1nOxHt6eRTn1gO1iiiAOViYqEL2XWMenIAkl+5rG8 ft3Oql+MHKhKY8kIW4SRag==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRd1x-0002OV-25; Thu, 03 Aug 2023 14:26:37 -0400 Date: Thu, 03 Aug 2023 21:26:47 +0300 Message-Id: <83tttgvv6g.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Thu, 03 Aug 2023 12:30:36 -0400) Subject: Re: bug#64927: 30.0.50; kill-ring with no X References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org 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: -3.3 (---) > From: Stefan Monnier > Cc: m43cap@yandex.com, 64927@debbugs.gnu.org, larsi@gnus.org > Date: Thu, 03 Aug 2023 12:30:36 -0400 > > I think this problem was noticed when the new feature was introduced and > we fixed the generation of the kill-ring menu, but apparently nobody > fixed the problem in the second part of the code which generates the > kill-ring (I remember I mentioned at the time that we should try and > consolidate those two code paths). Looks like that, yes. > > Do you see any reasonably practical way to get that back? > > The best we can do is to use `key-valid-p` as a best-effort test to > decide whether we're in the presence of the new or the old format, but > it will inevitably suffer from false positives/negatives. Not sure I understand: if key-valid-p returns nil, what do you suggest to do with "keys" such as those produced in the scenario of this bug report? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 15:55:23 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 19:55:23 +0000 Received: from localhost ([127.0.0.1]:52987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRePq-0007lB-W6 for submit@debbugs.gnu.org; Thu, 03 Aug 2023 15:55:23 -0400 Received: from forward502a.mail.yandex.net ([178.154.239.82]:57754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRePo-0007l1-9M for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 15:55:21 -0400 Received: from mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:f15:0:640:e80a:0]) by forward502a.mail.yandex.net (Yandex) with ESMTP id 168865E933; Thu, 3 Aug 2023 22:55:18 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id FtZLrd0WmiE0-LfIukyXB; Thu, 03 Aug 2023 22:55:17 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1691092517; bh=Wkq4kfO0yP8RABt7ltylcs66n/AcB9aeVzhtsSJwZKg=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=mUjMSFwRm6dYSMgmBZ8ZBdwkcDJhumRgwCcG1KREYaQuAscDT6B+95pH+gA2BrwVb sou8iOYrKhDjftlTrv1ZUaWFykbpkiupQrlWEHQocDHa//qKsMUvwnFm5pAublNTuk WRwD0/O0uQyVK8FFj2H/YaAJ4kA331/fvVg2aM9I= Authentication-Results: mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.com From: Colin Baxter To: Eli Zaretskii Subject: Re: bug#64927: 30.0.50; kill-ring with no X In-Reply-To: <838rasxxlw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Aug 2023 12:51:23 +0300") References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Thu, 03 Aug 2023 20:55:15 +0100 Message-ID: <878rar3nq4.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 64927 Cc: 64927@debbugs.gnu.org, Lars Ingebrigtsen , Stefan Monnier 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: , Reply-To: m43cap@yandex.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) >>>>> Eli Zaretskii writes: >> From: Colin Baxter Date: Sat, 29 Jul 2023 >> 12:25:16 +0100 >> >>>>>>> Colin Baxter writes: >> >> > 1. Emacs-30.0.50 compiled --with-x-toolkit=no > 2. emacs -Q >> > 3. C-x C-f test.txt > 4. Enter some text, >> e.g. "This is a test." > 5. Enter some more text, e.g. "This is >> another test." > 6. Place the cursor somewhere and press > >> 7. Select Edit --> Paste from kill menu --> This is test. > >> 8. popup-menu: Invalid > `key-parse' syntax: %S: ["This is a >> test"] >> >> Forget to mention that the text 4, 5 has of course to be copied >> to the kill-ring using C- M-w. Sorry about that! > I can reproduce the same problem on a TTY frame by activating the > menu with F10, but not if the menu is activated with a mouse (on a > text-mode terminal that has a mouse). Do you see the same problem > in the non-toolkit build if you use the mouse instead of the > keyboard? The issue remains whether I use a mouse to mark the region or C-. > This also affects Emacs 29, and is a regression from Emacs 28, > which is related to the use of the new key-* functions. > Specifically, the error is signaled by the call to key-valid-p > issued by possibly_translate_key_sequence, which is a subroutine > of lookup-key. The argument KEY of > possibly_translate_key_sequence in this case is a vector whose > only element is a string with text properties: > [#("create a file" 0 13 (face font-lock-comment-face fontified > t))] > key-valid-p doesn't support such strings, it expects strings that > describe key sequences. > Significantly, possibly_translate_key_sequence calls key-parse > after it calls key-valid-p, and key-parse copes with this string > quite well. So I'm thinking of removing the key-valid-p call from > possibly_translate_key_sequence, since I believe key-parse can > detect any problems by itself? Stefan, WDYT? > Colin, can you try such a change and see if it produces any > regressions? I will try, but I might be out of my depth here. I've found the "possibly_translate_key_sequence" line in keymap.c, but what part of the c program should I then comment out and re-build? Colin Baxter. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 17:13:26 2023 Received: (at 64927) by debbugs.gnu.org; 3 Aug 2023 21:13:26 +0000 Received: from localhost ([127.0.0.1]:53038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRfdO-0001I2-8e for submit@debbugs.gnu.org; Thu, 03 Aug 2023 17:13:26 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRfdM-0001Hr-QU for 64927@debbugs.gnu.org; Thu, 03 Aug 2023 17:13:25 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 13712444770; Thu, 3 Aug 2023 17:13:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1691097197; bh=o248rdDIUmijym6m1ddHY3s0unAiTPbjLjlcf6pTSUY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Il1onUhsI3ltjMz+xnK7rPCnJbV9+QqxIoFtQE5wdZBBGSNj2bqDfx2WZizgdzpj7 ItE8M/sUgnCslCeJUQPSjxy9urff4QFOeHeGJyQObZbB3Z0xIq1tRsXmuDVWGczGqG E/VC1CJVT0nSHTZ8x7s+wHl7tRDrVx8WE9In/4rR2vlI6vIoeImkW9hvfVPKvoVICO seHmxnCaI45jyNsuce4yDErHSbso1pzVf/b/rD+dyF7Lsh/XeQlbeqjQ3D1bVl0mF0 PuUwWfYIklf6At/dCB5v774FhN21ft3pAHrCqOVV1md+7mYEs4M37T3s6abHSNoCTu mCzuOWptY20xQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8144744476E; Thu, 3 Aug 2023 17:13:17 -0400 (EDT) Received: from alfajor (unknown [181.44.118.150]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 535A212022B; Thu, 3 Aug 2023 17:13:16 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#64927: 30.0.50; kill-ring with no X In-Reply-To: <83tttgvv6g.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Aug 2023 21:26:47 +0300") Message-ID: References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> <83tttgvv6g.fsf@gnu.org> Date: Thu, 03 Aug 2023 17:13:13 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.012 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927 Cc: m43cap@yandex.com, larsi@gnus.org, 64927@debbugs.gnu.org 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: -3.3 (---) >> The best we can do is to use `key-valid-p` as a best-effort test to >> decide whether we're in the presence of the new or the old format, but >> it will inevitably suffer from false positives/negatives. > > Not sure I understand: if key-valid-p returns nil, what do you suggest > to do with "keys" such as those produced in the scenario of this bug > report? I suggest we do: diff --git a/src/keymap.c b/src/keymap.c index da2af98c2d6..eec3e884935 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1066,7 +1066,7 @@ possibly_translate_key_sequence (Lisp_Object key, ptrdiff_t *length) build_string ("`key-valid-p' is not defined, so this syntax can't be used: %s"), key); if (NILP (call1 (Qkey_valid_p, AREF (key, 0)))) - xsignal2 (Qerror, build_string ("Invalid `key-parse' syntax: %S"), key); + return key; key = call1 (Qkey_parse, AREF (key, 0)); *length = CHECK_VECTOR_OR_STRING (key); if (*length == 0) With this change, (let ((map (make-sparse-keymap))) (define-key map ["he"] 'hello) map) returns (keymap ("he" . hello)) as before, and emits a message: Key sequence contains invalid event he whereas (let ((map (make-sparse-keymap))) (define-key map ["h e"] 'hello) map) returns (keymap (104 keymap (101 . hello))). I think this new [KBDSTRING] syntax was probably a mistake, in retrospect: it made sense at the time, but we should have removed it afterwards when we introduced the new `key-*` functions. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 04 02:14:47 2023 Received: (at submit) by debbugs.gnu.org; 4 Aug 2023 06:14:47 +0000 Received: from localhost ([127.0.0.1]:53276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRo5H-0007CS-H2 for submit@debbugs.gnu.org; Fri, 04 Aug 2023 02:14:47 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRo5F-0007CD-Fm for submit@debbugs.gnu.org; Fri, 04 Aug 2023 02:14:45 -0400 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 1qRo4y-0001iv-PP for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 02:14:32 -0400 Received: from forward502b.mail.yandex.net ([178.154.239.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRo4q-0002aL-R0; Fri, 04 Aug 2023 02:14:27 -0400 Received: from mail-nwsmtp-smtp-production-main-23.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-23.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:279e:0:640:5630:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id 999A65E78E; Fri, 4 Aug 2023 09:14:10 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-23.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 7ENwpB7UlSw0-aff3MZK5; Fri, 04 Aug 2023 09:14:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1691129649; bh=doUMVzcZgDJ0IrDUekEKz031iu7h49O4qj9XvvB/Wcg=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=h1V19iPOh+8+bVoInI3b4mNHqU/VYqWAYkwX90/8RH/Eq8PgnQBgbwpkcq1tWj/9G ekxBWRlW68i9K96q5OjnDI1fuVMhPzpo4macEF5t2jCcB2qpa5Po4pWB1pQinzD215 +K+HDAAE5DX9VP98oEMasYJC6cnopZSM/rTxMAHw= Authentication-Results: mail-nwsmtp-smtp-production-main-23.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.com From: Colin Baxter To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#64927: 30.0.50; kill-ring with no X In-Reply-To: (Stefan Monnier via's message of "Thu, 03 Aug 2023 17:13:13 -0400") References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> <83tttgvv6g.fsf@gnu.org> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Fri, 04 Aug 2023 07:14:07 +0100 Message-ID: <874jlf2v2o.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.154.239.146; envelope-from=m43cap@yandex.com; helo=forward502b.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: larsi@gnus.org, Eli Zaretskii , Stefan Monnier , 64927@debbugs.gnu.org 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: , Reply-To: m43cap@yandex.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> Bug reports for GNU Emacs, the Swiss army knife of text editors writes: >>> The best we can do is to use `key-valid-p` as a best-effort test >>> to decide whether we're in the presence of the new or the old >>> format, but it will inevitably suffer from false >>> positives/negatives. >> >> Not sure I understand: if key-valid-p returns nil, what do you >> suggest to do with "keys" such as those produced in the scenario >> of this bug report? > I suggest we do: > diff --git a/src/keymap.c b/src/keymap.c index > da2af98c2d6..eec3e884935 100644 --- a/src/keymap.c +++ > b/src/keymap.c @@ -1066,7 +1066,7 @@ > possibly_translate_key_sequence (Lisp_Object key, ptrdiff_t > *length) build_string ("`key-valid-p' is not defined, so this > syntax can't be used: %s"), key); if (NILP (call1 (Qkey_valid_p, > AREF (key, 0)))) - xsignal2 (Qerror, build_string ("Invalid > `key-parse' syntax: %S"), key); + return key; key = call1 > (Qkey_parse, AREF (key, 0)); *length = CHECK_VECTOR_OR_STRING > (key); if (*length == 0) > With this change, > (let ((map (make-sparse-keymap))) (define-key map ["he"] > 'hello) map) > returns (keymap ("he" . hello)) as before, and emits a message: > Key sequence contains invalid event he > whereas > (let ((map (make-sparse-keymap))) (define-key map ["h e"] > 'hello) map) > returns (keymap (104 keymap (101 . hello))). I have applied this patch and it seems to work. 1. In a test file select a region with mouse and save to kill-ring. 2. Select another region via C- and save to kill-ring. 3. Paste both regions in another part of test file using mouse via --> Edit --> Paste from kill-ring Menu 4. Success. Colin Baxter. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 04 02:38:30 2023 Received: (at 64927-done) by debbugs.gnu.org; 4 Aug 2023 06:38:31 +0000 Received: from localhost ([127.0.0.1]:53293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRoSE-0007mk-EP for submit@debbugs.gnu.org; Fri, 04 Aug 2023 02:38:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRoSC-0007mX-4r for 64927-done@debbugs.gnu.org; Fri, 04 Aug 2023 02:38:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRoS6-0004Di-CJ; Fri, 04 Aug 2023 02:38:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ymuG4AytXG2fhp/O002KzcZ1L+Jx3SLRU9wluaD7prc=; b=ZOhZdeDe84S8 YdDgEitH1QdHQazS2vU3N97URYf7+zNyVYqyxiaAPxYBvdWptSl6Bd1B2o/d1oCnB27j8pwzCCREP J1bs3GydGKovyNSa9YOR7Qv2ZdHRBeeGmtqr+0kVR2hYehhdQH4r3vq92oC/dSrKwjMXgv4cufaWC HFh7YwC/tG9QwRxcaWFpvdKkcg2yyWFSMUwY7BDK8d2pDbEJt1Z8QjK5iBmwBbQRCB9kVsoXJ8FdP G1t5X0rRf19gEVF8eAHeWY5pLRFTMI1ZUyoCt7Kwkx8AfpgZWd/aoLpRPTk5Am8xx306m4Nilfe2H ISAv03WC5c7iwNa+J73lWQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRoS5-00071v-Ou; Fri, 04 Aug 2023 02:38:22 -0400 Date: Fri, 04 Aug 2023 09:38:32 +0300 Message-Id: <83cz03wbvb.fsf@gnu.org> From: Eli Zaretskii To: m43cap@yandex.com In-Reply-To: <874jlf2v2o.fsf@yandex.com> (message from Colin Baxter on Fri, 04 Aug 2023 07:14:07 +0100) Subject: Re: bug#64927: 30.0.50; kill-ring with no X References: <87edkrdp78.fsf@yandex.com> <87a5vfdko3.fsf@yandex.com> <838rasxxlw.fsf@gnu.org> <83y1isw1yl.fsf@gnu.org> <83tttgvv6g.fsf@gnu.org> <874jlf2v2o.fsf@yandex.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64927-done Cc: larsi@gnus.org, 64927-done@debbugs.gnu.org, monnier@iro.umontreal.ca 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: -3.3 (---) > From: Colin Baxter > Cc: Eli Zaretskii , Stefan Monnier > , larsi@gnus.org, 64927@debbugs.gnu.org > Date: Fri, 04 Aug 2023 07:14:07 +0100 > > >>>>> Bug reports for GNU Emacs, the Swiss army knife of text editors writes: > > > I suggest we do: > > > diff --git a/src/keymap.c b/src/keymap.c index > > da2af98c2d6..eec3e884935 100644 --- a/src/keymap.c +++ > > b/src/keymap.c @@ -1066,7 +1066,7 @@ > > possibly_translate_key_sequence (Lisp_Object key, ptrdiff_t > > *length) build_string ("`key-valid-p' is not defined, so this > > syntax can't be used: %s"), key); if (NILP (call1 (Qkey_valid_p, > > AREF (key, 0)))) - xsignal2 (Qerror, build_string ("Invalid > > `key-parse' syntax: %S"), key); + return key; key = call1 > > (Qkey_parse, AREF (key, 0)); *length = CHECK_VECTOR_OR_STRING > > (key); if (*length == 0) > > > With this change, > > > (let ((map (make-sparse-keymap))) (define-key map ["he"] > > 'hello) map) > > > returns (keymap ("he" . hello)) as before, and emits a message: > > > Key sequence contains invalid event he > > > whereas > > > (let ((map (make-sparse-keymap))) (define-key map ["h e"] > > 'hello) map) > > > returns (keymap (104 keymap (101 . hello))). > > I have applied this patch and it seems to work. > > 1. In a test file select a region with mouse and save to kill-ring. > 2. Select another region via C- and save to kill-ring. > 3. Paste both regions in another part of test file using mouse via > --> Edit --> Paste from kill-ring Menu > 4. Success. Thanks, I've now installed this on the emacs-29 branch, and I'm closing this bug. From unknown Sun Sep 21 08:58:48 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, 01 Sep 2023 11:24:06 +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