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 0B4A8429E54 for ; Sat, 21 Jan 2012 16:34:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 7L98tDAMIsfY for ; Sat, 21 Jan 2012 16:34:11 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 8123E429E40 for ; Sat, 21 Jan 2012 16:34:11 -0800 (PST) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id 1475266E0089; Sat, 21 Jan 2012 16:34:11 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com [76.174.137.84]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id 3247266E00E6; Sat, 21 Jan 2012 16:34:06 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id A06EA35B; Sat, 21 Jan 2012 16:34:05 -0800 (PST) From: Jameson Graef Rollins To: Peter Feigl Subject: Re: [PATCH] rewriting notmuch-search for structured output to make other output formats easier In-Reply-To: <87lip0ljzy.fsf@nexoid.at> References: <1327180568-30385-1-git-send-email-craven@gmx.net> <87k44klkee.fsf@servo.finestructure.net> <87lip0ljzy.fsf@nexoid.at> User-Agent: Notmuch/0.11+92~g9b8f34f (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sat, 21 Jan 2012 16:34:03 -0800 Message-ID: <87hazolgn8.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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, 22 Jan 2012 00:34:12 -0000 --=-=-= On Sun, 22 Jan 2012 00:21:37 +0100, "Peter Feigl" wrote: > What kind of documentation should I include? Update the man page to describe the new format and command line options. > The test suite should work fine, *if* it compares EXPECTED and OUTPUT > not character-by-character, but rather by pretty-printing both the > expected and the actual outputs by some JSON pretty-printer (like python > -mjson.tool). I can of course provide additional test-cases for > --format=sexp. I was referring specifically to new tests for the new output format. The test suite changes should include only additions, since as you point out, the internal restructuring shouldn't affect any existing tests. > How should I proceed on this? Re-submit the patch with the sexp-support > removed and only JSON updated? I think you should primarily work on addressing Austin's issues regarding the output formatters first, being careful to try to make more small atomic patches. Then once that's done make a new series of patches, depending on the new formatter patches, that adds the new output format. As Austin points out, more smaller patches that are narrowly focused are much easier to review, even if there ends up being more changes in the end. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPG1l7AAoJEO00zqvie6q8oQ8QAJglbb70lsYZzBLhLVxERiva YgmLbOCZKmjVAxkeiZ4BMH7uCJrZexgmrsJ2pfimErxPVlrbu7hw/b2eyprv/dkU q+J9bAMjNCHtgWUWBeG2Bpv7LxFN/k6IwBnmEgqsimp+6E4kel3Enr8QrOLsWpeV oAD2kMaRrsmyzP84n//EnZ5gahIMcuMLfZzHtkobPcagtZh4e/b7HMiC/8yG2qXA JTpmQokYrC/jPIENQbOd2q7SR5KYUAQqhnUfkOYea2PtUiMdEv7pRY15X9+5zC8V ZxiC2CRx4ARMc9qrO/FIPfUKDMXi9CZqAu+rgBhwhxdeeQcoaf7gEfykrHONMNz1 Gs63e/vVUuhfh8/8T1JqAk/yj2ty6cjsB/Gow5RBuELmyzQZMxLepa8Az3j+tQge zvRW+TElbUY7ULqWDwwBwXX3Qjk7OXmWbfyJjCheMWNPJJ5gzZTY79X9Kj6DP+eZ APFj1uejS//G87q+fmeomuz4Wijk6RC+C6PMDhaST7m/4BylZMbU0QAziqenuSGN hncu0VRN66AZOn1Cjpid3AWl+2eALi9B0bp7Ndh2jgXsoP2ifNWn6AowidfFX560 tlYncj3d9k2wfYPCkm5lbgwNsqlrZdolB43UlFX42XGQjyL2VkY+IC8fpjqiudCi NzHEoKYEbuSCYW7ANAFr =uIhi -----END PGP SIGNATURE----- --=-=-=--