]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't quote the `when' form in obsoletions
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Jun 2022 16:12:38 +0000 (18:12 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 Jun 2022 16:12:38 +0000 (18:12 +0200)
* 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.

lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/loaddefs-gen.el

index 17c1554966630948a0fb63ae6ab6419bc2bc4ba4..498435c58d0220c85327bdb1f5c94543d1e90f32 100644 (file)
@@ -166,7 +166,7 @@ The return value of this function is not used."
 (defalias 'byte-run--set-obsolete
   #'(lambda (f _args new-name when)
       (list 'make-obsolete
-            (list 'quote f) (list 'quote new-name) (list 'quote when))))
+            (list 'quote f) (list 'quote new-name) when)))
 
 (defalias 'byte-run--set-interactive-only
   #'(lambda (f _args instead)
index 86c776e301347da53299b6e03bd8ea4b56f25147..a686de406abdf0d59a79a9baf9e64955c4e766d3 100644 (file)
@@ -633,6 +633,7 @@ If GENERATE-FULL, don't update, but regenerate all the loaddefs files."
   "Print DEF in the way make-docfile.c expects it."
   (if (or (not (consp def))
           (not (symbolp (car def)))
+          (eq (car def) 'make-obsolete)
           (not (stringp (nth 3 def))))
       (prin1 def (current-buffer) t)
     ;; The salient point here is that we have to have the doc string