aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-10-18 21:09:02 +0000
committerMiles Bader2007-10-18 21:09:02 +0000
commitb4fde39fda2eed0fd1b60c10fdf832fabb8cb7cd (patch)
tree3d4c3ec37f36780c51a1efc7d2ff03cd98a599f7
parent9ccbb53dcf9e9e5ce794ca11a14e58dc2b8fd03d (diff)
downloademacs-b4fde39fda2eed0fd1b60c10fdf832fabb8cb7cd.tar.gz
emacs-b4fde39fda2eed0fd1b60c10fdf832fabb8cb7cd.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 257-258) - Merge from emacs--rel--22 - Update from CVS 2007-10-15 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-util.el (gnus-string<): New function. * lisp/gnus/gnus-sum.el (gnus-article-sort-by-author) (gnus-article-sort-by-subject): Use it. 2007-10-15 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-win.el (gnus-configure-windows): Focus on the frame for which the frame-focus tag is set in gnus-buffer-configuration. Revision: emacs@sv.gnu.org/emacs--rel--22--patch-128
-rw-r--r--lisp/gnus/ChangeLog12
-rw-r--r--lisp/gnus/gnus-sum.el4
-rw-r--r--lisp/gnus/gnus-util.el9
-rw-r--r--lisp/gnus/gnus-win.el3
4 files changed, 25 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 1def50da1e3..9d95f0a6c6a 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,15 @@
12007-10-15 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-util.el (gnus-string<): New function.
4
5 * gnus-sum.el (gnus-article-sort-by-author)
6 (gnus-article-sort-by-subject): Use it.
7
82007-10-15 Katsumi Yamaoka <yamaoka@jpl.org>
9
10 * gnus-win.el (gnus-configure-windows): Focus on the frame for which
11 the frame-focus tag is set in gnus-buffer-configuration.
12
12007-10-08 Reiner Steib <Reiner.Steib@gmx.de> 132007-10-08 Reiner Steib <Reiner.Steib@gmx.de>
2 14
3 * mm-util.el (mm-charset-synonym-alist): Alias gbk to cp936. 15 * mm-util.el (mm-charset-synonym-alist): Alias gbk to cp936.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 36e93796a63..8fb18d3a990 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -4674,7 +4674,7 @@ using some other form will lead to serious barfage."
4674 4674
4675(defsubst gnus-article-sort-by-author (h1 h2) 4675(defsubst gnus-article-sort-by-author (h1 h2)
4676 "Sort articles by root author." 4676 "Sort articles by root author."
4677 (string-lessp 4677 (gnus-string<
4678 (let ((extract (funcall 4678 (let ((extract (funcall
4679 gnus-extract-address-components 4679 gnus-extract-address-components
4680 (mail-header-from h1)))) 4680 (mail-header-from h1))))
@@ -4691,7 +4691,7 @@ using some other form will lead to serious barfage."
4691 4691
4692(defsubst gnus-article-sort-by-subject (h1 h2) 4692(defsubst gnus-article-sort-by-subject (h1 h2)
4693 "Sort articles by root subject." 4693 "Sort articles by root subject."
4694 (string-lessp 4694 (gnus-string<
4695 (downcase (gnus-simplify-subject-re (mail-header-subject h1))) 4695 (downcase (gnus-simplify-subject-re (mail-header-subject h1)))
4696 (downcase (gnus-simplify-subject-re (mail-header-subject h2))))) 4696 (downcase (gnus-simplify-subject-re (mail-header-subject h2)))))
4697 4697
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 74aacdd2860..3d3e4148c2d 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -290,6 +290,15 @@ is slower."
290 (not (or (string< s1 s2) 290 (not (or (string< s1 s2)
291 (string= s1 s2)))) 291 (string= s1 s2))))
292 292
293(defun gnus-string< (s1 s2)
294 "Return t if first arg string is less than second in lexicographic order.
295Case is significant if and only if `case-fold-search' is nil.
296Symbols are also allowed; their print names are used instead."
297 (if case-fold-search
298 (string-lessp (downcase (if (symbolp s1) (symbol-name s1) s1))
299 (downcase (if (symbolp s2) (symbol-name s2) s2)))
300 (string-lessp s1 s2)))
301
293;;; Time functions. 302;;; Time functions.
294 303
295(defun gnus-file-newer-than (file date) 304(defun gnus-file-newer-than (file date)
diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el
index 5c57aaa1886..7e1609cc196 100644
--- a/lisp/gnus/gnus-win.el
+++ b/lisp/gnus/gnus-win.el
@@ -471,7 +471,8 @@ See the Gnus manual for an explanation of the syntax used.")
471 (gnus-configure-frame split) 471 (gnus-configure-frame split)
472 (run-hooks 'gnus-configure-windows-hook) 472 (run-hooks 'gnus-configure-windows-hook)
473 (when gnus-window-frame-focus 473 (when gnus-window-frame-focus
474 (select-frame (window-frame gnus-window-frame-focus)))))))) 474 (gnus-select-frame-set-input-focus
475 (window-frame gnus-window-frame-focus))))))))
475 476
476(defun gnus-delete-windows-in-gnusey-frames () 477(defun gnus-delete-windows-in-gnusey-frames ()
477 "Do a `delete-other-windows' in all frames that have Gnus windows." 478 "Do a `delete-other-windows' in all frames that have Gnus windows."