Most/all? counsel commands which can be launched from the minibuffer appear to locally set enable-recursive-minibuffers to avoid a "Command attempted to use minibuffer while in minibuffer" error (e.g., counsel-cd). However, it appears that counsel-git-grep-switch-cmd does not locally set this variable. Thus, when the Emacs configuration does not enable recursive minibuffers, this will prevent the custom git-grep command functionality from working successfully.
Steps to reproduce:
- Start Emacs via the repository
make plain command
- Clear
enable-recursive-minibuffers: M-: (setq enable-recursive-minibuffers nil)
- Open ivy.el in buffer:
C-x C-f ~/git/swiper/ivy.el
- Start a git-grep search:
C-c j
- Attempt to switch git command:
C-c C-m
Error "Command attempted to use minibuffer while in minibuffer" is displayed.
Most/all? counsel commands which can be launched from the minibuffer appear to locally set
enable-recursive-minibuffersto avoid a "Command attempted to use minibuffer while in minibuffer" error (e.g.,counsel-cd). However, it appears thatcounsel-git-grep-switch-cmddoes not locally set this variable. Thus, when the Emacs configuration does not enable recursive minibuffers, this will prevent the custom git-grep command functionality from working successfully.Steps to reproduce:
make plaincommandenable-recursive-minibuffers:M-: (setq enable-recursive-minibuffers nil)C-x C-f ~/git/swiper/ivy.elC-c jC-c C-mError "Command attempted to use minibuffer while in minibuffer" is displayed.