From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84981 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and notmuch? Date: Tue, 23 Sep 2014 12:24:28 +0200 Message-ID: <87wq8u8wir.fsf@gmx.us> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1411467901 17566 80.91.229.3 (23 Sep 2014 10:25:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2014 10:25:01 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33225@lists.math.uh.edu Tue Sep 23 12:24:54 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XWNHC-0007QS-4C for ding-account@gmane.org; Tue, 23 Sep 2014 12:24:54 +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 1XWNH5-00063U-RK; Tue, 23 Sep 2014 05:24:47 -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 1XWNH4-00063H-GL for ding@lists.math.uh.edu; Tue, 23 Sep 2014 05:24:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XWNGz-0003Cv-Gc for ding@lists.math.uh.edu; Tue, 23 Sep 2014 05:24:46 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWNGy-0004ie-61 for ding@gnus.org; Tue, 23 Sep 2014 12:24:40 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWNGx-0007F3-Ss for ding@gnus.org; Tue, 23 Sep 2014 12:24:39 +0200 Original-Received: from 46.166.186.233 ([46.166.186.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 12:24:39 +0200 Original-Received: from rasmus by 46.166.186.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 12:24:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.186.233 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAC3SURBVEiJ7ZI7CgMxDEQHLEICgVwr7UDuf4tAupdCu7b2U4ZUnsoy ehpZsjQ1NfVX2bZ7AJIASVIIl0xwSAD0eyOJl40ktQqEhJsElpaKCeA8xAokBY8BGGGvQPoPh15z 4wB8VgfbRmqtF3emJcASrC2981kFUKbchkOfx2lLumZWdCASiPLoZwWUXdyLQ21JeDdWyLwtMKaZ i4sypYXC7bB2FCNq202fA5To9GvsdTleTU1N/Uhf6/ehr00D3K8AAAAASUVORK5CYII= User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:+XaVM9ckQrJPRs2YoAsu3QoKUjA= X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84981 Archived-At: Steinar Bang writes: >>>>>> Rainer M Krug : > >> Now that I can search gmane (perfect - love it!) I can't search my local >> imap server via notmuch anymore - any suggestions how I can achieve >> both via nnir or "G G"? > > One way would be to replace > (nnimap . imap) > in nnir-method-default-engines with > (nnimap . notmuch) > > But that would mask native imap search for other IMAP servers you might > have. If Rainer is using nnmaildir it might be less of an issue. A less elegant way would be to replace G-G. Something like: (defun my-gnus-G-G (NNIR-EXTRA-PARMS &optional SPECS) "Chose the right search" (interactive "P") (let ((backend (car-safe (split-string (or (gnus-group-group-name) "") ":")))) (unless (eq "" backend) (case backend ("nntp+gmane" (gnus-group-make-nnir-group NNIR-EXTRA-PARMS SPECS)) ("..." (search-using-notmuch)) (otherwise (gnus-group-make-nnir-group NNIR-EXTRA-PARMS SPECS)))))) (define-key gnus-group-mode-map (kbd "G G") 'my-gnus-G-G) I don't know how well it would work in practice. —Rasmus -- May the Force be with you