diff options
| author | Lars Ingebrigtsen | 2022-06-17 18:12:38 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-06-17 18:12:38 +0200 |
| commit | a53c34d76a09cd6519d2d176b76d4b820bc26a51 (patch) | |
| tree | 0874d73f8924e500efcbecb834d5a7038c6d4bfc | |
| parent | 73e75e18d170826e1838324d39ac0698948071f8 (diff) | |
| download | emacs-a53c34d76a09cd6519d2d176b76d4b820bc26a51.tar.gz emacs-a53c34d76a09cd6519d2d176b76d4b820bc26a51.zip | |
Don't quote the `when' form in obsoletions
* lisp/emacs-lisp/byte-run.el (byte-run--set-obsolete): The `when'
is a string (or nil), so don't quote it (bug#48145).
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--print-form):
Adjust folding.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/loaddefs-gen.el | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 17c15549666..498435c58d0 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -166,7 +166,7 @@ The return value of this function is not used." | |||
| 166 | (defalias 'byte-run--set-obsolete | 166 | (defalias 'byte-run--set-obsolete |
| 167 | #'(lambda (f _args new-name when) | 167 | #'(lambda (f _args new-name when) |
| 168 | (list 'make-obsolete | 168 | (list 'make-obsolete |
| 169 | (list 'quote f) (list 'quote new-name) (list 'quote when)))) | 169 | (list 'quote f) (list 'quote new-name) when))) |
| 170 | 170 | ||
| 171 | (defalias 'byte-run--set-interactive-only | 171 | (defalias 'byte-run--set-interactive-only |
| 172 | #'(lambda (f _args instead) | 172 | #'(lambda (f _args instead) |
diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index 86c776e3013..a686de406ab 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el | |||
| @@ -633,6 +633,7 @@ If GENERATE-FULL, don't update, but regenerate all the loaddefs files." | |||
| 633 | "Print DEF in the way make-docfile.c expects it." | 633 | "Print DEF in the way make-docfile.c expects it." |
| 634 | (if (or (not (consp def)) | 634 | (if (or (not (consp def)) |
| 635 | (not (symbolp (car def))) | 635 | (not (symbolp (car def))) |
| 636 | (eq (car def) 'make-obsolete) | ||
| 636 | (not (stringp (nth 3 def)))) | 637 | (not (stringp (nth 3 def)))) |
| 637 | (prin1 def (current-buffer) t) | 638 | (prin1 def (current-buffer) t) |
| 638 | ;; The salient point here is that we have to have the doc string | 639 | ;; The salient point here is that we have to have the doc string |