all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* repeat command n times where n is stored in a buffer
@ 2015-02-15  0:43 regnad.kcin.fst
  2015-02-15  6:23 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 2+ messages in thread
From: regnad.kcin.fst @ 2015-02-15  0:43 UTC (permalink / raw)
  To: help-gnu-emacs

I am trying to write a command macro which reads the # of times for a repeat from a buffer. I have written a set of commands which 

1) reads the # from a list
2) modifies a command in file zmac.el
3) emacs-lisp-byte-compile-and-load is executed
4) go to another buffer and execute the command

However, although the command is modified in the command buffer, the # of items does not seem to change, and I get the same # over and over, even though the prompt in the # source buffer moves along. It's as if the command for # of items is not global to the buffer but is local or something. I can see the command buffer change. 

If you need to see code, i can do that.

There may be an easier way to do this as well. Is it possible to execute a command a # of times, where # is stored as a variable which I can modify?


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

end of thread, other threads:[~2015-02-15  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15  0:43 repeat command n times where n is stored in a buffer regnad.kcin.fst
2015-02-15  6:23 ` Pascal J. Bourguignon

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.