[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/comint.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/comint.el |
Date: |
Sat, 12 Jan 2002 01:59:02 -0500 |
Index: emacs/lisp/comint.el
diff -c emacs/lisp/comint.el:1.256 emacs/lisp/comint.el:1.257
*** emacs/lisp/comint.el:1.256 Mon Dec 31 15:18:09 2001
--- emacs/lisp/comint.el Sat Jan 12 01:59:02 2002
***************
*** 2795,2821 ****
(defun comint-dynamic-list-completions (completions)
"List in help buffer sorted COMPLETIONS.
Typing SPC flushes the help buffer."
! (let ((conf (current-window-configuration)))
! (with-output-to-temp-buffer "*Completions*"
! (display-completion-list (sort completions 'string-lessp)))
! (message "Hit space to flush")
! (let (key first)
! (if (save-excursion
! (set-buffer (get-buffer "*Completions*"))
! (setq key (read-key-sequence nil)
! first (aref key 0))
! (and (consp first) (consp (event-start first))
! (eq (window-buffer (posn-window (event-start first)))
! (get-buffer "*Completions*"))
! (eq (key-binding key) 'mouse-choose-completion)))
! ;; If the user does mouse-choose-completion with the mouse,
! ;; execute the command, then delete the completion window.
! (progn
! (mouse-choose-completion first)
! (set-window-configuration conf))
! (if (eq first ?\ )
! (set-window-configuration conf)
! (setq unread-command-events (listify-key-sequence key)))))))
(defun comint-get-next-from-history ()
--- 2795,2835 ----
(defun comint-dynamic-list-completions (completions)
"List in help buffer sorted COMPLETIONS.
Typing SPC flushes the help buffer."
! (let ((window (get-buffer-window "*Completions*")))
! (if (and (eq last-command this-command)
! window (window-live-p window) (window-buffer window)
! (buffer-name (window-buffer window)))
! ;; If this command was repeated, and
! ;; there's a fresh completion window with a live buffer,
! ;; and this command is repeated, scroll that window.
! (with-current-buffer (window-buffer window)
! (if (pos-visible-in-window-p (point-max) window)
! (set-window-start window (point-min))
! (save-selected-window
! (select-window window)
! (scroll-up))))
!
! (let ((conf (current-window-configuration)))
! (with-output-to-temp-buffer "*Completions*"
! (display-completion-list (sort completions 'string-lessp)))
! (message "Type space to flush; repeat completion command to scroll")
! (let (key first)
! (if (save-excursion
! (set-buffer (get-buffer "*Completions*"))
! (setq key (read-key-sequence nil)
! first (aref key 0))
! (and (consp first) (consp (event-start first))
! (eq (window-buffer (posn-window (event-start first)))
! (get-buffer "*Completions*"))
! (eq (key-binding key) 'mouse-choose-completion)))
! ;; If the user does mouse-choose-completion with the mouse,
! ;; execute the command, then delete the completion window.
! (progn
! (mouse-choose-completion first)
! (set-window-configuration conf))
! (if (eq first ?\ )
! (set-window-configuration conf)
! (setq unread-command-events (listify-key-sequence key)))))))))
(defun comint-get-next-from-history ()
- [Emacs-diffs] Changes to emacs/lisp/comint.el,
Richard M. Stallman <=
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Richard M. Stallman, 2002/01/12
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Pavel JanÃk, 2002/01/13
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Richard M. Stallman, 2002/01/16
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Richard M. Stallman, 2002/01/18
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Richard M. Stallman, 2002/01/21
- [Emacs-diffs] Changes to emacs/lisp/comint.el, Richard M. Stallman, 2002/01/31