aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2017-07-01 20:54:41 -0400
committerNoam Postavsky2017-07-02 11:57:34 -0400
commit9a65b5779629d4f0f88d568ff164629e82db5ba8 (patch)
tree3310b99a0e3d9c961b6ecfda3380e6bb3ee50124
parent34d4720f833bb382b28d9faecf82d34db1eb4494 (diff)
downloademacs-9a65b5779629d4f0f88d568ff164629e82db5ba8.tar.gz
emacs-9a65b5779629d4f0f88d568ff164629e82db5ba8.zip
* lisp/emacs-lisp/cl-print.el (cl-print-compiled-button): t by default.
* lisp/emacs-lisp/debug.el (debugger-insert-backtrace): * lisp/help-fns.el (describe-variable): No need to let-bind `cl-print-compiled-button' to t anymore.
-rw-r--r--lisp/emacs-lisp/cl-print.el2
-rw-r--r--lisp/emacs-lisp/debug.el3
-rw-r--r--lisp/help-fns.el5
3 files changed, 2 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/cl-print.el b/lisp/emacs-lisp/cl-print.el
index 824d0b7b4f5..e9ca0412848 100644
--- a/lisp/emacs-lisp/cl-print.el
+++ b/lisp/emacs-lisp/cl-print.el
@@ -90,7 +90,7 @@ call other entry points instead, such as `cl-prin1'."
90- `disassemble' to print the disassembly of the code. 90- `disassemble' to print the disassembly of the code.
91- nil to skip printing any details about the code.") 91- nil to skip printing any details about the code.")
92 92
93(defvar cl-print-compiled-button nil 93(defvar cl-print-compiled-button t
94 "Control how to print byte-compiled functions into buffers. 94 "Control how to print byte-compiled functions into buffers.
95When the stream is a buffer, make the bytecode part of the output 95When the stream is a buffer, make the bytecode part of the output
96into a button whose action shows the function's disassembly.") 96into a button whose action shows the function's disassembly.")
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index b836e823c73..2b8782590c4 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -271,13 +271,10 @@ first will be printed into the backtrace buffer."
271 debugger-value))) 271 debugger-value)))
272 272
273 273
274(defvar cl-print-compiled-button)
275
276(defun debugger-insert-backtrace (frames do-xrefs) 274(defun debugger-insert-backtrace (frames do-xrefs)
277 "Format and insert the backtrace FRAMES at point. 275 "Format and insert the backtrace FRAMES at point.
278Make functions into cross-reference buttons if DO-XREFS is non-nil." 276Make functions into cross-reference buttons if DO-XREFS is non-nil."
279 (let ((standard-output (current-buffer)) 277 (let ((standard-output (current-buffer))
280 (cl-print-compiled-button t)
281 (eval-buffers eval-buffer-list)) 278 (eval-buffers eval-buffer-list))
282 (require 'help-mode) ; Define `help-function-def' button type. 279 (require 'help-mode) ; Define `help-function-def' button type.
283 (pcase-dolist (`(,evald ,fun ,args ,flags) frames) 280 (pcase-dolist (`(,evald ,fun ,args ,flags) frames)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index d7c31f9e2b8..32324ae3bcb 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -776,8 +776,6 @@ If ANY-SYMBOL is non-nil, don't insist the symbol be bound."
776 version package)))))) 776 version package))))))
777 output)) 777 output))
778 778
779(defvar cl-print-compiled-button)
780
781;;;###autoload 779;;;###autoload
782(defun describe-variable (variable &optional buffer frame) 780(defun describe-variable (variable &optional buffer frame)
783 "Display the full documentation of VARIABLE (a symbol). 781 "Display the full documentation of VARIABLE (a symbol).
@@ -858,8 +856,7 @@ it is displayed along with the global value."
858 (print-rep 856 (print-rep
859 (let ((rep 857 (let ((rep
860 (let ((print-quoted t) 858 (let ((print-quoted t)
861 (print-circle t) 859 (print-circle t))
862 (cl-print-compiled-button t))
863 (cl-prin1-to-string val)))) 860 (cl-prin1-to-string val))))
864 (if (and (symbolp val) (not (booleanp val))) 861 (if (and (symbolp val) (not (booleanp val)))
865 (format-message "`%s'" rep) 862 (format-message "`%s'" rep)