Skip to content

Commit

Permalink
smex-initialize-ido: silence byte-compiler
Browse files Browse the repository at this point in the history
As of Emacs v25.1 `ido-init-completion-maps' is obsolete (it no longer
does anything), but it is still needed for backward compatibility.
  • Loading branch information
tarsius authored and nonsequitur committed Aug 22, 2015
1 parent a10b254 commit da63713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smex.el
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ Set this to nil to disable fuzzy matching."

(defun smex-initialize-ido ()
"Sets up a minimal Ido environment for `ido-completing-read'."
(ido-init-completion-maps)
(with-no-warnings ; `ido-init-completion-maps' is deprecated in Emacs 25
(ido-init-completion-maps))
(add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup))

(defsubst smex-save-file-not-empty-p ()
Expand Down

0 comments on commit da63713

Please sign in to comment.