From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Emacs manipulate files with long-lines very slowly. Date: Fri, 08 Dec 2006 18:18:13 +0900 Message-ID: References: <20061208090419.GA8476@localdomain> Reply-To: Miles Bader NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165569553 30989 80.91.229.10 (8 Dec 2006 09:19:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2006 09:19:13 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 08 10:19:11 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gsbsr-0001LM-MB for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2006 10:19:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gsbsq-0008Jm-6D for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2006 04:19:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gsbs9-0008Hp-Rp for emacs-devel@gnu.org; Fri, 08 Dec 2006 04:18:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gsbs7-0008H6-KZ for emacs-devel@gnu.org; Fri, 08 Dec 2006 04:18:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gsbs7-0008Gq-6x for emacs-devel@gnu.org; Fri, 08 Dec 2006 04:18:23 -0500 Original-Received: from [210.143.35.52] (helo=tyo202.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gsbs5-0002uW-Om; Fri, 08 Dec 2006 04:18:22 -0500 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id kB89I1hC029281; Fri, 8 Dec 2006 18:18:14 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay11.aps.necel.com with ESMTP; Fri, 8 Dec 2006 18:18:14 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay11.aps.necel.com with ESMTP; Fri, 8 Dec 2006 18:18:14 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id EE8FB40C; Fri, 8 Dec 2006 18:18:13 +0900 (JST) Original-To: Hongyi Zhao System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <20061208090419.GA8476@localdomain> (Hongyi Zhao's message of "Fri\, 8 Dec 2006 17\:04\:19 +0800") Original-Lines: 25 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:63457 Archived-At: Hongyi Zhao writes: > But I can open it with gedit and edit it very quickly, is there any tricks > to solve the problem or some bugs in Emacs? Is that really a windows file? The lines are (mostly) separated with CR (^M), which as far as I know is _not_ the windows line separator, but in fact the old macintosh line separator. Emacs normally handles such files well, but in this case, there seem to be a few lines which use newline instead of CR, so emacs thinks it isn't a macintosh file either. I'd suggest just forcing it to use a consistent convention. Try the following: (1) visit the file (2) force newlines to be written using CR: C-x C-m f mac RET (3) save the file: C-x C-s (4) kill the buffer: C-x C-k RET (5) revisit the changed file -Miles -- "I distrust a research person who is always obviously busy on a task." --Robert Frosch, VP, GM Research