From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Dokos Newsgroups: gmane.emacs.orgmode,gmane.emacs.bugs Subject: Re: can't see emphasized text in org Date: Sun, 23 Aug 2009 18:30:57 -0400 Message-ID: <28056.1251066657@gamaville.dokosmarshall.org> References: <20090823183402.GB20401@dg> <4A918D71.4030809@nickbell.org> <20090823211052.GB8346@dg> Reply-To: nicholas.dokos@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251066914 21859 80.91.229.12 (23 Aug 2009 22:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 22:35:14 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Daniel Goldin , Nick Bell , emacs-orgmode@gnu.org Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Mon Aug 24 00:35:07 2009 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfLeS-0001f6-Gq for geo-emacs-orgmode@m.gmane.org; Mon, 24 Aug 2009 00:35:05 +0200 Original-Received: from localhost ([127.0.0.1]:52880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfLeR-0001Qi-0c for geo-emacs-orgmode@m.gmane.org; Sun, 23 Aug 2009 18:35:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfLe0-0001Mz-5u for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 18:34:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfLdu-0001Fy-NV for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 18:34:34 -0400 Original-Received: from [199.232.76.173] (port=50733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfLdo-0001Ab-KC; Sun, 23 Aug 2009 18:34:24 -0400 Original-Received: from vms173015pub.verizon.net ([206.46.173.15]:60358) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfLdo-00054p-7B; Sun, 23 Aug 2009 18:34:24 -0400 Original-Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KOU00DOWP7ITR76@vms173015.mailsrvcs.net>; Sun, 23 Aug 2009 17:31:00 -0500 (CDT) Original-Received: from gamaville.dokosmarshall.org (localhost [127.0.0.1]) by gamaville.dokosmarshall.org (Postfix) with ESMTP id 79F2534002; Sun, 23 Aug 2009 18:30:57 -0400 (EDT) In-reply-to: Message from Daniel Goldin of "Sun, 23 Aug 2009 14:10:52 PDT." <20090823211052.GB8346@dg> X-Mailer: MH-E 8.2; nmh 1.2; GNU Emacs 23.1.50 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-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 Xref: news.gmane.org gmane.emacs.orgmode:16805 gmane.emacs.bugs:30506 Archived-At: Daniel Goldin wrote: > On Sun, 23 Aug 2009, Nick Bell wrote: > > > Daniel Goldin wrote: > >> Non-programmer-type can't see markup like /this/ as emphasized. I > >> looked through manual and searched web but found no answer. Any > >> thoughts? > > Are you using a font which has a separate italic form? Try switching > > to a font which you know does, such as Courier New. > > > > Now wait for an expert to come along. > > > Doesn't help, I'm afraid. > I've seen this problem before and I never chased it down but when I saw Nick Bell's idea, I figured that's got to be it. It *almost* works but not quite (as Daniel found out). If you enter /italic/ in an org buffer, place your cursor in there and say M-x describe-text-properties, you get: ,---- | Text content at position 48: | | | There are text properties here: | face (italic) | font-lock-multiline t | fontified t `---- You can then M-x describe-face italic . For me, that had the :underline attribute set, and the :slant attribute unset. If you customize the face, set the :slant attribute (e.g. to italic) and unset the :underline attribute and *then* change to a font that provides an italic form, then /italic/ is indeed italicized. The problem seems to be in faces.el: ,---- | (defface italic | '((((supports :slant italic)) | :slant italic) | (((supports :underline t)) | :underline t) | (t | ;; default to italic, even it doesn't appear to be supported, | ;; because in some cases the display engine will do it's own | ;; workaround (to `dim' on ttys) | :slant italic)) | "Basic italic face." | :group 'basic-faces) `---- which apparently looked at my default font[1], found that it does not support italics but does support underlines and set the attributes accordingly. *Why* it falls back to underlining is probably a question that should be addressed to the emacs developers, but it looks like a bug to me (hence copied to the emacs bugs list - version info appended[2]) HTH, Nick [1] I have (set-default-font "-misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1") in my .emacs. I think this is what used to be called "9x15" at some point in the past, but I'm really not sure. [2] Version info: GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 on gamaville.dokosmarshall.org Org-mode version 6.29trans (release_6.29c.55.ga48f) _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: can't see emphasized text in org Date: Sun, 23 Aug 2009 18:30:57 -0400 Message-ID: <28056.1251066657@gamaville.dokosmarshall.org> References: <20090823183402.GB20401@dg> <4A918D71.4030809@nickbell.org> <20090823211052.GB8346@dg> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfLe0-0001Mz-5u for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 18:34:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfLdu-0001Fy-NV for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 18:34:34 -0400 In-reply-to: Message from Daniel Goldin of "Sun, 23 Aug 2009 14:10:52 PDT." <20090823211052.GB8346@dg> 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: Daniel Goldin , Nick Bell , emacs-orgmode@gnu.org Cc: bug-gnu-emacs@gnu.org Daniel Goldin wrote: > On Sun, 23 Aug 2009, Nick Bell wrote: > > > Daniel Goldin wrote: > >> Non-programmer-type can't see markup like /this/ as emphasized. I > >> looked through manual and searched web but found no answer. Any > >> thoughts? > > Are you using a font which has a separate italic form? Try switching > > to a font which you know does, such as Courier New. > > > > Now wait for an expert to come along. > > > Doesn't help, I'm afraid. > I've seen this problem before and I never chased it down but when I saw Nick Bell's idea, I figured that's got to be it. It *almost* works but not quite (as Daniel found out). If you enter /italic/ in an org buffer, place your cursor in there and say M-x describe-text-properties, you get: ,---- | Text content at position 48: | | | There are text properties here: | face (italic) | font-lock-multiline t | fontified t `---- You can then M-x describe-face italic . For me, that had the :underline attribute set, and the :slant attribute unset. If you customize the face, set the :slant attribute (e.g. to italic) and unset the :underline attribute and *then* change to a font that provides an italic form, then /italic/ is indeed italicized. The problem seems to be in faces.el: ,---- | (defface italic | '((((supports :slant italic)) | :slant italic) | (((supports :underline t)) | :underline t) | (t | ;; default to italic, even it doesn't appear to be supported, | ;; because in some cases the display engine will do it's own | ;; workaround (to `dim' on ttys) | :slant italic)) | "Basic italic face." | :group 'basic-faces) `---- which apparently looked at my default font[1], found that it does not support italics but does support underlines and set the attributes accordingly. *Why* it falls back to underlining is probably a question that should be addressed to the emacs developers, but it looks like a bug to me (hence copied to the emacs bugs list - version info appended[2]) HTH, Nick [1] I have (set-default-font "-misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1") in my .emacs. I think this is what used to be called "9x15" at some point in the past, but I'm really not sure. [2] Version info: GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 on gamaville.dokosmarshall.org Org-mode version 6.29trans (release_6.29c.55.ga48f)