unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* sending commands to shell with emacs lisp
@ 2009-09-13  5:15 Corey Foote
  2009-09-13  5:45 ` tomas
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Corey Foote @ 2009-09-13  5:15 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]


I'm trying to send commands to a shell buffer. I'm able to send the command "hello world" by calling this:

(defun exec-command ()
  (interactive)
  (set-buffer (get-buffer "*shell*"))
  (insert "hello world"))

But I can't figure out how to send over the "enter key" to actually make it execute the shell command. I'm an emacs lisp newbie!

Thanks everybody!

- Corey

_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

[-- Attachment #2: Type: text/html, Size: 760 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-13 14:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6557.1252818947.2239.help-gnu-emacs@gnu.org>
2009-09-13  7:14 ` sending commands to shell with emacs lisp Helmut Eller
2009-09-13  5:15 Corey Foote
2009-09-13  5:45 ` tomas
2009-09-13  6:43   ` Corey Foote
2009-09-13 10:21     ` tomas
     [not found]   ` <mailman.6560.1252824219.2239.help-gnu-emacs@gnu.org>
2009-09-13 14:39     ` despen
2009-09-13  6:55 ` Thierry Volpiatto
     [not found] ` <mailman.6558.1252820105.2239.help-gnu-emacs@gnu.org>
2009-09-13  7:45   ` Bruno Barbier

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).