[Top][All Lists]

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

Re: [AUCTeX-devel] Spell checking of macros

From: Arash Esbati
Subject: Re: [AUCTeX-devel] Spell checking of macros
Date: Tue, 12 Jul 2016 10:25:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95

Arash Esbati <address@hidden> writes:

> I'm thinking about writing a function like this to catch this kind of
> arguments:
>     (defun TeX-ispell-tex-arg-end (&optional arg1 arg2)
>       (condition-case nil
>           (progn
>             (while (looking-at "[ \t\n]*\\[") (forward-sexp))
>             (forward-sexp (or arg1 1))
>             (while (looking-at "[ \t\n]*\\[") (forward-sexp))
>             (forward-sexp (or arg2 1)))
>         (error
>          (message "Error skipping s-expressions at point %d." (point))
>          (beep)
>          (sit-for 2))))
> and do ("tabular[*xy]" TeX-ispell-tex-arg-end).

Following up myself again, I implemented a function
`TeX-ispell-tex-arg-end' to deal with constructs like:

    \raisebox{2em}[1em][1em]{text} or
    \begin{tabularx}{300pt}{|p{3cm}|>{\raggedright}X|c|S|} etc.

I'd like to apply the attached patch.  I would appreciate any comments
before doing this.

Best, Arash

Attachment: ispell.diff
Description: Text Data

reply via email to

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