aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2011-03-03 13:21:50 +0000
committerKatsumi Yamaoka2011-03-03 13:21:50 +0000
commit71f8b7edc1a1902d8ad85815c6becc43d2e3ca9b (patch)
tree21ebf354623a764e29f14e5bc2e14ad9678424a5
parent28dd38e4d4977f7fdb7a752a339c1a7ca178523f (diff)
downloademacs-71f8b7edc1a1902d8ad85815c6becc43d2e3ca9b.tar.gz
emacs-71f8b7edc1a1902d8ad85815c6becc43d2e3ca9b.zip
Merge changes made in Gnus trunk.
nnimap.el (nnimap-parse-flags): Add a workaround for FETCH lines with numbers too big to be `read'. password-cache.el (password-in-cache-p): Add autoload. message.el (message-options): Make buffer-local two ways to attempt to fix a XEmacs bug.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/gnus/ChangeLog10
-rw-r--r--lisp/gnus/message.el5
-rw-r--r--lisp/gnus/nnimap.el20
-rw-r--r--lisp/password-cache.el1
5 files changed, 35 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ab96ec4ad01..57339a8fee9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -44,6 +44,10 @@
44 * vc/vc-bzr.el (vc-bzr-state-heuristic): Handle dirstate entries 44 * vc/vc-bzr.el (vc-bzr-state-heuristic): Handle dirstate entries
45 with no parents. (Bug#8025) 45 with no parents. (Bug#8025)
46 46
472011-03-02 Teodor Zlatanov <tzz@lifelogs.com>
48
49 * password-cache.el (password-in-cache-p): Add autoload.
50
472011-03-02 Glenn Morris <rgm@gnu.org> 512011-03-02 Glenn Morris <rgm@gnu.org>
48 52
49 * man.el (Man-support-local-filenames): Also handle Red Hat's man. 53 * man.el (Man-support-local-filenames): Also handle Red Hat's man.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7606d1a44ae..0dc3f487f2c 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,13 @@
12011-03-03 Tassilo Horn <tassilo@member.fsf.org>
2
3 * nnimap.el (nnimap-parse-flags): Add a workaround for FETCH lines with
4 numbers too big to be `read'.
5
62011-03-02 Teodor Zlatanov <tzz@lifelogs.com>
7
8 * message.el (message-options): Make buffer-local two ways to attempt
9 to fix a XEmacs bug.
10
12011-03-02 Julien Danjou <julien@danjou.info> 112011-03-02 Julien Danjou <julien@danjou.info>
2 12
3 * gnus-art.el (gnus-with-article-buffer): Fix buffer live check. 13 * gnus-art.el (gnus-with-article-buffer): Fix buffer live check.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 58daf1baf94..6adde4e6e51 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1814,7 +1814,10 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'."
1814 1814
1815(defvar message-options nil 1815(defvar message-options nil
1816 "Some saved answers when sending message.") 1816 "Some saved answers when sending message.")
1817(make-variable-buffer-local 'message-options) 1817
1818(if (featurep 'xemacs)
1819 (make-local-variable 'message-options)
1820 (make-variable-buffer-local 'message-options))
1818 1821
1819(defvar message-send-mail-real-function nil 1822(defvar message-send-mail-real-function nil
1820 "Internal send mail function.") 1823 "Internal send mail function.")
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index c579261e356..aa4ecbc3b0f 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1496,10 +1496,22 @@ textual parts.")
1496 (setq start (point)) 1496 (setq start (point))
1497 (goto-char end)) 1497 (goto-char end))
1498 (while (re-search-forward "^\\* [0-9]+ FETCH " start t) 1498 (while (re-search-forward "^\\* [0-9]+ FETCH " start t)
1499 (setq elems (read (current-buffer))) 1499 (let ((p (point)))
1500 (push (cons (cadr (memq 'UID elems)) 1500 ;; FIXME: For FETCH lines like "* 2971 FETCH (FLAGS (%Recent) UID
1501 (cadr (memq 'FLAGS elems))) 1501 ;; 12509 MODSEQ (13419098521433281274))" we get an
1502 articles)) 1502 ;; overflow-error. The handler simply deletes that large number
1503 ;; and reads again. But maybe there's a better fix...
1504 (setq elems (condition-case nil (read (current-buffer))
1505 (overflow-error
1506 ;; After an overflow-error, point is just after
1507 ;; the too large number. So delete it and try
1508 ;; again.
1509 (delete-region (point) (progn (backward-word) (point)))
1510 (goto-char p)
1511 (read (current-buffer)))))
1512 (push (cons (cadr (memq 'UID elems))
1513 (cadr (memq 'FLAGS elems)))
1514 articles)))
1503 (push (nconc (list group uidnext totalp permanent-flags uidvalidity 1515 (push (nconc (list group uidnext totalp permanent-flags uidvalidity
1504 vanished highestmodseq) 1516 vanished highestmodseq)
1505 articles) 1517 articles)
diff --git a/lisp/password-cache.el b/lisp/password-cache.el
index a7f75a03add..941428d5291 100644
--- a/lisp/password-cache.el
+++ b/lisp/password-cache.el
@@ -76,6 +76,7 @@ regulate cache behavior."
76 key 76 key
77 (symbol-value (intern-soft key password-data)))) 77 (symbol-value (intern-soft key password-data))))
78 78
79;;;###autoload
79(defun password-in-cache-p (key) 80(defun password-in-cache-p (key)
80 "Check if KEY is in the cache." 81 "Check if KEY is in the cache."
81 (and password-cache 82 (and password-cache