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: master 859190f 2/3: Convert some keymaps to defvar-keymap Date: Thu, 14 Oct 2021 21:13:58 +0200 Message-ID: <87mtnbv2q1.fsf@gnus.org> References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <871r4qcs8s.fsf@gnus.org> <87o87ubcnl.fsf@gnus.org> <87h7dm9en7.fsf@gnus.org> <818f9907c2b1fe8b54b1@heytings.org> <83tuhlnkxm.fsf@gnu.org> <818f9907c2f359a71f49@heytings.org> <83czo9nj4g.fsf@gnu.org> <818f9907c244b9db0bea@heytings.org> <834k9lnd2i.fsf@gnu.org> <818f9907c2dff3b49971@heytings.org> <83k0ign3zj.fsf@gnu.org> <818f9907c26fb6f0233a@heytings.org> <838rywm7a7.fsf@gnu.org> <9865db3af5547c6ca15c@heytings.org> <9865db3af561bf9f05d1@heytings.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="16966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Gregory Heytings , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 21:14:59 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 1mb6Bu-0004Ej-Gr for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 21:14:58 +0200 Original-Received: from localhost ([::1]:58528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb6Bs-0004Cr-P8 for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 15:14:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb6B6-0003Se-La for emacs-devel@gnu.org; Thu, 14 Oct 2021 15:14:08 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:57708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb6B3-0007qw-Nu; Thu, 14 Oct 2021 15:14:08 -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=tqGX0a8KnFNAbdfQfeFeI83UpkRh/BWly7tviy68jMQ=; b=gcNbamt994CVC2phrNevtN1w5z RV/dKsQcAc+89seRP9rO3kFOi2LhFG15sw3YV0QJ/Io6+esQetBvx33qJW5p3LbMp9FWEcUzWl6YH RYAXh9hRQHzVi+5txyrr/5Fh9HvI9lHaHm8uAJvCMoamX+0cYGlq2RWlJMYydbBvbGBk=; 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 1mb6Ax-0004ty-H3; Thu, 14 Oct 2021 21:14:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAACxIAAAsSAdLdfvwAAAAHdElNRQflCgwMGywYz9mVAAAAv0lEQVRIx+2UUQ7DIAxDXysusiv6 IDnzPso6oAGRSVSbNL6iKIbEdtgetMcuGfQOd4InnTcK0xwAdJTO1JNAk6XdGYQESO49CQ9xIg01 vHkAa6PypW2NDjYEaJgKK70ekNys8qTC1JDm0ApGLtNVCBfQSlHyNjNDxfM+KJFnPr+lqjdFAC0X q4WTxVoCTEHAV7r11n04bJB93QWEaa037rUv/rKpO4NRfnqfu9Vpqfdc0dPfS78EsKxe/Ne4Y4Yn +z0ovSmznYoAAABaZVhJZk1NACoAAAAIAAUBEgADAAAAAQABAAABGgAFAAAAAQAAAEoBGwAFAAAA AQAAAFIBKAADAAAAAQACAAACEwADAAAAAQABAAAAAAAAAAAASAAAAAEAAABIAAAAAR9S9zQAAAAl dEVYdGRhdGU6Y3JlYXRlADIwMjEtMTAtMTJUMTI6Mjc6NDQrMDA6MDBJMws4AAAAJXRFWHRkYXRl Om1vZGlmeQAyMDIxLTEwLTEyVDEyOjI3OjQ0KzAwOjAwOG6zhAAAABd0RVh0ZXhpZjpZQ2JDclBv c2l0aW9uaW5nADGsD4BjAAAAKHRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCBBcHBsZSBJbmMu LCAyMDIxfb3uJgAAABd0RVh0aWNjOmRlc2NyaXB0aW9uAERpc3BsYXkXG5W4AAAAAElFTkSuQmCC X-Now-Playing: Mochipet's _Godzillafather Rick Owens Fogachine_: "Godzillafather Rick Owens Fogachine (Runway Mix)" In-Reply-To: (Stefan Kangas's message of "Thu, 14 Oct 2021 12:07:04 -0700") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, RCVD_IN_DNSWL_LOW=-0.7, 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:277046 Archived-At: Stefan Kangas writes: > However, that style as implemented by 'kbd' is not without its problems. > It is too allowing in some cases where it would be better to be more > strict: > > (kbd "f 1") => "f1" ; space is not mandatory > (kbd "f1") => "f1" ; user intended [f1], got "f 1" > (kbd "") => [return] > (kbd "return") => "return" ; as above > (kbd "f ;; foo") => "f" > (kbd "f REM foo") => "f" > (kbd "8*a") => "aaaaaaaa" > (kbd "\C-a") => "^A" ; fine, but could be disallowed Yeah, a stricter version of kbd would definitely be nice here -- giving the developer early feedback on invalid things in the argument would be very helpful. If we introduced a fifth syntax (based on the kbd syntax, but not a plain string), we could make that be stricter. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no