From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: font-lock fails with \to in a macro Date: Wed, 06 Apr 2016 14:46:21 +0200 Message-ID: <878u0qdhwi.fsf@nicolasgoaziou.fr> References: <874mbfnfl0.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmoi-0001mC-9l for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:44:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anmof-0006oU-3x for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:44:16 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:46187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmoe-0006oQ-U6 for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:44:13 -0400 Received: from selenimh (unknown [IPv6:2a03:a0a0:0:4301::2de]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C444AA80C0 for ; Wed, 6 Apr 2016 14:44:10 +0200 (CEST) In-Reply-To: <874mbfnfl0.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 6 Apr 2016 12:26:19 +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: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > I have the following macro to aid in presenting calculations in > solutions to coursework questions etc. for my teaching: > > #+macro: calculate src_calc[:exports code]{$1} =3D @@latex:\fbox{@@ src_e= macs-lisp{(setq var-$2 (string-to-number (calc-eval "evalv($1)")))} \to $2 = @@latex:}\\@@ > > The "\to" which org catches and converts to =E2=86=92 on export causes a = problem > with font-locking: > > Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argume= nt vectorp =E2=86=92) > > Using math mode directly, i.e. \(\to\) works just fine, at least for > LaTeX export, but I thought I'd mention this anomaly in case it bites > anybody else! FWIW, I cannot reproduce it. Regards, --=20 Nicolas Goaziou