unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).