* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):

`newline' does not respect `standard-output', so use `princ'.

Otherwise you can get \n inserted in the wrong buffer, eg
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00379.html
This commit is contained in:
Glenn Morris 2013-10-30 16:03:07 -04:00
parent 947518dbb8
commit 4f85b47922
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-30 Glenn Morris <rgm@gnu.org>
* emacs-lisp/autoload.el (autoload-generate-file-autoloads):
`newline' does not respect `standard-output', so use `princ'.
2013-10-30 Alp Aker <alp.tekin.aker@gmail.com>
Ensure unmarking in buffer menu clears 'S' marks. (Bug#15761)

View file

@ -553,7 +553,7 @@ Return non-nil if and only if FILE adds no autoloads to OUTFILE
(princ `(push (purecopy
',(cons (intern package) version))
package--builtin-versions))
(newline)))))
(princ "\n")))))
(goto-char (point-min))
(while (not (eobp))