aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2004-08-17 12:12:57 +0000
committerKenichi Handa2004-08-17 12:12:57 +0000
commitb325442feebfb00d64498120eab2a177371da644 (patch)
tree030b04112c513d9e6aa29c6d9690d303d340fe34
parent82215ce9f322148b0dbb43af4fc5cd7bb142b479 (diff)
downloademacs-b325442feebfb00d64498120eab2a177371da644.tar.gz
emacs-b325442feebfb00d64498120eab2a177371da644.zip
(describe-char): Fix for the case CODE is a cons of integers.
-rw-r--r--lisp/descr-text.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 5ce8cabed55..108d7d87a1e 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -494,7 +494,9 @@ as well as widgets, buttons, overlays, and text properties."
494 ,(symbol-name charset) 494 ,(symbol-name charset)
495 ,(format "(%s)" (charset-description charset))) 495 ,(format "(%s)" (charset-description charset)))
496 ("code point" 496 ("code point"
497 ,(format (if (< code 256) "0x%02X" "0x%04X") code)) 497 ,(if (integerp code)
498 (format (if (< code 256) "0x%02X" "0x%04X") code)
499 (format "0x%04X%04X" (car code) (cdr code))))
498 ("syntax" 500 ("syntax"
499 ,(let ((syntax (syntax-after pos))) 501 ,(let ((syntax (syntax-after pos)))
500 (with-temp-buffer 502 (with-temp-buffer