Commit 89d2d410 authored by Jonas Bernoulli's avatar Jonas Bernoulli

ido-enter-magit-status: Adapt for Emacs 27, warn about Emacs 26

Closes #3634.
parent 5029811b
......@@ -102,6 +102,10 @@ blame to center around the line point is on."
(defun ido-enter-magit-status ()
"Drop into `magit-status' from file switching.
This command does not work in Emacs 26. It does work in Emacs 25
and Emacs 27. See and
To make this command available use something like:
(add-hook \\='ido-setup-hook
......@@ -117,7 +121,9 @@ like pretty much every other keymap:
(kbd \"C-x g\") \\='ido-enter-magit-status)"
(with-no-warnings ; FIXME these are internal variables
(setq ido-exit 'fallback fallback 'magit-status))
(setq ido-exit 'fallback)
(setq fallback 'magit-status) ; for Emacs 25
(setq ido-fallback 'magit-status)) ; for Emacs 27
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment