aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2011-03-18 13:45:04 +0000
committerKatsumi Yamaoka2011-03-18 13:45:04 +0000
commit1518e4f02dab44ba5388cd8b0699749ee30d3eff (patch)
tree6097746516e201f86c3d5c72394dc6cf941e23ac
parentfffe2e140420f75d6ad06ab9356b337570572b9b (diff)
downloademacs-1518e4f02dab44ba5388cd8b0699749ee30d3eff.tar.gz
emacs-1518e4f02dab44ba5388cd8b0699749ee30d3eff.zip
Merge changes made in Gnus trunk.
message.texi (Various Commands): Document format specs in the ellipsis. time-date.el (format-seconds): Use assoc instead of assoc-string to avoid warning on XEmacs. gnus-art.el: Require mouse, which the build bot seems to say is needed. gravatar.el (gravatar-retrieve-synchronously): Use `url-retrieve' on XEmacs, since it doesn't have url-retrieve-synchronously. time-date.el (format-seconds): Use assoc instead of assoc-string, since assoc-string doesn't exist in XEmacs. gnus-group.el (gnus-group-list-ticked): New function. (gnus-group-make-menu-bar): Provide a menu entry for it. (gnus-group-list-map): Provide a binding for it. shr.el (shr-visit-file): New command. nnimap.el (nnimap-fetch-inbox): Rewrite slightly last patch. nnimap.el (nnimap-fetch-inbox): Don't download bodies on ver4-capable servers.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/message.texi4
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/calendar/time-date.el8
-rw-r--r--lisp/gnus/ChangeLog25
-rw-r--r--lisp/gnus/gnus-art.el1
-rw-r--r--lisp/gnus/gnus-group.el28
-rw-r--r--lisp/gnus/gravatar.el6
-rw-r--r--lisp/gnus/nnimap.el12
-rw-r--r--lisp/gnus/shr.el9
10 files changed, 94 insertions, 14 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 5dd5e3e4fdc..50f0e4e45b9 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -2,6 +2,11 @@
2 2
3 * calc.texi (Logarithmic Units): Update the function names. 3 * calc.texi (Logarithmic Units): Update the function names.
4 4
52011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
6
7 * message.texi (Various Commands): Document format specs in the
8 ellipsis.
9
52011-03-15 Antoine Levitt <antoine.levitt@gmail.com> 102011-03-15 Antoine Levitt <antoine.levitt@gmail.com>
6 11
7 * message.texi (Insertion Variables): Document message-cite-style. 12 * message.texi (Insertion Variables): Document message-cite-style.
diff --git a/doc/misc/message.texi b/doc/misc/message.texi
index 7d61ffd9efa..48d0028e452 100644
--- a/doc/misc/message.texi
+++ b/doc/misc/message.texi
@@ -1202,6 +1202,10 @@ The text is killed and replaced with the contents of the variable
1202@code{message-elide-ellipsis}. The default value is to use an ellipsis 1202@code{message-elide-ellipsis}. The default value is to use an ellipsis
1203(@samp{[...]}). 1203(@samp{[...]}).
1204 1204
1205This is a format-spec string, and you can use @samp{%l} to say how
1206many lines were removed, and @samp{%c} to say how many characters were
1207removed.
1208
1205@item C-c M-k 1209@item C-c M-k
1206@kindex C-c M-k 1210@kindex C-c M-k
1207@findex message-kill-address 1211@findex message-kill-address
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5164207a5ce..6d4e8424f74 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * calendar/time-date.el (format-seconds): Use assoc instead of
4 assoc-string to avoid warning on XEmacs.
5
62011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
7
8 * calendar/time-date.el (format-seconds): Use assoc instead of
9 assoc-string, since assoc-string doesn't exist in XEmacs.
10
12011-03-17 Juanma Barranquero <lekktu@gmail.com> 112011-03-17 Juanma Barranquero <lekktu@gmail.com>
2 12
3 * custom.el (custom-known-themes): Reflow docstring. 13 * custom.el (custom-known-themes): Reflow docstring.
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index a1bfad3a5f5..62203600612 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -308,13 +308,9 @@ This function does not work for SECONDS greater than `most-positive-fixnum'."
308 (setq start (match-end 0) 308 (setq start (match-end 0)
309 spec (match-string 1 string)) 309 spec (match-string 1 string))
310 (unless (string-equal spec "%") 310 (unless (string-equal spec "%")
311 ;; `assoc-string' is not available in XEmacs. So when compiling 311 (or (setq match (assoc (downcase spec) units))
312 ;; Gnus (`time-date.el' is part of Gnus) with XEmacs, we get
313 ;; a warning here. But `format-seconds' is not used anywhere in
314 ;; Gnus so it's not a real problem. --rsteib
315 (or (setq match (assoc-string spec units t))
316 (error "Bad format specifier: `%s'" spec)) 312 (error "Bad format specifier: `%s'" spec))
317 (if (assoc-string spec usedunits t) 313 (if (assoc (downcase spec) usedunits)
318 (error "Multiple instances of specifier: `%s'" spec)) 314 (error "Multiple instances of specifier: `%s'" spec))
319 (if (string-equal (car match) "z") 315 (if (string-equal (car match) "z")
320 (setq zeroflag t) 316 (setq zeroflag t)
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b22ed7397af..04b80159e50 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,28 @@
12011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-art.el: Require mouse, which the build bot seems to say is
4 needed.
5
6 * gravatar.el (gravatar-retrieve-synchronously): Use `url-retrieve' on
7 XEmacs, since it doesn't have url-retrieve-synchronously.
8
92011-03-17 Antoine Levitt <antoine.levitt@gmail.com>
10
11 * gnus-group.el (gnus-group-list-ticked): New function.
12 (gnus-group-make-menu-bar): Provide a menu entry for it.
13 (gnus-group-list-map): Provide a binding for it.
14
152011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
16
17 * shr.el (shr-visit-file): New command.
18
19 * nnimap.el (nnimap-fetch-inbox): Rewrite slightly last patch.
20
212011-03-17 Bjørn Mork <bjorn@mork.no>
22
23 * nnimap.el (nnimap-fetch-inbox): Don't download bodies on ver4-capable
24 servers.
25
12011-03-16 Julien Danjou <julien@danjou.info> 262011-03-16 Julien Danjou <julien@danjou.info>
2 27
3 * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are 28 * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index b994a2839bc..7c7e0531926 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -44,6 +44,7 @@
44(require 'wid-edit) 44(require 'wid-edit)
45(require 'mm-uu) 45(require 'mm-uu)
46(require 'message) 46(require 'message)
47(require 'mouse)
47 48
48(autoload 'gnus-msg-mail "gnus-msg" nil t) 49(autoload 'gnus-msg-mail "gnus-msg" nil t)
49(autoload 'gnus-button-mailto "gnus-msg") 50(autoload 'gnus-button-mailto "gnus-msg")
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index e928811b558..c265538e19c 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -697,7 +697,8 @@ simple manner.")
697 "M" gnus-group-list-all-matching 697 "M" gnus-group-list-all-matching
698 "l" gnus-group-list-level 698 "l" gnus-group-list-level
699 "c" gnus-group-list-cached 699 "c" gnus-group-list-cached
700 "?" gnus-group-list-dormant) 700 "?" gnus-group-list-dormant
701 "!" gnus-group-list-ticked)
701 702
702(gnus-define-keys (gnus-group-list-limit-map "/" gnus-group-list-map) 703(gnus-define-keys (gnus-group-list-limit-map "/" gnus-group-list-map)
703 "k" gnus-group-list-limit 704 "k" gnus-group-list-limit
@@ -849,7 +850,8 @@ simple manner.")
849 ["List all groups matching..." gnus-group-list-all-matching t] 850 ["List all groups matching..." gnus-group-list-all-matching t]
850 ["List active file" gnus-group-list-active t] 851 ["List active file" gnus-group-list-active t]
851 ["List groups with cached" gnus-group-list-cached t] 852 ["List groups with cached" gnus-group-list-cached t]
852 ["List groups with dormant" gnus-group-list-dormant t]) 853 ["List groups with dormant" gnus-group-list-dormant t]
854 ["List groups with ticked" gnus-group-list-ticked t])
853 ("Sort" 855 ("Sort"
854 ["Default sort" gnus-group-sort-groups t] 856 ["Default sort" gnus-group-sort-groups t]
855 ["Sort by method" gnus-group-sort-groups-by-method t] 857 ["Sort by method" gnus-group-sort-groups-by-method t]
@@ -4536,6 +4538,28 @@ This command may read the active file."
4536 (goto-char (point-min)) 4538 (goto-char (point-min))
4537 (gnus-group-position-point)) 4539 (gnus-group-position-point))
4538 4540
4541(defun gnus-group-list-ticked (level &optional lowest)
4542 "List all groups with ticked articles.
4543If the prefix LEVEL is non-nil, it should be a number that says which
4544level to cut off listing groups.
4545If LOWEST, don't list groups with level lower than LOWEST.
4546
4547This command may read the active file."
4548 (interactive "P")
4549 (when level
4550 (setq level (prefix-numeric-value level)))
4551 (when (or (not level) (>= level gnus-level-zombie))
4552 (gnus-cache-open))
4553 (funcall gnus-group-prepare-function
4554 (or level gnus-level-subscribed)
4555 #'(lambda (info)
4556 (let ((marks (gnus-info-marks info)))
4557 (assq 'tick marks)))
4558 lowest
4559 'ignore)
4560 (goto-char (point-min))
4561 (gnus-group-position-point))
4562
4539(defun gnus-group-listed-groups () 4563(defun gnus-group-listed-groups ()
4540 "Return a list of listed groups." 4564 "Return a list of listed groups."
4541 (let (point groups) 4565 (let (point groups)
diff --git a/lisp/gnus/gravatar.el b/lisp/gnus/gravatar.el
index 0c97080d847..4b0c9a16283 100644
--- a/lisp/gnus/gravatar.el
+++ b/lisp/gnus/gravatar.el
@@ -129,8 +129,10 @@ You can provide a list of argument to pass to CB in CBARGS."
129 "Retrieve MAIL-ADDRESS gravatar and returns it." 129 "Retrieve MAIL-ADDRESS gravatar and returns it."
130 (let ((url (gravatar-build-url mail-address))) 130 (let ((url (gravatar-build-url mail-address)))
131 (if (gravatar-cache-expired url) 131 (if (gravatar-cache-expired url)
132 (with-current-buffer (url-retrieve-synchronously url) 132 (with-current-buffer (if (featurep 'xemacs)
133 (when gravatar-automatic-caching 133 (url-retrieve url)
134 (url-retrieve-synchronously url))
135 (when gravatar-automatic-caching
134 (url-store-in-cache (current-buffer))) 136 (url-store-in-cache (current-buffer)))
135 (let ((data (gravatar-data->image))) 137 (let ((data (gravatar-data->image)))
136 (kill-buffer (current-buffer)) 138 (kill-buffer (current-buffer))
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index e0804f81e2e..bcbe7b678d5 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1762,11 +1762,15 @@ textual parts.")
1762 (format "(UID %s%s)" 1762 (format "(UID %s%s)"
1763 (format 1763 (format
1764 (if (nnimap-ver4-p) 1764 (if (nnimap-ver4-p)
1765 "BODY.PEEK[HEADER] BODY.PEEK" 1765 "BODY.PEEK"
1766 "RFC822.PEEK")) 1766 "RFC822.PEEK"))
1767 (if nnimap-split-download-body-default 1767 (cond
1768 "[]" 1768 (nnimap-split-download-body-default
1769 "[1]"))) 1769 "[]")
1770 ((nnimap-ver4-p)
1771 "[HEADER]")
1772 (t
1773 "[1]"))))
1770 t)) 1774 t))
1771 1775
1772(defun nnimap-split-incoming-mail () 1776(defun nnimap-split-incoming-mail ()
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index c9c5bd5ff1c..113137a0046 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -113,6 +113,15 @@ cid: URL as the argument.")
113 113
114;; Public functions and commands. 114;; Public functions and commands.
115 115
116(defun shr-visit-file (file)
117 (interactive "fHTML file name: ")
118 (pop-to-buffer "*html*")
119 (erase-buffer)
120 (shr-insert-document
121 (with-temp-buffer
122 (insert-file-contents file)
123 (libxml-parse-html-region (point-min) (point-max)))))
124
116;;;###autoload 125;;;###autoload
117(defun shr-insert-document (dom) 126(defun shr-insert-document (dom)
118 (setq shr-content-cache nil) 127 (setq shr-content-cache nil)