(removed gmane-discuss) Reiner Steib writes: > On Fri, Feb 24 2006, Andreas Seltenreich wrote: > > Andreas, would you like to provide an update for the manual > (texi/gnus.texi)? I'd like to have this example... Oh, there's even a gnus-coding.texi in there. I guess I should have read that before starting to work on nnweb :-) > ,----[ (info "(gnus)Foreign Groups") ] > | If you use the `google' search engine, you can limit the search to > | a particular group by using a match string like `shaving > | group:alt.sysadmin.recovery'. > `---- > > ... moved to (info "(gnus)Web Searches") and have some additional > examples such as restricting a search to a certain author, newsgroup > or subject (if possible) for both, Gmane and Google in (info > "(gnus)Web Searches"). Hmm, that paragraph about solid groups not being useful seems out of date, too. Was it written at a time when solid groups weren't backed up by hash tables, or am I missing something? --8<---------------cut here---------------start------------->8--- `nnweb' groups don't really lend themselves to being solid groups--they have a very fleeting idea of article numbers. In fact, each time you enter an `nnweb' group (not even changing the search pattern), you are likely to get the articles ordered in a different manner. Not even using duplicate suppression (*note Duplicate Suppression::) will help, since `nnweb' doesn't even know the `Message-ID' of the articles before reading them using some search engines (Google, for instance). The only possible way to keep track of which articles you've read is by scoring on the `Date' header--mark all articles posted before the last date you read the group as read. --8<---------------cut here---------------end--------------->8--- > It's not a problem if you're not familiar with > texinfo: You write it; we can fix the markup before committing it. > (While at it, "dejanews" could be removed in the manual.) I'm more concerned about my English skills than texinfo. > Andreas, do we simply need to change... > > - (mm-decode-coding-region (point-min) (point-max) 'utf-8) > + (mm-decode-coding-region (point-min) (point-max)) > > ... or anything else? It still doesn't work for me without explicit decoding using mm-url-use-external + wget. However, it seems to decode fine implicitly when using internal fetching. I dunno if there is a more elegant way to solve this than testing for mm-url-use-external. And wouldn't using external programs nevertheless break or unbreak depending on the system locale? Btw, internal url fetching yields a \0d at the end of the buffer, which makes nnweb-gmane-create-mapping throw an error. I've attached a patch. >> http://search.gmane.org/nov.php?query=gnus+nnweb > > Installed. Thanks. > > Is it also possible to submit the "Sort by" flag (Relevance, Date, > Reverse Date) to nov.php? At the moment one could achieve that by customising nnweb-type-definition: --8<---------------cut here---------------start------------->8--- (defun my-nnweb-gmane-search-by-date (search) (mm-url-insert (concat (nnweb-definition 'address) "?" (mm-url-encode-www-form-urlencoded `(("query" . ,search) ("sort" . "date") ("HITSPERPAGE" . ,(number-to-string nnweb-max-hits)))))) (setq buffer-file-name nil) (set-buffer-multibyte t) (mm-decode-coding-region (point-min) (point-max) 'utf-8) t) (push '(gmane-by-date (article . nnweb-gmane-wash-article) (id . "http://gmane.org/view.php?group=%s") (reference . identity) (map . nnweb-gmane-create-mapping) (search . my-nnweb-gmane-search-by-date) (address . "http://search.gmane.org/nov.php") (identifier . nnweb-gmane-identity)) nnweb-type-definition) --8<---------------cut here---------------end--------------->8--- regards, andreas