diff options
| author | Eli Zaretskii | 2022-09-07 16:20:29 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-09-07 16:20:29 +0300 |
| commit | e1282c8c66f228d45b03fd7109ffe6bc7ea201a9 (patch) | |
| tree | 7ba4478795e51a8b88dd9d356a8b6a297ef62bbb /lisp/disp-table.el | |
| parent | 579eefda36b9a8cd71c9aeff0f32e32d468727a3 (diff) | |
| download | emacs-e1282c8c66f228d45b03fd7109ffe6bc7ea201a9.tar.gz emacs-e1282c8c66f228d45b03fd7109ffe6bc7ea201a9.zip | |
Add instructions to 'standard-display-by-replacement-char'
* lisp/disp-table.el (standard-display-by-replacement-char): Add a
preamble to the generated code with instructions. Suggested by
Richard Stallman <rms@gnu.org>.
Diffstat (limited to 'lisp/disp-table.el')
| -rw-r--r-- | lisp/disp-table.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el index 53dff1e7097..c762b88cb66 100644 --- a/lisp/disp-table.el +++ b/lisp/disp-table.el | |||
| @@ -336,7 +336,14 @@ which characters can be displayed and which cannot." | |||
| 336 | first) | 336 | first) |
| 337 | (with-current-buffer buf | 337 | (with-current-buffer buf |
| 338 | (erase-buffer) | 338 | (erase-buffer) |
| 339 | (insert "(let ((tbl standard-display-table))\n") | 339 | (insert "\ |
| 340 | ;; Evaluate the Lisp code below to make Emacs show the standard | ||
| 341 | ;; 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 | ;; Normally you would put this code in your Emacs initialization file, | ||
| 344 | ;; perhaps conditionally based on the type of terminal, so that | ||
| 345 | ;; this setup happens automatically on each startup. | ||
| 346 | (let ((tbl standard-display-table))\n") | ||
| 340 | (while (<= ch to) | 347 | (while (<= ch to) |
| 341 | (cond | 348 | (cond |
| 342 | ((or (char-displayable-p ch) | 349 | ((or (char-displayable-p ch) |