Windows 10, Emacs 26.1, Icicles,

  1. In scratch buffer I search text "buffer" by command "I-Search" enter image description here

2.Open test.txt and run command "replace-string"

enter image description here

  1. Start helm-occur and set pattern hello enter image description here

  2. Then I want to get ALL commands that I run in minibuffer.

So I use command "icicle-insert-history-element"

enter image description here

Here result: enter image description here

But where commands "I-Search" and "Replase-string" ?

1 Answer 1


Your question is s bit unclear to me.

Multi-command icicle-insert-history-element (bound to M-o) is for inserting previous inputs into the active minibuffer using completion, appending them individually to whatever is already in the minibuffer.

If you want to see all previous (i.e., history) inputs for a given minibuffer history (e.g., a command history) then you can use M-h or M-<pause> when the minibuffer is active.

See the History Enhancements section of the Icicles doc for info about minibuffer history enhancements (including M-o, M-h, and M-<pause>).

With respect to Isearch and string replacement: Isearch does not, in fact, use the minibuffer, so input you type to Isearch is not recorded in any minibuffer history. String replacement typically uses its own minibuffer history. If you try an additional string-replacement command then your previous replacement inputs are available in its history.

If you are looking for a history of commands you have used, then you want to use M-x again and access its history of minibuffer inputs. (But that won't give you commands that you invoked using keys.)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.