There is an option to
repeat a macro an infinite number of times until the function quits (for example, by reaching the end of the buffer) or if the user cancels the command in keyboard macros
by using C-u0 as prefix to C-xe.
How can we mimic this behavior in Elisp code with the loop? For example, I would like to write a code that brings point to the outermost bracket to check if it is of a certain value:
(defun outer-paren()
(interactive)
(while condition
(up-list)))
What should condition
be to mimic keyboard macro infinite argument behavior?
((some (|text) embedded) within brackets) --> |((some (text) embedded) within brackets)