tags:

views:

134

answers:

2

Hi, I don't know how to call a macro inside another macro avoiding the ring bell stop of the inner macro, because that stops the external macro. In particular, I have to make two searches , and I've defined one in one macro and the other have to search some folders and call in each folder the inner macro, but the external macro cannot continue after the ring bell stop of the inner macro.

Any solution?

Thanks!

A: 

There is probably a way to do it by modifying or studying the behavior of isearch, but your best bet is to write the inner loop in Lisp and run the outer loop as a macro (or write it in Lisp as well). The macro system is great, but it is limited in power, and it sounds like you are trying to do something more powerful than it can handle (easily).

Depending on what you are doing, you may also be able to use Lisp expressions in the replacement string of a regexp replace. Starting with GNU Emacs 22, you can use Lisp expressions in the replacement string by escaping them with "\,".

I'm sure there is a way to achieve what you asked (it is Emacs, after all), but it is probably more trouble than it is worth.

haxney
A: 

Thanks for your answer. I though it was a way to avoid the bell stop when doing two searches in a macro easily.

salva
FYI, you should user the 'add comment' link to respond to someone's answer, otherwise there's no way to follow the thread of conversation.
phils