From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: view/edit large files Date: Mon, 09 Feb 2009 14:26:15 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <868wofnyqg.fsf@lifelogs.com> References: <86zlgzqudo.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 1234211182 20821 80.91.229.12 (9 Feb 2009 20:26:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2009 20:26:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 21:27:37 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 1LWcie-0000UU-S9 for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 21:27:26 +0100 Original-Received: from localhost ([127.0.0.1]:60160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWchJ-00027x-QQ for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 15:25:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWcgI-0001mY-Me for emacs-devel@gnu.org; Mon, 09 Feb 2009 15:24:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWcgE-0001kv-Hu for emacs-devel@gnu.org; Mon, 09 Feb 2009 15:24:38 -0500 Original-Received: from [199.232.76.173] (port=56060 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWcgE-0001kq-4Y for emacs-devel@gnu.org; Mon, 09 Feb 2009 15:24:34 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:52920 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWcgD-0006r3-Ir for emacs-devel@gnu.org; Mon, 09 Feb 2009 15:24:33 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWcg9-0003W0-Sb for emacs-devel@gnu.org; Mon, 09 Feb 2009 20:24:30 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2009 20:24:29 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2009 20:24:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:F8d385MhFHfQFEG6if0O5VigKh0= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:108908 Archived-At: On Sat, 07 Feb 2009 04:14:27 -0500 Richard M Stallman wrote: RMS> Describe it in text is what I thought I did. RMS> I don't have time to implement it, though. I quote your suggestion here: > Here's an idea for a UI for editing big files. First you run M-x grep on > the file, and display the matches for whatever regexp. In the *grep* > buffer you specify a region, which is a way of choosing two matches, > the ones whose entries contain point and mark. Then you give a command to edit > the file from one of the matches to the other. It marks these matches > (and the lines containing them) as read-only so that you can't > spoil the correspondance with the file. Thus, you can always save this > partial-file buffer. > The beginning and end of the *grep* buffer can be used to specify > that the portion to edit starts or ends at bof or eof. I didn't understand your suggestion fully initially, sorry. I think you're suggesting that the user should pick a "window" between two places in the file. Then the user can only edit the file between those two places. That `grep' is producing the list of places is not as important as the idea of having those places. RMS> Your API seems to be aimed at a lower level, RMS> so the two could work together. Yes, I believe so. I'll try to implement the items I listed and perhaps someone can use them productively, to implement the UI you suggested or something else. Thanks for your help and time. Ted