From unknown Tue Jun 17 20:13:15 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#7631 <7631@debbugs.gnu.org> To: bug#7631 <7631@debbugs.gnu.org> Subject: Status: 24.0.50; inconsistency in event-convert-list and event-basic-type Reply-To: bug#7631 <7631@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:13:15 +0000 retitle 7631 24.0.50; inconsistency in event-convert-list and event-basic-t= ype reassign 7631 emacs submitter 7631 Don March severity 7631 normal tag 7631 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 01:16:55 2010 Received: (at submit) by debbugs.gnu.org; 13 Dec 2010 06:16:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS1iR-0002Xd-2i for submit@debbugs.gnu.org; Mon, 13 Dec 2010 01:16:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS1iO-0002XS-IE for submit@debbugs.gnu.org; Mon, 13 Dec 2010 01:16:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PS1oL-000720-Pd for submit@debbugs.gnu.org; Mon, 13 Dec 2010 01:23:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PS1oL-00071v-Nb for submit@debbugs.gnu.org; Mon, 13 Dec 2010 01:23:01 -0500 Received: from [140.186.70.92] (port=51581 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PS1oJ-0007o7-M5 for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 01:23:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PS1oH-00071D-TE for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 01:22:59 -0500 Received: from cl33.gs01.gridserver.com ([64.13.192.42]:48961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PS1oH-00070X-Oi for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 01:22:57 -0500 Received: from mail-iw0-f175.google.com ([209.85.214.175]:57485) by cl33.gs01.gridserver.com with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1PS1oE-0005Vy-08 for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2010 22:22:55 -0800 Received: by iwn8 with SMTP id 8so8752524iwn.34 for ; Sun, 12 Dec 2010 22:22:52 -0800 (PST) Received: by 10.42.164.66 with SMTP id f2mr2423767icy.431.1292221372395; Sun, 12 Dec 2010 22:22:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.222.134 with HTTP; Sun, 12 Dec 2010 22:22:32 -0800 (PST) From: Don March Date: Mon, 13 Dec 2010 01:22:32 -0500 Message-ID: Subject: 24.0.50; inconsistency in event-convert-list and event-basic-type To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Authenticated-User: 14129 don@ohspite.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) The definition for `event-convert-list' in keyboard.c has the following code, which causes symbols consisting of a single character to be interpreted as the character itself: /* Let the symbol A refer to the character A. */ if (SYMBOLP (base) && SCHARS (SYMBOL_NAME (base)) == 1) XSETINT (base, SREF (SYMBOL_NAME (base), 0)); I see how this is well-intentioned but I don't think that it's useful, particularly because of the case where the symbol is `t'. (event-convert-list '(t)) ; => 116 There's good reason to want this to eval to t (i.e. the symbol, not the char). For example, I found this interesting behavior when using `map-keymap' to automate remapping commands from C- with M-. It also seems to produce inconsistent results: (event-convert-list '(nil)) ; => nil (event-convert-list '(t)) ; => 116 (event-convert-list '(tt)) ; => tt (event-convert-list '(control t)) ; => 20 (event-convert-list '(control tt)) ; => C-tt If, however, this the Right Thing for some reason I don't see, the documentation for `event-convert-list' needs to be changed: "The return value is an event type (a character or symbol) ***which has the same base event type*** and all the specified modifiers" (emphasis added). (event-convert-list '(t)) ; => 116 (event-basic-type t) ; => t In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2010-12-12 on lappy Windowing system distributor `The X.Org Foundation', version 11.0.10900000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 12:55:07 2010 Received: (at 7631) by debbugs.gnu.org; 13 Dec 2010 17:55:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSCc6-0002v4-W3 for submit@debbugs.gnu.org; Mon, 13 Dec 2010 12:55:07 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSCc4-0002ua-Ds for 7631@debbugs.gnu.org; Mon, 13 Dec 2010 12:55:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUJALDuBU1FpZA//2dsb2JhbACiaYEcecMChUoEhGSOBQ X-IronPort-AV: E=Sophos;i="4.59,336,1288584000"; d="scan'208";a="85319272" Received: from 69-165-144-63.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.63]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 13 Dec 2010 13:01:15 -0500 Received: by pastel.home (Postfix, from userid 20848) id DE58A58CC2; Mon, 13 Dec 2010 13:01:14 -0500 (EST) From: Stefan Monnier To: Don March Subject: Re: bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type Message-ID: References: Date: Mon, 13 Dec 2010 13:01:14 -0500 In-Reply-To: (Don March's message of "Mon, 13 Dec 2010 01:22:32 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7631 Cc: 7631@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > (event-convert-list '(t)) ; => 116 > There's good reason to want this to eval to t (i.e. the symbol, not > the char). Could you explain what is this good reason? In Emacs, events corresponding to keys that are associated with a characters are represented by an Elisp char, whereas other events are represented by symbols. AFAIK event-convert-list is mostly used to convert XEmacs style (define-key map [(control x)] 'foo) to (define-key map ?\C-x 'foo) so this single-char symbol conversion to a character is useful. Maybe you can explain to us the problem it causes you. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 22:30:34 2010 Received: (at 7631) by debbugs.gnu.org; 14 Dec 2010 03:30:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSLaz-0007ne-QC for submit@debbugs.gnu.org; Mon, 13 Dec 2010 22:30:34 -0500 Received: from cl05.gs01.gridserver.com ([64.13.192.14]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSLax-0007nR-Nb for 7631@debbugs.gnu.org; Mon, 13 Dec 2010 22:30:32 -0500 Received: from mail-iw0-f172.google.com ([209.85.214.172]:53191) by cl05.gs01.gridserver.com with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1PSLgw-0001ON-1O for 7631@debbugs.gnu.org; Mon, 13 Dec 2010 19:36:43 -0800 Received: by iwn40 with SMTP id 40so237117iwn.3 for <7631@debbugs.gnu.org>; Mon, 13 Dec 2010 19:36:40 -0800 (PST) Received: by 10.42.169.200 with SMTP id c8mr3679986icz.297.1292297800761; Mon, 13 Dec 2010 19:36:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.222.134 with HTTP; Mon, 13 Dec 2010 19:36:20 -0800 (PST) In-Reply-To: References: From: Don March Date: Mon, 13 Dec 2010 22:36:20 -0500 Message-ID: Subject: Re: bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 X-Authenticated-User: 14129 don@ohspite.net X-Spam-Status: "score=-1.4 tests=ALL_TRUSTED version=3.1.7" X-Spam-Level: X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 7631 Cc: 7631@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On Mon, Dec 13, 2010 at 1:01 PM, Stefan Monnier wrote: >> (event-convert-list '(t)) ; => 116 > >> There's good reason to want this to eval to t (i.e. the symbol, not >> the char). > > Could you explain what is this good reason? I guess it boils down to the expected result of: (setq event t) (event-convert-list (append (event-modifiers event) (list (event-basic-type event)))) ; => 116, not t In my mind, this should be an identity function (in the mathematical sense) for events; if you take the event-modifiers and the event-basic-type and then splice them together, the result should be the original event. A simplified version of what I was doing when I found this (which may or may not be important) was something along the lines of: (defun swap-C-and-M (event) (event-convert-list (append (mapcar (lambda (x) (case x ('control 'meta) ('meta 'control) ('click nil) (t x))) (event-modifiers event)) (list (event-basic-type event))))) (setq new-keymap (make-sparse-keymap)) (map-keymap (lambda (key def) (define-key new-keymap (vector (swap-C-and-M key)) def)) isearch-mode-map) (swap-C-and-M ?\M-x) ; => 24 (swap-C-and-M 'foo) ; => foo (swap-C-and-M t) ; => 116 (lookup-key new-keymap [?t]) ; => isearch-other-control-char (lookup-key new-keymap [t]) ; => nil From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 08:20:43 2021 Received: (at 7631) by debbugs.gnu.org; 18 Jul 2021 12:20:43 +0000 Received: from localhost ([127.0.0.1]:55350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m55mk-0002mm-RD for submit@debbugs.gnu.org; Sun, 18 Jul 2021 08:20:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m55mi-0002mR-Eg for 7631@debbugs.gnu.org; Sun, 18 Jul 2021 08:20:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=B2CQezc4ZiKecRv13gV+Y2qeoFyt/AUeeEUm1OZy3g4=; b=NIHVDUl8BpDv3FcXtnCSQ9nG0j kPjVATT0YZpnezUgn3f9pDO8KQcP/7KXwMisuB8OFLm3j9wPU3Y06p7mDMVosV30EuDLRgUuEy0wD TaKX4P2/IWosbYNFM4URvRQ0xSr6c5M+7/wwxYuDQQG7xt/jSMe1Uw/1lx13abiA7+0M=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m55mZ-0000Rk-Cg; Sun, 18 Jul 2021 14:20:33 +0200 From: Lars Ingebrigtsen To: Don March Subject: Re: bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type References: X-Now-Playing: The Meters's _Gettin' Funkier All The Time (1): Here Comes The Meter Man & Looka-Ya Py Py_: "Live Wire" Date: Sun, 18 Jul 2021 14:20:30 +0200 In-Reply-To: (Don March's message of "Mon, 13 Dec 2010 22:36:20 -0500") Message-ID: <871r7vu835.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Don March writes: >>> (event-convert-list '(t)) ; => 116 >> >>> There's good reason to want this to eval to t (i.e. the symbol, not >>> the char). >> >> Could you explain what is this good reason? > > I guess it boils [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 7631 Cc: 7631@debbugs.gnu.org, 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Don March writes: >>> (event-convert-list '(t)) ; => 116 >> >>> There's good reason to want this to eval to t (i.e. the symbol, not >>> the char). >> >> Could you explain what is this good reason? > > I guess it boils down to the expected result of: > > (setq event t) > > (event-convert-list > (append (event-modifiers event) > (list (event-basic-type event)))) ; => 116, not t Or simpler: (event-convert-list (list nil 's)) => 115 (115 is the same as the character ?s.) The doc string says: --- EVENT-DESC should contain one base event type (a character or symbol) and zero or more modifier names (control, meta, hyper, super, shift, alt, drag, down, double or triple). The base must be last. The return value is an event type (a character or symbol) which has the same base event type and all the specified modifiers. --- (event-basic-type 's) => s So if this isn't a bug (and I think it would be problematic to change the return value at this point), the doc string is at least slightly misleading here, and shouldn't claim that it returns exactly the same base event type. Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 08:20:46 2021 Received: (at control) by debbugs.gnu.org; 18 Jul 2021 12:20:46 +0000 Received: from localhost ([127.0.0.1]:55353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m55mo-0002n3-7v for submit@debbugs.gnu.org; Sun, 18 Jul 2021 08:20:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m55mm-0002mZ-NH for control@debbugs.gnu.org; Sun, 18 Jul 2021 08:20:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HjvDCzrpWHiOmg0kemUyla6oXQGxuF2VEusEpxNiEcE=; b=k2Qn/cEs5mqTE90KA4Fpx5ptS8 /JaBxz8wBkLEyXL3+gmdBeOXolXeMFtSV4MS0A0AXB4s8Wgb7lTeKWDBLQnexN2jhojlY5mRnvpJy KOuRLky01AvqnbJ/P1XgJXZlHLkwHpjT0N3WyeLjdFFt9itxPrZRgmHYeRqHosTKCsFY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m55mf-0000Rs-5q for control@debbugs.gnu.org; Sun, 18 Jul 2021 14:20:39 +0200 Date: Sun, 18 Jul 2021 14:20:36 +0200 Message-Id: <87zgujstij.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #7631 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 7631 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) tags 7631 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 14:12:17 2021 Received: (at 7631) by debbugs.gnu.org; 18 Jul 2021 18:12:17 +0000 Received: from localhost ([127.0.0.1]:57152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BGz-0008Sm-7O for submit@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BGx-0008SF-5A for 7631@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wN+XXmyXLFKxSL94CgF7WKKuTuVSkQsE1hJYgnsX/SU=; b=pSWCa15iUxkUVYbxm73dzHy58F jY4ght32ke/vTuoLj6Vdr0jaE/Z/W9HWkt4EHa5rOREYEvIEWwDmyz32yF0//XLCCvDXA0FGB/GGf NYe33jbJnn7upxMiH260awDE4qNu/VCz/Xr6ecla/PRjvaqQqkfKwO4hCokUo3xIu36o=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m59Um-0002Ak-CY; Sun, 18 Jul 2021 18:18:26 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type References: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEX8/Pjj49zNmZXk yMPAe3fBwb3T08+zs6+RkY0PDw6ioZ11dXKQgn7///+IVtJmAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+UHEhASCd9jCJIAAAFZSURBVDjLvZK9TsMwEIDvkJogYLAHXKlsaZ8kT8CUgclZHARLMjSpRAem xq/QLR1oo7AzwAvwWDix4yRtEBO9xaf77s73BwCISCgFpcBQLjxv7i8WGsz9ue95tTnoPEwEGTzQ T0WOcloQ/w0wGoCwVS6327gPkla5+soHQLSKwxunk1SYYliMfY6J0/+cPts+oknWgRCuLZiyxAKm irTAdeIWIAe0bcBN9NoCF1lnhxlwGxEeT3BkUecB60f5oYH7/ZBLWbbDYpTWxTsEUDRSV0+VqLNC 9ShOgYI2nq8PEo4D3OzHgZvtduPgaRlbwASx4HaVRdwAN2GpJaI6BCYCcxGIKNf2u5RVQgNMQ4Is M2ufFUC5mS5n0fKlMJmmzdU0wEnfi3rKpiiAie2DkV615vBP+lCh978B/v/7GAfrvdyUUhYKyM3n 6i0v5aHSjrS5IaUIfUv19fwA7y9BZZTLcVgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMThU MTY6MTg6MDkrMDA6MDDfFDk5AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTE4VDE2OjE4OjA5 KzAwOjAwrkmBhQAAAABJRU5ErkJggg== X-Now-Playing: David Byrne's _3 Big Songs_: "Big Blue Plymouth (Eyes Wide Open)" Date: Sun, 18 Jul 2021 18:18:23 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 18 Jul 2021 12:09:43 -0400") Message-ID: <87v957oasw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> So if this isn't a bug (and I think it would be problematic to change >> the return value at this point), the doc string is at least slightly >> misleading here, and shouldn't claim that it returns [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 7631 Cc: 7631@debbugs.gnu.org, Don March 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 (---) Stefan Monnier writes: >> So if this isn't a bug (and I think it would be problematic to change >> the return value at this point), the doc string is at least slightly >> misleading here, and shouldn't claim that it returns exactly the same >> base event type. > > Fair enough, OK; done in Emacs 28, and I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 14:12:35 2021 Received: (at control) by debbugs.gnu.org; 18 Jul 2021 18:12:35 +0000 Received: from localhost ([127.0.0.1]:57161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BHH-0008Th-B6 for submit@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BHF-0008TM-MG for control@debbugs.gnu.org; Sun, 18 Jul 2021 14:12:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NOKazLHj61l/suyYB7dFMIiTy8v7dOhZj9chTo5/trA=; b=fi4Kn4lMjbHDfJznIFVSHG8+nB X2O8V32X6Yt31ZvA8FCMeDXFhJrN+zCU9yppLLPAEi05OH8eEWaYch042QwCy469oDnt+6LX0QQsL Y5y1f7J5hoc7euXTB+bPrhMyKXIvS6AgaTLc0fgxEWL9NLY4nD1gIv2ZHDdg/g/Vm33E=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m59Uv-0002At-LC for control@debbugs.gnu.org; Sun, 18 Jul 2021 18:18:35 +0200 Date: Sun, 18 Jul 2021 18:18:33 +0200 Message-Id: <87tukroasm.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #7631 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: close 7631 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 7631 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 14:36:32 2021 Received: (at 7631) by debbugs.gnu.org; 18 Jul 2021 18:36:32 +0000 Received: from localhost ([127.0.0.1]:57235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BeS-0002su-Mx for submit@debbugs.gnu.org; Sun, 18 Jul 2021 14:36:32 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5BeR-0002sf-8B for 7631@debbugs.gnu.org; Sun, 18 Jul 2021 14:36:32 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D152F100216; Sun, 18 Jul 2021 12:09:45 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B17F91001E8; Sun, 18 Jul 2021 12:09:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1626624584; bh=hv12qtqz4y1LMeQ9tU9s+naXLDxIFrZ0Sf8br0mlOIo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LGn2WvqT/TR56LOkjFNluHMPu0WkYNDalW5jP64Leobcd+XYI1w4EjScLIKkxcjoo wFJPqJmc0hLDRwcxyRTjd03eztK5ftHKBSiir0co+l3ZNXqI6jjz0ifvx1GNxut2gX uO5gg8ov3gT8RHQiQIi6iC9RJ8ZfSF/he8cjji0bieZEh/hiWkqoLE8sBXvim7ucLl ZbnhA0Z0SLQkL19gyCsFbG/GmEVHvYCXlH016FJKVuYXcqK2JHAKcaAJWJHbBpQjwV WvPRfKlKo9L7Q+LhCEFE34otyqIxdv503mNNePnnRPEMNBLQXMuHM6kBvQOtCBBBFi +r1b437WazKSA== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 726F4120270; Sun, 18 Jul 2021 12:09:44 -0400 (EDT) From: Stefan Monnier To: Don March Subject: Re: bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type Message-ID: References: Date: Sun, 18 Jul 2021 12:09:43 -0400 In-Reply-To: (Don March's message of "Mon, 13 Dec 2010 22:36:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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.097 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 X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 7631 Cc: 7631@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 (---) Don March wrote: > (event-convert-list > (append (event-modifiers event) > (list (event-basic-type event)))) ; => 116, not t > > In my mind, this should be an identity function (in the mathematical > sense) for events; In general, it literally can't be: there are several "equivalent" representations of a given event and `event-convert-list` should return a "canonical" version. E.g. it should return `C-M-return` when `event` is `M-C-return`. There is no "canonical event" `t`, instead Emacs uses `?t` as the canonical event for hitting the key `t`. Lars wrote: > So if this isn't a bug (and I think it would be problematic to change > the return value at this point), the doc string is at least slightly > misleading here, and shouldn't claim that it returns exactly the same > base event type. Fair enough, Stefan From unknown Tue Jun 17 20:13:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Aug 2021 11:24:05 +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