Tweak autoloads of defsubsts containing spaces/control chars

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--print-form):
Escape control chars in bodies so that we don't end up with
trailing spaces if we're autoloading a defsubst containing
"\\`[ \t\n\r]*\\'".
This commit is contained in:
Lars Ingebrigtsen 2022-08-15 08:24:29 +02:00
parent f2a592ea2f
commit d33a6b9069

View file

@ -675,7 +675,9 @@ instead of just updating them with the new/changed autoloads."
(insert "\\\n")))
(while def
(insert " ")
(prin1 (pop def) (current-buffer) t))
(prin1 (pop def) (current-buffer)
'(t (escape-newlines . t)
(escape-control-characters . t))))
(insert ")")))
(defun loaddefs-generate--excluded-files ()