From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sven Klose Newsgroups: gmane.emacs.help Subject: problem with lisp programming Date: 22 May 2002 16:51:59 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <1022079119.24763.34.camel@ifs-090> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1022079488 23897 127.0.0.1 (22 May 2002 14:58:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 May 2002 14:58:08 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17AXZ1-0006D4-00 for ; Wed, 22 May 2002 16:58:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17AXVG-0004eS-00; Wed, 22 May 2002 10:54:14 -0400 Original-Received: from mail.lf.net ([212.9.160.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17AXT4-0004Z6-00 for ; Wed, 22 May 2002 10:51:58 -0400 Original-Received: by mail.LF.net (Smail3.2.0.111/isc.LF.net) via LF.net GmbH Internet Services via remoteip 212.9.165.74 via remotehost extmail.dtnet.de with esmtp from sven.klose@dtnet.de for help-gnu-emacs@gnu.org for fencepost.gnu.org id m17AXT3-00BPRKC; Wed, 22 May 2002 16:51:57 +0200 (CEST) Original-Received: from mail.dtnet.de (mail.dtnet.de [212.9.164.179]) by extmail.dtnet.de (Postfix) with ESMTP id 3480A38023 for ; Wed, 22 May 2002 16:51:57 +0200 (CEST) Original-Received: from ifs-090.dtnet.de (mail.dtnet.de [212.9.164.179]) by mail.dtnet.de (Postfix) with ESMTP id 9AB77FE4F for ; Wed, 22 May 2002 16:51:56 +0200 (CEST) Original-To: help-gnu-emacs@gnu.org X-Mailer: Ximian Evolution 1.0.5 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:340 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:340 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