From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: next-error refactoring Date: Mon, 07 Jun 2004 12:14:10 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4nd64bqral.fsf@lifelogs.com> References: <20040503.071327.124836670.Takaaki.Ota@am.sony.com> <20040504.075437.207586641.Takaaki.Ota@am.sony.com> <87llk552oz.fsf@mail.jurta.org> <87isf6e7ji.fsf@mail.jurta.org> <87iseg4x5d.fsf@mail.jurta.org> <4npt8oeet9.fsf_-_@lifelogs.com> <4nd64j6u3p.fsf@lifelogs.com> <4n3c5c64mx.fsf@lifelogs.com> <87llj42p57.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086626486 11177 80.91.224.253 (7 Jun 2004 16:41:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2004 16:41:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 07 18:41:16 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXNBU-0005zG-00 for ; Mon, 07 Jun 2004 18:41:16 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BXNBU-00079i-00 for ; Mon, 07 Jun 2004 18:41:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXNC1-00024s-PA for emacs-devel@quimby.gnus.org; Mon, 07 Jun 2004 12:41:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXNBt-00024m-MM for emacs-devel@gnu.org; Mon, 07 Jun 2004 12:41:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXNBs-00024T-W2 for emacs-devel@gnu.org; Mon, 07 Jun 2004 12:41:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXNBs-00024J-Tt for emacs-devel@gnu.org; Mon, 07 Jun 2004 12:41:40 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BXNBH-0004BP-D1 for emacs-devel@gnu.org; Mon, 07 Jun 2004 12:41:03 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BXNBG-0007hx-00 for ; Mon, 07 Jun 2004 18:41:02 +0200 Original-Received: from asimov.bwh.harvard.edu ([134.174.9.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jun 2004 18:41:02 +0200 Original-Received: from tzz by asimov.bwh.harvard.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jun 2004 18:41:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: asimov.bwh.harvard.edu 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.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:2ahIqjz3ud/pm/kw6T3u8SCxKrY= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24678 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24678 On Fri, 04 Jun 2004, juri@jurta.org wrote: > Ted Zlatanov writes: >> I'm trying to make next-error a universal "next DWIM" interface, and > > I think "next DWIM" is not the right name. "Do What I Mean" is too > general term and doesn't describe precisely the purpose of the mode > which basically is extracting locations from the buffer contents and > visiting them in other buffers. I would like "next DWIM," not just "next place I'm supposed to visit." I gave some examples in my reply to RMS's post. > With all that said, I have a better suggestion: to extend the existing > `master-mode' which has a similar purpose. It associates the current > buffer (the master) with another buffer (the slave) and allows > operating on the slave buffer from the master. When applied to > compilation/grep/diff/occur, the master will mean the buffer with > locations, and the slave will mean the source buffers where locations > are visited. This could be useful for specific cases, but I don't think necessarily in all the useful cases :) > It would be very good if you will add more hooks. I already > encountered many situations where more hooks are needed to make the > whole framework more extensible. For example, to add a hook that will > allow grep/diff to visit files in view mode, and will kill a read-only > source buffer when another buffer is visited after subsequent invocation > of `next-error'. I'll work on that when RMS (and others) reply to my proposal about the future of next-error mode. That will make a big difference in how I implement things. Ted