aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-04-05 14:17:08 +0000
committerKim F. Storm2006-04-05 14:17:08 +0000
commit1b00bc649c55e34c3e9d638b37a4d0c756dabd98 (patch)
tree7615291ca0d03fb9c148bb5bf0e9a70d2914b031
parent82f71715943eac2248a082c9675fb9b5aa054cdc (diff)
downloademacs-1b00bc649c55e34c3e9d638b37a4d0c756dabd98.tar.gz
emacs-1b00bc649c55e34c3e9d638b37a4d0c756dabd98.zip
(ido-mode): Set after ido-unc-hosts and ido-ignore-unc-host-regexps.
(ido-save-history): Save ido-unc-hosts-cache. (ido-load-history): Load ido-unc-hosts-cache. (ido-reread-directory): Refresh unc hosts cache in // dir.
-rw-r--r--lisp/ido.el15
1 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index e4ec2be700d..b59f2d92f4e 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -360,7 +360,10 @@ use either \\[customize] or the function `ido-mode'."
360 :initialize 'custom-initialize-set 360 :initialize 'custom-initialize-set
361 :require 'ido 361 :require 'ido
362 :link '(emacs-commentary-link "ido.el") 362 :link '(emacs-commentary-link "ido.el")
363 :set-after '(ido-save-directory-list-file) 363 :set-after '(ido-save-directory-list-file
364 ;; These clear ido-unc-hosts-cache, so set them
365 ;; before loading history file.
366 ido-unc-hosts ido-ignore-unc-host-regexps)
364 :type '(choice (const :tag "Turn on only buffer" buffer) 367 :type '(choice (const :tag "Turn on only buffer" buffer)
365 (const :tag "Turn on only file" file) 368 (const :tag "Turn on only file" file)
366 (const :tag "Turn on both buffer and file" both) 369 (const :tag "Turn on both buffer and file" both)
@@ -1280,6 +1283,9 @@ it doesn't interfere with other minibuffer usage.")
1280 (ido-pp 'ido-work-directory-list) 1283 (ido-pp 'ido-work-directory-list)
1281 (ido-pp 'ido-work-file-list) 1284 (ido-pp 'ido-work-file-list)
1282 (ido-pp 'ido-dir-file-cache "\n\n ") 1285 (ido-pp 'ido-dir-file-cache "\n\n ")
1286 (if (listp ido-unc-hosts-cache)
1287 (ido-pp 'ido-unc-hosts-cache)
1288 (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n"))
1283 (insert "\n") 1289 (insert "\n")
1284 (write-file ido-save-directory-list-file nil)) 1290 (write-file ido-save-directory-list-file nil))
1285 (kill-buffer buf))))) 1291 (kill-buffer buf)))))
@@ -1301,7 +1307,8 @@ With prefix argument, reload history unconditionally."
1301 (setq ido-last-directory-list (read (current-buffer)) 1307 (setq ido-last-directory-list (read (current-buffer))
1302 ido-work-directory-list (read (current-buffer)) 1308 ido-work-directory-list (read (current-buffer))
1303 ido-work-file-list (read (current-buffer)) 1309 ido-work-file-list (read (current-buffer))
1304 ido-dir-file-cache (read (current-buffer))) 1310 ido-dir-file-cache (read (current-buffer))
1311 ido-unc-hosts-cache (read (current-buffer)))
1305 (error nil))) 1312 (error nil)))
1306 (kill-buffer buf))))) 1313 (kill-buffer buf)))))
1307 (ido-wash-history)) 1314 (ido-wash-history))
@@ -2582,7 +2589,9 @@ timestamp has not changed (e.g. with ftp or on Windows)."
2582 (interactive) 2589 (interactive)
2583 (if (and ido-mode (eq ido-cur-item 'file)) 2590 (if (and ido-mode (eq ido-cur-item 'file))
2584 (progn 2591 (progn
2585 (ido-remove-cached-dir ido-current-directory) 2592 (if (ido-is-unc-root)
2593 (setq ido-unc-hosts-cache t)
2594 (ido-remove-cached-dir ido-current-directory))
2586 (setq ido-text-init ido-text) 2595 (setq ido-text-init ido-text)
2587 (setq ido-rotate-temp t) 2596 (setq ido-rotate-temp t)
2588 (setq ido-exit 'refresh) 2597 (setq ido-exit 'refresh)