From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E1EE040DF1F for ; Sat, 20 Nov 2010 13:15:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gkA+1C5U5uEX for ; Sat, 20 Nov 2010 13:15:47 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id E3E6640DF18 for ; Sat, 20 Nov 2010 13:15:46 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 07DBE19F3356; Sat, 20 Nov 2010 22:15:45 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id mmcSj-pCwmr0; Sat, 20 Nov 2010 22:15:43 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id B963C19F334F; Sat, 20 Nov 2010 22:15:43 +0100 (CET) Received: from wsheee.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id A99C1FA003; Sat, 20 Nov 2010 22:15:43 +0100 (CET) Received: from wsh by wsheee.2x.cz with local (Exim 4.72) (envelope-from ) id 1PJumd-00064d-1z; Sat, 20 Nov 2010 22:15:43 +0100 From: Michal Sojka To: servilio , notmuch Subject: Re: [PATCH] Implement a simple read-eval-print loop. In-Reply-To: References: User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sat, 20 Nov 2010 22:15:42 +0100 Message-ID: <87sjyvk875.fsf@wsheee.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Nov 2010 21:15:58 -0000 On Sat, 20 Nov 2010, servilio wrote: > This implementation uses GNU readline for the prompt and command > history, with the default file completion enabled. GLib is used to > split the read line into an arguments list. Hi, I haven't tested it yet, but it seems to be exactly the piece of code I wanted to have to speed up notmuch-hello when notmuch is used remotely over ssh. Spawning new ssh for every saved search to get the count of matched messages has a way too big overhead. Is this the use case you had in mind when implementing this? Currently, I have only one comment to the patch. For me, "repl" is a bit unintuitive. I was thinking about "shell" as the name of subcommand for this. -Michal