diff options
| author | Richard M. Stallman | 1998-12-30 20:41:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-12-30 20:41:24 +0000 |
| commit | e38dff0c25c0a20ed9b85b687fe18c516472c577 (patch) | |
| tree | f5c04cff3768a6992a9a7b1b27b2592feabe432b | |
| parent | 82cb9133192454128f89495664c4900f36ca8a06 (diff) | |
| download | emacs-e38dff0c25c0a20ed9b85b687fe18c516472c577.tar.gz emacs-e38dff0c25c0a20ed9b85b687fe18c516472c577.zip | |
(what-cursor-position): Fix previous change.
| -rw-r--r-- | lisp/simple.el | 20 |
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). |
| 487 | With prefix argument, print detailed info of a character on cursor position. | 487 | Also describe the character after point, and give its character code |
| 488 | in octal, decimal and hex. For a non-ASCII multibyte character, | ||
| 489 | also give its encoding in the buffer's selected coding system, | ||
| 490 | if any. | ||
| 488 | 491 | ||
| 489 | For the detailed information, Emacs internal character code, Emacs | 492 | With prefix argument, print additional details about that character, |
| 490 | internal character components (the character set name and position | 493 | instead of the cursor position. This includes the character set name, |
| 491 | code(s)), and the corresponding external character components (the | 494 | the codes that identify the character within that character set, |
| 492 | external character set name and external character code(s)) are shown | 495 | and the corresponding external character components. |
| 493 | in this order. | ||
| 494 | 496 | ||
| 495 | Each language environment may show different external character components." | 497 | Each 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)) |