summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1999-12-15 00:39:33 +0000
committerKenichi Handa <handa@m17n.org>1999-12-15 00:39:33 +0000
commitf0d16a7fec87057d13c304871dbc673583486469 (patch)
tree92488d8c56d8ac98fbc8667623137b69cc8ca7a2
parent9d4d60c169ef4c9b1769a710cf8a74c964521856 (diff)
downloademacs-f0d16a7fec87057d13c304871dbc673583486469.tar.gz
(what-cursor-position): Show "(composed)" if the
character is composed.
-rw-r--r--lisp/simple.el25
1 files changed, 9 insertions, 16 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 9a44200059c..84d7e6e4afa 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -513,33 +513,26 @@ addition, the encoding is fully shown."
"..."
(concat
(encoded-string-description encoded coding)
- (if (cmpcharp char) "..." ""))))
+ (if (nth 2 (find-composition (point)))
+ " (composed)" ""))))
(format "(0%o, %d, 0x%x)" char char char))))
(if detail
;; We show the detailed information of CHAR.
- (let ((internal
- (if (cmpcharp char)
- ;; For a composite character, we show the
- ;; components only.
- (concat "(composed \""
- (decompose-composite-char char)
- "\")")
- (split-char char))))
- (message "Char: %s %s %s"
- (if (< char 256)
- (single-key-description char)
- (buffer-substring (point) (1+ (point))))
- encoding-msg internal))
+ (message "Char: %s %s %s"
+ (if (< char 256)
+ (single-key-description char)
+ (buffer-substring-no-properties (point) (1+ (point))))
+ encoding-msg (split-char char))
(if (or (/= beg 1) (/= end (1+ total)))
(message "Char: %s %s point=%d of %d(%d%%) <%d - %d> column %d %s"
(if (< char 256)
(single-key-description char)
- (buffer-substring (point) (1+ (point))))
+ (buffer-substring-no-properties (point) (1+ (point))))
encoding-msg pos total percent beg end col hscroll)
(message "Char: %s %s point=%d of %d(%d%%) column %d %s"
(if (< char 256)
(single-key-description char)
- (buffer-substring (point) (1+ (point))))
+ (buffer-substring-no-properties (point) (1+ (point))))
encoding-msg pos total percent col hscroll)))))))
(defvar read-expression-map (cons 'keymap minibuffer-local-map)