magit/magit — pull request #1284 by vanicat (2014-03-19 19:00:49+00:00)
Title: Set this-command in magit-key-mode-command

Some library (ido) could have problem when this-command is set to
something that is not a symbol, and when a key is pressed, its binding
is put into this-command. In magit-key-mode, lambda expression are bind
to key, and this could confuse ido.

As a side effect, last-command will be set to the real command that have
be run, and not to lambda expression.

The problem with ido is probably a bug in Emacs, it seem to be fixed there: https://lists.gnu.org/archive/html/emacs-diffs/2013-07/msg00185.html and so in future version of Emacs.

I don't know if the problem occur in one of the magit command, it will happen if a command, called by magit-key-mode, interactively read a file name, and ido-everywhere is enabled.