From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69311 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.discuss,gmane.emacs.gnus.general Subject: Re: Searching gmane groups in Gnus? Date: Sun, 03 Jan 2010 18:00:05 +0100 Organization: Probably a good idea Message-ID: <87tyv36s4q.fsf@edwards.hjemme.lan> References: <87r5q88hqp.fsf@edwards.hjemme.lan> <87ljgghzs3.fsf@marauder.physik.uni-ulm.de> <87k4vz8dph.fsf@edwards.hjemme.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1262538058 29628 80.91.229.12 (3 Jan 2010 17:00:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2010 17:00:58 +0000 (UTC) Cc: ding@gnus.org To: gmane-discuss@hawk.netfonds.no Original-X-From: gmane-discuss-bounces@hawk.netfonds.no Sun Jan 03 18:00:50 2010 Return-path: Envelope-to: gd-gmane-discuss@m.gmane.org Original-Received: from hawk.netfonds.no ([80.91.224.246]) by lo.gmane.org with esmtp (Exim 4.50) id 1NRTou-0002Tc-PK for gd-gmane-discuss@m.gmane.org; Sun, 03 Jan 2010 18:00:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=hawk.netfonds.no) by hawk with esmtp (Exim 3.36 #1 (Debian)) id 1NRTov-0000DN-00; Sun, 03 Jan 2010 18:00:49 +0100 Original-Received: from lo.gmane.org ([80.91.229.12]) by hawk with esmtp (Exim 3.36 #1 (Debian)) id 1NRTot-0000DI-00 for ; Sun, 03 Jan 2010 18:00:47 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NRToq-0002Rw-6q for gmane-discuss@hawk.netfonds.no; Sun, 03 Jan 2010 18:00:44 +0100 Original-Received: from cm-84.208.231.232.getinternet.no ([84.208.231.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jan 2010 18:00:44 +0100 Original-Received: from sb by cm-84.208.231.232.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jan 2010 18:00:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: gmane-discuss@hawk.netfonds.no Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.231.232.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:pDYdUc6iEwSsHTs4e+/ChFnGQ08= X-BeenThere: gmane-discuss@hawk.netfonds.no X-Mailman-Version: 2.1.5 Precedence: list List-Id: gmane-discuss.hawk.netfonds.no List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: gmane-discuss-bounces@hawk.netfonds.no Errors-To: gmane-discuss-bounces@hawk.netfonds.no Xref: news.gmane.org gmane.discuss:12693 gmane.emacs.gnus.general:69311 Archived-At: >>>>> Steinar Bang : >>>>> Reiner Steib : >> There is support for Gmane already. Dunno if it still working and if >> it fits your needs. > It still works, but it doesn't quite fill my needs. I would like it to > automatically select gmane as the search engine, and add the group the > cursor is standing on to the search. Here is code bound to the (as far as I can tell) unused `G b' keys, that will search the group under the cursor (bastardized from gnus-group-make-web-group): (defun gnus-group-make-gmane-search-group () "Create an ephemeral nnweb group containing the results of a Gmane search." (interactive) (require 'nnweb) (let* ((group (message-unique-id)) (type "gmane") (gmane-group-name (car (cdr (split-string (gnus-group-group-name) ":")))) (search (concat "group:" gmane-group-name " " (read-string "Search string: " (cons (or (car gnus-group-web-search-history) "") 0) 'gnus-group-web-search-history))) (method `(nnweb ,group (nnweb-search ,search) (nnweb-type ,(intern type)) (nnweb-ephemeral-p t)))) (gnus-group-read-ephemeral-group group method t (cons (current-buffer) (if (eq major-mode 'gnus-summary-mode) 'summary 'group))))) (defun gmane-search-group-mode-hook () (define-key gnus-group-mode-map (kbd "G b") 'gnus-group-make-gmane-search-group)) (add-hook 'gnus-group-mode-hook 'gmane-search-group-mode-hook) > Hm... if `G G' could be bound to do this on the gmane groups, it > wouldn't really matter to me that nnweb is used rather than nnir...? Well, it matters in two respects: - No way of finding the thread the way the nnir results do - Can't to followup to the group