[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/simple.el
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/simple.el |
Date: |
Thu, 06 Oct 2005 02:55:46 -0400 |
Index: emacs/lisp/simple.el
diff -c emacs/lisp/simple.el:1.753 emacs/lisp/simple.el:1.754
*** emacs/lisp/simple.el:1.753 Sun Oct 2 03:33:02 2005
--- emacs/lisp/simple.el Thu Oct 6 06:55:45 2005
***************
*** 896,917 ****
(message "point=%d of %d (%d%%) column %d %s"
pos total percent col hscroll))
(let ((coding buffer-file-coding-system)
! encoded encoding-msg)
(if (or (not coding)
(eq (coding-system-type coding) t))
(setq coding default-buffer-file-coding-system))
(if (not (char-valid-p char))
(setq encoding-msg
(format "(0%o, %d, 0x%x, invalid)" char char char))
! (setq encoded (and (>= char 128) (encode-coding-char char coding)))
(setq encoding-msg
! (if encoded
! (format "(0%o, %d, 0x%x, file %s)"
! char char char
! (if (> (length encoded) 1)
! "..."
! (encoded-string-description encoded coding)))
! (format "(0%o, %d, 0x%x)" char char char))))
(if detail
;; We show the detailed information about CHAR.
(describe-char (point)))
--- 896,937 ----
(message "point=%d of %d (%d%%) column %d %s"
pos total percent col hscroll))
(let ((coding buffer-file-coding-system)
! encoded encoding-msg display-prop under-display)
(if (or (not coding)
(eq (coding-system-type coding) t))
(setq coding default-buffer-file-coding-system))
(if (not (char-valid-p char))
(setq encoding-msg
(format "(0%o, %d, 0x%x, invalid)" char char char))
! ;; Check if the character is displayed with some `display'
! ;; text property. In that case, set under-display to the
! ;; buffer substring covered by that property.
! (setq display-prop (get-text-property pos 'display))
! (if display-prop
! (let ((to (or (next-single-property-change pos 'display)
! (point-max))))
! (if (< to (+ pos 4))
! (setq under-display "")
! (setq under-display "..."
! to (+ pos 4)))
! (setq under-display
! (concat (buffer-substring-no-properties pos to)
! under-display)))
! (setq encoded (and (>= char 128) (encode-coding-char char coding))))
(setq encoding-msg
! (if display-prop
! (if (not (stringp display-prop))
! (format "(0%o, %d, 0x%x, part of display \"%s\")"
! char char char under-display)
! (format "(0%o, %d, 0x%x, part of display \"%s\"->\"%s\")"
! char char char under-display display-prop))
! (if encoded
! (format "(0%o, %d, 0x%x, file %s)"
! char char char
! (if (> (length encoded) 1)
! "..."
! (encoded-string-description encoded coding)))
! (format "(0%o, %d, 0x%x)" char char char)))))
(if detail
;; We show the detailed information about CHAR.
(describe-char (point)))
***************
*** 922,930 ****
(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-no-properties (point) (1+ (point))))
encoding-msg pos total percent col hscroll))))))
(defvar read-expression-map
--- 942,952 ----
(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 enable-multibyte-characters
! (if (< char 128)
! (single-key-description char)
! (buffer-substring-no-properties (point) (1+ (point))))
! (single-key-description char))
encoding-msg pos total percent col hscroll))))))
(defvar read-expression-map
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M . Stallman, 2005/10/01
- [Emacs-diffs] Changes to emacs/lisp/simple.el,
Kenichi Handa <=
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Masatake YAMATO, 2005/10/16
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Juri Linkov, 2005/10/21
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M . Stallman, 2005/10/23
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Masatake YAMATO, 2005/10/24
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M . Stallman, 2005/10/29