From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Wordingham Newsgroups: gmane.emacs.help Subject: Re: correcting word groups (general spelling question) Date: Wed, 1 Jul 2015 20:31:11 +0100 Message-ID: <20150701203111.5eb04521@JRWUBU2> References: <87zj3gwxhb.fsf@nl106-137-147.student.uu.se> <20150701044655.63e6e432@JRWUBU2> <87r3orhjp9.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435779117 5396 80.91.229.3 (1 Jul 2015 19:31:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2015 19:31:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 01 21:31:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZANjS-00013n-C3 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 21:31:42 +0200 Original-Received: from localhost ([::1]:60674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZANjR-0003cq-IE for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 15:31:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZANj9-0003Zn-Q8 for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 15:31:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZANj7-0006T4-2J for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 15:31:23 -0400 Original-Received: from know-smtprelay-omc-2.server.virginmedia.net ([80.0.253.66]:43039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZANj6-0006Rz-Pf for help-gnu-emacs@gnu.org; Wed, 01 Jul 2015 15:31:20 -0400 Original-Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-2-imp with bizsmtp id n7XK1q00J06JmVd017XKsF; Wed, 01 Jul 2015 20:31:19 +0100 X-Originating-IP: [81.103.224.4] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=pLuj3OkTrmEUIJBpyvkqVg==:117 a=pLuj3OkTrmEUIJBpyvkqVg==:17 a=Fj0c77JwVQQA:10 a=NLZqzBF-AAAA:8 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=6zEJBjoslqxGwpI9qdIA:9 a=CjuIK1q_8ugA:10 In-Reply-To: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.0.253.66 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105363 Archived-At: On Wed, 1 Jul 2015 10:47:14 -0700 John Mastro wrote: > Emanuel Berg 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) > Both need further tweaking for various non-zero quantities of white space. A new line between 'Hello' and 'Kitteh' defeats these two refinements. (Tested on Emacs 24.4.2.) Richard.