aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2008-01-08 14:16:13 +0000
committerMiles Bader2008-01-08 14:16:13 +0000
commitd82cf70b7fe93c7928a59a3c6ae8d2680237f60d (patch)
tree844e244273c595ae4a64fe1798d22e304cef5bcb /lisp
parent7a00b900498b00a3b9f4b7c055df2a767516dc83 (diff)
downloademacs-d82cf70b7fe93c7928a59a3c6ae8d2680237f60d.tar.gz
emacs-d82cf70b7fe93c7928a59a3c6ae8d2680237f60d.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-985
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog10
-rw-r--r--lisp/gnus/gnus-bookmark.el4
-rw-r--r--lisp/gnus/gnus-group.el40
3 files changed, 51 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7cf327570e3..fee37162942 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,13 @@
12008-01-08 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-bookmark.el (gnus-bookmark-mouse-available-p): Don't test for
4 display-color-p. Reported by Reiner Steib <Reiner.Steib@gmx.de>.
5
62008-01-06 Reiner Steib <Reiner.Steib@gmx.de>
7
8 * gnus-group.el (gnus-group-gmane-group-download-format): New variable.
9 (gnus-group-read-ephemeral-gmane-group): New command.
10
12008-01-06 Dan Nicolaescu <dann@ics.uci.edu> 112008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
2 12
3 * gnus.el (gnus-use-long-file-name): Remove reference to xenix. 13 * gnus.el (gnus-use-long-file-name): Remove reference to xenix.
diff --git a/lisp/gnus/gnus-bookmark.el b/lisp/gnus/gnus-bookmark.el
index 6341c8e48d8..41f9dd0baca 100644
--- a/lisp/gnus/gnus-bookmark.el
+++ b/lisp/gnus/gnus-bookmark.el
@@ -174,8 +174,8 @@ So the cdr of each bookmark is an alist too.")
174(defmacro gnus-bookmark-mouse-available-p () 174(defmacro gnus-bookmark-mouse-available-p ()
175 "Return non-nil if a mouse is available." 175 "Return non-nil if a mouse is available."
176 (if (featurep 'xemacs) 176 (if (featurep 'xemacs)
177 '(and (eq (device-class) 'color) (device-on-window-system-p)) 177 '(device-on-window-system-p)
178 '(and (display-color-p) (display-mouse-p)))) 178 '(display-mouse-p)))
179 179
180(defun gnus-bookmark-remove-properties (string) 180(defun gnus-bookmark-remove-properties (string)
181 "Remove all text properties from STRING." 181 "Remove all text properties from STRING."
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 73d632591b5..2be0b6e5c80 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1,7 +1,7 @@
1;;; gnus-group.el --- group mode commands for Gnus 1;;; gnus-group.el --- group mode commands for Gnus
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005, 2006, 2007 Free Software Foundation, Inc. 4;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news 7;; Keywords: news
@@ -2320,6 +2320,44 @@ Return the name of the group if selection was successful."
2320 (message "Quit reading the ephemeral group") 2320 (message "Quit reading the ephemeral group")
2321 nil))))) 2321 nil)))))
2322 2322
2323(defvar gnus-group-gmane-group-download-format
2324 "http://download.gmane.org/%s/%s/%s")
2325(autoload 'url-insert-file-contents "url-handlers")
2326
2327;; FIXME: Make gnus-group-gmane-group-download-format customizable. Add
2328;; documentation, menu, key bindings...
2329
2330(defun gnus-group-read-ephemeral-gmane-group (group start end)
2331 "Read articles from Gmane group GROUP as an ephemeral group.
2332START and END specify the articles range. The articles are
2333downloaded via HTTP using the URL specified by
2334`gnus-group-gmane-group-download-format'."
2335 ;; See <http://gmane.org/export.php> for more information.
2336 (interactive
2337 (list
2338 (gnus-group-completing-read "Gmane group: ")
2339 (read-number "Start article number: ")
2340 (read-number "End article number: ")))
2341 (when (< (- end start) 0)
2342 (error "Invalid range."))
2343 (when (> (- end start)
2344 (min (or gnus-large-ephemeral-newsgroup 100) 100))
2345 (unless (y-or-n-p
2346 (format "Large range (%s to %s), continue anyway? "
2347 start end))
2348 (error "Range too large. Aborted.")))
2349 (let ((tmpfile (make-temp-file "gmane.gnus-temp-group-")))
2350 (with-temp-file tmpfile
2351 (url-insert-file-contents
2352 (format gnus-group-gmane-group-download-format
2353 group start end))
2354 (write-region (point-min) (point-max) tmpfile)
2355 (gnus-group-read-ephemeral-group
2356 "rs-gnus-read-gmane"
2357 `(nndoc ,tmpfile
2358 (nndoc-article-type guess))))
2359 (delete-file tmpfile)))
2360
2323(defun gnus-group-jump-to-group (group &optional prompt) 2361(defun gnus-group-jump-to-group (group &optional prompt)
2324 "Jump to newsgroup GROUP. 2362 "Jump to newsgroup GROUP.
2325 2363