From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: '=' and highlight Date: Wed, 04 Jan 2012 00:15:07 +0100 Message-ID: <87obukwf7o.fsf@gnu.org> References: <4F0347D5.3060904@sergio.spb.ru> <4776.1325617624@alphaville.dokosmarshall.org> <4F0359F1.4030409@sergio.spb.ru> <9451.1325626930@alphaville.dokosmarshall.org> <4F037F4C.6080206@sergio.spb.ru> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiDYP-0002D7-UJ for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 18:14:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiDYO-0007au-Ul for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 18:14:01 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:33601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiDYO-0007aq-P6 for emacs-orgmode@gnu.org; Tue, 03 Jan 2012 18:14:00 -0500 Received: by werf1 with SMTP id f1so10811849wer.0 for ; Tue, 03 Jan 2012 15:14:00 -0800 (PST) In-Reply-To: <4F037F4C.6080206@sergio.spb.ru> (sergio's message of "Wed, 04 Jan 2012 02:21:00 +0400") 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: sergio Cc: emacs-orgmode@gnu.org Hi Sergio, sergio writes: > How org-mode decides, when to use this face? See the docstring of `org-emphasis-regexp-components': ,---- | Components used to build the regular expression for emphasis. | This is a list with five entries. Terminology: In an emphasis string | like " *strong word* ", we call the initial space PREMATCH, the final | space POSTMATCH, the stars MARKERS, "s" and "d" are BORDER characters | and "trong wor" is the body. The different components in this variable | specify what is allowed/forbidden in each part: | | pre Chars allowed as prematch. Beginning of line will be allowed too. | post Chars allowed as postmatch. End of line will be allowed too. | border The chars *forbidden* as border characters. | body-regexp A regexp like "." to match a body character. Don't use | non-shy groups here, and don't allow newline here. | newline The maximum number of newlines allowed in an emphasis exp. | | Use customize to modify this, or restart Emacs after changing it. `---- In your case, I think you want to prevent =...= to emphasize (i.e. shadow) the text when the "border" character is `{'. HTH, -- Bastien