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 88426431FAE for ; Fri, 27 Nov 2009 00:13:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 Ekmpx5sBe3kC for ; Fri, 27 Nov 2009 00:13:16 -0800 (PST) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by olra.theworths.org (Postfix) with ESMTP id 8E96B431FBC for ; Fri, 27 Nov 2009 00:13:16 -0800 (PST) Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 2726FC1EB5; Fri, 27 Nov 2009 03:13:16 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 27 Nov 2009 03:13:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=smtpout; bh=ZonpsFkW+Dq3y7Oe7FCURx6AuJI=; b=tWTCrqU9Kbifoe8YWCfuIx0HRrnCFYsVQQZpozHSF5HS3dvHaI0oRFeAngkQ9oMApe85I00F7KFwGAY7IB7mB00nyfQyV4zJGchXQnllmx+CJ8nBY/eLKX8QAAfVi71789QVTe/YpNOcou07s3WqOnifo8wywFhc2i6rA/LXyts= X-Sasl-enc: CkOcIJgB3aEXE/xu33zZE2we3WKn2APfPeGTE9ycyWf9 1259309595 Received: from thinkpad.tsdh.de (p54AF2603.dip0.t-ipconnect.de [84.175.38.3]) by mail.messagingengine.com (Postfix) with ESMTPA id F03EE39AE06; Fri, 27 Nov 2009 03:13:14 -0500 (EST) From: Tassilo Horn To: Carl Worth In-Reply-To: <87k4xdq7ys.fsf@yoom.home.cworth.org> (Carl Worth's message of "Thu, 26 Nov 2009 13:42:03 -0800") References: <87tywlji10.fsf@thinkpad.tsdh.de> <87k4xdq7ys.fsf@yoom.home.cworth.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Date: Fri, 27 Nov 2009 09:13:12 +0100 Message-ID: <87d4349yhz.fsf@thinkpad.tsdh.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH] Return unpropertized strings for filename and message-id X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Fri, 27 Nov 2009 08:13:18 -0000 Carl Worth writes: Hi Carl, >> Here's my first patch. It changes that notmuch-show-get-filename and >> notmuch-show-get-message-id return simple strings and not propertited >> strings. > > Thanks, Tassilo! > > It's great to have a contribution from you in notmuch. I've pushed > this out now. I guess it won't be the last one. There are some byte-compiler warnings with notmuch.el, that I'd like to remove. > Two things with regards to your patch: > > 1. It's most convenient (for me) to apply emailed patches by sending > directly to "git am". And "git am" just happens to want to see the > complete commit message as the first thing in the mail message, > (continuing the summary of the commit which comes from the > subject). > > So to satisfy "git am", introductory and explanatory portions of > the email, ("Hi!" and "Here's my first patch"), have to be > relegated to past the "---" divider). So an email looking like this would be correct? --8<---------------cut here---------------start------------->8--- From: Tassilo Horn To: Carl Worth Cc: notmuch@notmuchmail.org Date: Fri, 27 Nov 2009 08:54:41 +0100 Subject: [PATCH] Remove preprocessor code Don't define RUNNING_ON_VALGRIND, so that notmuch is probably broken. --- debugger.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/debugger.c b/debugger.c index e8b9378..f32cdc9 100644 --- a/debugger.c +++ b/debugger.c @@ -24,8 +24,6 @@ #if HAVE_VALGRIND #include -#else -#define RUNNING_ON_VALGRIND 0 #endif notmuch_bool_t -- 1.6.5.3 Hi Carl, this patch is completely wrong. Please don't apply it. :-) And thanks again for the great work. Bye, Tassilo --8<---------------cut here---------------end--------------->8--- > 2. Maybe I'll undermine my point above, but the commit here really > *does* need a commit message beyond the first line. > > I've described this before as the one-line summary giving the > "what" and the rest of the commit message giving the "why". Makes sense. > And this is a perfect case of that. I can see exactly what the > patch does, and it makes sense. But I tried to write the rest of > the commit message and found I couldn't. In what cases did the > presence of text properties cause a problem? I don't know, and > that's what the commit message should have said. Normally it causes almost never any problems, but IMO it's just bad style. When a user wants to get the Message-id, he most probably only wants to do some calculations on that (e.g. jump to that message in Gnus or rmail), or insert it somewhere else. In the first case, text properties aren't needed, and in the second case, it's most unlikely that he wants to have exactly the same properties there, especially if there are properties different from faces. > I'd said before that I would bounce patches with only a one-line > summary. I guess I'm still too soft, but do expect me to be more > strict on this in the future. :-) Yes, that all makes perfect sense, and because there are so many people and patches for notmuch (which is great!), there have to be some strict guidelines. But instead of mailing each first-time committer a mail, you might consider putting those guidelines on the notmuch homepage. :-) Bye, Tassilo