From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AB8hC4ZQb2L8ZgAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 05:31:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aCRAC4ZQb2KIfgAA9RJhRA (envelope-from ) for ; Mon, 02 May 2022 05:31:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B496228F63 for ; Mon, 2 May 2022 05:31:17 +0200 (CEST) Received: from localhost ([::1]:52028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlMmK-0000sE-Ae for larch@yhetil.org; Sun, 01 May 2022 23:31:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlMle-0000rn-FY for emacs-orgmode@gnu.org; Sun, 01 May 2022 23:30:34 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:33474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlMlc-00019H-AP for emacs-orgmode@gnu.org; Sun, 01 May 2022 23:30:34 -0400 Received: by mail-pl1-x633.google.com with SMTP id c23so11586018plo.0 for ; Sun, 01 May 2022 20:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=t+q5Gg/hy7/X2DLT/KHKW//5UCNI8m/iWHWl0Q3W/BA=; b=j/jkwG4FOyLYWIY/qfqeIzCLXkHCjZ17bH+J5B+3ZvFsukm6a6MZ2VLMXYeJYNq01x p2/idW7VI/hK5pa00DDNpL0rqow3ksZiLbRVby9rUJLcIXSF5evEza1xLolkbSS3mgl7 7P6BBljyvtLYMZXOJmZMljx3hz2X1KpY5zGLnocx5AS2iSNUfG5obo37FINuno3IEN+5 /8oZqVblXow0o8lVDn7nl8KzVrYmDL2eTEzCOav3dW9r3h9M/PDWoEo4NJv/+L+H7qgK MLRx2ranX30b5JqhFWtDuNA60lmp//pZpoA54eMEuJRXGcCsHnvR2Ft74hdDLF8DE+Mw Q0pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=t+q5Gg/hy7/X2DLT/KHKW//5UCNI8m/iWHWl0Q3W/BA=; b=TrX7gI9oXleDLzsgIV/V5rKbvrrrGStxUlbwggJDpNweYakjNCQiPnR3CQ6WUU/HNS GOP5lSzRh/o6lth6aipP9fAb7UVg0JweZcSiC3Wc4uxTPXjSH7jcDHLBLjWh8e2KxcFr XLg74wRc5uttIK4KF7HoiOAXFpFlay9bBvxvV9ohS2bsJcGm6myXxbIl2iS91nrujYZt jtAIKvgPh3i47JhaHShaR/0iEUQ3ti7c8t/NUrpOmzAbKyTKCGM5LjVXeUtvnDTe7Tod euwbYh5C8rGT2jgTz4ADRJ3MLe+cFseymIoX21htHKRGWVlreYAti08fO4eMyIVpMznJ B48A== X-Gm-Message-State: AOAM533y1ETzH33tq/TxdmxpFk95SiIdg1r7WdvqvlcRx50KmVToXy+k C6ePVBxX89c+10OKNrfPqAg= X-Google-Smtp-Source: ABdhPJzFdmWVux/gXGKch7tDAtjPUYx79b2QIi3JIlDbKxc/2J3qaMwZFEtHGYLQTNyUBCK528Qy2g== X-Received: by 2002:a17:90b:1b47:b0:1dc:3c0a:dde3 with SMTP id nv7-20020a17090b1b4700b001dc3c0adde3mr7745370pjb.52.1651462230615; Sun, 01 May 2022 20:30:30 -0700 (PDT) Received: from localhost ([104.129.16.8]) by smtp.gmail.com with ESMTPSA id x14-20020a1709027c0e00b0015e8d4eb2e4sm3514066pll.302.2022.05.01.20.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 May 2022 20:30:30 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [PATCH] speed commands: error message when a key is not associated with a command In-Reply-To: <87ilqp8qml.fsf@posteo.net> References: <87pmkyvmmk.fsf@posteo.net> <87y1zm7ma5.fsf@localhost> <87k0b6vdkx.fsf@posteo.net> <877d757vg3.fsf@localhost> <87ilqp8qml.fsf@posteo.net> Date: Mon, 02 May 2022 11:31:18 +0800 Message-ID: <87czgwvce1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=yantar92@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651462277; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t+q5Gg/hy7/X2DLT/KHKW//5UCNI8m/iWHWl0Q3W/BA=; b=H7N7j26JH3ueQvQw/viffQ3PyCJ7or6QS6/udr56w4cOZI67yktTKAVeAT8rvwz64ZpkIj z4h5MopD3bvK5O8JoGUy+QXW3W+4X86p9RJmm4fXxjVSKVGIpO9KjyhcGAdioV7uNXCV4i BMXZxBnB4StkAWlAQRMDxsrTCI+2HSBzScLvUXXSYf/Z95tM4ya/F6myPxyBfNJI74miJs IcCyHHOnF6btAYOwtXR84TaEjb75xbZ/ouFSDy9Plgv7Bkraqf04iVGMpjjWmEChQRHBgK 1TxKnTFVSBy3pXO7CKiAT+mEof+i0hxtWRrpt9yCOZ6LdS607dJQszxRoezXRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651462277; a=rsa-sha256; cv=none; b=WwpKFDebbaGuMAbhbYtUrJlfjjecsVomYcZSqrc6jB7wlDjN95vavmLO7c1o8s6oRrdJEP K86s7WC+EiIQ4PoFSDX7Jo4NHUOexJwv4pz4FaiwnD8Nt0e24LgVad53o7arKtI4TKW9VK An93P/asHMTJOLKkFTi0t62SLXhrVhqZKyPcmQIkQGmnbC9MrsH8Cfd/rTdfGObWQAwkcy T1ckZklt43YTXIAilyJn6bojOV2MtlAQLb7VS8naJJJj2dNdpjSq/MLL4GqQ0BzPrw4cy0 B9Uq+KXFeQUXq0vg6+OosGyyLgHRYRF+v/VsG522i6WY0RLcEa30HudGw09zBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="j/jkwG4F"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="j/jkwG4F"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B496228F63 X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: gvvTTl6ro/U4 Juan Manuel Mac=C3=ADas writes: > Ok, I agree that this is the most reasonable direction. What do you > think about the idea that I outlined in the last post of this thread > (https://list.orgmode.org/87v8uqmkc0.fsf@posteo.net/)?: it consists in > defining a new hook (by default with value nil) where the user can store > those functions that he wants to have a 'strict' behavior: some functions > or all. And then the user should add the > org-speed-command-strict-function to org-speed-command-hook. > > If this idea sounds too hacky, I think a defcustom for > org-babel-speed-command-activate, as you suggest, might suffice. It is more complex and I do not see a clear benefit of introducing a whole new hook. It would only be useful for people who define a large number of extra speed command handlers. Disclaimer: I do not use speed commands myself, so my opinion is somewhat theoretical. If other users who are actively using speed command hook have something to say, I'd encourage them to join the discussion. Best, Ihor