emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Shankar Rao <shankar.rao@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] New function org-speed-command-add for adding/modifying speed commands
Date: Tue, 03 May 2022 18:24:04 +0800	[thread overview]
Message-ID: <87bkwe52yj.fsf@localhost> (raw)
In-Reply-To: <CAGEgU=gr-d3rHaG_KopXkELxiBjmuvk4tCbVhonTc21UZsWbzw@mail.gmail.com>

Shankar Rao <shankar.rao@gmail.com> writes:

> 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'.

I am not sure about usefulness of the proposed command. For non-power
users, we have cusomize interface. It should work just fine without a
need to introduce another function.

Also, org-speed-command-add may behave strangely if the argument
contains descriptive headline like ("My command group title") as its
first element.


  reply	other threads:[~2022-05-03 10:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24  9:36 Unintended consequences of removing org-speed-commands-user Shankar Rao
2021-11-28 12:15 ` dal-blazej
2021-11-30 12:13   ` Shankar Rao
2021-11-30 14:19 ` [PATCH] New function org-speed-command-add for adding/modifying speed commands Shankar Rao
2022-05-03 10:24   ` Ihor Radchenko [this message]
2022-05-17 13:01     ` Shankar Rao
2022-05-18 13:12       ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkwe52yj.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=shankar.rao@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).