From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [wenbinye@gmail.com: hexl-max-address in hexl-mode is incorrect] Date: Tue, 28 Nov 2006 09:48:45 +0900 Message-ID: References: <87bqmzo4fl.fsf@cyd.mit.edu> <87ejrvuom2.fsf@cyd.mit.edu> <49866.128.165.123.18.1164654589.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1164674997 13180 80.91.229.2 (28 Nov 2006 00:49:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 00:49:57 +0000 (UTC) Cc: cyd@stupidchicken.com, ihs_4664@yahoo.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 01:49:50 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 1GorAP-0000LT-O0 for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 01:49:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GorAP-0006yf-5e for ged-emacs-devel@m.gmane.org; Mon, 27 Nov 2006 19:49:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gor8f-0005ha-EW for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:47:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gor8d-0005fR-E1 for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:47:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gor8d-0005fB-6o for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:47:55 -0500 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gor8c-0007OZ-8M for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:47:54 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id kAS0lj8L001935; Tue, 28 Nov 2006 09:47:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id kAS0liME005011; Tue, 28 Nov 2006 09:47:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id kAS0libW029698; Tue, 28 Nov 2006 09:47:44 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1Gor9R-0000yX-De; Tue, 28 Nov 2006 09:48:45 +0900 Original-To: herring@lanl.gov In-reply-to: <49866.128.165.123.18.1164654589.squirrel@webmail.lanl.gov> (herring@lanl.gov) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.91 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:62884 Archived-At: In article <49866.128.165.123.18.1164654589.squirrel@webmail.lanl.gov>, "Stuart D. Herring" writes: >>> How about: (- (position-bytes (point-max)) (position-bytes (point-min))) > > > > I already looked in this, and couldn't find a way to get it to work. > > Hexl mode works by passing the buffer contents to an external program, > > lib-src/hexl; thus, the byte values seen by hexl-mode depend on > > buffer-file-coding-system. The value of position-bytes is independent > > of this. > Is there some other coding system variable that does affect position-bytes > (which we could then let-bind), or is it based on Emacs' internal, > invariant encoding? The latter. The byte sequence of a buffer after decoded is always in emacs-mule (in emacs-unicode-2 branch, it's utf-8). So, changing buffer-file-coding-system or any other coding-system-related variables doesn't affects position-bytes. --- Kenichi Handa handa@m17n.org