help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kbd-macro works ok via "22.7 stepwide editing kbd macro", but not via C-


From: David Combs
Subject: kbd-macro works ok via "22.7 stepwide editing kbd macro", but not via C-x e. Why?
Date: Wed, 28 Mar 2012 19:18:44 -0000

Subject (folded): kbd-macro works ok via "22.7 stepwide editing kbd
   macro", but not via C-x e.  Why?



(setq last-kbd-macro
   "\C-a\C-f\C-f  \C-xr \C-[\C-s^price:  \C-m\C-[z\C-xu\C-xrj\C-y\C-xr 
\C-sisbn-10: \C-m\C-[d\C-xu\C-xrj\C-y ")

Command: last-kbd-macro
Key: none

Macro:

C-a                     ;; move-beginning-of-line
2*C-f                   ;; forward-char
2*SPC                   ;; self-insert-command
C-x r SPC               ;; point-to-register
ESC C-s                 ;; isearch-forward-regexp
^price:                 ;; self-insert-command * 7
2*SPC                   ;; self-insert-command
RET                     ;; newline
ESC z                   ;; zap-to-char
C-x u                   ;; advertised-undo
C-x r j                 ;; jump-to-register
C-y                     ;; yank
C-x r SPC               ;; point-to-register
C-s                     ;; isearch-forward
isbn-10:                ;; self-insert-command * 8
SPC                     ;; self-insert-command
RET                     ;; newline
ESC d                   ;; kill-word
C-x u                   ;; advertised-undo
C-x r j                 ;; jump-to-register
C-y                     ;; yank
SPC                     ;; self-insert-command



Here's the text I'm working on (for a given book (starts with a "[]",
by hand I place POINT somewhere on that first line), then the
kbd-macro is to grab the price and the isbn-10 and insert them on that
first line):

Like on the first book below, the first line should end up looking like this:
   "[] $61.71 978-1593272203 buynowxxFeb11: The Linux Programming Interface: A 
Linux and UNIX System Programming Handbook [Hardcover]"

Works fine when I use the manual (ie info) section 22.7 "Stepwise
editing of a keyboard macro", but when I execute the entire macro, via C-x e,
it ends up searching for a LOWER CASE "p" in "price".

But when by hand I do C-M-s on "^price:  ", it finds the expected one, "Price:  
".

Any ideas?

Thanks!

David

[] buynowxxFeb11: The Linux Programming Interface: A Linux and UNIX System 
Programming Handbook [Hardcover]
Michael Kerrisk (Author)
5.0 out of 5 stars  See all reviews (25 customer reviews) | Like (20)
List Price:     $99.95
Price:  $61.71 & this item ships for FREE with Super Saver Shipping. Details
You Save:       $38.24 (38%)


Product Details
Hardcover: 1552 pages
Publisher: No Starch Press; 1 edition (October 28, 2010)
Language: English
ISBN-10: 9781593272203
ISBN-13: 978-1593272203
ASIN: 1593272200
Shipping Weight: 5.1 pounds (View shipping rates and policies)
Average Customer Review: 5.0 out of 5 stars  See all reviews (25 customer 
reviews)


[] buynowxxFeb11: Autotools: A Practioner's Guide to GNU Autoconf, Automake, 
and Libtool [Paperback]
John Calcote (Author)
4.3 out of 5 stars  See all reviews (6 customer reviews) | Like (0)
List Price:     $44.95
Price:  $36.16 & this item ships for FREE with Super Saver Shipping. Details
You Save:       $8.79 (20%)

Product Details
Paperback: 360 pages
Publisher: No Starch Press; 1 edition (July 20, 2010)
Language: English
ISBN-10: 9781593272067
ISBN-13: 978-1593272067
ASIN: 1593272065
Shipping Weight: 1.5 pounds (View shipping rates and policies)
Average Customer Review: 4.3 out of 5 stars  See all reviews (6 customer 
reviews)


[] buynowxxFeb11: Creating a Website: The Missing Manual (Missing Manuals) 
(English and English Edition) [Paperback]
Matthew MacDonald (Author)
4.8 out of 5 stars  See all reviews (5 customer reviews) | Like (5)
List Price:     $29.99
Price:  $19.35 & eligible for FREE Super Saver Shipping on orders over $25. 
Details
You Save:       $10.64 (35%)



Product Details
Paperback: 582 pages
Publisher: O'Reilly Media; Third Edition edition (May 10, 2011)
Language: English
ISBN-10: 144930172X
ISBN-13: 978-1449301729






Any idea what I'm doing wrong?

THANKS!

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]