Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: Gnus search
Date: Thu, 21 Oct 2010 23:27:44 +0200	[thread overview]
Message-ID: <87r5fj5j8v.fsf@localhost6.localdomain6> (raw)
In-Reply-To: <m3iq0vzfzr.fsf@quimbies.gnus.org>

>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org>:

> Julien Danjou <julien@danjou.info> 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)




  parent reply	other threads:[~2010-10-21 21:27 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 15:49 Lars Magne Ingebrigtsen
2010-10-21 16:04 ` Julien Danjou
2010-10-21 16:07   ` Lars Magne Ingebrigtsen
2010-10-21 16:24     ` Julien Danjou
2010-10-21 17:09       ` Andrew Cohen
2010-10-21 17:10       ` Tibor Simko
2010-10-21 17:12         ` Lars Magne Ingebrigtsen
2010-10-21 17:56           ` Andrew Cohen
2010-10-21 18:25             ` Andrew Cohen
2010-10-21 18:45               ` Ted Zlatanov
2010-10-21 19:00                 ` Andrew Cohen
2010-10-22 14:24                   ` Andrew Cohen
2010-10-23  7:01                     ` Steinar Bang
2010-10-23 12:14                       ` Andrew Cohen
2010-10-24  9:15                         ` Steinar Bang
2010-10-25 18:34                         ` Ted Zlatanov
2010-10-24  4:18                     ` Lars Magne Ingebrigtsen
2010-10-21 18:00           ` Ted Zlatanov
2010-10-21 18:35             ` Andreas Seltenreich
2010-10-21 21:27     ` Steinar Bang [this message]
2010-10-27 11:36 ` Andrew Cohen
2010-10-27 12:32   ` Steinar Bang
2010-10-27 13:23   ` Dan Christensen
2010-10-27 13:25     ` Andrew Cohen
2010-10-27 17:41   ` Ted Zlatanov
2010-10-27 18:08     ` Andrew Cohen
2010-10-27 18:39       ` Ted Zlatanov
2010-10-28 10:27         ` Julien Danjou
2010-10-28 10:49           ` Andrew Cohen
2010-10-28 10:51             ` Julien Danjou
2010-10-29  6:34       ` nnir: Removing some search engines (was: Gnus search) Reiner Steib
2010-10-29 11:16         ` nnir: Removing some search engines Andrew Cohen
2010-10-29 12:57         ` Jose A. Ortega Ruiz
2010-10-27 20:15   ` Gnus search Jose A. Ortega Ruiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5fj5j8v.fsf@localhost6.localdomain6 \
    --to=sb@dod.no \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).