diff options
| author | Miles Bader | 2006-04-21 05:35:31 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-04-21 05:35:31 +0000 |
| commit | f67d6742cb77a21087e40ae7ee4c84556ca18970 (patch) | |
| tree | ca7fbeb72ffba7364f0d8e9fe9cc23747b6847f8 | |
| parent | d2464a9fb9f941c0c3b0820fcf9581e552c41f58 (diff) | |
| download | emacs-f67d6742cb77a21087e40ae7ee4c84556ca18970.tar.gz emacs-f67d6742cb77a21087e40ae7ee4c84556ca18970.zip | |
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-238
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 87-90)
- Merge from emacs--devo--0
- Update from CVS
| -rw-r--r-- | lisp/gnus/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 30 |
4 files changed, 34 insertions, 15 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 09dbe9e0027..c66def4af66 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2006-04-20 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-replace-in-string): Prefer | ||
| 4 | replace-regexp-in-string over of replace-in-string. | ||
| 5 | |||
| 6 | 2006-04-20 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 7 | |||
| 8 | * gnus-group.el: Bind tool-bar-mode instead of tool-bar-map. | ||
| 9 | |||
| 10 | * gnus-sum.el: Ditto. | ||
| 11 | |||
| 12 | * gnus-util.el (gnus-select-frame-set-input-focus): Use | ||
| 13 | select-frame-set-input-focus if it is available in XEmacs; use | ||
| 14 | definition defined in Emacs 22 for old Emacsen. | ||
| 15 | |||
| 1 | 2006-04-17 Reiner Steib <Reiner.Steib@gmx.de> | 16 | 2006-04-17 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 17 | ||
| 3 | [ Merge from Gnus trunk. ] | 18 | [ Merge from Gnus trunk. ] |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 51af7d48d9c..f3ca6248811 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | (eval-when-compile | 30 | (eval-when-compile |
| 31 | (require 'cl) | 31 | (require 'cl) |
| 32 | (defvar tool-bar-map)) | 32 | (defvar tool-bar-mode)) |
| 33 | 33 | ||
| 34 | (require 'gnus) | 34 | (require 'gnus) |
| 35 | (require 'gnus-start) | 35 | (require 'gnus-start) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 0de73bc879a..daecb1701cd 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | (eval-when-compile | 30 | (eval-when-compile |
| 31 | (require 'cl) | 31 | (require 'cl) |
| 32 | (defvar tool-bar-map)) | 32 | (defvar tool-bar-mode)) |
| 33 | 33 | ||
| 34 | (require 'gnus) | 34 | (require 'gnus) |
| 35 | (require 'gnus-group) | 35 | (require 'gnus-group) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index cb3a4e9209c..6b525fc490c 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -61,8 +61,11 @@ | |||
| 61 | 61 | ||
| 62 | (eval-and-compile | 62 | (eval-and-compile |
| 63 | (cond | 63 | (cond |
| 64 | ((fboundp 'replace-in-string) | 64 | ;; Prefer `replace-regexp-in-string' (present in Emacs, XEmacs 21.5, |
| 65 | (defalias 'gnus-replace-in-string 'replace-in-string)) | 65 | ;; SXEmacs 22.1.4) over `replace-in-string'. The later leads to inf-loops |
| 66 | ;; on empty matches: | ||
| 67 | ;; (replace-in-string "foo" "/*$" "/") | ||
| 68 | ;; (replace-in-string "xe" "\\(x\\)?" "") | ||
| 66 | ((fboundp 'replace-regexp-in-string) | 69 | ((fboundp 'replace-regexp-in-string) |
| 67 | (defun gnus-replace-in-string (string regexp newtext &optional literal) | 70 | (defun gnus-replace-in-string (string regexp newtext &optional literal) |
| 68 | "Replace all matches for REGEXP with NEWTEXT in STRING. | 71 | "Replace all matches for REGEXP with NEWTEXT in STRING. |
| @@ -71,6 +74,8 @@ string containing the replacements. | |||
| 71 | 74 | ||
| 72 | This is a compatibility function for different Emacsen." | 75 | This is a compatibility function for different Emacsen." |
| 73 | (replace-regexp-in-string regexp newtext string nil literal))) | 76 | (replace-regexp-in-string regexp newtext string nil literal))) |
| 77 | ((fboundp 'replace-in-string) | ||
| 78 | (defalias 'gnus-replace-in-string 'replace-in-string)) | ||
| 74 | (t | 79 | (t |
| 75 | (defun gnus-replace-in-string (string regexp newtext &optional literal) | 80 | (defun gnus-replace-in-string (string regexp newtext &optional literal) |
| 76 | "Replace all matches for REGEXP with NEWTEXT in STRING. | 81 | "Replace all matches for REGEXP with NEWTEXT in STRING. |
| @@ -1424,20 +1429,19 @@ CHOICE is a list of the choice char and help message at IDX." | |||
| 1424 | (defun gnus-select-frame-set-input-focus (frame) | 1429 | (defun gnus-select-frame-set-input-focus (frame) |
| 1425 | "Select FRAME, raise it, and set input focus, if possible." | 1430 | "Select FRAME, raise it, and set input focus, if possible." |
| 1426 | (cond ((featurep 'xemacs) | 1431 | (cond ((featurep 'xemacs) |
| 1427 | (raise-frame frame) | 1432 | (if (fboundp 'select-frame-set-input-focus) |
| 1428 | (select-frame frame) | 1433 | (select-frame-set-input-focus frame) |
| 1429 | (focus-frame frame)) | 1434 | (raise-frame frame) |
| 1430 | ;; The function `select-frame-set-input-focus' won't set | 1435 | (select-frame frame) |
| 1431 | ;; the input focus under Emacs 21.2 and X window system. | 1436 | (focus-frame frame))) |
| 1432 | ;;((fboundp 'select-frame-set-input-focus) | 1437 | ;; `select-frame-set-input-focus' defined in Emacs 21 will not |
| 1433 | ;; (defalias 'gnus-select-frame-set-input-focus | 1438 | ;; set the input focus. |
| 1434 | ;; 'select-frame-set-input-focus) | 1439 | ((>= emacs-major-version 22) |
| 1435 | ;; (select-frame-set-input-focus frame)) | 1440 | (select-frame-set-input-focus frame)) |
| 1436 | (t | 1441 | (t |
| 1437 | (raise-frame frame) | 1442 | (raise-frame frame) |
| 1438 | (select-frame frame) | 1443 | (select-frame frame) |
| 1439 | (cond ((and (eq window-system 'x) | 1444 | (cond ((memq window-system '(x mac)) |
| 1440 | (fboundp 'x-focus-frame)) | ||
| 1441 | (x-focus-frame frame)) | 1445 | (x-focus-frame frame)) |
| 1442 | ((eq window-system 'w32) | 1446 | ((eq window-system 'w32) |
| 1443 | (w32-focus-frame frame))) | 1447 | (w32-focus-frame frame))) |