[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hexl-max-address in hexl-mode is not right
From: |
Ye Wenbin |
Subject: |
hexl-max-address in hexl-mode is not right |
Date: |
Sun, 12 Nov 2006 22:27:22 +0800 |
User-agent: |
Opera Mail/9.01 (Win32) |
The hexl-max-address usually set to buffer-size, but when the buffer
contain a multiple byte character or the file associated to the buffer is
encoded by multibyte coding system such as utf-16, the hexl-max-address is
usually less the the real byte of buffer.
Here is my solution to set hexl-max-address which might help:
(setq hexl-max-address
(1- (if buffer-file-name
(nth 7 (file-attributes buffer-file-name))
(length
(decode-coding-string (buffer-string)
buffer-file-coding-system)))))
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
- hexl-max-address in hexl-mode is not right,
Ye Wenbin <=