aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-12-30 20:41:24 +0000
committerRichard M. Stallman1998-12-30 20:41:24 +0000
commite38dff0c25c0a20ed9b85b687fe18c516472c577 (patch)
treef5c04cff3768a6992a9a7b1b27b2592feabe432b
parent82cb9133192454128f89495664c4900f36ca8a06 (diff)
downloademacs-e38dff0c25c0a20ed9b85b687fe18c516472c577.tar.gz
emacs-e38dff0c25c0a20ed9b85b687fe18c516472c577.zip
(what-cursor-position): Fix previous change.
-rw-r--r--lisp/simple.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 4c314ad52e2..ce6f31d1fff 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -484,13 +484,15 @@ and the greater of them is not at the start of a line."
484 484
485(defun what-cursor-position (&optional detail) 485(defun what-cursor-position (&optional detail)
486 "Print info on cursor position (on screen and within buffer). 486 "Print info on cursor position (on screen and within buffer).
487With prefix argument, print detailed info of a character on cursor position. 487Also describe the character after point, and give its character code
488in octal, decimal and hex. For a non-ASCII multibyte character,
489also give its encoding in the buffer's selected coding system,
490if any.
488 491
489For the detailed information, Emacs internal character code, Emacs 492With prefix argument, print additional details about that character,
490internal character components (the character set name and position 493instead of the cursor position. This includes the character set name,
491code(s)), and the corresponding external character components (the 494the codes that identify the character within that character set,
492external character set name and external character code(s)) are shown 495and the corresponding external character components.
493in this order.
494 496
495Each language environment may show different external character components." 497Each language environment may show different external character components."
496 (interactive "P") 498 (interactive "P")
@@ -525,10 +527,8 @@ Each language environment may show different external character components."
525 (format "(0%o, %d, 0x%x, ext %s)" 527 (format "(0%o, %d, 0x%x, ext %s)"
526 char char char 528 char char char
527 encoding-string-hex) 529 encoding-string-hex)
528 (format "(%s, %s, %s)" 530 (format "(0%o, %d, 0x%x)"
529 encoding-string-oct 531 char char char))))
530 encoding-string-dec
531 encoding-string-hex))))
532 (if detail 532 (if detail
533 (let* ((internal (split-char char)) 533 (let* ((internal (split-char char))
534 (charset (char-charset char)) 534 (charset (char-charset char))