aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2009-01-14 07:51:26 +0000
committerMiles Bader2009-01-14 07:51:26 +0000
commit548f737d3a7bf854870eb537013389c01839a350 (patch)
tree9a58eb31178713694f70785a207a41a5cefedf85
parent0f9eec14d97c9c37505915673b84d1f26ff4eba6 (diff)
downloademacs-548f737d3a7bf854870eb537013389c01839a350.tar.gz
emacs-548f737d3a7bf854870eb537013389c01839a350.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1517
-rw-r--r--lisp/gnus/ChangeLog26
-rw-r--r--lisp/gnus/gnus-art.el12
-rw-r--r--lisp/gnus/mm-util.el17
-rw-r--r--lisp/gnus/nnfolder.el4
4 files changed, 48 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 8a1d9a33ef3..fdac5e47491 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,8 +1,34 @@
12009-01-14 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-util.el (mm-coding-system-priorities): Protect against nil value
4 of current-language-environment.
5
62009-01-13 Reiner Steib <Reiner.Steib@gmx.de>
7
8 * nnfolder.el (nnfolder-read-folder): Check if most-positive-fixnum is
9 available at runtime.
10
112009-01-13 Katsumi Yamaoka <yamaoka@jpl.org>
12
13 * gnus-art.el (article-date-ut): Fix end point of narrowing.
14
152009-01-11 Aidan Kehoe <kehoea@parhasard.net>
16
17 * nnfolder.el (nnfolder-read-folder): The (lsh -1 -1) trick to generate
18 the greatest positive fixnum value doesn't work under an XEmacs with
19 bignum support; use the most-positive-fixnum constant instead,
20 available since Emacs 21.1 with cl and XEmacs 21.1.
21
12009-01-10 Katsumi Yamaoka <yamaoka@jpl.org> 222009-01-10 Katsumi Yamaoka <yamaoka@jpl.org>
2 23
3 * gnus-sum.el (gnus-summary-next-article): Revert last change by which 24 * gnus-sum.el (gnus-summary-next-article): Revert last change by which
4 XEmacs gets not to work. 25 XEmacs gets not to work.
5 26
272009-01-09 Katsumi Yamaoka <yamaoka@jpl.org>
28
29 * mm-util.el (mm-coding-system-priorities): Allow the value like
30 "Japanese (UTF-8)" of current-language-environment.
31
62009-01-09 Glenn Morris <rgm@gnu.org> 322009-01-09 Glenn Morris <rgm@gnu.org>
7 33
8 * gnus-sum.el (gnus-summary-next-article): Replace last-command-char 34 * gnus-sum.el (gnus-summary-next-article): Replace last-command-char
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 2237fd65187..0e8dede98f3 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -3404,9 +3404,15 @@ should replace the \"Date:\" one, or should be added below it."
3404 (point) 'original-date)) 3404 (point) 'original-date))
3405 (setq date (get-text-property pos 'original-date)) 3405 (setq date (get-text-property pos 'original-date))
3406 t)) 3406 t))
3407 (narrow-to-region pos (or (text-property-any pos (point-max) 3407 (narrow-to-region
3408 'original-date nil) 3408 pos (if (setq pos (text-property-any pos (point-max)
3409 (point-max))) 3409 'original-date nil))
3410 (progn
3411 (goto-char pos)
3412 (if (or (bolp) (eobp))
3413 (point)
3414 (1+ (point))))
3415 (point-max)))
3410 (goto-char (point-min)) 3416 (goto-char (point-min))
3411 (when (re-search-forward tdate-regexp nil t) 3417 (when (re-search-forward tdate-regexp nil t)
3412 (setq bface (get-text-property (point-at-bol) 'face) 3418 (setq bface (get-text-property (point-at-bol) 'face)
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 3d8538d4a61..403d967f8e4 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -840,13 +840,16 @@ Valid elements include:
840 "A table of the difference character between ISO-8859-X and ISO-8859-15.") 840 "A table of the difference character between ISO-8859-X and ISO-8859-15.")
841 841
842(defcustom mm-coding-system-priorities 842(defcustom mm-coding-system-priorities
843 (if (boundp 'current-language-environment) 843 (let ((lang (if (boundp 'current-language-environment)
844 (let ((lang (symbol-value 'current-language-environment))) 844 (symbol-value 'current-language-environment))))
845 (cond ((string= lang "Japanese") 845 (cond (;; XEmacs without Mule but with `file-coding'.
846 ;; Japanese users prefer iso-2022-jp to euc-japan or 846 (not lang) nil)
847 ;; shift_jis, however iso-8859-1 should be used when 847 ;; In XEmacs 21.5 it may be the one like "Japanese (UTF-8)".
848 ;; there are only ASCII text and Latin-1 characters. 848 ((string-match "\\`Japanese" lang)
849 '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8))))) 849 ;; Japanese users prefer iso-2022-jp to euc-japan or
850 ;; shift_jis, however iso-8859-1 should be used when
851 ;; there are only ASCII text and Latin-1 characters.
852 '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8))))
850 "Preferred coding systems for encoding outgoing messages. 853 "Preferred coding systems for encoding outgoing messages.
851 854
852More than one suitable coding system may be found for some text. 855More than one suitable coding system may be found for some text.
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el
index b8fc7088b34..6ba4aff6cc7 100644
--- a/lisp/gnus/nnfolder.el
+++ b/lisp/gnus/nnfolder.el
@@ -925,7 +925,9 @@ deleted. Point is left where the deleted region was."
925 (active (or (cadr (assoc group nnfolder-group-alist)) 925 (active (or (cadr (assoc group nnfolder-group-alist))
926 (cons 1 0))) 926 (cons 1 0)))
927 (scantime (assoc group nnfolder-scantime-alist)) 927 (scantime (assoc group nnfolder-scantime-alist))
928 (minid (lsh -1 -1)) 928 (minid (or (and (boundp 'most-positive-fixnum)
929 most-positive-fixnum)
930 (lsh -1 -1)))
929 maxid start end newscantime 931 maxid start end newscantime
930 novbuf articles newnum 932 novbuf articles newnum
931 buffer-read-only) 933 buffer-read-only)