aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/disp-table.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index c762b88cb66..f0ee3d1d780 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -337,13 +337,15 @@ which characters can be displayed and which cannot."
337 (with-current-buffer buf 337 (with-current-buffer buf
338 (erase-buffer) 338 (erase-buffer)
339 (insert "\ 339 (insert "\
340;; This code was produced by `standard-display-by-replacement-char'.
340;; Evaluate the Lisp code below to make Emacs show the standard 341;; Evaluate the Lisp code below to make Emacs show the standard
341;; replacement character as a substitute for each undisplayable character. 342;; replacement character as a substitute for each undisplayable character.
342;; One way to do that is with \"C-x h M-x eval-region RET\". 343;; One way to do that is with \"C-x h M-x eval-region RET\".
343;; Normally you would put this code in your Emacs initialization file, 344;; Normally you would put this code in your Emacs initialization file,
344;; perhaps conditionally based on the type of terminal, so that 345;; perhaps conditionally based on the type of terminal, so that
345;; this setup happens automatically on each startup. 346;; this setup happens automatically on each startup.
346(let ((tbl standard-display-table))\n") 347(let ((tbl (or standard-display-table
348 (setq standard-display-table (make-display-table)))))\n")
347 (while (<= ch to) 349 (while (<= ch to)
348 (cond 350 (cond
349 ((or (char-displayable-p ch) 351 ((or (char-displayable-p ch)