>From c6f64171998a00c017e9dae5d7c96ad6d277adb5 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Tue, 30 Jan 2024 14:18:23 +0100 Subject: [PATCH] lisp/emacs-lisp/inline.el: Autoload public macros * lisp/emacs-lisp/inline.el (inline-quote): (inline-const-p): (inline-const-val): (inline-error): (inline-letevals): Autoload macros that may appear inside `define-inline'. This is necessary to load the indentation rules when Elisp code that uses `define-inline' is edited. --- lisp/emacs-lisp/inline.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/emacs-lisp/inline.el b/lisp/emacs-lisp/inline.el index c774296084e..af841c0458d 100644 --- a/lisp/emacs-lisp/inline.el +++ b/lisp/emacs-lisp/inline.el @@ -69,21 +69,25 @@ (require 'macroexp) +;;;###autoload (defmacro inline-quote (_exp) "Similar to backquote, but quotes code and only accepts , and not ,@." (declare (debug (backquote-form))) (error "inline-quote can only be used within define-inline")) +;;;###autoload (defmacro inline-const-p (_exp) "Return non-nil if the value of EXP is already known." (declare (debug t)) (error "inline-const-p can only be used within define-inline")) +;;;###autoload (defmacro inline-const-val (_exp) "Return the value of EXP." (declare (debug t)) (error "inline-const-val can only be used within define-inline")) +;;;###autoload (defmacro inline-error (_format &rest _args) "Signal an error." (declare (debug t)) @@ -100,6 +104,7 @@ inline--letlisteval ;; inline-letevals, so signal the error in terms of the user's code. (error "inline-letevals can only be used within define-inline")) +;;;###autoload (defmacro inline-letevals (vars &rest body) "Make sure the expressions in VARS are evaluated. VARS should be a list of elements of the form (VAR EXP) or just VAR, in case -- 2.43.0