Let ido-everywhere turn on ido-mode
* lisp/ido.el (ido-everywhere): Turn on ido-mode, if it's not already on. Otherwise, having ido-everywhere enabled messes all file and buffer reading interactive commands (bug#34292).
This commit is contained in:
parent
ba8cce26c8
commit
dc90e62276
1 changed files with 4 additions and 2 deletions
|
@ -1523,8 +1523,10 @@ Removes badly formatted data and ignored directories."
|
|||
(remove-function read-file-name-function #'ido-read-file-name)
|
||||
(remove-function read-buffer-function #'ido-read-buffer)
|
||||
(when ido-everywhere
|
||||
(add-function :override read-file-name-function #'ido-read-file-name)
|
||||
(add-function :override read-buffer-function #'ido-read-buffer)))
|
||||
(if (not ido-mode)
|
||||
(ido-mode 'both)
|
||||
(add-function :override read-file-name-function #'ido-read-file-name)
|
||||
(add-function :override read-buffer-function #'ido-read-buffer))))
|
||||
|
||||
(defvar ido-minor-mode-map-entry nil)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue