From: "David O'Toole" <dto@gnu.org>
To: emacs-devel@gnu.org
Cc: rms@gnu.org
Subject: Re: Spreadsheet display mode
Date: Thu, 22 Nov 2007 20:03:04 -0500 [thread overview]
Message-ID: <64bfe3d50711221703n6a2aa803refcae006b68a022a@mail.gmail.com> (raw)
Hi Richard,
I wrote something called "cell-mode" that seems similar to what you
describe. It holds a grid of cells whose "labels" are
application-defined strings with text properties, and draws them to a
buffer. The display code can do several things:
- Insert display-property "specified spaces" during rendering so
that all cells in a column
are the same width---even when there are images and text in the label
- optional vertical and/or horizontal "zebra stripes" (i.e. every
other column / row is tinted)
- seamlessly tile various identically-sized rectangular images
I did have a version that supported embedding an interactive
spreadsheet UI into random buffers as a minor mode, using display
properties. You can't put point inside the text, but it can still
receive mouse clicks and keyboard events, so I could just draw a fake
cursor (with an overlay) and map keystrokes to commands that move the
fake cursor. The illusion was pretty good.
Anyway, I'm trying to make it into a very general-purpose library that
could be used as a front-end for SES and all the other "display stuff
in a table interactively" modes (dired, buffer list, etc)
Here are some screenshots:
an old demo with some interactive objects:
http://dto.freeshell.org/images/cell-mode.png
a recent shot of a rudimentary XPM pixel art drawing program:
http://dto.freeshell.org/images/pixel-preview.png
an example of embedding cell-mode in a buffer:
http://dto.freeshell.org/images/EcaSpace-alpha.png
image tiling stuff:
http://dto.freeshell.org/images/RogueLike-11.png
http://dto.freeshell.org/images/RogueLike-12.png
larger images:
http://dto.freeshell.org/images/cell-mode-2.png
I've been looking for an excuse to work on cell-mode again. It does
need some fixes (especially to make it work well on ttys) but if
anyone is interested i will clean it up and post it to
gnu.emacs.sources.
------------------------------------
From: Richard Stallman <rms <at> gnu.org>
Subject: Spreadsheet display mode
Newsgroups: gmane.emacs.devel
Date: 2007-11-22 16:23:02 GMT (8 hours and 5 minutes ago)
Someone suggested that Emacs should have a spreadsheet display mode.
I did some thinking about the idea. A list of cell definitions could
control how to display each line, and they could go in a `display'
property that might be on an overlay or text property (so that you
could display just a part of the buffer as a spreadsheet).
The actual text would use delimiters to separate cell contents.
The cell definitions could specify what delimiters to use.
What do you think?
next reply other threads:[~2007-11-23 1:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 1:03 David O'Toole [this message]
2007-11-23 8:18 ` Spreadsheet display mode Bastien
2007-11-24 3:12 ` Richard Stallman
2007-11-23 12:03 ` Johan Bockgård
2007-11-23 13:35 ` Johan Bockgård
2007-11-24 15:20 ` Richard Stallman
2007-11-23 14:00 ` David O'Toole
2007-11-24 3:13 ` Richard Stallman
2007-11-24 11:49 ` David O'Toole
2007-11-24 22:05 ` Richard Stallman
2007-11-25 5:31 ` David O'Toole
-- strict thread matches above, loose matches on Subject: below --
2007-11-22 16:23 Richard Stallman
2007-11-22 19:19 ` Glenn Morris
2007-11-23 4:35 ` Richard Stallman
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=64bfe3d50711221703n6a2aa803refcae006b68a022a@mail.gmail.com \
--to=dto@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@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.