From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: Re: Wrong type argument: characterp, 134217782 (??) Date: Sun, 24 Jan 2016 23:14:57 +0100 (CET) Message-ID: <92068899.3376981453673697293.JavaMail.httpd@webmail-19.iol.local> Reply-To: "vendo.libri@libero.it" 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]:42372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNSw2-0004B1-GV for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 17:15:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNSvz-0006K8-8T for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 17:15:02 -0500 Received: from smtp-31.italiaonline.it ([212.48.25.159]:47704 helo=libero.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNSvz-0006Jt-1h for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 17:14:59 -0500 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 Ok, so if I want to use this character '=E2=80=A2' (a bullet mark) to trigg= er math=20 expression, what should I write in my .emacs file regarding the `cdlatex-ma= th- symbol-prefix' variable? (Please help me out, I know nothing about how to w= rite=20 elisp). Since you mention this might be a bug with CDLaTeX, I'd like to add that=20 pressing TAB after '-' (dash) in an itemize environment doesn't put '\item'= . I=20 believe it's an empty command. P. >----Messaggio originale---- >Da: Charles C. Berry >Data: 24-gen-2016 5.57 >A: "Eric S Fraga" >Cc: "vendo.libri@libero.it", >Ogg: Re: Wrong type argument: characterp, 134217782 (??) > >On Sat, 23 Jan 2016, Charles C. Berry wrote: > >> On Sat, 23 Jan 2016, Eric S Fraga wrote: >> >>> On Saturday, 23 Jan 2016 at 14:36, vendo.libri@libero.it wrote: >>>=20 >>> [...] >>>=20 >>>> Then I discovered that the backquote symbol was not >>>> recognized. Everytime I press it, I get the 'Wrong type argument: >>>> characterp, 134217782' message in the mini-buffer. >>>=20 >>> Maybe try >>> >>> M-x toggle-debug-on-error >>>=20 >>> and see where that error is arising to see if that gives us a hint as t= o >>> what may be wrong. I am not sure if the cdlatex code you downloaded ha= s >>> been updated for later versions of emacs... >> >> >> Funny, I get `apply: Wrong type argument: characterp, 134217785' >> >> (not `134217782'), which is what M-9 is recognized as: >> >> #+BEGIN_SRC emacs-lisp >> (read-char) ; type C-c C-c y M-9 *here* >> #+END_SRC >> >> #+RESULTS: >> : 134217785 >> >> on my MacBook and that makes some sense as cdlatex.el uses `(read-char)'= =20 once=20 >> it is triggered by a back tic. And I guess that `read-char' is immune to= =20 >> keymapping for good reason. >> >> For the record, this happens with >> >> #+BEGIN_SRC elisp >> (define-key key-translation-map (kbd "M-9") (kbd "`")) >> #+END_SRC >> >> >> set in org-cdlatex-mode when the first back tic (or M-9) is followed by = a M- 9=20 >> and it also happens for other key events that do not map to characters= =20 like=20 >> `C-S-s' after the back tic. >> >> So the easiest fix is *don't do that*. >> >> I suppose this counts as a bug in cdlatex, but it seems easy enough to= =20 work=20 >> around. > >Just to be clear on what such a workaround would amount to: > >With M-9 defined as above, customize `cdlatex-math-symbol-prefix' to any= =20 >of the unused symbols. > >Suppose it is ':'. Then in a buffer in which org-cdlatex-mode is=20 >operative, > >M-9 : : : : ... > >cycles thru the different levels until the user selects another=20 >letter/symbol in the menu. > >HTH, > >Chuck >