From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?S=C3=A9bastien?= Delafond Subject: Exporting org-babel to HTML fails (uses copy-seq instead of copy-sequence in ob.el) Date: Fri, 22 Jul 2011 11:33:34 +0000 (UTC) Message-ID: <20110722132959.573@usenet.piggo.com> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkDzR-0006xU-AD for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 07:33:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkDzQ-0000DG-Eh for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 07:33:57 -0400 Received: from lo.gmane.org ([80.91.229.12]:60219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkDzQ-0000D9-5t for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 07:33:56 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QkDzJ-000235-NH for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 13:33:49 +0200 Received: from 74.123.29.134 ([74.123.29.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2011 13:33:49 +0200 Received: from sdelafond by 74.123.29.134 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2011 13:33:49 +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: emacs-orgmode@gnu.org Hello, >From Debian bug #634695[0]: the babel part of org-mode uses copy-seq on line 758, where in fact, I think, it should be using copy-sequence. Or is there a valid reason for this? At least, it makes exporting org-mode documents to HTML impossible if they use babel features. That bug seems to be also present upstream (I checked commit ce2a33104b0e724b5227445cf5d5ceb240783870). The following patch, contributed by the bug submitter, seems to fix it. Cheers, --Seb --- org-mode-7.6.orig/lisp/ob.el +++ org-mode-7.6/lisp/ob.el @@ -755,7 +755,7 @@ the current subtree." lst) (norm (arg) (let ((v (if (listp (cdr arg)) - (copy-seq (cdr arg)) + (copy-sequence (cdr arg)) (cdr arg)))) (when (and v (not (and (sequencep v) (not (consp v))