From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: org-emphasis-regexp-components and headline bolding Date: Fri, 03 Jun 2011 20:34:59 -0700 Message-ID: <87ei3a1d7g.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QShdt-0008Ed-Os for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 23:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QShds-0005T8-8U for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 23:35:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:33168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QShdr-0005Sw-Ob for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 23:35:16 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QShdp-0006g7-CE for emacs-orgmode@gnu.org; Sat, 04 Jun 2011 05:35:13 +0200 Received: from 199.36.244.11 ([199.36.244.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jun 2011 05:35:13 +0200 Received: from eric by 199.36.244.11 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jun 2011 05:35:13 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I've twiddled my org-emphasis-regexp-components variable to allow emphasis next to a wider array of characters, with the result that the first headline of one particular file is interpreted as emphasized (presumably the headline stars are read as bold emphasis markers). This means the text of the first two headlines is not exported when the file is exported (though the following text appears normally). This is the top of the file (only including the last line of the export options block): --8<---------------cut here---------------start------------->8--- #+EXPORT_EXCLUDE_TAGS: noexport * Chapter 1 ** 我是处长 :noexport: "每个人都想上天堂,但是天堂的门不像地狱之门那样一推就开,我是将地狱 之门误当天堂之门的人。”这是我从今天报纸上关于一位高官堕落的报道中看 --8<---------------cut here---------------end--------------->8--- The first headline is bold, as are the two stars of the second headline (not the text of the second headline). The bold remains until I edit the second-level headline somewhere before the start of the text: ie, delete and re-insert one of the two stars, or the space between the stars and the text. I guess that re-scans for emphasis, and the bolding goes away. My value for org-emphasis-regexp-components: (" ('\"{…—-" " …—- .,:!?;'\")}\\" " ,\"'" "." 10) And the default: (" ('\"{" "- .,:!?;'\")}\\" " ,\"'" "." 1) There seems to be an unprintable ^M character before the newline in the default value which might not come through in this email. Otherwise I think the only difference is some added unicode characters… Thanks in advance for any help! Hope this is a real bug… Eric