Commit 2a83421c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(what-cursor-position): Show char in decimal, hex, octal.

parent 34c31301
...@@ -374,10 +374,10 @@ and the greater of them is not at the start of a line." ...@@ -374,10 +374,10 @@ and the greater of them is not at the start of a line."
(message "point=%d of %d(%d%%) column %d %s" (message "point=%d of %d(%d%%) column %d %s"
pos total percent col hscroll)) pos total percent col hscroll))
(if (or (/= beg 1) (/= end (1+ total))) (if (or (/= beg 1) (/= end (1+ total)))
(message "Char: %s (0%o) point=%d of %d(%d%%) <%d - %d> column %d %s" (message "Char: %s (0%o, %d, 0x%x) point=%d of %d(%d%%) <%d - %d> column %d %s"
(single-key-description char) char pos total percent beg end col hscroll) (single-key-description char) char char char pos total percent beg end col hscroll)
(message "Char: %s (0%o) point=%d of %d(%d%%) column %d %s" (message "Char: %s (0%o, %d, 0x%x) point=%d of %d(%d%%) column %d %s"
(single-key-description char) char pos total percent col hscroll))))) (single-key-description char) char char char pos total percent col hscroll)))))
(defun fundamental-mode () (defun fundamental-mode ()
"Major mode not specialized for anything in particular. "Major mode not specialized for anything in particular.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment