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 E4B49429E28 for ; Thu, 26 May 2011 14:42:00 -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 7jZhtLEe19Dk for ; Thu, 26 May 2011 14:42:00 -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 4F3E5431FB6 for ; Thu, 26 May 2011 14:42:00 -0700 (PDT) Received: by fxm8 with SMTP id 8so1054449fxm.26 for ; Thu, 26 May 2011 14:41:59 -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=nBGlmFiR9gyPCmEz2mKccOtDB/6Hp/XjIn5cycYy72I=; b=CKHgI/gw1jaUmA5VkUlGEbPbFvzxPEVZIUDbIDA5/GePZBO7Xaml+o0DDw+stTc3eK ulH5zr57y+rd5otkt5p8tUaGIAEmSmWNq7QafNT0SiTxxzXgw7GRfpGfrZhGxbQhvLXq muI2s4F6AfhJbWXbVGiGFC8LTCp3D3GpLy9jw= 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=iPEjwdbJM0f6XpD00QznRReh3EL0DTGoheNuAU2N0s6NeLKM0rWHDMZEXHhOOgakhJ Z+BAyptdx8i/n4nixSr9pFOVf8fQqqkLfZ1PPvtIsHACiQ2MqPzgPUhw/g7Fhb0/NJO6 BqnausccwdOLG7xeXBMiae/ATShQV5VQEA0L0= Received: by 10.223.64.66 with SMTP id d2mr1452839fai.116.1306446119066; Thu, 26 May 2011 14:41:59 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id g8sm447509fai.44.2011.05.26.14.41.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2011 14:41:58 -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: <87k4ddcfnx.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> <87d3j5pxk5.fsf@gmail.com> <87k4ddcfnx.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: Fri, 27 May 2011 01:42:22 +0400 Message-ID: <877h9dp29t.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 21:42:01 -0000 On Thu, 26 May 2011 14:31:30 -0700, Carl Worth wrote: > On Thu, 26 May 2011 14:26:34 +0400, Dmitry Kurochkin wrote: > > 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. > > I'm not sure what the best approach would be. I'd like to be a good > "emacs citizen" but I don't know what the best way to do that is here. > Agreed on being a good "emacs citizen". > If we can predict what the first emacs release will be that contains the > fix, then we could restrict our kludge here to older, unfixed > emacs. That would help avoid some problems with "bad citizenship here". > > I'm willing to take whatever you this is best here. > I have just send two more patches to this thread. One with new tests. Another with a workaround for the bug. The workaround should not break anything since it affects only notmuch-show mode. Regards, Dmitry > -Carl > > -- > carl.d.worth@intel.com Non-text part: application/pgp-signature