aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPip Cet2019-06-13 14:10:56 +0200
committerLars Ingebrigtsen2019-06-13 14:11:39 +0200
commitbfec493efe93e1a1d87013f26d220616b0a82a65 (patch)
treee519cadbb9c3770fef08b335f88fc57150a2f53f
parentf660616f82b89e2e544f32ede054cd3ee9ddc7e1 (diff)
downloademacs-bfec493efe93e1a1d87013f26d220616b0a82a65.tar.gz
emacs-bfec493efe93e1a1d87013f26d220616b0a82a65.zip
Escape newlines when printing functions in timer list
* timer-list.el (list-timers): Bind `print-escape-newlines' to avoid newlines in printed representation (bug#36187).
-rw-r--r--lisp/emacs-lisp/timer-list.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/timer-list.el b/lisp/emacs-lisp/timer-list.el
index 55aa56b72e0..adfc2250223 100644
--- a/lisp/emacs-lisp/timer-list.el
+++ b/lisp/emacs-lisp/timer-list.el
@@ -59,7 +59,8 @@
59 (format "%s" repeat)))) 59 (format "%s" repeat))))
60 ;; Function. 60 ;; Function.
61 (let ((cl-print-compiled 'static) 61 (let ((cl-print-compiled 'static)
62 (cl-print-compiled-button nil)) 62 (cl-print-compiled-button nil)
63 (print-escape-newlines t))
63 (cl-prin1-to-string (aref timer 5))))) 64 (cl-prin1-to-string (aref timer 5)))))
64 (put-text-property (line-beginning-position) 65 (put-text-property (line-beginning-position)
65 (1+ (line-beginning-position)) 66 (1+ (line-beginning-position))