From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [wenbinye@gmail.com: hexl-max-address in hexl-mode is incorrect] Date: Wed, 22 Nov 2006 17:02:13 -0500 Message-ID: <87ejrvuom2.fsf@cyd.mit.edu> References: <87bqmzo4fl.fsf@cyd.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164232963 14097 80.91.229.2 (22 Nov 2006 22:02:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 22:02:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 23:02:40 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 1Gn0Ad-000455-PK for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 23:02:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gn0Ad-0001v7-EI for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 17:02:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gn0AO-0001sn-W7 for emacs-devel@gnu.org; Wed, 22 Nov 2006 17:02:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gn0AN-0001qr-6z for emacs-devel@gnu.org; Wed, 22 Nov 2006 17:02:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gn0AN-0001qj-0u for emacs-devel@gnu.org; Wed, 22 Nov 2006 17:02:03 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gn0AM-00038l-4O for emacs-devel@gnu.org; Wed, 22 Nov 2006 17:02:02 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id CDBAC4E453; Wed, 22 Nov 2006 17:02:13 -0500 (EST) Original-To: Kevin Rodgers In-Reply-To: (Kevin Rodgers's message of "Wed\, 22 Nov 2006 10\:15\:01 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:62694 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.