* Ed Emulator Mode
@ 2007-02-21 2:20 Matthew Flaschen
2007-02-21 8:35 ` Kim F. Storm
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Flaschen @ 2007-02-21 2:20 UTC (permalink / raw)
To: emacs
[-- Attachment #1.1: Type: text/plain, Size: 1015 bytes --]
I thought about this once before, but the recent discussion about
viper/vimpact reminded me. Has anyone made an ed-mode, as in an
emulator for ed, THE STANDARD TEXT EDITOR
(http://www.gnu.org/fun/jokes/ed.msg.html). I just thought it might be
a fun way to learn some emacs lisp.
Does anyone know if this has been done?
So far, I intend to show the file/buffer being edited in one window, and
the ed "interface" in the other window. A couple other things I'm
wondering:
How do I locally override ALL keys, like a wildcard? I need to reject
all invalid keys with ? in command mode, so I thought it would best to
reject all, then selectively allow valid keys. I think this will also
keep them from trying to manipulate the interface manually?
Is there some mode/function that's really worth overriding? I thought
about it, but I figured it would be best done from scratch, (as a minor
mode?). I'm still kind of vague on this, though.
Any other ideas welcome. :)
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ed Emulator Mode
2007-02-21 2:20 Ed Emulator Mode Matthew Flaschen
@ 2007-02-21 8:35 ` Kim F. Storm
2007-02-21 9:03 ` Matthew Flaschen
0 siblings, 1 reply; 3+ messages in thread
From: Kim F. Storm @ 2007-02-21 8:35 UTC (permalink / raw)
To: Matthew Flaschen; +Cc: emacs
Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
> How do I locally override ALL keys, like a wildcard?
You can specify a default binding (event = t).
`(t . BINDING)'
This specifies a "default key binding"; any event not bound by
other elements of the keymap is given BINDING as its binding.
Default bindings allow a keymap to bind all possible event types
without having to enumerate all of them. A keymap that has a
default binding completely masks any lower-precedence keymap,
except for events explicitly bound to `nil' (see below).
--
Kim F. Storm http://www.cua.dk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ed Emulator Mode
2007-02-21 8:35 ` Kim F. Storm
@ 2007-02-21 9:03 ` Matthew Flaschen
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Flaschen @ 2007-02-21 9:03 UTC (permalink / raw)
To: emacs
[-- Attachment #1.1: Type: text/plain, Size: 795 bytes --]
Kim F. Storm wrote:
> Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
>
>> How do I locally override ALL keys, like a wildcard?
>
> You can specify a default binding (event = t).
>
> `(t . BINDING)'
> This specifies a "default key binding"; any event not bound by
> other elements of the keymap is given BINDING as its binding.
> Default bindings allow a keymap to bind all possible event types
> without having to enumerate all of them. A keymap that has a
> default binding completely masks any lower-precedence keymap,
> except for events explicitly bound to `nil' (see below).
Thanks. On second thought, I'm pretty sure I can't use that for ed-mode
(I'll have to do real parsing), but I'll keep it in mind.
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-21 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 2:20 Ed Emulator Mode Matthew Flaschen
2007-02-21 8:35 ` Kim F. Storm
2007-02-21 9:03 ` Matthew Flaschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).