aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2002-11-27 23:13:27 +0000
committerKim F. Storm2002-11-27 23:13:27 +0000
commit1518d6e35b3a5e633d42cacdbe183e77e744be7d (patch)
tree8f0756e292f40ae0546e600ab83be4b5e20fa571
parent6b2fd6ea80c4c7936bcc6f34fa8798084f94e4e6 (diff)
downloademacs-1518d6e35b3a5e633d42cacdbe183e77e744be7d.tar.gz
emacs-1518d6e35b3a5e633d42cacdbe183e77e744be7d.zip
(ido-xemacs): Remove defvar. All uses changed to
check (featurep 'xemacs) instead. (ido-visit-buffer): Use select-frame-set-input-focus unconditionally.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ido.el23
2 files changed, 16 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 82c220c7d53..cbdd3b4fa1c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12002-11-28 Kim F. Storm <storm@cua.dk>
2
3 * ido.el (ido-xemacs): Remove defvar. All uses changed to
4 check (featurep 'xemacs) instead.
5 (ido-visit-buffer): Use select-frame-set-input-focus
6 unconditionally.
7
12002-11-27 Dave Love <fx@gnu.org> 82002-11-27 Dave Love <fx@gnu.org>
2 9
3 * emacs-lisp/cl-macs.el: Move `predicates for analyzing Lisp 10 * emacs-lisp/cl-macs.el: Move `predicates for analyzing Lisp
diff --git a/lisp/ido.el b/lisp/ido.el
index 95a3734e997..f7a1f96276e 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -823,9 +823,6 @@ the file name using normal read-file-name style."
823(defvar ido-buffer-history nil 823(defvar ido-buffer-history nil
824 "History of buffers selected using `ido-switch-buffer'.") 824 "History of buffers selected using `ido-switch-buffer'.")
825 825
826(defvar ido-xemacs (string-match "XEmacs" (emacs-version))
827 "Non-nil if we are running XEmacs. Otherwise, assume we are running Emacs.")
828
829(defvar ido-last-directory-list nil 826(defvar ido-last-directory-list nil
830 "List of last selected directory paths. 827 "List of last selected directory paths.
831See `ido-enable-last-directory-history' for details.") 828See `ido-enable-last-directory-history' for details.")
@@ -2925,7 +2922,7 @@ for first matching file."
2925 (ido-all-completions)) 2922 (ido-all-completions))
2926 (t 2923 (t
2927 (copy-sequence (or ido-matches ido-cur-list))))))) 2924 (copy-sequence (or ido-matches ido-cur-list)))))))
2928 (if ido-xemacs 2925 (if (featurep 'xemacs)
2929 ;; XEmacs extents are put on by default, doesn't seem to be 2926 ;; XEmacs extents are put on by default, doesn't seem to be
2930 ;; any way of switching them off. 2927 ;; any way of switching them off.
2931 ;; This obscure code avoids a byte compiler warning in Emacs. 2928 ;; This obscure code avoids a byte compiler warning in Emacs.
@@ -3003,7 +3000,7 @@ Record command in command-history if optional RECORD is non-nil."
3003 (select-frame-set-input-focus newframe) 3000 (select-frame-set-input-focus newframe)
3004 (raise-frame newframe) 3001 (raise-frame newframe)
3005 (select-frame newframe) 3002 (select-frame newframe)
3006 (if (not ido-xemacs) 3003 (unless (featurep 'xemacs)
3007 (set-mouse-position (selected-frame) (1- (frame-width)) 0))) 3004 (set-mouse-position (selected-frame) (1- (frame-width)) 0)))
3008 (select-window win)) 3005 (select-window win))
3009 (t 3006 (t
@@ -3022,13 +3019,10 @@ Record command in command-history if optional RECORD is non-nil."
3022 (display-buffer buffer)) 3019 (display-buffer buffer))
3023 3020
3024 ((eq method 'otherframe) 3021 ((eq method 'otherframe)
3025 (progn 3022 (switch-to-buffer-other-frame buffer)
3026 (switch-to-buffer-other-frame buffer) 3023 (unless (featurep 'xemacs)
3027 (if (not ido-xemacs) 3024 (select-frame-set-input-focus (selected-frame)))
3028 (if (fboundp 'select-frame-set-input-focus) 3025 ))))
3029 (select-frame-set-input-focus (selected-frame))
3030 (set-mouse-position (selected-frame) (1- (frame-width)) 0)))
3031 )))))
3032 3026
3033 3027
3034(defun ido-window-buffer-p (buffer) 3028(defun ido-window-buffer-p (buffer)
@@ -3570,11 +3564,12 @@ For details of keybindings, do `\\[describe-function] ido-find-file'."
3570 "Minibuffer setup hook for `ido'." 3564 "Minibuffer setup hook for `ido'."
3571 ;; Copied from `icomplete-minibuffer-setup-hook'. 3565 ;; Copied from `icomplete-minibuffer-setup-hook'.
3572 (when (and (boundp 'ido-completing-read) 3566 (when (and (boundp 'ido-completing-read)
3573 (or ido-xemacs (= ido-use-mycompletion-depth (minibuffer-depth)))) 3567 (or (featurep 'xemacs)
3568 (= ido-use-mycompletion-depth (minibuffer-depth))))
3574 (add-hook 'pre-command-hook 'ido-tidy nil t) 3569 (add-hook 'pre-command-hook 'ido-tidy nil t)
3575 (add-hook 'post-command-hook 'ido-exhibit nil t) 3570 (add-hook 'post-command-hook 'ido-exhibit nil t)
3576 (setq cua-inhibit-cua-keys t) 3571 (setq cua-inhibit-cua-keys t)
3577 (when ido-xemacs 3572 (when (featurep 'xemacs)
3578 (ido-exhibit) 3573 (ido-exhibit)
3579 (goto-char (point-min))) 3574 (goto-char (point-min)))
3580 (run-hooks 'ido-minibuffer-setup-hook))) 3575 (run-hooks 'ido-minibuffer-setup-hook)))