aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-08 15:06:59 +0000
committerRichard M. Stallman1993-11-08 15:06:59 +0000
commitbb6066c863f0c21701c06d12cbc8159447e2f217 (patch)
tree6bcad6910e51c8083de63a0ea6e36a67688218da
parentdd64d80736b2ba8f80d4e0a6368d4f6a8b943873 (diff)
downloademacs-bb6066c863f0c21701c06d12cbc8159447e2f217.tar.gz
emacs-bb6066c863f0c21701c06d12cbc8159447e2f217.zip
(describe-current-display-table):
Don't get error if no display table now. (describe-display-table): Put all the output in the temp buffer.
-rw-r--r--lisp/disp-table.el29
1 files changed, 17 insertions, 12 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index 7add5e3a261..d162d4ef8bc 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -38,22 +38,27 @@
38 (princ "\nSelective display glyph sequence: ") 38 (princ "\nSelective display glyph sequence: ")
39 (prin1 (aref dt 260)) 39 (prin1 (aref dt 260))
40 (princ "\nCharacter display glyph sequences:\n") 40 (princ "\nCharacter display glyph sequences:\n")
41 (let ((vector (make-vector 256 nil)) 41 (save-excursion
42 (i 0)) 42 (set-buffer standard-output)
43 (while (< i 256) 43 (let ((vector (make-vector 256 nil))
44 (aset vector i (aref dt i)) 44 (i 0))
45 (setq i (1+ i))) 45 (while (< i 256)
46 (describe-vector vector)) 46 (aset vector i (aref dt i))
47 (setq i (1+ i)))
48 (describe-vector vector)))
47 (print-help-return-message))) 49 (print-help-return-message)))
48 50
49;;;###autoload 51;;;###autoload
50(defun describe-current-display-table () 52(defun describe-current-display-table ()
51 "Describe the display table in use in the selected window and buffer." 53 "Describe the display table in use in the selected window and buffer."
52 (interactive) 54 (interactive)
53 (describe-display-table 55 (let ((disptab
54 (or (window-display-table (selected-window)) 56 (or (window-display-table (selected-window))
55 buffer-display-table 57 buffer-display-table
56 standard-display-table))) 58 standard-display-table)))
59 (if disptab
60 (describe-display-table disptab)
61 (message "No display table"))))
57 62
58;;;###autoload 63;;;###autoload
59(defun make-display-table () 64(defun make-display-table ()