From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-html, top-row-p Date: Mon, 14 Dec 2015 23:49:09 +0100 Message-ID: <87lh8wzlwa.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8bto-000369-Kv for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 17:47:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8btn-00009g-Pe for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 17:47:20 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8btn-00009R-Iv for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 17:47:19 -0500 In-Reply-To: (Fabrice Popineau's message of "Sun, 13 Dec 2015 10:31:00 +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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > So the problem is due to lexical binding (I am using emacs 25 devel branch). > The following variables can't be dynamically bound anymore in ox-html: > row-number, rowgroup-number, start-rowgroup-p, end-rowgroup-p, > top-row-p, bottom-row-p > . > There are 2 options : > - declare them with defvar > - pass them to eval as an environment. > Here is a patch for the second option, but I wonder if the first one > wouldn't be better. Another option would be to remove that ugly `eval' hack altogether, and instead use a function returning a string, called with 6 arguments (or with 3 arguments: row-number, rowgroup-number, and list of symbols among `top', `bottom', `start' and `end'). WDYT? -- Nicolas Goaziou