[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs manipulate files with long-lines very slowly.

From: Miles Bader
Subject: Re: Emacs manipulate files with long-lines very slowly.
Date: Fri, 08 Dec 2006 18:18:13 +0900

Hongyi Zhao <address@hidden> 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


"I distrust a research person who is always obviously busy on a task."
   --Robert Frosch, VP, GM Research

reply via email to

[Prev in Thread] Current Thread [Next in Thread]