emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Simon Thum <simon.thum@gmx.de>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: New exporter: minor issue
Date: Sun, 03 Mar 2013 18:01:23 +0100	[thread overview]
Message-ID: <513381E3.7050103@gmx.de> (raw)

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" ...

             reply	other threads:[~2013-03-03 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 17:01 Simon Thum [this message]
2013-03-03 18:14 ` New exporter: minor issue Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=513381E3.7050103@gmx.de \
    --to=simon.thum@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).