# HG changeset patch # User Stefan Monnier # Date 1102359844 0 # Node ID 9b0a547610a40c802e6083eb227fcfafd8555038 # Parent cd6471f28fc2f0319ba600087e62f6bfce1817c7 (char-displayable-p): Return nil for unibyte mode. diff -r cd6471f28fc2 -r 9b0a547610a4 lisp/international/mule-util.el --- a/lisp/international/mule-util.el Mon Dec 06 15:12:46 2004 +0000 +++ b/lisp/international/mule-util.el Mon Dec 06 19:04:04 2004 +0000 @@ -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 @@ (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 @@ ;; coding: iso-2022-7bit ;; End: -;;; arch-tag: 5bdb52b6-a3a5-4529-b7a0-37d01b0e570b +;; arch-tag: 5bdb52b6-a3a5-4529-b7a0-37d01b0e570b ;;; mule-util.el ends here