From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: nicely managing multiple calendars in the agenda Date: Wed, 05 May 2010 14:45:30 -0400 Message-ID: <9575.1273085130@gamaville.dokosmarshall.org> References: <87zl0jd5fc.fsf@eraldo.org> <87bpcx5p0m.fsf@mundaneum.com> <17360.1272896871@gamaville.dokosmarshall.org> <87vdb4bz1l.fsf@mundaneum.com> <87hbmmpwzw.fsf@mundaneum.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9jbf-00076b-Iv for emacs-orgmode@gnu.org; Wed, 05 May 2010 14:46:03 -0400 Received: from [140.186.70.92] (port=57060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9jbd-00075y-PY for emacs-orgmode@gnu.org; Wed, 05 May 2010 14:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9jbb-00069G-0v for emacs-orgmode@gnu.org; Wed, 05 May 2010 14:46:01 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:47006) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9jba-00068w-Re for emacs-orgmode@gnu.org; Wed, 05 May 2010 14:45:58 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L1Y00H78MRU0PHV@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 05 May 2010 13:45:31 -0500 (CDT) In-reply-to: Message from =?utf-8?Q?S=C3=A9bastien_Vauban?= of "Wed, 05 May 2010 10:34:59 +0200." <87hbmmpwzw.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien_Vauban?= Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org =?utf-8?Q?S=C3=A9bastien_Vauban?= wrote: > Hi Nick, > > > Nick Dokos wrote: > >> S=C3=A9bastien Vauban org> wrote: > >> > >>> (setq org-tag-faces > >>> '(("home" . (:background "#D4EAFF" :italic t)) > >>> ("work" . (:italic t :background "#F9E816")))) > >>> > >>> Though, only the color spec above is taken into account. Tags are not in > >>> italics like for all the others: > >>> > >>> (org-tag ((t (:foreground "rgb:81/6A/7D" :background "rgb:F7/B8/DE= > " :italic t)))) > >>> > >>> Maybe a bug? > >> > >> Or maybe the font does not come in italic? AFAIK, if that's the case, th= > en > >> the italic attribute is just ignored. > > > > Nice try -- and you're definitely right asking (as this could easily be > > overlooked), but here that's not the case: my font is Consolas (under > > Ubuntu), which comes in italics. > > > > And I get _all the tags in italics_, thanks to the above specification of > > `org-tag' -- _all but 2_ tags: `home' and `work', which come in their > > upright version, independently of the argument passed in `org-tag-faces'. > > I've just noticed, in the 1000's of lines in my `*Messages*' buffer, someth= > ing > that can explain the noticed behavior: > > --8<---------------cut here---------------start------------->8--- > Invalid face attribute :italic t [54 times] > --8<---------------cut here---------------end--------------->8--- > > Though, I don't understand why that attribute is invalid in the above spec!? > > Any idea? > Seb, fonts/faces/etc are a tangled set of twisty passages, all looking different to me (or maybe they look all the same - I can't tell). That said, I can only suggest what I tried in my case. I set org-tag-faces as above, added a :home: tag to a TODO item, placed the cursor on a character in the tag and then did `C-u M-x what-cursor-position'. I got the following: ,---- | character: m (109, #o155, #x6d) | preferred charset: ascii (ASCII (ISO646 IRV)) | code point: 0x6D | syntax: w which means: word | category: .:Base, a:ASCII, l:Latin, r:Roman | buffer code: #x6D | file code: #x6D | display: by this font (glyph code) | x:-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1 (#x6D) | | Character code properties: customize what to show | name: LATIN SMALL LETTER M | general-category: Ll (Letter, Lowercase) | | There are text properties here: | face (:background "#D4EAFF" :italic t) | font-lock-fontified t | fontified t | keymap [Show] | mouse-face highlight | org-no-flyspell t `---- so the face attributes obey what org-tag-faces said, but I think the font itself cannot do what is asked: (font-face-attributes "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1") gives (:family "fixed" :height 145 :weight normal :slant normal :width normal) This applies to my setup of course, so YMMV, but it seemed likely that that's what you were running into, hence my question. You might be able to use the mechanisms described in sec. 38.12.8, "Font Selection", of the Emacs Lisp manual to accomplish what you want, but I can't help you there: I decided a long time ago not to step foot into those waters. HTH (but I doubt it), Nick