From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link. Date: Wed, 13 Apr 2011 00:28:34 +0530 Message-ID: <81lizfcn51.fsf@gmail.com> References: <81fwpnfzkd.fsf@gmail.com> <1302614330-23496-1-git-send-email-manuel.giraud@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9ina-000356-MW for emacs-orgmode@gnu.org; Tue, 12 Apr 2011 14:58:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9inZ-0008R9-0k for emacs-orgmode@gnu.org; Tue, 12 Apr 2011 14:58:50 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:64879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9inY-0008QD-Tx for emacs-orgmode@gnu.org; Tue, 12 Apr 2011 14:58:48 -0400 Received: by mail-iy0-f169.google.com with SMTP id 42so1701239iyh.0 for ; Tue, 12 Apr 2011 11:58:48 -0700 (PDT) In-Reply-To: <1302614330-23496-1-git-send-email-manuel.giraud@univ-nantes.fr> (Manuel Giraud's message of "Tue, 12 Apr 2011 15:18:50 +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: Manuel Giraud Cc: emacs-orgmode@gnu.org Quick feedback. Applied the patch to my workarea. My example (which was stolen from Orgmode manual) gets exported just fine. Jambunathan K. Manuel Giraud writes: > --- > lisp/org-html.el | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lisp/org-html.el b/lisp/org-html.el > index 58fbc05..5d53478 100644 > --- a/lisp/org-html.el > +++ b/lisp/org-html.el > @@ -826,7 +826,8 @@ MAY-INLINE-P allows inlining it as an image." > (not type) > (string= type "http") > (string= type "https") > - (string= type "file")) > + (string= type "file") > + (string= type "coderef")) > (if fragment > (setq thefile (concat thefile "#" fragment)))) > > @@ -836,7 +837,8 @@ MAY-INLINE-P allows inlining it as an image." > (setq thefile > (let > ((str (org-export-html-format-href thefile))) > - (if (and type (not (string= "file" type))) > + (if (and type (not (or (string= "file" type) > + (string= "coderef" type)))) > (concat type ":" str) > str))) --