From: Marcin Borkowski <mbork@mbork.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Seeking advice on writing a "line-based" major mode
Date: Wed, 17 Jun 2015 23:14:19 +0200 [thread overview]
Message-ID: <87si9q2g2c.fsf@mbork.pl> (raw)
In-Reply-To: <871thmpbh7.fsf@tromey.com>
On 2015-06-08, at 15:37, Tom Tromey <tom@tromey.com> wrote:
> 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.
Thanks a lot! I looked into tabulated-list-mode and EWOC, and it seems
that EWOC is the way to go for me.
I have a few questions, though. One thing I'd like to have is /sorting/
of the `things' in my ewoc based on different criteria. Do I get it
correctly that I'll have to `ewoc-create' it from scratch? DO I get it
correctly that I can just safely (setq my-ewoc (ewoc-create ...)),
knowing that the old one will be GC'ed automatically?
Also, I'd like to color various entries in my ewoc, using different
faces. Do I get it correctly that I should assign them faces right
after `insert'ing them in my pretty-printing function?
> I would suggest using whichever one fits your needs best.
>
> Tom
Thanks again,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
next prev parent reply other threads:[~2015-06-17 21:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-07 21:16 Seeking advice on writing a "line-based" major mode Marcin Borkowski
2015-06-08 2:17 ` Drew Adams
2015-06-18 8:06 ` Marcin Borkowski
2015-06-18 16:10 ` Drew Adams
2015-06-18 18:47 ` Marcin Borkowski
2015-06-18 19:50 ` Drew Adams
2015-06-18 20:44 ` Marcin Borkowski
2015-06-18 21:28 ` Drew Adams
2015-07-18 23:20 ` Marcin Borkowski
2015-07-19 0:26 ` Robert Thorpe
[not found] ` <mailman.5261.1434643820.904.help-gnu-emacs@gnu.org>
2015-06-18 16:23 ` Emanuel Berg
[not found] ` <mailman.5215.1434614824.904.help-gnu-emacs@gnu.org>
2015-06-18 15:57 ` Emanuel Berg
2015-06-18 22:01 ` Emanuel Berg
2015-06-20 1:28 ` Emanuel Berg
2015-06-08 13:37 ` Tom Tromey
2015-06-17 21:14 ` Marcin Borkowski [this message]
[not found] ` <mailman.5205.1434575686.904.help-gnu-emacs@gnu.org>
2015-06-18 1:50 ` Stefan Monnier
2015-06-18 7:58 ` Marcin Borkowski
[not found] <mailman.4548.1433712325.904.help-gnu-emacs@gnu.org>
2015-06-07 22:23 ` Emanuel Berg
2015-06-07 22:48 ` Marcin Borkowski
2015-06-07 22:28 ` Emanuel Berg
2015-06-07 22:49 ` Marcin Borkowski
2015-06-08 0:09 ` Joost Kremers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87si9q2g2c.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.