branch: externals/org
commit 7339cd656ebd7e3f6eb3a120711c96ae63585bfc
Author: Rudolf Adamkovič <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    ; 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 5413ffa53a..c7b720c07a 100644
--- a/lisp/org-keys.el
+++ b/lisp/org-keys.el
@@ -691,7 +691,10 @@ star at the beginning of the headline, you can do this:
   (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)

Reply via email to