From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Moving kbd to subr.el Date: Fri, 15 Oct 2021 16:04:34 +0200 Message-ID: <87ee8m2xl9.fsf@gnus.org> References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <87czoa9e7p.fsf@gnus.org> <878ryxakv9.fsf@gnus.org> <834k9km5no.fsf@gnu.org> <83k0iflsze.fsf@gnu.org> <874k9jzu7a.fsf@gnus.org> <874k9juy0r.fsf@gnus.org> <87mtnbtimj.fsf@gnus.org> <87wnme4m6f.fsf@gnus.org> <83zgraim4f.fsf@gnu.org> <83y26uilww.fsf@gnu.org> <87pms6wmh5.fsf@igel.home> <874k9i4ghl.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1322"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: stefan@marxist.se, Eli Zaretskii , Andreas Schwab , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 15 16:06:14 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mbNqf-00007P-6J for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 16:06:13 +0200 Original-Received: from localhost ([::1]:42208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbNqe-0003r5-1Z for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 10:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbNpD-00035l-3y for emacs-devel@gnu.org; Fri, 15 Oct 2021 10:04:43 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:38730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbNpB-00071J-Dn; Fri, 15 Oct 2021 10:04:42 -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=mrB7CMxo0IMhJCVCjXh7HTteIOQ9/xMIF3akw1LTFSo=; b=aUqTD2ty/XO3ZHQxQBVfL+VYko yjsxqa3FjfZ6B1rXe7TO/IDUVhIKHZzmppHLrifln4BUBD6WmNrN45oL58v56fRwhItNh3kkuU4+0 O619cs53CmrW+seqbNsptFU7c8jNa6jxuWubEwZtJWUydVyTG/lwgX1okxy0t1u8GikU=; Original-Received: from [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 1mbNp6-0005ME-3d; Fri, 15 Oct 2021 16:04:38 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXPsfQgGNAEBkP/ //+L2TBYAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+UKDw07NmNe wZQAAAFvSURBVCjPTZFNbhsxDIWfgsyiWTlAkkP0FOMgsx8DQwLSXgbEU/QIDhAZiFddWEWkU4aU 3KJa8RP/HkkAuH8me/Oz2TcAYYcJ/+Dt3mEye3OkYcvwrJPB09xBv7DuBmywLA3o+W7AYcC+g73D tqP/QBv8hdibDtsTf7iI8c2qc2KDaKB9QvekSGmeSECf5JN6TQb2bZTYTAEq38QYxHM4Z1qWDi9n H4qV1xHopZAU0+6alo7cMmVaHxp02tAon/MsBb/vcqga9f4aGFdXep89J8IXKh3Fb4eo8ioScUrr Iy2A6Io41tk9rgqmMFQtugHhF7HWkz91vdOm7D0Vyek0KbyKzyTjDtXJZ2SvggwgpKPmDgRJQrdz Ffz0Em5Q5wcvPuYBHz9IYq4j7DpRjSktll2ujir3haGVL8c1SL5YWEwT1+OlXNoJurMD1WNp3GaU rB1LaEx8QlMtXLjpIht0Z+96uSY1s4Lu8xJSa6V8A/hkxczbbtgWAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIxLTEwLTE1VDEzOjU5OjU0KzAwOjAwkgQPZgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0x MC0xNVQxMzo1OTo1NCswMDowMONZt9oAAAAASUVORK5CYII= X-Now-Playing: Hannah Diamond's _PC Music Volume 1_: "Attachment" In-Reply-To: (Stefan Monnier's message of "Fri, 15 Oct 2021 09:32:05 -0400") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277125 Archived-At: Stefan Monnier writes: > As for what this intends to do, I think it tries to use a string even > in the case where some of the events use the `meta` modifier, and it > does this by relying on the following bit of code in `define-key`: > > int meta_bit = (VECTORP (key) || (STRINGP (key) && STRING_MULTIBYTE (key)) > ? meta_modifier : 0x80); > > I.e. when a string is used to represent a sequence of events, that string > can include meta modifiers (represented as the 7th bit) but only if the > string is unibyte. > > It's for those kinds of intricacies that I want to get rid of the use of > strings as sequences of events. Yeah, it's definitely an area riddled with legacy intricacies. But at this time, I think we should retain the way `kbd' works right now, and not try to make it output "\M-s" strings again (which it presumably did at one time). It most likely stopped doing that a couple of decades ago, and nobody noticed -- which is nice, because it probably means that we (at some point in the future) can drop the string representation altogether (as a return value from `kbd'). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no