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: ^M in the info files Date: Wed, 09 Jul 2008 20:16:14 +0900 Message-ID: References: <484F1FAB.6070005@gmail.com> <487481B2.3090302@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1215618519 22045 80.91.229.12 (9 Jul 2008 15:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2008 15:48:39 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 09 17:49:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGbur-0008Pa-G3 for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2008 17:49:17 +0200 Original-Received: from localhost ([127.0.0.1]:45376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGbtw-0000W9-Rg for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2008 11:48:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGbtt-0000W3-GY for emacs-devel@gnu.org; Wed, 09 Jul 2008 11:48:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGbto-0000Vq-ST for emacs-devel@gnu.org; Wed, 09 Jul 2008 11:48:13 -0400 Original-Received: from [199.232.76.173] (port=49798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGbto-0000Vn-PX for emacs-devel@gnu.org; Wed, 09 Jul 2008 11:48:08 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:48804) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KGbtV-0005JE-Ke; Wed, 09 Jul 2008 11:47:49 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGXew-00014t-Gr; Wed, 09 Jul 2008 07:16:31 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m69BGFp2025522; Wed, 9 Jul 2008 20:16:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m69BGFND028263; Wed, 9 Jul 2008 20:16:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m69BGEuk002221; Wed, 9 Jul 2008 20:16:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KGXeg-00053i-Rx; Wed, 09 Jul 2008 20:16:14 +0900 In-reply-to: <487481B2.3090302@gnu.org> (message from Jason Rumney on Wed, 09 Jul 2008 10:15:30 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:100482 Archived-At: In article <487481B2.3090302@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: > > In article , "Juanma Barranquero" writes: > > Oops, sorry. But, I can't see the ^M problem in info files. > > Actually, on Windows, when I type C-h i, I get this error: > > > > Can't find the Info directory node > > > > But, when I type C-u C-h i ~/emacs/info/efag RET (I built > > Emacs under ~/emacs), I see no '^M's. > Perhaps the version of makeinfo you have is not generating files with > DOS line ends. Mine is, It seems so. > and even opening info/efaq with C-x C-f shows > the ^M characters, though I don't see any inconsistencies that should > cause line-end detection to fail and Emacs 22.2 opens it correctly with > a DOS coding system. I've just found that the file "efaq" contains null-bytes ('\0') after "Concept Index\n********\n\n". "viper" also contains null-bytes. So, Emacs detects that those files are binary. Hmmm, what should we do? Make a new variable inhibit-null-byte-detection (analogous to inhibit-iso-escape-detection)? Or, make the code of null-byte detection checks the percentage of null-byte, and conclude that the file is binary only when the percentage is higher than some threshold? --- Kenichi Handa handa@ni.aist.go.jp