Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!agate!ucbvax!tut.cis.ohio-state.edu!GIBBS.PHYSICS.PURDUE.EDU!ray From: ray@GIBBS.PHYSICS.PURDUE.EDU (Ray Moody) Newsgroups: gnu.emacs.bug Subject: repeat counts and ^X ) Message-ID: <8907110336.AA15988@gibbs.physics.purdue.edu> Date: 11 Jul 89 03:36:50 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 52 When a repeat count is applied to end-kbd-macro, the macro is supposed to be repeated N-1 times. This works, but the repeat count is stored as part of the macro definition, and will be applied to the next command invoked after the macro. Here is a kludge to fix it. (It is fixed by resetting the repeat count after invoking the macro. It should be fixed by not storing the repeat count as part of the macro definition -- but this is somewhat more difficult to do.) Ray ------------------------------------------------------------------------------- RCS file: /usr/src/new/gnu/emacs/src/RCS/macros.c,v retrieving revision 18.54 retrieving revision 18.54.1.1 diff -c -r18.54 -r18.54.1.1 *** /tmp/,RCSt1015968 Mon Jul 10 22:34:20 1989 --- /tmp/,RCSt2015968 Mon Jul 10 22:34:21 1989 *************** *** 26,31 #include "buffer.h" #include "window.h" int defining_kbd_macro; char *kbd_macro_buffer; --- 26,33 ----- #include "buffer.h" #include "window.h" + Lisp_Object Vprefix_arg; + int defining_kbd_macro; char *kbd_macro_buffer; *************** *** 202,207 UNGCPRO; unbind_to (count); return Qnil; } --- 204,210 ----- UNGCPRO; unbind_to (count); + Vprefix_arg = Qnil; return Qnil; }