unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Nazarewicz <mpn@google.com>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
	notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: notmuch-search: fix faces
Date: Tue, 28 Aug 2012 01:11:05 +0200	[thread overview]
Message-ID: <xa1t3938ue0m.fsf@mina86.com> (raw)
In-Reply-To: <87ipc4jcfv.fsf@servo.finestructure.net>

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

> On Thu, Aug 23 2012, Michal Nazarewicz <mpn@google.com> wrote:
>> For some reason the faces do not get applied when 'face property is
>> used, but they work correctly with 'font-lock-face property.  This
>> commit changes notmuch-search to use the latter.

Jameson Graef Rollins <jrollins@finestructure.net> writes:
> Hi, Michal.  Can you say a bit more about what's motivating this?  This
> feature seems to work fine for me, so I would like to understand what's
> not working for you.  I'm certainly no expert on emacs font handling,
> though, so maybe this is the proper thing to do.  Thanks.

I'm not an expert either, but with this patch applied I see colours,
without this patch, I don't see colours, ie. everything is rendered
using the default face.

I'm also not entirely sure if that's the correct way of doing things
since 'face seems to be working in other modes (most notably
notmuch-show).  By posting, I'm also hoping that someone more
experienced will maybe take a look to see what's going on here... ;)

For some more info, in notmuch-show mode, I get-text-property of nil for
both 'face and 'font-lock-face, but in message-mode or in *scratch*
buffer I'm getting nil for 'font-lock-face but non-nil for 'face.  With
the patch, I'm getting the same non-nil for both 'face and
'font-lock-face; without the patch, I'm getting nil for both.

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--

[-- Attachment #2.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2.2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2012-08-27 23:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 12:59 [PATCH] emacs: notmuch-search: fix faces Michal Nazarewicz
2012-08-27 20:40 ` Jameson Graef Rollins
2012-08-27 23:11   ` Michal Nazarewicz [this message]
2012-08-28  0:22     ` Austin Clements
2012-08-28  0:51       ` Michal Nazarewicz
2012-08-28  2:19         ` Austin Clements
2012-08-28 12:58           ` Michal Nazarewicz
2012-08-30  8:18             ` Tomi Ollila
2012-09-03 12:18               ` Michal Nazarewicz
2012-09-05 23:43 ` Michal Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xa1t3938ue0m.fsf@mina86.com \
    --to=mpn@google.com \
    --cc=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).