I'm using Org 8.2 on emacs 24.4, in a Windows 7 machine. Recently I've managed to install cdlatex.el script by saving this file in one of my 'load-paths'. As you may know, cdlatex is a minor mode that can work with Org-mode and helps speed up writing math in Org by the use of keyboard shortcuts. However, when in cdlatex I get this error message:
Wrong type argument: characterp, 134217782
This error appears in the mini-buffer every time I press the backquote or backtick key on my keyboard (this symbol: `).
Clearly I must add some line in the .emacs configuration file to fix this problem otherwise I'm unable to use 90% of CDLaTeX commands from keyboard. Can someone please help me out? I'm not proficient in elisp (I just copy/paste other folks lines). This is what I've got in my .emacs file regarding tilde and backquote (they respond to the same key, on my laptop's keyboard, see this question for context):
;;; 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 "`"))
The reply to
M-x toggle-debug-on-error is:
Debugger entered--Lisp error: (wrong-type-argument characterp 134217782) format("No such math symbol %c on level %d" 134217782 1) apply(format ("No such math symbol %c on level %d" 134217782 1)) error("No such math symbol %c on level %d" 134217782 1) (if (or (not symbol) (not (stringp symbol)) (equal symbol "")) (error "No such math symbol %c on level %d" char level)) (let* ((cell (cdlatex-read-char-with-help cdlatex-math-symbol-alist-comb 1 cdlatex-math-symbol-no-of-levels "Math symbol level %d of %d: " "AVAILABLE MATH SYMBOLS. [%c]=next level " cdlatex-math-symbol-prefix (get (quote cdlatex-math-symbol-alist-comb) (quote cdlatex-bindings)))) (char (car cell)) (level (cdr cell)) (entry (assoc char cdlatex-math-symbol-alist-comb)) (symbol (nth level entry))) (if (or (not symbol) (not (stringp symbol)) (equal symbol "")) (error "No such math symbol %c on level %d" char level)) (if (or (not (texmathp)) (cdlatex-number-of-backslashes-is-odd)) (cdlatex-dollar)) (insert symbol) (if (string-match "\\?" symbol) (progn (cdlatex-position-cursor)))) cdlatex-math-symbol() call-interactively(cdlatex-math-symbol nil nil) command-execute(cdlatex-math-symbol)