help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: natbib, emacs, & ispell


From: Lawrence Mitchell
Subject: Re: natbib, emacs, & ispell
Date: Sun, 09 Jan 2005 13:28:23 +0000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50

Ralf Angeli wrote:

[...]

> (eval-after-load "ispell"
>   (let ((list (car ispell-tex-skip-alists)))
>     (add-to-list 'list '("\\\\cite[tp]" ispell-tex-arg-end))
>     (setcar ispell-tex-skip-alists list)))

> But in my case this actually results in an "invalid-function" error as
> soon as one loads ispell.el e.g. with `M-x load-library RET ispell
> RET'.

You need to quote the form in eval-after-load, as it's a function
not a macro, i.e.

(eval-after-load "ispell"
  '(let ((list (car ispell-tex-skip-alists)))
     (add-to-list 'list '("\\\\cite[tp]" ispell-tex-arg-end))
     (setcar ispell-tex-skip-alists list)))

-- 
Lawrence Mitchell <wence@gmx.li>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]