Re: problem with notmuch-search-authors-width in JSON emacs implementation
authorDirk Hohndel <hohndel@infradead.org>
Wed, 21 Apr 2010 23:23:45 +0000 (16:23 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:45 +0000 (09:36 -0800)
26/ad008bdc80fb16e48b73dbf3df4bc970348053 [new file with mode: 0644]

diff --git a/26/ad008bdc80fb16e48b73dbf3df4bc970348053 b/26/ad008bdc80fb16e48b73dbf3df4bc970348053
new file mode 100644 (file)
index 0000000..63305de
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <BATV+695300e31daaa5708f41+2432+infradead.org+hohndel@bombadil.srs.infradead.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2B2C34196F2\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 16:23:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -4.2\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id PXl30xmPuH0n for <notmuch@notmuchmail.org>;\r
+       Wed, 21 Apr 2010 16:23:46 -0700 (PDT)\r
+Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 78A1E431FC1\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 16:23:46 -0700 (PDT)\r
+Received: from localhost ([::1] helo=x200.gr8dns.org)\r
+       by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux))\r
+       id 1O4jGj-0006Cs-OE; Wed, 21 Apr 2010 23:23:45 +0000\r
+Received: by x200.gr8dns.org (Postfix, from userid 500)\r
+       id 27C9AC0212; Wed, 21 Apr 2010 16:23:45 -0700 (PDT)\r
+From: Dirk Hohndel <hohndel@infradead.org>\r
+To: Jameson Rollins <jrollins@finestructure.net>,\r
+       Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: problem with notmuch-search-authors-width in JSON emacs\r
+       implementation\r
+In-Reply-To: <87633ko11s.fsf@servo.finestructure.net>\r
+References: <87633ko11s.fsf@servo.finestructure.net>\r
+Date: Wed, 21 Apr 2010 16:23:45 -0700\r
+Message-ID: <m3wrw0fkzi.fsf@x200.gr8dns.org>\r
+User-Agent: notmuch 0.2-52-ga28d2fe (Emacs 23.1.1/i386-redhat-linux-gnu)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by\r
+       bombadil.infradead.org See http://www.infradead.org/rpr.html\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 21 Apr 2010 23:23:47 -0000\r
+\r
+On Wed, 21 Apr 2010 19:09:35 -0400, Jameson Rollins <jrollins@finestructure.net> wrote:\r
+> Hey, folks.  I just build from Carl's HEAD which includes the new emacs\r
+> JSON interface and I'm noticing a problem with the\r
+> notmuch-search-authors-width variable.  If I set the variable as\r
+> follows:\r
+> \r
+> (setq notmuch-search-authors-width 40)\r
+> \r
+> author lists that overrun the specified width start spitting out into\r
+> the subject field.  I think bremner just confirmed this on irc.  I'll\r
+> try to look into this when I get a chance, but I don't have time right\r
+> now.  Maybe someone with more intimate knowledge of this piece of code\r
+> could figure it out more quickly.\r
+\r
+I think you are no longer supposed to do that. Here's what I have\r
+instead in my .emacs file\r
+\r
+ '(notmuch-search-result-format (quote (("date" . "%s ") ("count" . "%-7s ") ("authors" . "%-50s ") ("subject" . "%s ") ("tags" . "(%s)"))))\r
+\r
+Actually, I did this from the customize-group -> notmuch settings inside\r
+emacs. I think the overruns come from a conflict between the '20' that's\r
+in the default notmuch-search-result-format and the explicit '40' that\r
+you set here.\r
+\r
+Maybe the code should be changed to deal with setting this variable - or\r
+it should be made "internal" :-)\r
+\r
+/D\r
+\r
+-- \r
+Dirk Hohndel\r
+Intel Open Source Technology Center\r