• # ispell-skip-region-alist

    Posté par (site web personnel) . En réponse au message Emacs + Latex + correcteur orthographique. Évalué à 4.

    ispell-skip-region-alist is a variable defined in `ispell.el'.
    Documentation:
    Alist expressing beginning and end of regions not to spell check.
    The alist key must be a regular expression.
    Valid forms include:
     (KEY) - just skip the key.
     (KEY . REGEXP) - skip to the end of REGEXP. REGEXP may be string or symbol.
     (KEY REGEXP) - skip to end of REGEXP. REGEXP must be a string.
     (KEY FUNCTION ARGS) - FUNCTION called with ARGS returns end of region.
    Avec cela, en prenant la deuxième forme, il vient quelque chose comme :
    
    (add-to-list 'ispell-skip-region-alist (cons "%" "\n"))
    Attention, avec ispell-buffer, les commentaires sont bien ignorés, mais M-$ (ispell-word) à l'intérieur d'un commentaire ne sautera pas à la fin du commentaire pour trouver le mot suivant.