Rudolf Adamkovič <rud...@adamkovic.org> writes:

> +*** ~org-next-block~ rings the bell if no block is found
> +
> +It is now possible to call the ~org-next-block~ function interactively
> +from a keyboard macro that runs until the bell rings.  For example, if
> +the user customizes ~org-edit-src-content-indentation~, they can run a
> +keyboard macro that updates all source blocks in a file, without Emacs
> +looping forever.  The change affects ~org-next-block~ and its callers,
> +including functions ~org-previous-block~, ~org-babel-next-src-block~,
> +and ~org-babel-previous-src-block~.
> ...
> +      (when (called-interactively-p 'any)
> +        (ding))
>        (user-error "No %s code blocks" (if backward "previous" "further")))))

Thanks for the patch, but I am confused *why* you need this.
`user-error' will stop macro just fine. Macros will not loop forever
already.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to