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:
parent
f2a592ea2f
commit
d33a6b9069
1 changed files with 3 additions and 1 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue