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 7C8AB4196F2 for ; Fri, 5 Nov 2010 01:17:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham 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 p2wkMdOl7OUl for ; Fri, 5 Nov 2010 01:17:03 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 297F14196F0 for ; Fri, 5 Nov 2010 01:17:03 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 6D5B219F3372; Fri, 5 Nov 2010 09:17:02 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 8l6f2NBrldxQ; Fri, 5 Nov 2010 09:17:01 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 26BBB19F3352; Fri, 5 Nov 2010 09:17:01 +0100 (CET) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 24E81FA003; Fri, 5 Nov 2010 09:17:01 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PEHTo-0004UQ-VH; Fri, 05 Nov 2010 09:17:01 +0100 From: Michal Sojka To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: Do not color non-matching authors by tag In-Reply-To: <87mxpojinb.fsf@steelpick.2x.cz> References: <1287726122-5643-1-git-send-email-sojkam1@fel.cvut.cz> <878w1942i6.fsf@ut.hh.sledj.net> <87vd4djhy2.fsf@steelpick.2x.cz> <87zktp2lma.fsf@ut.hh.sledj.net> <87mxpojinb.fsf@steelpick.2x.cz> User-Agent: Notmuch/0.4-29-g9b64b0f (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Fri, 05 Nov 2010 09:17:00 +0100 Message-ID: <87k4ksjibn.fsf@steelpick.2x.cz> 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: Fri, 05 Nov 2010 08:17:13 -0000 On Fri, 05 Nov 2010, Michal Sojka wrote: > On Thu, 04 Nov 2010, David Edmondson wrote: > > On Thu, 04 Nov 2010 15:12:53 +0100, Michal Sojka wrote: > > > > Michal, was this addressed by the patch that Carl recently merged? > > > > (Commit f99ad42da03afd638bfdfdea92d1cbdd3b510b8f in my copy of the > > > > repository.) > > > > > > Unfortunately not. In your patch, the overlay changes the color/face of the > > > whole line while my patch change the color/face of all parts of the line > > > except for non-matching authors. With my patch non-matched autors were > > > > I understand now. > > > > > This seems somewhat like a policy decision, though. If I indicate that I > > want the foreground text for a particular line to be red, should the > > formatting of non-matching authors override that? > > > > (My own approach has been to have `notmuch-search-line-faces' always > > specify a background colour whereas > > `notmuch-search-non-matching-authors' (or any of the columnar faces) > > specify a foreground colour and/or slant.) > > And now I even understand your patch. That's exactly what I wanted. > Nice. I thought that overlays change completely the face of the line, > hiding any faces "under" the overlay. Now I see, that > notmuch-search-line-faces faces are combined with what was there > before. However, it seems that chaning :background in notmuch-search-line-faces collides somewhat with hl-line-mode. If I move the point down to the line with changed background, the line is not highlited. Only if I move the point upwards, I see the line in green. -Michal