all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem with lisp programming
@ 2002-05-22 14:51 Sven Klose
  0 siblings, 0 replies; only message in thread
From: Sven Klose @ 2002-05-22 14:51 UTC (permalink / raw)


hello emacs users,

i was running in some trouble while programming a small emacs macro.

what i want to do is 
1) start the terminal-emulator
2) use a small script as the shell 
3) after finishing the terminal-emulator, the content of the file ~/.acc
should be inserted into the buffer from where the terminal-emulator was
called.

i added the following lines to my ~/.emacs file:
----------------
(setq explicit-shell-file-name "/home/sk/.emacs_dummy_bash")
(fset 'acc "\M-xterm")
(fset 'adone "\C-u\C-[!cat ~/.acc");
----------------

if i type \M-xacc, emacs executes ~/.emacs_dummy_bash and when i type
\M-xadone, the content of the file ~/.acc is in my buffer, but i don't
want to kill the *terminal* buffer after the shell is terminated, change
to the original buffer and type \M-xadoneto get the content of ~/.acc.
this should be done by a macro but i don't knew how to do it. this was
my first contact with the lisp programming language so i'm not really
good in lisp programming.

any help would be aprechiated.


greets sven



-- 
----------------------------------------------------------
DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart
Tel: +49-711-849910-18             Fax: +49-711-849910-918
WEB: http://www.dtnet.de/       mailto:sven.klose@dtnet.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-22 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22 14:51 problem with lisp programming Sven Klose

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.