auctex-devel
[Top][All Lists]
Advanced

[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: Sun, 26 Jun 2016 11:06:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95

Hi Mosè,

Mosè Giordano <address@hidden> writes:

> 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.

I don't use Flyspell, so hard for me to tell.  Does Flyspell support
skipping environments at all?  The only relevant variable in flyspell.el
I see is `flyspell-tex-command-regexp' which matches only TeX commands.
Currently, I don't have an idea how to integrate Flyspell into this.

Best, Arash




reply via email to

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