From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: opening large files (few hundred meg) Date: Wed, 06 Feb 2008 17:42:58 +0100 Message-ID: References: <1f94fef6-a335-4ce5-8d4b-7e87025a28dc@e32g2000prn.googlegroups.com> <87r6g1esga.fsf@gmx.de> <2adae7bb-c775-4a6e-bf83-66a8618b326d@s12g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202333505 14357 80.91.229.12 (6 Feb 2008 21:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 21:31:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 22:31:57 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMrru-0002IM-MV for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 22:31:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMrrS-0006Ka-5e for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 16:31:18 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net eJlpKht8jKjDjKpezkFS/AI8FloZd5b3a2I5EUbm5gmm1fc6NA Cancel-Lock: sha1:bbuKXJ7ieZOaSx+0R3KmcoYjGFw= sha1:1t0TPYMZQap5nc7hkIAWnGrdhuE= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Original-Xref: shelby.stanford.edu gnu.emacs.help:155884 X-Mailman-Approved-At: Wed, 06 Feb 2008 16:30:52 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51267 Archived-At: Jason Rumney writes: > Such solutions have been proposed before, but the likely way that a > user will navigate through such a huge file is by searching, so just > paging parts of the file in and out is only part of the solution, it > must also offer searching to be useful. For the record, I tried to implement this some time ago: http://www.emacswiki.org/cgi-bin/wiki/VLF First I used head and tail, then I used insert-file-contents with beg and end arguments and ran into the integer problem. However, if one would switch back to use head and tail (or whatever other tool you prefer), I am sure this will be possible if we use floating point numbers instead. If someone would like to extend my hack with this, feel free to do so, at least you have something to start with. Read the wiki page, read the code. /Mathias