Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!lom1.math.yale.edu!ara From: ara@lom1.math.yale.edu (Allan Adler) Newsgroups: gnu.emacs Subject: (none) Message-ID: <8912252022.AA08870@LOM1.MATH.YALE.EDU> Date: 25 Dec 89 20:22:49 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 56 I am having a problem using GNU Emacs. Maybe someone can tell me what I am doing wrong, if anything. Enclosed is a sample of a file I was editing. The file is basically a texinfo file about the primitive control sequences in TeX. I wanted to get rid of the ,,,Top at the end of the @section lines. So I typed ESC ESC to invoke novice and a space to get it to execute one lisp command, which was: (execute-kbd-macro "\C-E\M-B\C-B\C-B\C-B\C-K\C-N\C-N\C-N" 0) At the time, I was positioned at the beginning of the line @section \ (control space),,,Top According to the GNU emacs manual, the zero at the end of the execute-kbd-macro command is supposed to make the command repeat until it can't be repeated anymore, and presumably that is when it gets to the end of the file. However, what it did instead is destroy most of the file and I don't understand how or why. I know that if I replace the 0 by number such as 5, it quickly executes the command whereas with the 0 it takes forwever before destroying the file. I was fortunately able to save the original by NOT saving the file after ^X^C. But I would like to understand better what is and should be happening. Can someone explain it to me ? Allan Adler ara@lom1.math.yale.edu ============================================================================ @node \ (control space),,,Top @section \ (control space),,,Top @node \-(discretionary hyphen),,,Top @section \-(discretionary hyphen),,,Top @node \/(italic correction),,,Top @section \/(italic correction),,,Top @node \above(general fraction),,,Top @section \above(general fraction),,,Top @node \abovedisplayshortskip,,,Top @section \abovedisplayshortskip,,,Top @node \abovedisplayskip,,,Top @section \abovedisplayskip,,,Top @node \abovewithdelims,,,Top @section \abovewithdelims,,,Top @node \accent(general accent),,,Top @section \accent(general accent),,,Top @node \adjdemerits,,,Top @section \adjdemerits,,,Top @node \advance,,,Top @section \advance,,,Top