From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: New exporter: minor issue Date: Sun, 03 Mar 2013 18:01:23 +0100 Message-ID: <513381E3.7050103@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCIG-0000vF-Bs for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 12:01:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCCIF-00073k-9F for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 12:01:48 -0500 Received: from mout.gmx.net ([212.227.17.22]:55987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCIF-00072y-0f for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 12:01:47 -0500 Received: from mailout-de.gmx.net ([10.1.76.12]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LtC7R-1UvXlr40bL-012mOB for ; Sun, 03 Mar 2013 18:01:45 +0100 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: Nicolas Goaziou Cc: emacs-orgmode Hi Nicolas, I have scripted an ical export that invokes: org-icalendar-combine-agenda-files but the thing fails on my server and home boxes. I investigated and found that a misguided babel block I added in a hurry and forgot about was causing trouble: #+BEGIN_SRC xml #+END_SRC It seems this was the culprit, so I'm reporting this so maybe the failure can be made more graceful. One thing I noted that while I was informed of the temp .ics files I had no idea which file it was failing on - I assumed it would be when combining. Anyway, ascii export had the same trouble on this file so it's generic, and may actually be a bug, or that's what it looks to me. The failure is: Debugger entered--Lisp error: (wrong-number-of-arguments max 0) max() apply(max nil) (+ (apply (quote max) (mapcar (quote length) code-lines)) (if (not num-start) 0 (length (format num-fmt num-start)))) (let* ((code-info (org-export-unravel-code element)) (code (car code-info)) (code-lines (org-split-string code "\n")) (refs (and (org-element-property :retain-labels element) (cdr code-info))) (num-start (case (org-element-property :number-lines element) (continued (org-export-get-loc element info)) (new 0))) (num-fmt (and num-start (format "%%%ds " (length (number-to-string (+ ... num-start)))))) (max-width (+ (apply (quote max) (mapcar (quote length) code-lines)) (if (not num-start) 0 (length (format num-fmt num-start)))))) (org-export-format-code code (lambda (loc line-num ref) (let ((number-str (and num-fmt (format num-fmt line-num)))) (concat number-str loc (and ref (concat (make-string ... 32) (format "(%s)" ref)))))) num-start refs)) org-export-format-code-default((src-block (:language "xml" ...