I have the following text:
{{p, p1}, {r, r2}, {x, x2}, {k, k4}},
{{p, p1}, {r, r2}, {x, x2}, {k, k4}}, {{p, p1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {r, r2}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {x, x2}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {y, y3}, {k, k4}}, {{p, p1}, {c, c1}, {s, s1}, {y, y3}, {k, k4}}}
I wrote a macro, that starting on the second line before the {{p, p1... would break up the long line into its component parts:
com.mulgasoft.emacsplus.isearchForward
SHIFT]SHIFT],
[x]
com.mulgasoft.emacsplus.forwardChar
com.mulgasoft.emacsplus.backwardChar
\r\b
In english this is:
Search for the next location of "}},"
Move forward to behind the next "{"
Insert a return
Hit Delete key once to move text back in line with text above
The macro ended fine.
I tried to execute it with ^-X e, but I got a bell ding.
I named it, bound it, still the same result.
I read the caveats about keyboard macros and don't see how the issues apply, other than maybe this line:
To enable Meta-X execution of a named keyboard macro, the Emacs+ Keyboard Macros category must be present in this list. If it is not, select New and add it from the interface.
I went to the Emacs+ Preferences by opening up the Preferences on my Eclipse (version Indigo Service Release 2, build id: 20120216-1857) and searched for Emacs+.
I found the prefs page, but do not see a list of categories or a new button.
Anyone know why this macro isn't working as I expect it to?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Emacs+ Eclipse Discussion" group.
To post to this group, send email to emac...@googlegroups.com
To unsubscribe from this group, send email to
emacsplus+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/emacsplus?hl=en?hl=en
Support Emacs+ by marking it as a 'favorite' at the Eclipse Marketplace: http://marketplace.eclipse.org/content/emacs.