From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73448 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus search Date: Thu, 21 Oct 2010 23:27:44 +0200 Organization: Probably a good idea Message-ID: <87r5fj5j8v.fsf@localhost6.localdomain6> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287696516 16351 80.91.229.12 (21 Oct 2010 21:28:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 21:28:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21817@lists.math.uh.edu Thu Oct 21 23:28:35 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P92gc-00048Q-W6 for ding-account@gmane.org; Thu, 21 Oct 2010 23:28:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P92g7-00079c-AR; Thu, 21 Oct 2010 16:28:03 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P92g4-00079L-UK for ding@lists.math.uh.edu; Thu, 21 Oct 2010 16:28:00 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P92g0-0005pi-2t for ding@lists.math.uh.edu; Thu, 21 Oct 2010 16:28:00 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P92fz-0005E6-00 for ; Thu, 21 Oct 2010 23:27:55 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P92fw-0003sv-BO for ding@gnus.org; Thu, 21 Oct 2010 23:27:52 +0200 Original-Received: from cm-84.208.204.33.getinternet.no ([84.208.204.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Oct 2010 23:27:52 +0200 Original-Received: from sb by cm-84.208.204.33.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Oct 2010 23:27:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.204.33.getinternet.no User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:Jf3Zjz1DR64gZE5hsiq5wyPOdJU= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73448 Archived-At: >>>>> Lars Magne Ingebrigtsen : > Julien Danjou writes: >> Can I answer IMAP to this? > I guess you can. :-) > Then nnir should be on by default, and not need any user > customisations, perhaps? It would be neat of nnir could be used for gmane groups. I know nnweb can do searching, but I would have liked the behaviour of nnir (and functionality such as `A T' working. I tried to write this method, but it's not quite there... (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)