help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: correcting word groups (general spelling question)


From: John Mastro
Subject: Re: correcting word groups (general spelling question)
Date: Wed, 1 Jul 2015 10:47:14 -0700

Emanuel Berg <embe8573@student.uu.se> wrote:
>     (setq ispell-skip-region-alist
>       (append ispell-skip-region-alist '(("Hello Kitteh" . "")) ))
>
> Try it here:
>
> Hello Kitteh.
>
> Hello James. Noq I'm misspelling both "now" and
> kitten: kitteh. Will it ignore Hello Kitteh, but still
> get the two misspellings?

That gives me an error ("matching region not found"), but these two
seem to work as intended (after, admittedly, very little testing).

;; 1
(push (list "Hello Kitteh" #'ignore) ispell-skip-region-alist)
;; 2
(push (list "Hello Kitteh" (lambda (&rest _args) (match-end 0)))
      ispell-skip-region-alist)

-- 
john



reply via email to

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