[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "`read-from-buffer'" functionality
From: |
Thien-Thi Nguyen |
Subject: |
Re: "`read-from-buffer'" functionality |
Date: |
Sun, 06 Mar 2005 13:08:59 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Joe Corneli <jcorneli@math.utexas.edu> writes:
> some
> tips.
look at `vc-toggle-read-only' flow for an example.
the key thing to keep in mind is to avoid completely
"modal" interaction; you should not prohibit changing
buffers and returning later to complete the input.
here is an application that doesn't follow this advice:
http://www.glug.org/people/ttn/software/etrack/
(see file etrack.el from the tarball.) the result is
that it is not easily integrable w/ other packages,
and an errant C-g is enough to confuse the program.
another input-gathering paradigm is manifested by:
http://www.glug.org/people/ttn/software/edb/
wherein you find relatively clean separation between
elisp objects, print representation, and storage (on
disk) representation, as well as a forms-oriented
input mechanism. (see also forms.el, which EDB will
probably move towards using internally in the future.)
thi