From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: font-lock fails with \to in a macro Date: Wed, 6 Apr 2016 12:26:19 +0100 Message-ID: <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]:36244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anlbW-0000tC-5m for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 07:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anlbS-0004TR-U4 for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 07:26:34 -0400 Received: from mail-db5eur01on0137.outbound.protection.outlook.com ([104.47.2.137]:14047 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anlbS-0004TH-KT for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 07:26:30 -0400 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, 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_ema= cs-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 pr= oblem with font-locking: Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument= 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! thanks, eric --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33