summaryrefslogtreecommitdiff
path: root/lisp/international/mule-util.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2004-12-06 19:04:04 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2004-12-06 19:04:04 +0000
commite7a4820cac74a73e62a42dd623da3b8473c845cc (patch)
tree226877cc8608d05f1b50908c7533f24b0afaac27 /lisp/international/mule-util.el
parent22864a4875d08e83c49069633ddd68badbbe554b (diff)
downloademacs-e7a4820cac74a73e62a42dd623da3b8473c845cc.tar.gz
(char-displayable-p): Return nil for unibyte mode.
Diffstat (limited to 'lisp/international/mule-util.el')
-rw-r--r--lisp/international/mule-util.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index 1700c315187..682b850c2d8 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -2,7 +2,7 @@
;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
;; Licensed to the Free Software Foundation.
-;; Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
;; Keywords: mule, multilingual
@@ -356,6 +356,9 @@ basis, this may not be accurate."
(cond ((< char 256)
;; Single byte characters are always displayable.
t)
+ ((not enable-multibyte-characters)
+ ;; Maybe there's a font for it, but we can't put it in the buffer.
+ nil)
((display-multi-font-p)
;; On a window system, a character is displayable if we have
;; a font for that character in the default face of the
@@ -377,5 +380,5 @@ basis, this may not be accurate."
;; coding: iso-2022-7bit
;; End:
-;;; arch-tag: 5bdb52b6-a3a5-4529-b7a0-37d01b0e570b
+;; arch-tag: 5bdb52b6-a3a5-4529-b7a0-37d01b0e570b
;;; mule-util.el ends here