From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vijayender Subject: Publishing long jpg urls fails with "org-html-handle-links: Wrong type argument: stringp, nil" Date: Thu, 01 Aug 2013 21:20:45 +0530 Message-ID: <51FA83D5.4020102@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------050406080300000307080500" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V52N5-0006nb-DU for emacs-orgmode@gnu.org; Thu, 01 Aug 2013 19:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4v9A-0001M4-VH for emacs-orgmode@gnu.org; Thu, 01 Aug 2013 11:50:46 -0400 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]:36858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4v9A-0001Lh-EB for emacs-orgmode@gnu.org; Thu, 01 Aug 2013 11:50:36 -0400 Received: by mail-pd0-f178.google.com with SMTP id w10so2150891pde.23 for ; Thu, 01 Aug 2013 08:50:35 -0700 (PDT) Received: from [10.0.0.22] ([122.178.248.232]) by mx.google.com with ESMTPSA id ss8sm4963241pab.6.2013.08.01.08.50.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Aug 2013 08:50:33 -0700 (PDT) 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------050406080300000307080500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi All After the commit of=20 http://orgmode.org/w/?p=3Dorg-mode.git;a=3Dcommitdiff;h=3D55f4f921835bbf5= d7b8e9dd82fe8dcfef2fac4e2 Looks like long urls for eg, the following doc are failing to html=20 export. It happens without any customization on emacs-24.3-3 * queue to stack - http://img22.fansshare.com/celebrity/photos/934_liv-tyler-arwen-lord= -of-the-rings-2103158475.jpg Are failing to export to html. The problem disappears on enclosing url=20 with [[]] or for a jpg url which is shorter for eg:=20 http://img22.fansshare.com/photos/livtyler/jtvr-armageddon-1577984889.jpg= The debug stack trace is: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("width=3D" nil) org-html-handle-links(#(" - [[http://img22.fansshare.com/celebrity/ph= otos/934_liv-tyler-arwen-lord-of-the-rings-2103158475.jpg][http://img22.f= ansshare.com/celebrity/photos/934\\_liv-tyler-arwen-lord-of-the-rings-210= 3158475.jpg]]" 0 3 (list-context nil list-prevs ((18)) list-struct ((18 2= "- " nil nil nil 119)) list-item 18 fontified t) 3 4 (face org-link font= ified t list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs= ((18)) list-context nil) 4 6 (face org-link) 6 10 (face org-link fontifi= ed t list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((= 18)) list-context nil org-protected t org-no-description nil) 10 11 (face= org-link org-protected t org-no-description nil) 11 100 (face org-link f= ontified t list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-pr= evs ((18)) list-context nil org-protected t org-no-description nil) 100 1= 01 (face org-link fontified t rear-nonsticky (mouse-face highlight keymap= invisible intangible help-echo org-linked-text htmlize-link) list-item 1= 8 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-contex= t nil org-protected t org-no-description nil) 101 102 (face org-link font= ified t rear-nonsticky (mouse-face highlight keymap invisible intangible = help-echo org-linked-text htmlize-link) list-item 18 list-struct ((18 2 "= - " nil nil nil 119)) list-prevs ((18)) list-context nil org-protected t = org-no-description nil) 102 103 (face org-link) 103 104 (face org-link) 1= 04 107 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil ni= l nil 119)) list-item 18 fontified t face org-link) 107 108 (list-context= nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-ite= m 18 fontified t face org-link) 108 109 (face org-link) 109 150 (list-con= text nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list= -item 18 fontified t face org-link) 150 151 (list-context nil list-prevs = ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t= face org-link) 151 152 (face org-link) 152 153 (list-context nil list-pr= evs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontifi= ed t face org-link) 153 199 (list-context nil list-prevs ((18)) list-stru= ct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) = 199 200 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil n= il nil 119)) list-item 18 rear-nonsticky (mouse-face highlight keymap inv= isible intangible help-echo org-linked-text htmlize-link) fontified t fac= e org-link) 200 201 (list-context nil list-prevs ((18)) list-struct ((18 = 2 "- " nil nil nil 119)) list-item 18 rear-nonsticky (mouse-face highligh= t keymap invisible intangible help-echo org-linked-text htmlize-link) fon= tified t face org-link) 201 202 (face org-link) 202 203 (face org-link)) = (:latex-image-options nil :exclude-tags ("noexport") :select-tags ("expor= t") :publishing-directory nil :timestamp nil :expand-quoted-html t :html-= table-tag "" :xml-declaration (("html" . "") ("php" . "\"; ?>")) :html-postamble aut= o :html-preamble t :html-extension "html" :inline-images maybe :convert-o= rg-links t :agenda-style nil :style-extra "" :style "" :style-include-scr= ipts t :style-include-default t :table-auto-headline t :tables t :time-st= amp-file t :creator-info t :email-info nil :author-info t :email "vkarnat= y@localhost" ...)) byte-code("=08\203 .............. ) org-export-as-html(nil) call-interactively(org-export-as-html) org-export(nil) call-interactively(org-export nil nil) --=20 Regards Vijayender=09 --------------050406080300000307080500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi All

After the commit of http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=55f4f921835bbf5d7b8e9dd82fe8dcfef2fac4e2
Looks like long urls for eg, the following doc are failing to html export. It happens without any customization on emacs-24.3-3
* queue to stack
  - http://img22.fansshare.com/celebrity/photos/934_liv-tyler-arwen-lord-of-the-rings-2103158475.jpg

Are failing to export to html. The problem disappears on enclosing url with [[]] or for a jpg url which is shorter for eg: http://img22.fansshare.com/photos/livtyler/jtvr-armageddon-1577984889.jpg

The debug stack trace is:
 
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("width=" nil)
  org-html-handle-links(#("  - [[http://img22.fansshare.com/celebrity/photos/934_liv-tyler-arwen-lord-of-the-rings-2103158475.jpg][http://img22.fansshare.com/celebrity/photos/934\\_liv-tyler-arwen-lord-of-the-rings-2103158475.jpg]]" 0 3 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t) 3 4 (face org-link fontified t list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-context nil) 4 6 (face org-link) 6 10 (face org-link fontified t l
 ist-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-context nil org-protected t org-no-description nil) 10 11 (face org-link org-protected t org-no-description nil) 11 100 (f
ace org-link fontified t list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-context nil org-protected t org-no-description nil) 100 101 (face org-link fontified t rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-context nil org-protected t org-no-description nil) 101 102 (face org-link fontified t rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) list-item 18 list-struct ((18 2 "- " nil nil nil 119)) list-prevs ((18)) list-context nil org-protected t org-no-description nil) 102 103 (face org-link) 103 104 (face org-link) 104 107 (list-context nil list-prevs ((18)) list-struct (
 (18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 107 108 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 108 
109 (face org-link) 109 150 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 150 151 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 151 152 (face org-link) 152 153 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 153 199 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 fontified t face org-link) 199 200 (list-context nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) fontified t face org-link) 200 201 (list-context
  nil list-prevs ((18)) list-struct ((18 2 "- " nil nil nil 119)) list-item 18 rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) fontified t face
 org-link) 201 202 (face org-link) 202 203 (face org-link)) (:latex-image-options nil :exclude-tags ("noexport") :select-tags ("export") :publishing-directory nil :timestamp nil :expand-quoted-html t :html-table-tag "<table border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" :xml-declaration (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>")) :html-postamble auto :html-preamble t :html-extension "html" :inline-images maybe :convert-org-links t :agenda-style nil :style-extra "" :style "" :style-include-scripts t :style-include-default t :table-auto-headline t :tables t :time-stamp-file t :creator-info t :email-info nil :author-info t :email "vkarnaty@lo
 calhost" ...))
  byte-code("\203 .............. )
  org-export-as-html(nil)
  call-interactively(org-export-as-html)
  org-export(nil)
  call-interactively(org-export nil nil)

-- 
Regards
Vijayender	
--------------050406080300000307080500--