Selon Mael Hilléreau <[EMAIL PROTECTED]>: > Selon Bo Peng <[EMAIL PROTECTED]>: > > > > IMHO it fixes this bug. Please let me know wether it has a chance to be > > applied. > > > > > > Sorry that I did not follow this thread closely. Does this related to > > the caption in listings bug? If this solves the spell checking > > problem, can that latex-language trick be removed? > > AFAIU the caption listings bug is related to language. This patch deals with > spellchecking (skip some parts of the doc) and is unrelated to language, > despite > the opportunity of using a special language ("nolanguage") to skip > spellchecking > was discussed (but as stated by Dov, it turns out that this wouldn't be > appropriated).
Bo, more precisely, it seems that the listing insets are already skipped by the spellchecker (whatever the language is or isn't set to "latex"), because InsetListing inherits from InsetERT, which defines the allowSpellCheck(...) function as always returning false. Hence, the ControlSpellchecker class always ignores such insets. Note that this wasn't introduced by my patch. If you ask me what this "latex" language is used for, I really have no idea... ;-) Mael.