From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: The new keymap functions Date: Sat, 18 Mar 2023 20:04:32 +0200 Organization: LINKOV.NET Message-ID: <86sfe2os0f.fsf@mail.linkov.net> References: <87zgq8sfw3.fsf@gnus.org> <86k0h8ts66.fsf@mail.linkov.net> <87r1bfp72g.fsf@gnus.org> <86v90r6w3j.fsf@mail.linkov.net> <87o86jm83k.fsf@gmail.com> <86wn7wf6rl.fsf@mail.linkov.net> <86zgcqrqio.fsf@mail.linkov.net> <87wn7uasgj.fsf@gmail.com> <87tu2xr5at.fsf@gmail.com> <871qlntowv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2745"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , Emacs developers To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 18 19:29:56 2023 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 1pdbJU-0000cG-JH for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Mar 2023 19:29:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdbIW-0006ZH-R4; Sat, 18 Mar 2023 14:28:56 -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 1pdbIW-0006Z4-0u for emacs-devel@gnu.org; Sat, 18 Mar 2023 14:28:56 -0400 Original-Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdbIU-0006po-GI for emacs-devel@gnu.org; Sat, 18 Mar 2023 14:28:55 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5CBDAC0007; Sat, 18 Mar 2023 18:28:47 +0000 (UTC) In-Reply-To: <871qlntowv.fsf@gmail.com> (Robert Pluim's message of "Fri, 17 Mar 2023 15:48:00 +0100") Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304575 Archived-At: > So I re-read the `defvar-keymap' docstring, and failed to grasp what I > myself had written. So, another proposed improvement: > > @@ -579,14 +581,17 @@ defvar-keymap > :repeat (:enter (commands ...) :exit (commands ...)) > > `:enter' specifies the list of additional commands that only > -enter `repeat-mode'. When the list is empty, then by default all > -commands in the map enter `repeat-mode'. This is useful when > -there is a command that has the `repeat-map' symbol property, but > -doesn't exist in this specific map. `:exit' is a list of > -commands that exit `repeat-mode'. When the list is empty, no > -commands in the map exit `repeat-mode'. This is useful when a > -command exists in this specific map, but it doesn't have the > -`repeat-map' symbol property on its symbol. > +enter `repeat-mode'. When the list is empty, then only the > +commands defined in the map enter `repeat-mode'. Specifying a > +list of commands is useful when there are commands that have the > +`repeat-map' symbol property, but don't exist in this specific > +map. > + > +`:exit' is a list of commands that exit `repeat-mode'. When the > +list is empty, no commands in the map exit `repeat-mode'. > +Specifying a list of commands is useful when those commands exist > +in this specific map, but should not have the `repeat-map' symbol > +property. Thanks, I confirm this is more clear and correct.