From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.help Subject: Re: Seeking advice on writing a "line-based" major mode Date: Mon, 08 Jun 2015 07:37:40 -0600 Message-ID: <871thmpbh7.fsf@tromey.com> References: <87wpzf9q38.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433770709 22102 80.91.229.3 (8 Jun 2015 13:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2015 13:38:29 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 15:38:16 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z1xFo-0000fU-Nk for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 15:38:16 +0200 Original-Received: from localhost ([::1]:58066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1xFn-0004Mp-Vc for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 09:38:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1xFd-0004MF-0H for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 09:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1xFZ-0004b9-Io for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 09:38:04 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:37700) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Z1xFZ-0004aQ-6x for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 09:38:01 -0400 Original-Received: (qmail 720 invoked by uid 0); 8 Jun 2015 13:37:55 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy5.mail.unifiedlayer.com with SMTP; 8 Jun 2015 13:37:55 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id dpW71q00c2f2jeq01pWAtj; Mon, 08 Jun 2015 07:30:19 -0600 X-Authority-Analysis: v=2.1 cv=efyuId0H c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=zxv4jSZfPCgA:10 a=XAFQembCKUMA:10 a=pCiltBOujVPYVIM2-04A:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=0Pcwe4ywY+lpNtmRsIlD70EIyyk17jJmAGIqJwBMtaw=; b=X6dTCuBvU/tr01ria5vgENBsOqPplZ16Dt4PDUNeCJanpPZ9uto+hdNheDOUobZ5YduVGQcqnU2nFK/HBYBNiFu7AvLfWxViQ5segsHQEdS8aPYVZk9xhxl5LjC6zGn4; Original-Received: from [71.218.201.176] (port=55681 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Z1xFH-0006NP-4v; Mon, 08 Jun 2015 07:37:43 -0600 X-Attribution: Tom In-Reply-To: <87wpzf9q38.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 07 Jun 2015 23:16:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.218.201.176 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.38.55 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104834 Archived-At: Marcin> I'm going to start coding a major mode, a bit like dired or grep-mode or Marcin> org-agenda mode, in which the buffer will contain a bunch of lines, each Marcin> of them correspoding to some object (basically, I have a vector of these Marcin> "objects", and I want to display them in some way). People have already mentioned tabulated-list-mode. Another way to go is EWOC, also part of the Emacs core. EWOC is used at least by vc-dir but also I think some other modes. I would suggest using whichever one fits your needs best. Tom