From mboxrd@z Thu Jan 1 00:00:00 1970 From: Friedrich Delgado Friedrichs Subject: org-infojs-handle-options fails when :infojs-opt is not in exp-list Date: Tue, 23 Dec 2008 11:47:36 +0100 Message-ID: <20081223104736.GA25075@taupan.ath.cx> Reply-To: friedel@nomaden.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LF4nf-0005oE-BJ for emacs-orgmode@gnu.org; Tue, 23 Dec 2008 05:47:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LF4ne-0005n2-GK for emacs-orgmode@gnu.org; Tue, 23 Dec 2008 05:47:42 -0500 Received: from [199.232.76.173] (port=34828 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LF4ne-0005mu-DM for emacs-orgmode@gnu.org; Tue, 23 Dec 2008 05:47:42 -0500 Received: from dudelab.org ([212.12.33.202]:18196 helo=mail.dudelab.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LF4nd-0003Il-Vp for emacs-orgmode@gnu.org; Tue, 23 Dec 2008 05:47:42 -0500 Received: from abrasax.taupan.ath.cx (p5B10C798.dip.t-dialin.net [91.16.199.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (verified OK)) by mail.dudelab.org (Postfix) with ESMTP id DA407228148 for ; Tue, 23 Dec 2008 11:46:19 +0100 (CET) Content-Disposition: inline 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: Emacs-orgmode mailing list Hi. I got org-infojs-handle-options: Wrong type argument: stringp, nil the first time I tried to do a html export with java script turned on. I didn't change any options in 'Org Infojs Options' yet, so I guess that's why (plist-get exp-plist :infojs-opt) returns nil and string-match gives an error. Workaround: set an option Fix: Uhm, probably (or (not (plist-get exp-plist :infojs-opt)) (not (plist-get exp-plist :infojs-opt)) (string-match "\\" (plist-get exp-plist :infojs-opt))) Or something like that. --=20 Friedrich Delgado Friedrichs