[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Patch for sb-slashdot.el

Attached is a patch which adapts the Slashdot shimbun to the new site
design. By the way, my last post regarding sb-slashdot also contained a
patch for emacs-w3m.texi, explaining the new variables regarding display
of the comment section. I repost it here in case it was just overlooked.

Index: ChangeLog
RCS file: /storage/cvsroot/emacs-w3m/shimbun/ChangeLog,v
retrieving revision 1.153
diff -r1.153 ChangeLog
> 2008-11-10  David Engster  <dengste@xxxxxx>
> 	* sb-slashdot.el (shimbun-slashdot-regexp-section-id-subject)
> 	(shimbun-slashdot-regexp-comment-system): Updated regexps.
Index: sb-slashdot.el
RCS file: /storage/cvsroot/emacs-w3m/shimbun/sb-slashdot.el,v
retrieving revision 1.3
diff -r1.3 sb-slashdot.el
<   "<div class=\"\\(generaltitle\\|briefarticles\\)\"[^\0]*?\
< <a href=\".*slashdot.org/\\(.*?\\)/\\(.*?\\).shtml\">\\(.*?\\)</a>")
>   "<\\(?:div\\|h3\\)[ \t]+class=\"\\(generaltitle\\|briefarticles\\|story\\)\"[^\0]*?\
> <a[ \t]+href=\".*slashdot.org/\\(.*?\\)/\\(.*?\\).shtml\".*?>\\(.*?\\)</a>")
<   "use <a href=\"\\(.+\\)\">the classic discussion system")
>   "use[ \t]+<a[ \t]+href=\"\\(.+\\)\">[ \t]*the classic discussion system")
diff --git a/emacs-w3m.texi b/emacs-w3m.texi
index 7bc575f..e292b0d 100644
--- a/emacs-w3m.texi
+++ b/emacs-w3m.texi
@@ -5285,7 +5285,35 @@ perlentaucher-de.aktuell
 @item @uref{http://www.slashdot.org/, Slashdot}
+slashdot.frontpage slashdot.apple slashdot.askslashdot
+slashdot.books slashdot.developers slashdot.games
+slashdot.hardware slashdot.interviews slashdot.IT
+slashdot.linux slashdot.mobile slashdot.politics
+The following variables are availabe for configuring the comment section
+of the Slashdot shimbun:
+@table @code
+@item shimbun-slashdot-get-comments
+@vindex shimbun-slashdot-get-comments
+If set to t (the default), comments will be retrieved for every article.
+They are separated from the intro text through a linefeed character, so
+that you can access them by pressing the ``Next Page'' button in the
+article buffer.  Setting this variable to nil will deactivate retrieval
+of comments.
+@item shimbun-slashdot-comment-threshold
+@vindex shimbun-slashdot-comment-threshold
+Threshold for displayed comments (default: 3).  Can be a number between
+-1 (all comments) and 5 (highest rating).
+@item shimbun-slashdot-comment-display
+@vindex shimbun-slashdot-comment-display
+Type of display for the comments (default: flat).  Can be either
+``flat'', ``thread'' or ``nested''.  Note that this must be a string,
+not a symbol.
+@end table
 @item @uref{http://slashdot.jp/, Slashdot Japan}
 slashdot-jp.story slashdot-jp.askslashdot slashdot-jp.bookreview