From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs awfully slow on some files Date: Tue, 11 Aug 2009 11:04:54 -0400 Message-ID: References: <7b501d5c0908101104v6fb4d56axe3f5ea28628d7fe3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250003127 21127 80.91.229.12 (11 Aug 2009 15:05:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 15:05:27 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 17:05:14 2009 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 1MasuW-0005Bw-4C for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 17:05:12 +0200 Original-Received: from localhost ([127.0.0.1]:39615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasuU-0006yY-Lb for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 11:05:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MasuP-0006yO-Gp for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:05:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MasuK-0006y5-2k for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:05:04 -0400 Original-Received: from [199.232.76.173] (port=44604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasuJ-0006y2-UA for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:04:59 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MasuI-0001n2-U8 for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:04:59 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n7BF4tCF023534; Tue, 11 Aug 2009 11:04:55 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id E3D4F3A0B7; Tue, 11 Aug 2009 11:04:54 -0400 (EDT) In-Reply-To: <7b501d5c0908101104v6fb4d56axe3f5ea28628d7fe3@mail.gmail.com> (Deniz Dogan's message of "Mon, 10 Aug 2009 20:04:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3337=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:114060 Archived-At: > I have a file which is 1 MB long and all of the content is on a single > line. Using Emacs on this file is pretty much impossible due to the > super-sluggish behavior. It's embarrassing. Why is this? It's probably a combination of various pieces of code which make incorrect assumptions about the expected line length. > Can it be fixed? Yes. > This is with fundamental-mode, by the way. Good: in several other modes, I could argue that such a long line is a bug, but fundamental-mode should cater to weird files. > `forward-char' and `backward-char' are pretty much the only usable > commands, even "C-h f" (describe-function) is extremely slow in > this scenario. Please report a bug for it via M-x report-emacs-bug, and ideally include some recipe (in case it depends on the actual content of the long line, for example, or if it needs more than "emacs -Q" to reproduce). Stefan