From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [wenbinye@gmail.com: hexl-max-address in hexl-mode is incorrect] Date: Sun, 19 Nov 2006 02:59:53 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1163923346 7703 80.91.229.2 (19 Nov 2006 08:02:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 08:02:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 19 09:02:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Glhd8-0006Ms-5i for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 09:02:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Glhd7-0004Cg-Pj for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 03:02:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Glhal-0002PC-VC for emacs-devel@gnu.org; Sun, 19 Nov 2006 02:59:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Glhal-0002Nv-8z for emacs-devel@gnu.org; Sun, 19 Nov 2006 02:59:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Glhak-0002Nl-S9 for emacs-devel@gnu.org; Sun, 19 Nov 2006 02:59:54 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Glhal-00025Q-06 for emacs-devel@gnu.org; Sun, 19 Nov 2006 02:59:55 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Glhaj-0008Bt-Kt; Sun, 19 Nov 2006 02:59:53 -0500 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62455 Archived-At: Would someone please DTRT and ack? ------- Start of forwarded message ------- To: "emacs-pretest-bug@gnu.org" From: "Ye Wenbin" Organization: Personal Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Date: Tue, 14 Nov 2006 12:53:04 +0800 Subject: hexl-max-address in hexl-mode is incorrect X-Spam-Status: No, score=0.5 required=5.0 tests=RCVD_BY_IP,TO_ADDRESS_EQ_REAL autolearn=no version=3.0.4 You can test like this: Test case 1: In *scratch* buffer, erase the buffer, and choose TeX input method, input two multibyte characters, such as "«»", which can display in my emacs. Then change to hexl-mode. Use C-f to move point. You can see the cursor can't arrive to the last byte. Use C-h v hexl-max-address to see the value of hexl-max-address. The hexl-max-address is 2 which is the buffer-size of *scratch*. Test case 2: Open a new file, such as /tmp/test.txt. Use C-x RET f to set the file coding system to utf-16. Input any letters such as "ab", and save the buffer. Then change mode to hexl-mode. C-h v hexl-max-address show the value is still 2 which is the buffer-size rather than the sizze of the file. ==================================================================== In GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.8.17) of 2006-08-24 on vernadsky, modified by Debian (Debian emacs-snapshot package, version 1:20060707-1~dapper1) X server distributor `The X.Org Foundation', version 11.0.70000000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.50/leim' '--with-x=yes' '--with-x-toolkit=gtk' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: zh_CN.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Hexl Minor modes in effect: shell-dirtrack-mode: t icomplete-mode: t partial-completion-mode: t desktop-save-mode: t auto-image-file-mode: t show-paren-mode: t encoded-kbd-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC SPC M-x r e p o r - Recent messages: Char: » (2235, #o4273, #x8bb, file ...) point=2 of 2 (50%) column=1 Loading hexl...done Converting to hexl format discards undo info; ok? (y or n) hexl-goto-address: Out of hexl region [6 times] uncompressing emacs.gz...done uncompressing emacs-1.gz...done Mark saved where search started [2 times] uncompressing emacs-5.gz...done byte-code: End of buffer [3 times] Loading emacsbug...done - -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------