[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Keyboard macros misfiring]
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: Keyboard macros misfiring] |
Date: |
Wed, 16 Mar 2005 00:23:15 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> This looks like a bug in move-beginning-of-line.
> Would you please DTRT?
>
I have changed move-beginning-of-line to use vertical-motion and
constrain-to-field (like beginning-of-line does) which seems to
give better results than the previous version (and avoid sit-for).
> From: Peter Seibel <address@hidden>
> Subject: Keyboard macros misfiring
> To: address@hidden
> Date: Sun, 13 Mar 2005 17:42:02 -0800
>
>
> Open a new file and insert the following text upto and including the
> line "This is a test" an the following blank line.
>
> 1. Now is the time for all good men to come to the aid of their party.
> 2. Now is the time for all good men to come to the aid of their party.
> 3. Now is the time for all good men to come to the aid of their party.
> 4. Now is the time for all good men to come to the aid of their party.
> 5. Now is the time for all good men to come to the aid of their party.
> 6. Now is the time for all good men to come to the aid of their party.
> 7. Now is the time for all good men to come to the aid of their party.
> 8. Now is the time for all good men to come to the aid of their party.
> 9. Now is the time for all good men to come to the aid of their party.
> 10. Now is the time for all good men to come to the aid of their party.
>
> This is a test
>
> Then copy that chunk enough times that at least one "This is a test"
> is off the bottom of the buffer. Now go to the top of the buffer and
> record the following keyboard macro:
>
> C-s ;; isearch-forward
> This ;; self-insert-command * 4
> C-a ;; move-beginning-of-line
> C-k ;; kill-line
> C-x C-o ;; delete-blank-lines
>
> Then execute this macro repeatedly. For me it works fine until it
> tries to search for one of the This is a tests that not visible off
> the bottom of the buffer--it'll jump to some other line and then
> delete it instead which you can tell from the numbers at the
> beginnings of the "Now is the time" lines.
>
> - -Peter
>
> In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> of 2005-03-13 on xeon
> Distributor `The XFree86 Project, Inc', version 11.0.40200000
> Important settings:
> value of $LC_ALL: nil
> value of $LC_COLLATE: nil
> value of $LC_CTYPE: nil
> value of $LC_MESSAGES: nil
> value of $LC_MONETARY: nil
> value of $LC_NUMERIC: nil
> value of $LC_TIME: nil
> value of $LANG: en_US.iso885915
> locale-coding-system: iso-latin-9
> default-enable-multibyte-characters: t
>
> Major mode: Text
>
> Minor modes in effect:
> erc-services-mode: t
> erc-autojoin-mode: t
> erc-button-mode: t
> erc-ring-mode: t
> erc-pcomplete-mode: t
> erc-track-mode: t
> erc-fill-mode: t
> erc-netsplit-mode: t
> erc-irccontrols-mode: t
> erc-noncommands-mode: t
> tooltip-mode: t
> mouse-wheel-mode: t
> global-font-lock-mode: t
> font-lock-mode: t
> blink-cursor-mode: t
> unify-8859-on-encoding-mode: t
> utf-translate-cjk-mode: t
> line-number-mode: t
>
> Recent input:
> C-x ( C-s T h i s C-a C-k C-x C-o C-x ) C-x e C-x e
> e e e e e e <down> <down> <up> <up> <up> C-x e M-<
> C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-w
> C-y <return> <return> C-p C-p T h i s SPC i s SPC a
> SPC t e s t C-n <return> C-SPC M-< C-w C-y C-x C-f
> C-g M-x e <backspace> r e p <tab> o r t <tab> <return>
> K e y b o r d SPC <up> a c <M-backspace> C-g M-x <up>
> <return>
>
> Recent messages:
> Mark activated
> Mark set [16 times]
> Defining kbd macro...
> Mark saved where search started
> Keyboard macro defined
> (Type e to repeat macro) [9 times]
> Mark set [6 times]
> Quit
> Making completion list...
> Loading emacsbug...done
> Quit
>
>
> _______________________________________________
> Emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
> ----------
>
--
Kim F. Storm <address@hidden> http://www.cua.dk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: address@hidden: Keyboard macros misfiring],
Kim F. Storm <=