From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug in org-latex.el Date: Mon, 31 Aug 2009 21:22:02 +0200 Message-ID: <91E71F64-0454-4AF0-949E-8B0D1AEF7E4E@gmail.com> References: <20090831142220.5142942b@johnrakestraw.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiCU7-00061A-3h for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 15:24:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiCU2-0005y8-Dn for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 15:24:10 -0400 Received: from [199.232.76.173] (port=51885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiCU2-0005y3-8H for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 15:24:06 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:58525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiCU1-0005Fr-Ns for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 15:24:06 -0400 Received: by ewy7 with SMTP id 7so4197397ewy.31 for ; Mon, 31 Aug 2009 12:24:05 -0700 (PDT) In-Reply-To: <20090831142220.5142942b@johnrakestraw.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: John Rakestraw Cc: org-mode Mailinglist Ooops, I messed up, yes. Fixed now, thanks. You were close, but not quite right with your patch. - Carsten On Aug 31, 2009, at 8:22 PM, John Rakestraw wrote: > Hi, List -- > > I'm reluctant to post this to the list, because I know next to nothing > about lisp. But here goes. > > I'm writing in org and exporting to pdf via C-C C-E d. The exporter > was > stumbling over a URL in the text, with the error message indicating > that "org-export-latex-protect-special" is void. I made two small > changes in org-export.el; now the export works and the URL is indeed > clickable in the pdf. See the patch below. > > Of course, I could well have broken something.... > > Org-mode version 6.29trans (release_6.29c.110.gca19.dirty) > GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu > > --John > > *** > --- org-latex.el 2009-08-31 11:58:39.576924147 -0400 > +++ org-latex.el_new 2009-08-31 12:00:12.642986362 -0400 > @@ -1572,7 +1572,7 @@ > (insert (format "\\hyperref[%s]{%s}" > (org-remove-initial-hash > (org-solidify-link-text raw-path)) > - (org-export-latex-protect-special > desc)))) > + (org-export-latex-protect-string desc)))) > (path > (when (org-at-table-p) > ;; There is a strange problem when we have a link in a > table, @@ -1581,7 +1581,7 @@ > (setq path (org-export-latex-protect-amp path) > desc (org-export-latex-protect-amp desc))) > (insert (format "\\href{%s}{%s}" path > - (org-export-latex-protect-special > desc)))) > + (org-export-latex-protect-string desc)))) > (t (insert "\\texttt{" desc "}"))))))) > > (defun org-export-latex-protect-amp (s) > *** > > -- > John Rakestraw > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode