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 DF6B340BFD3 for ; Sat, 11 Sep 2010 16:38:06 -0700 (PDT) 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 BNwxlMyIODbt for ; Sat, 11 Sep 2010 16:37:56 -0700 (PDT) Received: from defaultvalue.org (li12-156.members.linode.com [70.85.129.156]) by olra.theworths.org (Postfix) with ESMTP id 24A2940BD85 for ; Sat, 11 Sep 2010 16:37:56 -0700 (PDT) Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id C34589107B for ; Sat, 11 Sep 2010 18:37:55 -0500 (CDT) Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 985D750169 for ; Sat, 11 Sep 2010 18:37:55 -0500 (CDT) Received: by raven.defaultvalue.org (Postfix, from userid 1000) id 820B37C400D; Sat, 11 Sep 2010 18:37:55 -0500 (CDT) From: Rob Browning To: notmuch@notmuchmail.org Subject: Strings vs symbols in notmuch-search-result-format Date: Sat, 11 Sep 2010 18:37:55 -0500 Message-ID: <87mxrnn964.fsf@raven.defaultvalue.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) 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, 11 Sep 2010 23:38:07 -0000 I've started to look at the elisp, and wondered why notmuch-search-result-format expected strings rather than symbols for the field names, i.e.: (("date" . "%s ") ("count" . "%-7s ") ("authors" . "%-20s ") ("subject" . "%s ") ("tags" . "(%s)")) instead of ((date . "%s ") (count . "%-7s ") (authors . "%-20s ") (subject . "%s ") (tags . "(%s)")) Perhaps there's a good argument for strings, but if not, the latter is more idiomatic, and a bit more efficient too (comparisons will just be pointer compares (via assq) rather than something like a strcmp (assoc)). In any case, I imagine this might not be something you'd want to change at this point -- I'm just trying to make sure I understand the current code. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4