aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/ido.el69
2 files changed, 46 insertions, 46 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 70c22dda440..fef454a6fa8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12009-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * ido.el (ido-everywhere): Use define-minor-mode.
4
5 * buff-menu.el (list-buffers, ctl-x-map):
6 Mark the entry points with ;;;###autoload cookies.
7
8
12009-10-14 Dan Nicolaescu <dann@ics.uci.edu> 92009-10-14 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 * vc-git.el (vc-git-dir-extra-headers): Set the branch name 11 * vc-git.el (vc-git-dir-extra-headers): Set the branch name
@@ -172,14 +180,13 @@
1722009-10-08 Michael Albinus <michael.albinus@gmx.de> 1802009-10-08 Michael Albinus <michael.albinus@gmx.de>
173 181
174 * net/tramp.el (tramp-file-name-real-user, tramp-file-name-domain) 182 * net/tramp.el (tramp-file-name-real-user, tramp-file-name-domain)
175 (tramp-file-name-real-host, tramp-file-name-port): Apply 183 (tramp-file-name-real-host, tramp-file-name-port):
176 `save-match-data. 184 Apply `save-match-data.
177 185
178 * net/tramp-smb.el (tramp-smb-handle-copy-directory): Handle the 186 * net/tramp-smb.el (tramp-smb-handle-copy-directory): Handle the
179 case both directories are remote. 187 case both directories are remote.
180 (tramp-smb-handle-expand-file-name): Implement "~" expansion. 188 (tramp-smb-handle-expand-file-name): Implement "~" expansion.
181 (tramp-smb-maybe-open-connection): Flush the cache only if 189 (tramp-smb-maybe-open-connection): Flush the cache only if necessary.
182 necessary.
183 190
1842009-10-08 Chong Yidong <cyd@stupidchicken.com> 1912009-10-08 Chong Yidong <cyd@stupidchicken.com>
185 192
@@ -187,8 +194,8 @@
187 (ede-proj-target-makefile-objectcode): Use it. 194 (ede-proj-target-makefile-objectcode): Use it.
188 195
189 * cedet/ede/source.el (ede-want-any-source-files-p) 196 * cedet/ede/source.el (ede-want-any-source-files-p)
190 (ede-want-any-auxiliary-files-p, ede-want-any-files-p): Return 197 (ede-want-any-auxiliary-files-p, ede-want-any-files-p):
191 search result. This error was introduced while merging. 198 Return search result. This error was introduced while merging.
192 199
1932009-10-07 Juanma Barranquero <lekktu@gmail.com> 2002009-10-07 Juanma Barranquero <lekktu@gmail.com>
194 201
@@ -196,8 +203,8 @@
196 203
1972009-10-07 Glenn Morris <rgm@gnu.org> 2042009-10-07 Glenn Morris <rgm@gnu.org>
198 205
199 * emacs-lisp/autoload.el (batch-update-autoloads): Remove useless use of 206 * emacs-lisp/autoload.el (batch-update-autoloads): Remove useless use
200 concat. 207 of concat.
201 208
2022009-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 2092009-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
203 210
diff --git a/lisp/ido.el b/lisp/ido.el
index 2336feacf9e..ce49915d17f 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -366,16 +366,6 @@ use either \\[customize] or the function `ido-mode'."
366 (const :tag "Switch off all" nil)) 366 (const :tag "Switch off all" nil))
367 :group 'ido) 367 :group 'ido)
368 368
369(defcustom ido-everywhere nil
370 "Use ido everywhere for reading file names and directories.
371Setting this variable directly does not work. Use `customize' or
372call the function `ido-everywhere'."
373 :set #'(lambda (symbol value)
374 (ido-everywhere (if value 1 -1)))
375 :initialize 'custom-initialize-default
376 :type 'boolean
377 :group 'ido)
378
379(defcustom ido-case-fold case-fold-search 369(defcustom ido-case-fold case-fold-search
380 "Non-nil if searching of buffer and file names should ignore case." 370 "Non-nil if searching of buffer and file names should ignore case."
381 :type 'boolean 371 :type 'boolean
@@ -1449,6 +1439,25 @@ Removes badly formatted data and ignored directories."
1449 ;; ido kill emacs hook 1439 ;; ido kill emacs hook
1450 (ido-save-history)) 1440 (ido-save-history))
1451 1441
1442(define-minor-mode ido-everywhere
1443 "Toggle using ido speed-ups everywhere file and directory names are read.
1444With ARG, turn ido speed-up on if arg is positive, off otherwise."
1445 :global t
1446 :group 'ido
1447 (when (get 'ido-everywhere 'file)
1448 (setq read-file-name-function (car (get 'ido-everywhere 'file)))
1449 (put 'ido-everywhere 'file nil))
1450 (when (get 'ido-everywhere 'buffer)
1451 (setq read-buffer-function (car (get 'ido-everywhere 'buffer)))
1452 (put 'ido-everywhere 'buffer nil))
1453 (when ido-everywhere
1454 (when (memq ido-mode '(both file))
1455 (put 'ido-everywhere 'file (cons read-file-name-function nil))
1456 (setq read-file-name-function 'ido-read-file-name))
1457 (when (memq ido-mode '(both buffer))
1458 (put 'ido-everywhere 'buffer (cons read-buffer-function nil))
1459 (setq read-buffer-function 'ido-read-buffer))))
1460
1452(defvar ido-minor-mode-map-entry nil) 1461(defvar ido-minor-mode-map-entry nil)
1453 1462
1454;;;###autoload 1463;;;###autoload
@@ -1492,15 +1501,21 @@ This function also adds a hook to the minibuffer."
1492 (define-key map [remap insert-file] 'ido-insert-file) 1501 (define-key map [remap insert-file] 'ido-insert-file)
1493 (define-key map [remap list-directory] 'ido-list-directory) 1502 (define-key map [remap list-directory] 'ido-list-directory)
1494 (define-key map [remap dired] 'ido-dired) 1503 (define-key map [remap dired] 'ido-dired)
1495 (define-key map [remap find-file-other-window] 'ido-find-file-other-window) 1504 (define-key map [remap find-file-other-window]
1496 (define-key map [remap find-file-read-only-other-window] 'ido-find-file-read-only-other-window) 1505 'ido-find-file-other-window)
1497 (define-key map [remap find-file-other-frame] 'ido-find-file-other-frame) 1506 (define-key map [remap find-file-read-only-other-window]
1498 (define-key map [remap find-file-read-only-other-frame] 'ido-find-file-read-only-other-frame)) 1507 'ido-find-file-read-only-other-window)
1508 (define-key map [remap find-file-other-frame]
1509 'ido-find-file-other-frame)
1510 (define-key map [remap find-file-read-only-other-frame]
1511 'ido-find-file-read-only-other-frame))
1499 1512
1500 (when (memq ido-mode '(buffer both)) 1513 (when (memq ido-mode '(buffer both))
1501 (define-key map [remap switch-to-buffer] 'ido-switch-buffer) 1514 (define-key map [remap switch-to-buffer] 'ido-switch-buffer)
1502 (define-key map [remap switch-to-buffer-other-window] 'ido-switch-buffer-other-window) 1515 (define-key map [remap switch-to-buffer-other-window]
1503 (define-key map [remap switch-to-buffer-other-frame] 'ido-switch-buffer-other-frame) 1516 'ido-switch-buffer-other-window)
1517 (define-key map [remap switch-to-buffer-other-frame]
1518 'ido-switch-buffer-other-frame)
1504 (define-key map [remap insert-buffer] 'ido-insert-buffer) 1519 (define-key map [remap insert-buffer] 'ido-insert-buffer)
1505 (define-key map [remap kill-buffer] 'ido-kill-buffer) 1520 (define-key map [remap kill-buffer] 'ido-kill-buffer)
1506 (define-key map [remap display-buffer] 'ido-display-buffer)) 1521 (define-key map [remap display-buffer] 'ido-display-buffer))
@@ -1513,28 +1528,6 @@ This function also adds a hook to the minibuffer."
1513 (message "Ido mode %s" (if ido-mode "enabled" "disabled"))) 1528 (message "Ido mode %s" (if ido-mode "enabled" "disabled")))
1514 1529
1515 1530
1516(defun ido-everywhere (arg)
1517 "Toggle using ido speed-ups everywhere file and directory names are read.
1518With ARG, turn ido speed-up on if arg is positive, off otherwise."
1519 (interactive "P")
1520 (setq ido-everywhere (if arg
1521 (> (prefix-numeric-value arg) 0)
1522 (not ido-everywhere)))
1523 (when (get 'ido-everywhere 'file)
1524 (setq read-file-name-function (car (get 'ido-everywhere 'file)))
1525 (put 'ido-everywhere 'file nil))
1526 (when (get 'ido-everywhere 'buffer)
1527 (setq read-buffer-function (car (get 'ido-everywhere 'buffer)))
1528 (put 'ido-everywhere 'buffer nil))
1529 (when ido-everywhere
1530 (when (memq ido-mode '(both file))
1531 (put 'ido-everywhere 'file (cons read-file-name-function nil))
1532 (setq read-file-name-function 'ido-read-file-name))
1533 (when (memq ido-mode '(both buffer))
1534 (put 'ido-everywhere 'buffer (cons read-buffer-function nil))
1535 (setq read-buffer-function 'ido-read-buffer))))
1536
1537
1538;;; IDO KEYMAP 1531;;; IDO KEYMAP
1539(defun ido-init-completion-maps () 1532(defun ido-init-completion-maps ()
1540 "Set up the completion keymaps used by `ido'." 1533 "Set up the completion keymaps used by `ido'."