]> git.eshelyaron.com Git - emacs.git/commitdiff
Escape newlines when printing functions in timer list
authorPip Cet <pipcet@gmail.com>
Thu, 13 Jun 2019 12:10:56 +0000 (14:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Jun 2019 12:11:39 +0000 (14:11 +0200)
* timer-list.el (list-timers): Bind `print-escape-newlines' to avoid
newlines in printed representation (bug#36187).

lisp/emacs-lisp/timer-list.el

index 55aa56b72e00477b2b75a790fe2cf0c7df35e828..adfc225022345e9d1b66c50fff90e000d28db06f 100644 (file)
@@ -59,7 +59,8 @@
                           (format "%s" repeat))))
                       ;; Function.
                       (let ((cl-print-compiled 'static)
-                            (cl-print-compiled-button nil))
+                            (cl-print-compiled-button nil)
+                            (print-escape-newlines t))
                         (cl-prin1-to-string (aref timer 5)))))
       (put-text-property (line-beginning-position)
                          (1+ (line-beginning-position))