Ihor Radchenko <[email protected]> writes: > Maybe. Or add a note that setopt is only available since Emacs 29 and > users could use `custom-set-variables' or `setq' instead.
Thank you for you guidance! Please see the attached patch. Rudy
>From 6ac0f627cc42b801387f032d0e0ee2f056f17464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <[email protected]> Date: Fri, 5 Dec 2025 17:22:27 +0100 Subject: [PATCH] ; Mention alternatives to `setopt' for Emacs 28 and older * lisp/org-keys.el (org-use-speed-commands): Extend the docstring with a note on how to set the customizable variable on Emacs 28 and older. Suggested-by: Ihor Radchenko <[email protected]> Link: https://list.orgmode.org/orgmode/874ismy66o.fsf@localhost/ --- lisp/org-keys.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org-keys.el b/lisp/org-keys.el index 5413ffa53..c7b720c07 100644 --- a/lisp/org-keys.el +++ b/lisp/org-keys.el @@ -691,7 +691,10 @@ (defcustom org-use-speed-commands nil (setopt org-use-speed-commands (lambda () (and (looking-at org-outline-regexp) - (looking-back \"^\\\\**\"))))" + (looking-back \"^\\\\**\")))) + +Note that prior to Emacs 29, `setopt' is unavailable, and +`custom-set-variables' or `setq' is used instead." :group 'org-structure :type '(choice (const :tag "Never" nil) -- 2.39.5 (Apple Git-154)
-- "Programming reliably -- must be an activity of an undeniably mathematical nature […] You see, mathematics is about thinking, and doing mathematics is always trying to think as well as possible." --- Edsger W. Dijkstra, 1981 Rudolf Adamkovič <[email protected]> [he/him] http://adamkovic.org
