[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dc90e62: Let ido-everywhere turn on ido-mode

From: Lars Ingebrigtsen
Subject: master dc90e62: Let ido-everywhere turn on ido-mode
Date: Wed, 19 Aug 2020 06:50:21 -0400 (EDT)

branch: master
commit dc90e62276da36af14305e0dbe1076e2d041ac4f
Author: Noam Postavsky <npostavs@users.sourceforge.net>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
 lisp/ido.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ido.el b/lisp/ido.el
index ad7500c..c83b700 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]