summaryrefslogtreecommitdiff
path: root/lisp/disp-table.el
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-24 21:13:21 +0000
committerJim Blandy <jimb@redhat.com>1993-05-24 21:13:21 +0000
commit820887bcfa3a79e5d2074255b79f19f19dc678d5 (patch)
tree2eb4946cda8fea32a9dc5315984f46044e30974d /lisp/disp-table.el
parent3c72afc60f4a35b955c11b3e155be7305588d061 (diff)
downloademacs-820887bcfa3a79e5d2074255b79f19f19dc678d5.tar.gz
* disp-table.el (standard-display-default): New function.
(standard-display-european): New command.
Diffstat (limited to 'lisp/disp-table.el')
-rw-r--r--lisp/disp-table.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index 0c5e0f093a6..83ac5d03b41 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -72,6 +72,17 @@
(setq l (1+ l))))
;;;###autoload
+(defun standard-display-default (l h)
+ "Display characters in the range L to H using the default notation."
+ (while (<= l h)
+ (if (and (>= l ?\ ) (< l 127))
+ (if standard-display-table (aset standard-display-table l nil))
+ (or standard-display-table
+ (setq standard-display-table (make-vector 261 nil)))
+ (aset standard-display-table l nil))
+ (setq l (1+ l))))
+
+;;;###autoload
(defun standard-display-ascii (c s)
"Display character C using string S."
(or standard-display-table
@@ -110,6 +121,15 @@
(setq glyph-table (vconcat glyph-table (list string)))
(1- (length glyph-table)))
+(defun standard-display-european (arg)
+ "Arrange to display European characters encoded with ISO 8859.
+This means that characters in the range of 160 to 255 display not
+as octal escapes, but as accented characters."
+ (interactive "P")
+ (if arg (standard-display-default 160 255)
+ (standard-display-8bit 160 255)))
+
+
(provide 'disp-table)
;;; disp-table.el ends here