Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 38BA0429E31 for ; Sun, 5 Jun 2011 00:28:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 NJMs7uWRw6dg for ; Sun, 5 Jun 2011 00:28:38 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 373B2431FB6 for ; Sun, 5 Jun 2011 00:28:38 -0700 (PDT) Received: by bwg12 with SMTP id 12so2962834bwg.26 for ; Sun, 05 Jun 2011 00:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=rE9M835XmOzN5/h81LAiIWJ2E7qzDwkHiuE3HLzBohk=; b=f3XNbueaTgD9t4akqAypatK7vokO0wIAu2PTKJRCEeNkjXY6JzLr/KcmcgzrrsXOwy OT3sjm2oi+pWnkNFadjWe0g5KplWReKSRGpFF3HE6Pmuq4i75KS9jGcLCyXT7oOsehcG WHrRL8Wu+7vBqXGcvdiXSai/KjAPmZxzoS0o4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=YKYNRTyGwwEx0v0AwBfVslvgAis2Ctw3u2HtEcUpLnv/u1jMUefwjHrj9Ndj4Suomo wnhWFJfTdNhatSjajFU8fi2t+Ipb6FxSJ24mAElO0p8bBraZNt4sOiTYZcMfcT4dZnBE BDvkLXlr4I1FZEink4XFVtOrQbwIfEIPD+GHI= Received: by 10.205.83.68 with SMTP id af4mr3671481bkc.187.1307258916767; Sun, 05 Jun 2011 00:28:36 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id ag6sm2437914bkc.6.2011.06.05.00.28.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Jun 2011 00:28:35 -0700 (PDT) From: Dmitry Kurochkin To: Dima Kogan Subject: Re: [PATCH] Added C-up and C-down to cycle through previous searches In-Reply-To: <20110604130732.5d28fb68@smart> References: <1306659388-21809-1-git-send-email-notmuch@dima.secretsauce.net> <87vcwto5n3.fsf@gmail.com> <20110604130732.5d28fb68@smart> User-Agent: Notmuch/0.5-227-g031f722 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 05 Jun 2011 11:28:59 +0400 Message-ID: <87fwnopwhw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org 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: Sun, 05 Jun 2011 07:28:39 -0000 Hi Dima. On Sat, 4 Jun 2011 13:07:32 -0700, Dima Kogan wrote: > > On Sun, 29 May 2011 20:04:00 +0400 > > Dmitry Kurochkin wrote: > > > > Hi Dima. > > > > On Sun, 29 May 2011 01:56:28 -0700, notmuch@dima.secretsauce.net > > wrote: > > > From: Dima Kogan > > > > > > --- > > > > > > Hi. > > > > > > I made a few improvements to the emacs UI. This patch allows the > > > user to scroll through the most recent searches with C-up and > > > C-down while in the search box. > > > > > > > This sounds like a very nice improvement to me! I just have one > > concern: Why C-up and C-down? I believe M-p and M-n would be more > > natural for Emacs users (at least for me :)). > > > > Also, I did not read the code and can not comment on it. But notmuch > > coding style is to use tabs for indentation. I guess .dir-locals.el > > should be improved to set coding style variables for all modes, not > > just C. > > > > Regards, > > Dmitry > > Hi. I have a mild preference to C-up/down, but M-n/p is just fine also. > As for the coding style, I've looked through that file > (notmuch-hello.el), and it doesn't seem to have a consistent style as > far as tabs/spaces go. I'm happy to change my patch to conform, but I > don't know what I should be conforming to. Should I be tab-ing all > indents, or just some? > Notmuch uses a mix of 8 char width tabs and spaces. First go tabs, then, if you need indenting with more precision, spaces. Look at the lines your patch removes for an example. Also, .dir-locals.el sets some variables to configure Emacs for Notmuch coding style but only for c-mode. You may set it by hand for lisp. Regards, Dmitry