unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: regnad.kcin.fst@gmail.com
To: help-gnu-emacs@gnu.org
Subject: repeat command n times where n is stored in a buffer
Date: Sat, 14 Feb 2015 16:43:05 -0800 (PST)	[thread overview]
Message-ID: <012c100d-14fd-48e0-9050-a89c54fe9924@googlegroups.com> (raw)

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?


             reply	other threads:[~2015-02-15  0:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-15  0:43 regnad.kcin.fst [this message]
2015-02-15  6:23 ` repeat command n times where n is stored in a buffer Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=012c100d-14fd-48e0-9050-a89c54fe9924@googlegroups.com \
    --to=regnad.kcin.fst@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).