[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sending commands to shell with emacs lisp
From: |
tomas |
Subject: |
Re: sending commands to shell with emacs lisp |
Date: |
Sun, 13 Sep 2009 12:21:42 +0200 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, Sep 13, 2009 at 02:43:29AM -0400, Corey Foote wrote:
>
> Thanks, but I really am just looking for a way to send an "enter" keystroke
> to my *shell* buffer [...]
I see. There are other useful suggestions as to what to do in that case.
My approach would have been to look at what a shell buffer does when
ENTER is hit. You can peek at that by hitting "C-h k" (aka "describe
key") in a shell buffer and then hitting ENTER. You get:
RET (translated from <return>) runs the command comint-send-input,
which is an interactive compiled Lisp function in `comint.el'.
(which is what Helmut proposes in this thread).
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFKrMe2Bcgs9XrR2kYRAgfkAJ0ZGUAVGzcSli0qeiFtZx+6vrxMLQCdF40S
cq0Gum4wk+CPeN5C5rRSJ+U=
=nmDp
-----END PGP SIGNATURE-----