From 3c2351f2dc1fdc2d32592101cf1d5f5e66bef0b7 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 9 Feb 2026 12:30:35 -0500 Subject: [PATCH] (loaddefs-generate--print-form): Fix bug#80222 * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--print-form): Remove the "\\\n" hack we used to use together with `src/lread.c` code to avoid allocating heap space for docstrings that were going to be replaced by `Snarf-documentation`. We don't keep ELisp docstrings in DOC any more anyway. --- lisp/emacs-lisp/loaddefs-gen.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index 60d250b564f..0dc0d873bcd 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el @@ -732,11 +732,8 @@ instead of just updating them with the new/changed autoloads." '(t (escape-newlines . t) (escape-control-characters . t))) (insert " ")) - (let ((start (point))) - (prin1 (pop def) (current-buffer) t) - (save-excursion - (goto-char (1+ start)) - (insert "\\\n"))) + (delete-char -1) (insert "\n") + (prin1 (pop def) (current-buffer) t) (while def (insert " ") (prin1 (pop def) (current-buffer)