Reproducible with ‘emacs -Q’:
(defun mk-anti-ido-advice (func &rest args)
"Temporarily disable IDO and call function FUNC with arguments
ARGS." (message "Called!")) ;; just for testing
(defun mk-disable-ido (command)
"Disable IDO when command COMMAND is called." (advice-add
command :around #'mk-anti-ido-advice))
(mk-disable-ido 'dired-create-directory)
Now, in description of ‘dired-create-directory’ one can see that
‘:around’ advice is registered. However, when I call
‘dired-create-directory’ either via ‘+’ keybinding or via ‘M-x
dired-create-directory’, old version of the function is
called. I don't see "Called!" message in the minibuffer. Is it
bug or feature?