From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: export of emphasized link Date: Tue, 01 Jun 2010 19:03:19 +0200 Message-ID: <4C053D57.2030506@alumni.ethz.ch> References: <4C025FCA.7080503@alumni.ethz.ch> <13B6AC83-0AB4-46D0-AD86-F02210B33F93@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJUsA-000074-BP for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 13:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJUs8-0001zP-LU for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 13:03:26 -0400 Received: from mail01.solnet.ch ([212.101.4.135]:54364) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJUs8-0001yr-Gu for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 13:03:24 -0400 In-Reply-To: <13B6AC83-0AB4-46D0-AD86-F02210B33F93@gmail.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: Carsten Dominik Cc: Org Mode On 10-06-01 09:44 , Carsten Dominik wrote: >> After removing org-bracket-link-regexp from org-html-expand > > What do you mean by this sentence? What exactly did you do? To understand the implementation I tried the following temporary change (the line prefix `:' will bypass the nice patch extract http://patchwork.newartisans.com/project/org-mode/list for this time I hope): ------------------------------------------------------------ :--- a/lisp/org-html.el :+++ b/lisp/org-html.el :@@ -2025,8 +2025,7 @@ that uses these same face definitions." : (defun org-html-expand (string) : "Prepare STRING for HTML export. Applies all active conversions. : If there are links in the string, don't modify these." :- (let* ((re (concat org-bracket-link-regexp "\\|" :- (org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$"))) :+ (let* ((re (org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$")) : m s l res) : (if (string-match "^[ \t]*\\+-[-+]*\\+[ \t]*$" string) : string ------------------------------------------------------------ With this trial the export to HTML of emphasized links is supported. But this should not happen as I understand the doc string of org-html-expand and org-docbook-expand: "If there are links in the string, don't modify these." Why should emphasized links not be supported for the export to HTML and DocBook (and maybe more export formats?) while the org-mode buffer display (and maybe some export formats?) supports them?