From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62626: 29.0.60; describe-key errors on Edit =?UTF-8?Q?=E2=86=92?= Paste from Kill Ring =?UTF-8?Q?=E2=86=92?= [any item] Date: Sat, 08 Apr 2023 15:43:43 +0300 Message-ID: <83ttxqmtmo.fsf@gnu.org> References: <83cz4hqljl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, 62626@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 08 14:44:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pl7vV-0005hn-VN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Apr 2023 14:44:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pl7vH-00021I-Hj; Sat, 08 Apr 2023 08:44:03 -0400 Original-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 1pl7vG-000219-OB for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2023 08:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pl7vG-0007iv-EN for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2023 08:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pl7vG-000868-AV for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2023 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2023 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62626 X-GNU-PR-Package: emacs Original-Received: via spool by 62626-submit@debbugs.gnu.org id=B62626.168095780031066 (code B ref 62626); Sat, 08 Apr 2023 12:44:02 +0000 Original-Received: (at 62626) by debbugs.gnu.org; 8 Apr 2023 12:43:20 +0000 Original-Received: from localhost ([127.0.0.1]:57982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pl7uZ-000850-Hi for submit@debbugs.gnu.org; Sat, 08 Apr 2023 08:43:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pl7uY-00084n-D6 for 62626@debbugs.gnu.org; Sat, 08 Apr 2023 08:43:19 -0400 Original-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 1pl7uQ-0007WZ-3p; Sat, 08 Apr 2023 08:43:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=m8U4o8bjiBmi8Rgzx1B/bJNHsnMxzPbOyZE1IrtmQTw=; b=QIVUDsgWK8Hwaox2bsd1 mbPlcOHo9JcCVKFWXpkBSpUTrOIzLHmq9uTJqVxHFPpyLk3lyboiSCFgcN5/t8wnC0xTi1yRd3NT9 vMFScZvI/uCbG4AXmc3VczM/4FtD2UFxs9Db0EajrwMq/Voj6b8l1Lvj+A4H2DKVHRYI+hQvPrqGg VpF8DYmkifEQbJDeLmSWcdqMomMT98CxYG+/XQisukDOXe1ma1alcerIg8E+gXXFRS4SM6mvI2sXT q4chHKpIPkDZ+AyQSl/8Je1bIM0yezW/EJ3BJikXiZUFAwTqf6DcHL3AE459ObY8mHlPE7pgUwDpj j/P2+cjormY+jg==; Original-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 1pl7uP-00012T-CZ; Sat, 08 Apr 2023 08:43:09 -0400 In-Reply-To: (message from Stefan Monnier on Thu, 06 Apr 2023 10:07:47 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259471 Archived-At: > From: Stefan Monnier > Cc: Spencer Baugh , 62626@debbugs.gnu.org > Date: Thu, 06 Apr 2023 10:07:47 -0400 > > > An alternative solution for the original problem would be to teach > > event-basic-type and event-modifiers about "events" that happen to be > > strings. > > Since `read-key-sequence` returns those, we should probably teach > `event-*` functions to deal with them. Done. > But since they don't agree with `eventp`, maybe we should also consider > deprecating such "weird keys". Patches welcome (and this is not for the release branch anyway). > FWIW, that very same "Paste from Kill Menu" is constructed differently in > `context-menu-region` where it doesn't suffer from this problem (it > uses integers instead of strings, as keys). Aren't those integer indices the reason why the recipe below: emacs -Q M-x context-menu-mode RET Type "foobar" and kill it C-h k and right click, then "Paste from Kill Menu", then select string Observe the help buffer claims the key sequence was: C-a ^^^ shows the bogus "C-a" at the end of the sequence? I believe C-a comes from the index 1 that read-key-sequence returns at the end of the sequence: [(down-mouse-3 (# 146 (422 . 257) 1959895390 nil 146 (52 . 3) nil (422 . 209) (8 . 16))) paste-from-menu 1]