From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: The new keymap functions Date: Fri, 17 Mar 2023 15:48:00 +0100 Message-ID: <871qlntowv.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12828"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Emacs developers To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 17 15:48:50 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 1pdBNx-00037S-Rk for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Mar 2023 15:48:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdBNG-0007SF-UT; Fri, 17 Mar 2023 10:48:07 -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 1pdBNF-0007R3-06 for emacs-devel@gnu.org; Fri, 17 Mar 2023 10:48:05 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdBND-0005fP-FK for emacs-devel@gnu.org; Fri, 17 Mar 2023 10:48:04 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id p16so3505009wmq.5 for ; Fri, 17 Mar 2023 07:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679064481; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JcOyxhXNJfdu1QGV6E27QY1j3Un+BTnij+rRRJWFsCo=; b=SU/FQpjokzBq+5bcPI+kA1PbZksxaRxeQr3dB0/rgwT2cStMLWSDtFX7YY/Ajzzd7/ VOcQHUxBjcxc5ABJ4k3YG1ulwesvwreT294DYI8A9LBCbWEBfAXYiVXDCJ/ZDQ2fLE0F cx8DxMu7jlPBWY8F8YKptzTFVHzRGi08ecls5xSmY76JPrKFBQK2/7Ex5v8/oAxjE5Af 1i80kF5r222dI7ppQA0UOlcLoPNTNzQTmj9UWX6dKrPj6c+pn68vNaKw2Ny6yhpOM3CM 0+QIKL+hAXuz/piIxsyjK/u/nkrnx/+ZrjOpUvbqa3d4nHU0FHFCNirvqLu0LTX0Cc4G L8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679064481; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JcOyxhXNJfdu1QGV6E27QY1j3Un+BTnij+rRRJWFsCo=; b=rDv+mdkTWvhRmYPhf52hGimUDDknz5+hyUEi6CsnP4lQsgoZSroPGoTuG4XiGqPb70 VelNOnlwevCwYSIDXFtn54LbmQCxKtU/SJm3d+qPAGxj6eky5yIpdcQbu1KNSB/M0i45 8Q9JbTDwrz5YpGF8VJyh0f83zJFTyOUF5W4JrD+2lS+E3YVv9LjFh5No4IWLiem0xebe e9LUT6wWamGAjGDNTmwK/7u5s2tllpMmLMK8rff4ssK4icPe89oSN2rqfiwUtG9I92Ze PR2PAbVFmufcPWpM0JHL/nEsmsmBVS1ZV/G347rHRJdLhQKBguEnoUeP0o+IyuO9menX ef2w== X-Gm-Message-State: AO0yUKWm3PuHSTvplEAvevqxc/OsDc0hfMBWJVUFAR66gLpU858gB0PO GtgzyDR+M7DPnzadySuoT9XRcTTtQcQ= X-Google-Smtp-Source: AK7set95jKqiwWVBg5zy3y5enyGqaLLR9XWHc92r+8lGiCUrXanWpXoRcpD+xADCvYBW+drJsrRzHw== X-Received: by 2002:a05:600c:21d9:b0:3ed:866e:1d18 with SMTP id x25-20020a05600c21d900b003ed866e1d18mr2071695wmj.5.1679064481412; Fri, 17 Mar 2023 07:48:01 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id o9-20020a05600c4fc900b003ea57808179sm8737764wmq.38.2023.03.17.07.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 07:48:00 -0700 (PDT) In-Reply-To: <87tu2xr5at.fsf@gmail.com> (Robert Pluim's message of "Thu, 17 Nov 2022 16:04:10 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=rpluim@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:304551 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. Robert --