diff options
| author | Po Lu | 2025-08-14 19:33:09 +0800 |
|---|---|---|
| committer | Po Lu | 2025-08-14 19:33:09 +0800 |
| commit | f2608bd1d7c9e1a27454859d11396effd3e4325b (patch) | |
| tree | 2a6fd450151d7f044c7cf723dec0eb0083a00e3c | |
| parent | 9351fad650e4952f9ff1d8fc951957a283802f5e (diff) | |
| download | emacs-master-android-1.tar.gz emacs-master-android-1.zip | |
Fix generation of defvars defined by easy-mmode and company in loaddefs.elmaster-android-1
* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Restore previously existing
conditions for recursing on macroexpansions when processing
easy-mmode and related macros.
| -rw-r--r-- | lisp/emacs-lisp/loaddefs-gen.el | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index c8e05921fc1..9e91a11204d 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el | |||
| @@ -244,7 +244,25 @@ expand)' among their `declare' forms." | |||
| 244 | (setq expand (let ((load-true-file-name file) | 244 | (setq expand (let ((load-true-file-name file) |
| 245 | (load-file-name file)) | 245 | (load-file-name file)) |
| 246 | (macroexpand form))) | 246 | (macroexpand form))) |
| 247 | (not (eq car (car expand))))) | 247 | (or (and |
| 248 | ;; Previously, macros defined in this list would not | ||
| 249 | ;; see their expansions processed in place of | ||
| 250 | ;; themselves if such an expansion did not yield a | ||
| 251 | ;; `progn', `prog1' or `defalias' form. Not | ||
| 252 | ;; reproducing these conditions results in the | ||
| 253 | ;; omission of minor mode variables and suchlike in | ||
| 254 | ;; loaddefs.el when only the defuns in the | ||
| 255 | ;; macroexpansions are autoloaded. | ||
| 256 | (not (memq car '( define-globalized-minor-mode defun defmacro | ||
| 257 | define-minor-mode define-inline | ||
| 258 | cl-defun cl-defmacro cl-defgeneric | ||
| 259 | cl-defstruct pcase-defmacro iter-defun cl-iter-defun | ||
| 260 | ;; Obsolete; keep until the alias is removed. | ||
| 261 | easy-mmode-define-global-mode | ||
| 262 | easy-mmode-define-minor-mode | ||
| 263 | define-global-minor-mode))) | ||
| 264 | (not (eq car (car expand)))) | ||
| 265 | (memq (car expand) '(progn prog1 defalias))))) | ||
| 248 | ;; Recurse on the expansion. | 266 | ;; Recurse on the expansion. |
| 249 | (loaddefs-generate--make-autoload expand file 'expansion)) | 267 | (loaddefs-generate--make-autoload expand file 'expansion)) |
| 250 | 268 | ||