From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: regnad.kcin.fst@gmail.com Newsgroups: gmane.emacs.help Subject: repeat command n times where n is stored in a buffer Date: Sat, 14 Feb 2015 16:43:05 -0800 (PST) Message-ID: <012c100d-14fd-48e0-9050-a89c54fe9924@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423970978 4940 80.91.229.3 (15 Feb 2015 03:29:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 03:29:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 04:29:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMptk-0008Bn-Uq for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 04:29:33 +0100 Original-Received: from localhost ([::1]:33455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMptk-0000Yn-Cj for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 22:29:32 -0500 X-Received: by 10.182.246.73 with SMTP id xu9mr14292027obc.17.1423960985945; Sat, 14 Feb 2015 16:43:05 -0800 (PST) X-Received: by 10.140.31.52 with SMTP id e49mr209447qge.37.1423960985904; Sat, 14 Feb 2015 16:43:05 -0800 (PST) Original-Path: usenet.stanford.edu!hl2no16488269igb.0!news-out.google.com!c1ni5qar.1!nntp.google.com!i13no1314787qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.208.220.5; posting-account=JsSEwQkAAAAWm89j_a9XYfN9Pu_Hxz_Z Original-NNTP-Posting-Host: 206.208.220.5 User-Agent: G2/1.0 Injection-Date: Sun, 15 Feb 2015 00:43:05 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:210449 X-Mailman-Approved-At: Sat, 14 Feb 2015 22:29:21 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102727 Archived-At: I am trying to write a command macro which reads the # of times for a repea= t from a buffer. I have written a set of commands which=20 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 i= tems does not seem to change, and I get the same # over and over, even thou= gh the prompt in the # source buffer moves along. It's as if the command fo= r # of items is not global to the buffer but is local or something. I can s= ee the command buffer change.=20 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?