[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Spell checking of macros
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Spell checking of macros |
Date: |
Fri, 24 Jun 2016 22:51:09 +0200 |
Hi Arash,
2016-06-24 12:48 GMT+02:00 Arash Esbati <address@hidden>:
> Hi all,
>
> there is an item on AUCTeX's wish list:
>
> o Spell checking of macros
> A special ispell dictionary for macros could be nice to have.
>
> I'm not sure if there were activities in this regard in the past, but
> AFAICT, it is about adding items to car and/or cdr of
> `ispell-tex-skip-alists'. Please consider an example attached below
> (which does not compile): Run ispell (I tried hunspell, BTW) with
> standard settings and then eval the code inside "lstlisting" and run it
> again.
>
> I think it should suffice if AUCTeX provides one or two functions (much
> more sophisticated than mine, of course ;-) to add items to
> `ispell-tex-skip-alists'. I would also suggest to collect all items in
> a file like `tex-ispell.el' -- my feeling is it is easier to maintain
> than on a per-style basis. Only document macros should be considered,
> preamble only macros are ignored anyway. Styles could use this function
> for parsed elements.
>
> WDYT?
To be honest, I'm not much into ispell, but the proposed patch looks
promising, at least for the results it provides. I just wonder how
Flyspell (the mode I actually use ;-) can benefit from this, because
it seems to still mark as errors words in macros arguments and
"lstlisting" environment.
Bye,
Mosè