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 DE9C6431FB6 for ; Thu, 26 May 2011 03:26:13 -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 LzXnWO8-SdRy for ; Thu, 26 May 2011 03:26:13 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B5B00431FD0 for ; Thu, 26 May 2011 03:26:12 -0700 (PDT) Received: by fxm8 with SMTP id 8so617414fxm.26 for ; Thu, 26 May 2011 03:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=Y4Cms9TQr1yvlm2hJVfU4gVPDcKeeWLAujCOYE6x/EI=; b=CGVN9Vj1N8WPDtOgjLFU9qqeeYCytW+XJ0jksknW5aetlHsYW5NlMBMsV0U/LWRrNf tGvt0RqSmEuGu/K3F1Cg9a3BOgFw0aZC1zS0cnCbgZIkOYEFRqyJyNp4OE8UvgIue15x hY3gjor0ppVKdcB0I7lC5rmVhh7nmMJrCRZQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; b=lfz/SFlX250ZoxVRcH15zq3P5ffOcFnu1WcoaAAoejjxISnASYcNhzpp4Umpe7ni/M Diz5FujeBamV9a+x/VS290G7GG6wGvUVNKdpxOaUsAzyIH4LKCMHg7WhnQhbtbrlak3h 7Qyjo6CsXVdLfdtnPzO2/Qu1NnIdj4HjqiuGg= Received: by 10.223.158.72 with SMTP id e8mr746763fax.39.1306405571357; Thu, 26 May 2011 03:26:11 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id z21sm236584fan.40.2011.05.26.03.26.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2011 03:26:09 -0700 (PDT) From: Dmitry Kurochkin To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH 3/5] Fix hiding a message while some citations are shown in notmuch-show view. In-Reply-To: <87ipsy9sue.fsf@yoom.home.cworth.org> References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com> <1306361416-5019-4-git-send-email-dmitry.kurochkin@gmail.com> <87oc2qa07g.fsf@yoom.home.cworth.org> <87k4depfyj.fsf@gmail.com> <87lixu9z5b.fsf@yoom.home.cworth.org> <87hb8ipeb0.fsf@gmail.com> <87ipsy9sue.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5-216-g0104e23 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Thu, 26 May 2011 14:26:34 +0400 Message-ID: <87d3j5pxk5.fsf@gmail.com> 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: Thu, 26 May 2011 10:26:14 -0000 On Wed, 25 May 2011 18:02:49 -0700, Carl Worth wrote: > On Thu, 26 May 2011 03:10:11 +0400, Dmitry Kurochkin wrote: > > On Wed, 25 May 2011 15:46:40 -0700, Carl Worth wrote: > > Well, emacs trunk is not broken :) The bug is in lisp code, so you can > > fix it in .emacs by redefining `isearch-range-invisible' function. I do > > that now. > > Oh, in that case we can fix this is notmuch emacs lisp by just defining > and using a fixed function. Is the broken function something we're > calling directly? Or is it being called indirectly? (being called by > other emacs lisp code that we are calling)? > It is called indirectly. What is the best way to fix it? I imagine that we can replace `isearch-range-invisible' function with another one, which would call the fixed function if some special variable is set, or if we are searching in a notmuch-show view. Otherwise it would call the original function. > If we can incorporate the fix, that would be great. > > > Please consider pushing other patches from the series. They do not fix > > any bug, but do simplify the code. The last patch uses list for > > invisible overlay property as well. But it does not break isearch > > because we do not search in hidden messages. > > Hmmm... we should probably do that. I'd like isearch in notmuch to > search anything that is hidden. > That is easy to fix. I can do that once we are done with this stuff. > > BTW would be nice to have a set of known-to-fail tests, i.e. bugs that > > are not fixed yet. If we had it, the above test could be implemented > > and committed before we have the fix pushed. > > We do! Use test_expect_equal_failure (yes, the name is horrible!) > instead of test_expect_equal and you should get what you want. > I should look at it, thanks. Regards, Dmitry > -Carl > > -- > carl.d.worth@intel.com