0

Entering a failing search string during I-search triggers a call to ding(). If this happens during a macro recording that ding when the macro is being played will abort the macro which in turns reverts all changes being made during the execution of that macro possibly with the exception of file system operations.

As making a mistake during I-search is (at least for me) a quite common mistake it would be very convenient to have an undo-call in I-search remove any calls to ding() from the macro recording triggered by the undoed key press.

11
  • 1
    It may just be me, but I cannot make any sense out of your description. Your second sentence in particular is probably missing some words (and certainly missing some commas), which makes it hard to understand. Also, what's a ding?
    – NickD
    Commented Nov 19, 2021 at 17:43
  • Function ding rings the bell (e.g. when an error occurs). Is this about Isearch or keyboard macros? You had the tag for the latter but I changed it to the former.
    – Drew
    Commented Nov 19, 2021 at 20:12
  • 1
    I suggest you describe your use case in more detail in the question: e.g. it was not clear that the question had anything to do with keyboard macros and as @Drew mentioned in a comment, he removed the tag (presumably because he did not see the relevance), and he asked you to verify. I added it back now, but it is not clear from the question that you are talking about keyboard macros. In particular, you should add your comment to the question: it's a much clearer description of the problem.
    – NickD
    Commented Nov 21, 2021 at 3:43
  • 1
    I updated the description.
    – Nordlöw
    Commented Nov 21, 2021 at 22:07
  • 1
    @Nordlöw Per my previous comment, you can edit the macro to fix the search string.
    – phils
    Commented Dec 2, 2021 at 0:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.