[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: user input in a macro
From: |
Kevin Rodgers |
Subject: |
Re: user input in a macro |
Date: |
Wed, 31 Aug 2005 10:51:17 -0600 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Baloff wrote:
> 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?
I think this requires enable-recursive-minibuffers to be set:
M-: (insert (read-string "Name: ")) RET
But there is probably a better way.
--
Kevin Rodgers