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: map-file-lines Date: Mon, 02 Feb 2009 23:13:13 -0500 Message-ID: References: <86wsc87o3c.fsf@lifelogs.com> <86skmw7ig6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233634424 16069 80.91.229.12 (3 Feb 2009 04:13:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 04:13:44 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 05:14:58 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 1LUCgc-0001h5-71 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 05:14:58 +0100 Original-Received: from localhost ([127.0.0.1]:48899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUCfJ-0000o4-Ax for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 23:13:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUCex-0000UK-LN for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:13:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUCex-0000Td-7i for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:13:15 -0500 Original-Received: from [199.232.76.173] (port=35038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUCew-0000TV-SQ for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:13:14 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:21204) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUCew-0003mP-Mp for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:13:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMFAN9Sh0nO+IQk/2dsb2JhbACBbssvhBQGgmw X-IronPort-AV: E=Sophos;i="4.37,369,1231131600"; d="scan'208";a="33238436" Original-Received: from 206-248-132-36.dsl.teksavvy.com (HELO pastel.home) ([206.248.132.36]) by ironport2-out.teksavvy.com with ESMTP; 02 Feb 2009 23:13:14 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id F27B48229; Mon, 2 Feb 2009 23:13:13 -0500 (EST) In-Reply-To: (joakim@verona.se's message of "Tue, 03 Feb 2009 00:59:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:108657 Archived-At: > Maybe like this: > - find where you want to edit, by searching chunk-at-a-time > - display a buffer of this chunk > - edit it > - save the chunk back into the file > This could behave conceptually like narrowing. Obviously not perfect, > but better than not being able to edit large files at all. OK, that's indeed how I imagine it as well, but I fail to see how this relates to map-file-lines. All you need for that is to use the BEG and END args of insert-file-contents (and maybe also to extend those args so they can be floats, in case Emacs's ints are too limited). Stefan