From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: Re: In-buffer bold face in headline levels Date: Wed, 11 Jul 2007 10:23:44 -0700 Message-ID: <46951220.6070700@gmail.com> References: <46940BF7.9030801@gmail.com> <4f7272686ac3b2239ca7d4590430b41c@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8ful-00051L-CO for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 13:23:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8fuk-000514-6n for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 13:23:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8fuj-000511-SK for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 13:23:45 -0400 Received: from sd-green-bigip-145.dreamhost.com ([208.97.132.145] helo=randymail-a2.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8fuj-0003Cx-IG for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 13:23:45 -0400 In-Reply-To: <4f7272686ac3b2239ca7d4590430b41c@science.uva.nl> 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: Carsten Dominik Cc: emacs-orgmode On 07/10/2007 11:54 PM, Carsten Dominik wrote: > OK, I am giving up on emphasis. This is really too hard for > my little brain. Basically, I don't know how to make this > work for all the requests I have gotten in the past, > including > > - allowing stacked fontification, like bold and italic > - allowing characters that are emphasis markers inside > an emphasis, like */usr/lib* > - allowing white space and newlines in the emphasis > like *this is all bold*, > > I guess one could write a complex function to do the matching, > but with a regular expression - like I am doing it now, I > don't think I can make it work. Can't say I blame you. I know I couldn't do it with a regexp. > Here is the deal: If I get at least 5 tutorials full of > screenshots by the end of the summer, I will give it > yet another shot :-) > Until then, we have to live with this issue. TODO Org-mode tutorial with screenshots C-c C-d [2007-09-02] *After you get the 5 tutorials*, here's my suggestion: Have emphasis work for the simplest case (no stacking, no enclosed markers, no white space, etc.). For anything more complicated, require LaTeX style markup (e.g., \textbf{this is all bold}), but hide the markup when the closing brace is entered (like hiding square brackets in links). Would that be more reasonable? Thanks, Dan