From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: Wrong type argument: characterp, 134217782 (??) Date: Sat, 23 Jan 2016 14:36:31 +0100 (CET) Message-ID: <1668140346.3197331453556191611.JavaMail.httpd@webmail-19.iol.local> Reply-To: "vendo.libri@libero.it" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_366671_2124894532.1453556191610" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMyMn-00010R-6q for emacs-orgmode@gnu.org; Sat, 23 Jan 2016 08:36:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMyMj-0001hs-VX for emacs-orgmode@gnu.org; Sat, 23 Jan 2016 08:36:37 -0500 Received: from smtp-35.italiaonline.it ([212.48.25.163]:54666 helo=libero.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMyMj-0001hg-Kr for emacs-orgmode@gnu.org; Sat, 23 Jan 2016 08:36:33 -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 ------=_Part_366671_2124894532.1453556191610 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit First of all, I really like using Org-mode! A couple of days ago I discovered I could rapidly insert occasional math expressions in org files with CDLaTeX so I tried to activate it with 'M-x org-cdlatex-mode' but Org mode couldn't find cdlatex.el as it wasn't present in the emacs' folders. I downloaded cdlatex.el version 4.7 (2014) from Carsten Dominik's gitHub repo as suggested by Rasmus in this mailing-list. I found all the load paths with 'C-h v RET load-path', picked one, placed cdlatex.el in it and proceeded to activate CDLaTeX in an org file, to try it out. Initially everything seemed to work fine, for example 'C-c {' yielded a math environment of my choice. 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. This happens only if I'm in CDLaTeX mode, if I turn it off, backquote gives no error and get printed on screen. I soon realized that the majority of commands in CDLaTeX are triggered by this fundamental key, without it, CDLaTeX is pretty much useless! I posted my problem on emacs.stackexchange.com but I've received mixed suggestions and ended up more confused than before. If I type 'C-h k' and press the backquote key, I learn this (see everything enclosed within
 tags):
` (translated from ) runs the command cdlatex-math-symbol,which is an interactive Lisp function in `cdlatex.el'.
It is bound to `,    .
(cdlatex-math-symbol)
Read a char from keyboard and insert corresponding math char.The combinations are defined in `cdlatex-math-symbol-alist'.  If not in a LaTeX math environment, you also get a pair of dollars.
I have the tilde and backquote associated to the same key on my keyboard, it's the key right below the 'Esc' key, in the upper left corner. I also have these lines in .emacs file:
;;; a key for tilde symbol(define-key key-translation-map (kbd "M-2") (kbd "~"));;; a key for backtick symbol(define-key key-translation-map (kbd "M-6") "")(define-key key-translation-map (kbd "M-9") (kbd "`"))
Somebody pointed out that I should change the key associated with backquote but I'd really like to keep it in that position because it's efficient when I type. I really don't know what's the problem here and how to fix it. Can someone please explain it to me please and possibly help me fix it? I'm using Windows 7, emacs 24.4, Org 8.2, cdlatex 4.7 (2014), AUCTEX 11.88. ------=_Part_366671_2124894532.1453556191610 Content-Type: text/html;charset="UTF-8" Content-Transfer-Encoding: quoted-printable
First of all, I really like using Org-mode!

<= /div>
A couple of days ago I discovered I could rapidly insert occasion= al math expressions in org files with CDLaTeX so I tried to activate it wit= h 'M-x org-cdlatex-mode' but Org mode couldn't find cdlatex.el as it wasn't= present in the emacs' folders. I downloaded cdlatex.el version 4.7 (2014) = from Carsten Dominik's gitHub repo as suggested by Rasmus in this mailing-l= ist. I found all the load paths with 'C-h v RET load-path', picked one, pla= ced cdlatex.el in it and proceeded to activate CDLaTeX in an org file, to t= ry it out.

Initially everything seemed to work fin= e, for example 'C-c {' yielded a math environment of my choice. Then I disc= overed that the backquote symbol was not recognized. Everytime I press it, = I get the 'Wrong type argument: characterp, 134217782' message in the mini-= buffer. This happens only if I'm in CDLaTeX mode, if I turn it off, backquo= te gives no error and get printed on screen.

I soo= n realized that the majority of commands in CDLaTeX are triggered by this f= undamental key, without it, CDLaTeX is pretty much useless! I posted my pro= blem on emacs.stackexchange.com but I've received mixed suggestions and end= ed up more confused than before. If I type 'C-h k' and press the backquote = key, I learn this (see everything enclosed within <pre> tags):
<= div>
<pre>
` (translated from <M-kp-9>)= runs the command cdlatex-math-symbol,
which is an interactive Li= sp function in `cdlatex.el'.

It is bound to `, <= ;menu-bar> <Org> <LaTeX> <Insert math symbol>.

(cdlatex-math-symbol)

Read a cha= r from keyboard and insert corresponding math char.
The combinati= ons are defined in `cdlatex-math-symbol-alist'.  If not in a LaTeX&nbs= p;math environment, you also get a pair of= dollars.
</pre>

I have the= tilde and backquote associated to the same key on my keyboard, it's the ke= y right below the 'Esc' key, in the upper left corner. I also have these li= nes in .emacs file:
<pre>
;;; a key for tilde sym= bol
(define-key key-translation-map (kbd "M-2") (kbd "~"))
<= div>;;; a key for backtick symbol
(define-key key-translation-map= (kbd "M-6") "")
(define-key key-translation-map (kbd "M-9") (kbd= "`"))
</pre>

Somebody pointed out= that I should change the key associated with backquote but I'd really like= to keep it in that position because it's efficient when I type. I really d= on't know what's the problem here and how to fix it. Can someone please exp= lain it to me please and possibly help me fix it?

= I'm using Windows 7, emacs 24.4, Org 8.2, cdlatex 4.7 (2014), AUCTEX 11.88.=
------=_Part_366671_2124894532.1453556191610--