[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Customize tex-ispell.el
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX] Customize tex-ispell.el |
Date: |
Sun, 30 Apr 2017 14:00:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 |
Thorsten Grothe <address@hidden> writes:
> I think this is a bug, I got this message:
>
> Spell-checking VWL_Aufgaben.tex using hunspell with default dictionary...done
> apply: Symbol’s function definition is void: ispell-tex-skip-alist
,----
| ispell-tex-skip-alists is a variable defined in ‘ispell.el’.
| Its value is shown below.
|
| Documentation:
| Lists of regions to be skipped in TeX mode.
| First list is used raw.
| Second list has key placed inside \begin{}.
|
| Delete or add any regions you want to be automatically selected
| for skipping in latex mode.
`----
Your message says that Emacs is looking for a function with the same
name, which is not defined. Check your configuration if you have
somewhere:
(ispell-tex-skip-alist ...
Note the opening parenthesis.
> my config looks like this:
>
> (eval-after-load "tex-ispell"
> '(progn
> (TeX-ispell-skip-setcar
> '(("\\\\blank\\*?" ispell-tex-arg-end 0)
> ("\\\\titelbwr" ispell-tex-arg-end 6)
> ("\\\\addlinespace" ispell-tex-arg-end 0)
> ("\\\\pgfplotstabletypeset" ispell-tex-arg-end 0)
> ;; ("\\\\ID\\*?" ispell-tex-arg-end)
> ))
> (TeX-ispell-skip-setcdr
> '(("question" ispell-tex-arg-end)
> ("kasten" ispell-tex-arg-end)
> ))))
>
> I first happened with a new env I defined:
>
> \begin{kasten}[\sffamily bla bla}
> some text here
> \end{kasten}
With the code above, TeX will complain as well ;-) How do you define
your new environment? If you're using
\newmdenv[<options>]{kasten}
put this in your init file:
(setq TeX-parse-self t)
restart Emacs (without your addition), open you're .tex file, hit `C-c
C-n' and try it again. mdframed.el has some code to add new
environments like "kasten" to ispell skip list, i.e. in
`ispell-tex-skip-alists', you should have an entry like:
("kasten" ispell-tex-arg-end 0)
> Then I changed the env to mdframed (the original), that helped, but now I
> got the same error and I have no clue where it is. It's a very long
> document. With flyspell this does not happen...
The length of your .tex document is not relevant for the error message
above; unless you have local variables with lisp code to be evaluated in
your .tex files.
> Where can I look deeper to find the
Normal procedure is to start Emacs with `-q' switch, paste your code in
scratch buffer, evaluate it, do `M-x toggle-debug-on-error RET' and
invoke the error and see what Emacs says.
And I can't reproduce what you describe.
Best, Arash