From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2BmXNb00pmHSCwEAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 15:27:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uBg6Mb00pmHeYAAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 14:27:09 +0000 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 5ECE314426 for ; Tue, 30 Nov 2021 15:27:09 +0100 (CET) Received: from localhost ([::1]:59678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms467-0001qP-AY for larch@yhetil.org; Tue, 30 Nov 2021 09:27:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms45N-0001kZ-Ma for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 09:26:21 -0500 Received: from [2607:f8b0:4864:20::92a] (port=36419 helo=mail-ua1-x92a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms45K-00021o-02 for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 09:26:21 -0500 Received: by mail-ua1-x92a.google.com with SMTP id r15so41761122uao.3 for ; Tue, 30 Nov 2021 06:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QW1+tU1yX7g0NncSnafVMVySq+s6bpLSueG/cD+BY5c=; b=jZ496W907okcmFaXWmkFzjnZNLYFgfOtR42E8AZo5iuEwx9sHPv+SmXA9re3N8KPqH bF+aky7xjG6vn3HP2o5wv2g2DDMDZwe8uUb4ye6FEa6TesBc39+zDDvja7xzHVhRfZ4n 10Xvjd8O1tls8TJSw5VPBdr792d4mmXG+cPiwF76Bw5Q5ncU6LzuVzl1sPHnKx7vjb+x 8/iXWyotFju1KDNx7+q5DRtN4yc2yrI9AMsA0K/zJGCQZCmOHohfVWQbeuqkqllw07Vd ZBZaE3XHm7245OJi+uPHGW7Vt1abPCVRURGdvYVxOgyUUqM8EYrSc+400gIU+26Zu9nA YXVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QW1+tU1yX7g0NncSnafVMVySq+s6bpLSueG/cD+BY5c=; b=fji3VXbrJsn5XSb31657zoXRsJ1rDRy7HibXmfnK/HPeVMsEIt6DxVkE0KjCvjt/0b rP3GCAdrOyCvmsA2qKh4jG6ALrv73RtAIb5JCELz3Q7CNK4kGm69aFOfpmTW0S6I2DHR kYSJGd8cUooRvvNmnrsk77d62bD2Ul06Ap13al5Ne0VD8Kj5stXT8n+7LrdQBxpCoi8g BPG5sSipIVpxz217xhJiKbo9og8bLrXpTV2vxzLSso1AVGYmeMecDr3eP/gUfp8jzKaX u2LeyD4u2y4f5raHV5+eTNQJYyLzZpx/whf5EPL/UebvduRqD4ivEZJvLlWf98C/A9ZL 8vDw== X-Gm-Message-State: AOAM530B58QTJ1UzIYcyWJ3xXxrFbmA+Jtja81yWSTkI9mKgQK7jpRHD Q2SlrLg4lv272ZCsKjNIbA1v+tCjobODBepkXncPYYSiqSw= X-Google-Smtp-Source: ABdhPJyzFUOJ4OAMepP523L1hFy3b7OQVEhPWWHziQiZXWmaOs9gjxsDTL4HMyjgBaEWAQgY5b7b/uklt9GXuLJJXxk= X-Received: by 2002:a1f:ee07:: with SMTP id m7mr44833161vkh.27.1638281959397; Tue, 30 Nov 2021 06:19:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Shankar Rao Date: Tue, 30 Nov 2021 15:19:08 +0100 Message-ID: Subject: [PATCH] New function org-speed-command-add for adding/modifying speed commands To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000003b819e05d2023eae" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::92a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::92a; envelope-from=shankar.rao@gmail.com; helo=mail-ua1-x92a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638282429; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QW1+tU1yX7g0NncSnafVMVySq+s6bpLSueG/cD+BY5c=; b=WK9Jlue8sLKj9mjnMnqJHBFDUSRQ6yLmAFxusXWGtLN1meOfskvcb+Ui/oYIqoLucYhmF0 JIvFHmgtPq9dH9wucP2bouoHmdJMQSBDXRX4ALfOYnCSqyEhrh9/pqKIeuD0De5cyGabs6 ZyepneciwWknO/pou8rbXFo2FSmXBkDnaQD+gmlIQS7CVWUcW0BDpa5m02M3OfPS4yAia0 X+x2eXEcbxPKMryLnYKUqazY/5eWrJToJHRBoB+4m/+cVcCtmwsMlqg2Sv/w7rVK3/MLma eSsVARMABDaAmqfrD+KSyx11YJp7XvE0GcbbpQnXozi/TBPScB/BLoWygBm+Rw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638282429; a=rsa-sha256; cv=none; b=LxnMINDNxoHb1h+Ic/vD4iB1xbtkdehpleSzrRxo4ZItVVeBk5lttdgYdSlasDIy7zvU6o xUPFhgfGz4rgOPW6ofOqFnjIgCPEj6ugxq5XooYCWseSlzTnrHvo2ps+TDMZavLgUz+5bH 2ckj2GybodN3U0l28in2C6Y0C5BOsW056Lyc8N/cMfv7WHd0QmRa/CYz9Tvqbjt54S/jyd 8GcdBs0k3gMN508JjHlHMTRazTczjWLCmKS2KOprbmMrJH5FwnqTVk+pqm88WviaO+YT5D aDVFXy0MzGL+t+54I3fQPWVPvLt3kqbAv7OMigGimrhX9+bPwA1tJyexgiqK+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jZ496W90; 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: -4.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jZ496W90; 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: 5ECE314426 X-Spam-Score: -4.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: JkbNvIRR1soT --0000000000003b819e05d2023eae Content-Type: text/plain; charset="UTF-8" Over the weekend I thought about this issue of configuring `org-speed-commands' more easily, and I believe I have come up with a simpler solution that I have provided in the attached patch. This patch creates a new function `org-speed-command-add' that can be used to add new speed command shortcuts to `org-speed-commands', as well as modify existing shortcuts. This function takes as argument an alist in the same format as `org-speed-commands'. For each command for which the shortcut key is already present in `org-speed-commands', the old command is replaced with the new command at the same position. Commands with brand new shortcut keys are added to the user section of `org-speed-commands'. I believe this patch strikes a balance between power users, who can still directly customize `org-speed-commands', and non-experts, who may want to add/modify some speed commands without having to understand the structure and organization of `org-speed-commands'. Shankar On Wed, Nov 24, 2021 at 10:36 AM Shankar Rao wrote: > > Hello all, > > I discovered that upgrading to 9.5 broke my configuration because the > variable `org-speed-commands-user' was removed. I read the thread > (https://list.orgmode.org/87v9hzzhrn.fsf@gmail.com/) where this change > was proposed and I completely agree that exposing the whole set of > `org-speeds-commands' to the user for customization is an improvement > over the previous state of affairs. However, I believe there were some > unintended consequences of this change that can make it difficult to > customize `org-speed-commands' for users that are not elisp gurus. > > The main problem is that `org-speed-commands' serves two purposes > simultaneously: > > 1.) It contains all the mappings between speed keys and commands > 2.) It contains headlines for command categories. > > Because of this second purpose, both the contents and order of entries > in `org-speed-commands' are important. For example, suppose I want to > replace the usual "n" command with my own. According to the usual > conventions for alists > (https://www.gnu.org/software/emacs/manual/html_node/elisp/Association-Lists.html), > new associations such as this are added to the front of the list. But > if I do so, by doing something like: > > (setq org-speed-commands (cons '("n" . #'my-org-next-heading) > org-speed-commands)) > > Then the speed key "n" will show up twice when > `org-speed-command-help' is invoked. I could first delete the old > association by replacing `org-speed-commands' in the above with > `(assoc-delete-all "n" org-speed-commands)', but then my modified > command will no longer appear in the "Outline Navigation" section of > the speed command help. Alternatively, I could replace the association > for "n" using `alist-get': > > (setf (alist-get "n" org-speed-commands nil nil #'equal) > #'my-org-next-heading) > > However, this solution won't work for new speed commands (e.g., if I > want to bind `my-org-next-heading' to "N" instead), because in that > case `alist-get' will return `nil'. > > Below is the relevant portion of my config file where I customize > `org-speed-commands': > ----- > (defun alist-set (key value alist-symbol &optional testfn) > "Set KEY to VALUE in alist referenced by ALIST-SYMBOL. > > If KEY is not present in the alist, then add (KEY. VALUE) to the > front of the alist. Compare keys with TESTFN. Defaults to equal." > (if-let ((keyval (assoc key (eval alist-symbol) testfn))) > (setf (cdr keyval) value) > (set alist-symbol (cons (cons key value) (eval alist-symbol))))) > > > (defvar sbr-org-speed-commands-user '(("User Custom Speed Commands") > ("N" . ded-org-show-next-heading-tidily) > ("P" . > ded-org-show-previous-heading-tidily) > ("h" . sbr-org-speed-insert-subheading) > ("u" . org-up-heading-or-item) > ("b" . org-backward-heading-or-item) > ("f" . org-forward-heading-or-item) > ("p" . org-prev-heading-or-item) > ("n" . org-next-heading-or-item)) > "My custom Org speed commands") > > (dolist (keyval (reverse sbr-org-speed-commands-user)) > (alist-set (car keyval) (cdr keyval) 'org-speed-commands)) > ----- > > As you can see, I defined my own function `alist-set', which modifies > an association in an alist if the key is already present, or adds the > new association to the front of the list otherwise. In my opinion, > functionality like `alist-set' should be built into Emacs itself. My > code then constructs my own list of custom speed commands with its own > section header and uses `alist-set' to add/modify speed commands. > While this code works, it's a bit unsatisfying because > > 1.) It relies on my custom `alist-set' function > 2.) It relies on knowledge of the structure of `org-speed-commands' > > More specifically, it requires that my new speed commands need to be > inserted in reverse order into `org-speed-commands' in order to be > displayed properly in `org-speed-commands-help'. > > I don't know what is the best solution to enable Org users to add > and/or modify speed commands while also keeping the display of > `org-speed-commands-help' organized. Here is what I propose: > > 1.) Keep the whole set of `org-speed-commands' exposed to user > customization for power users > 2.) Bring back `org-speed-commands-user', but instead of just > appending it to `org-speed-commands' as was done prior to Org 9.5, use > something like my `alist-set' above to add/modify speed command > associations as needed while preserving the display order in > `org-speed-commands-help'. > > With my proposal, Org users wouldn't have to concern themselves with > the section headers in `org-speed-commands', but they would still be > able to add/modify/remove commands as they wish. > > Let me know if anyone has a simpler alternative to achieve these > goals. If there is sufficient interest in my proposal, I would be > happy to provide a patch. > > Thanks, > Shankar --0000000000003b819e05d2023eae Content-Type: application/x-patch; name="0001-org-keys-Add-function-org-speed-command-add-to-add-modify-spe.patch" Content-Disposition: attachment; filename="0001-org-keys-Add-function-org-speed-command-add-to-add-modify-spe.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kwm60p9s0 RnJvbSA5MDY4NDEzNzM0MGYzYzYwZWQ2YTMxODE1YTEwNjNhOTAwNzk0NDFlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTaGFua2FyIFJhbyA8c2hhbmthci5yYW9AZ21haWwuY29tPgpE YXRlOiBUdWUsIDMwIE5vdiAyMDIxIDE0OjMwOjUxICswMTAwClN1YmplY3Q6IFtQQVRDSF0gQWRk IGZ1bmN0aW9uIG9yZy1zcGVlZC1jb21tYW5kLWFkZCB0byBhZGQvbW9kaWZ5IHNwZWVkCiBjb21t YW5kcwpvcmcta2V5cy5lbDogQWRkIGZ1bmN0aW9uIG9yZy1zcGVlZC1jb21tYW5kLWFkZCB0byBh ZGQvbW9kaWZ5IHNwZWVkIGNvbW1hbmRzCgoqIGxpc3Avb3JnLWtleXMuZWwgKG9yZy1zcGVlZC1j b21tYW5kLWFkZCk6IENyZWF0ZSBhIGZ1bmN0aW9uIHRoYXQKYWRkcyBuZXcgc3BlZWQgY29tbWFu ZHMgb3IgbW9kaWZpZXMgZXhpc3Rpbmcgc3BlZWQgY29tbWFuZHMgaW4KYG9yZy1zcGVlZC1jb21t YW5kcycuIFNwZWVkIGNvbW1hbmRzIHdob3NlIHNob3J0Y3V0IGtleSBpcyBhbHJlYWR5CnByZXNl bnQgaW4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lZCBjb21tYW5kcyB3aXRoIHRoZSBzYW1lIGZvcm1hdAorYXMgYGBvcmct c3BlZWQtY29tbWFuZHMnJy4gSWYgYSBjb21tYW5kIGluIENPTU1BTkQtTElTVCBpcworYWxyZWFk eSBwcmVzZW50IGluIGBgb3JnLXNwZWVkLWNvbW1hbmRzJycsIHRoZW4gdGhlIG5ldyBjb21tYW5k CityZXBsYWNlcyB0aGUgb2xkIGNvbW1hbmQgYXQgdGhlIHNhbWUgcG9zaXRpb24uIE90aGVyd2lz ZSwgdGhlIG5ldworY29tbWFuZCBpcyBhZGRlZCB0byB0aGUgdXNlciBzZWN0aW9uIG9mCitgYG9y Zy1zcGVlZC1jb21tYW5kcycnLiIKKyAgKGxldCogKCh0aXRsZSAiVXNlciBTcGVlZCBDb21tYW5k cyIpCisgICAgICAgICAoaGFzLXVzZXItc2VjdGlvbiAoYXNzb2MgdGl0bGUgb3JnLXNwZWVkLWNv bW1hbmRzKSkKKyAgICAgICAgIChuZXctY29tbWFuZHMgbmlsKSkKKyAgICAoZG9saXN0IChjb21t YW5kIGNvbW1hbmQtbGlzdCkKKyAgICAgIChpZi1sZXQgKChrZXl2YWwgKGFzc29jIChjYXIgY29t bWFuZCkgb3JnLXNwZWVkLWNvbW1hbmRzKSkpCisgICAgICAgICAgKHNldGYgKGNkciBrZXl2YWwp IChjZHIgY29tbWFuZCkpCisgICAgICAgIChwdXNoIGNvbW1hbmQgbmV3LWNvbW1hbmRzKSkpCisg ICAgKHdoZW4gbmV3LWNvbW1hbmRzCisgICAgICAoc2V0cSBvcmctc3BlZWQtY29tbWFuZHMgKGFw cGVuZCAodW5sZXNzIGhhcy11c2VyLXNlY3Rpb24KKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgKGxpc3QgKGxpc3QgdGl0bGUpKSkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIChucmV2ZXJzZSBuZXctY29tbWFuZHMpCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBvcmctc3BlZWQtY29tbWFuZHMpKSkpKQorCiAoZGVm dW4gb3JnLXNwZWVkLW1vdmUtc2FmZSAoY21kKQogICAiRXhlY3V0ZSBDTUQsIGJ1dCBtYWtlIHN1 cmUgdGhhdCB0aGUgY3Vyc29yIGFsd2F5cyBlbmRzIHVwIGluIGEgaGVhZGxpbmUuCiBJZiBub3Qs IHJldHVybiB0byB0aGUgb3JpZ2luYWwgcG9zaXRpb24gYW5kIHRocm93IGFuIGVycm9yLiIKLS0g CjIuMjUuMQoK --0000000000003b819e05d2023eae--