all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* user input in a macro
@ 2005-08-31  8:11 Baloff
  2005-08-31 16:51 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Baloff @ 2005-08-31  8:11 UTC (permalink / raw)


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

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

* Re: user input in a macro
  2005-08-31  8:11 user input in a macro Baloff
@ 2005-08-31 16:51 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-08-31 16:51 UTC (permalink / raw)


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

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

end of thread, other threads:[~2005-08-31 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-31  8:11 user input in a macro Baloff
2005-08-31 16:51 ` Kevin Rodgers

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.