From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: [wenbinye@gmail.com: hexl-max-address in hexl-mode is incorrect] Date: Mon, 27 Nov 2006 11:09:49 -0800 (PST) Message-ID: <49866.128.165.123.18.1164654589.squirrel@webmail.lanl.gov> References: <87bqmzo4fl.fsf@cyd.mit.edu> <87ejrvuom2.fsf@cyd.mit.edu> Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1164673877 10479 80.91.229.2 (28 Nov 2006 00:31:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 00:31:17 +0000 (UTC) Cc: Kevin Rodgers , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 01:31:11 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 1GoqsH-0004j8-Ie for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 01:31:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoqsG-0006gm-Or for ged-emacs-devel@m.gmane.org; Mon, 27 Nov 2006 19:31:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Goqs0-0006dc-QO for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:30:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Goqrv-0006YC-Ps for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:30:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Goqrv-0006XR-Eg for emacs-devel@gnu.org; Mon, 27 Nov 2006 19:30:39 -0500 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GolrT-0003hI-Fa for emacs-devel@gnu.org; Mon, 27 Nov 2006 14:09:52 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id kARJ9oLo027246 for ; Mon, 27 Nov 2006 12:09:50 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id kARJ9nQq007162; Mon, 27 Nov 2006 12:09:49 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id kARJ9nGs022801; Mon, 27 Nov 2006 12:09:49 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id kARJ9nBm022797; Mon, 27 Nov 2006 11:09:49 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 27 Nov 2006 11:09:49 -0800 (PST) In-Reply-To: <87ejrvuom2.fsf@cyd.mit.edu> Original-To: "Chong Yidong" User-Agent: SquirrelMail/1.4.6-7.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 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:62883 Archived-At: >> 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? Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.