From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baloff Newsgroups: gmane.emacs.help Subject: user input in a macro Date: 31 Aug 2005 18:11:50 +1000 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Message-ID: <87ek8acypl.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125477068 29703 80.91.229.2 (31 Aug 2005 08:31:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 08:31:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 31 10:31:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EANy7-0000fY-6s for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Aug 2005 10:29:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EAO2D-0001i1-Jo for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Aug 2005 04:33:31 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Original-NNTP-Posting-Host: 210.50.72.97 X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Lines: 49 Original-NNTP-Posting-Host: 203.134.67.67 Original-X-Trace: 1125474416 un-2park-reader-02.sydney.pipenetworks.com.au 15513 203.134.67.67:4435 Original-X-Complaints-To: Abuse, including message IDs to abuse@pipenetworks.com Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!news.moat.net!quokka.wn.com.au!token.pipenetworks.com!218.100.2.58.MISMATCH!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:133572 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29108 Archived-At: Hello I am building a macro using edit-kbd-macro. ****************************** C-x C-f ;; find-file E ;; self-insert-command TAB ;; c-indent-command T ;; self-insert-command 2*TAB ;; c-indent-command 4 ;; self-insert-command TAB ;; c-indent-command RET ;; newline +9 ;; self-insert-command RET ;; newline v ;; self-insert-command C-x C-f ;; find-file main.cpp ;; self-insert-command * 8 RET ;; newline now, what that says is make a directory in this location and name it 9 now, how do I choose a name dynamically while the macro is running? what I did ****************************** C-x C-f ;; find-file E ;; self-insert-command TAB ;; c-indent-command T ;; self-insert-command 2*TAB ;; c-indent-command 4 ;; self-insert-command TAB ;; c-indent-command RET ;; newline + C-x q ;; self-insert-command RET ;; newline v ;; self-insert-command C-x C-f ;; find-file main.cpp ;; self-insert-command * 8 RET ;; newline but this puts 'E' at the end of the path and I feel it will not work. any help is appreciated. thanks > LocalWords: cpp RET