diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 30 |
2 files changed, 24 insertions, 12 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0e86799f7fe..31b7e5d4217 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-01 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * gnus-util.el (iswitchb-read-buffer): Declare rather than autoload. | ||
| 4 | (gnus-iswitchb-completing-read): Require iswitchb. | ||
| 5 | (gnus-select-frame-set-input-focus): Silence compiler. | ||
| 6 | |||
| 1 | 2010-10-31 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2010-10-31 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * message.el (message-subject-trailing-was-query): Change default to t, | 9 | * message.el (message-subject-trailing-was-query): Change default to t, |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 0bffb36f2bf..239d81075dd 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1651,10 +1651,14 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1651 | initial-input history def)) | 1651 | initial-input history def)) |
| 1652 | 1652 | ||
| 1653 | 1653 | ||
| 1654 | (autoload 'iswitchb-read-buffer "iswitchb") | 1654 | (declare-function iswitchb-read-buffer "iswitchb" |
| 1655 | (prompt &optional default require-match start matches-set)) | ||
| 1656 | (defvar iswitchb-temp-buflist) | ||
| 1657 | |||
| 1655 | (defun gnus-iswitchb-completing-read (prompt collection &optional require-match | 1658 | (defun gnus-iswitchb-completing-read (prompt collection &optional require-match |
| 1656 | initial-input history def) | 1659 | initial-input history def) |
| 1657 | "`iswitchb' based completing-read function." | 1660 | "`iswitchb' based completing-read function." |
| 1661 | (require 'iswitchb) | ||
| 1658 | (let ((iswitchb-make-buflist-hook | 1662 | (let ((iswitchb-make-buflist-hook |
| 1659 | (lambda () | 1663 | (lambda () |
| 1660 | (setq iswitchb-temp-buflist | 1664 | (setq iswitchb-temp-buflist |
| @@ -1667,11 +1671,11 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1667 | (nreverse filtered-choices)))))) | 1671 | (nreverse filtered-choices)))))) |
| 1668 | (unwind-protect | 1672 | (unwind-protect |
| 1669 | (progn | 1673 | (progn |
| 1670 | (when (not iswitchb-mode) | 1674 | (or iswitchb-mode |
| 1671 | (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)) | 1675 | (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)) |
| 1672 | (iswitchb-read-buffer prompt def require-match)) | 1676 | (iswitchb-read-buffer prompt def require-match)) |
| 1673 | (when (not iswitchb-mode) | 1677 | (or iswitchb-mode |
| 1674 | (remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup))))) | 1678 | (remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup))))) |
| 1675 | 1679 | ||
| 1676 | (defun gnus-graphic-display-p () | 1680 | (defun gnus-graphic-display-p () |
| 1677 | (if (featurep 'xemacs) | 1681 | (if (featurep 'xemacs) |
| @@ -1758,14 +1762,16 @@ CHOICE is a list of the choice char and help message at IDX." | |||
| 1758 | (kill-buffer buf)) | 1762 | (kill-buffer buf)) |
| 1759 | tchar)) | 1763 | tchar)) |
| 1760 | 1764 | ||
| 1761 | (if (fboundp 'select-frame-set-input-focus) | 1765 | (if (featurep 'emacs) |
| 1762 | (defalias 'gnus-select-frame-set-input-focus 'select-frame-set-input-focus) | 1766 | (defalias 'gnus-select-frame-set-input-focus 'select-frame-set-input-focus) |
| 1763 | ;; XEmacs 21.4, SXEmacs | 1767 | (if (fboundp 'select-frame-set-input-focus) |
| 1764 | (defun gnus-select-frame-set-input-focus (frame) | 1768 | (defalias 'gnus-select-frame-set-input-focus 'select-frame-set-input-focus) |
| 1765 | "Select FRAME, raise it, and set input focus, if possible." | 1769 | ;; XEmacs 21.4, SXEmacs |
| 1766 | (raise-frame frame) | 1770 | (defun gnus-select-frame-set-input-focus (frame) |
| 1767 | (select-frame frame) | 1771 | "Select FRAME, raise it, and set input focus, if possible." |
| 1768 | (focus-frame frame))) | 1772 | (raise-frame frame) |
| 1773 | (select-frame frame) | ||
| 1774 | (focus-frame frame)))) | ||
| 1769 | 1775 | ||
| 1770 | (defun gnus-frame-or-window-display-name (object) | 1776 | (defun gnus-frame-or-window-display-name (object) |
| 1771 | "Given a frame or window, return the associated display name. | 1777 | "Given a frame or window, return the associated display name. |