From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: flyspell.el and non-word characters in CASECHARS Date: Tue, 17 Apr 2012 20:51:24 +0300 Message-ID: <83y5puqmar.fsf@gnu.org> References: <838vhvsb7q.fsf@gnu.org> <20120417172635.GA26574@agmartin.aq.upm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334685223 3838 80.91.229.3 (17 Apr 2012 17:53:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 17:53:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Agustin Martin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 17 19:53:41 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SKCax-00089R-5Z for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 19:53:39 +0200 Original-Received: from localhost ([::1]:33977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKCaw-0001kD-JG for ged-emacs-devel@m.gmane.org; Tue, 17 Apr 2012 13:53:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKCar-0001jk-CQ for emacs-devel@gnu.org; Tue, 17 Apr 2012 13:53:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKCak-0003zL-Tn for emacs-devel@gnu.org; Tue, 17 Apr 2012 13:53:32 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:53509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKCak-0003xw-L8 for emacs-devel@gnu.org; Tue, 17 Apr 2012 13:53:26 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2M00D00XNPQ200@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Tue, 17 Apr 2012 20:53:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2M00D70XONKU90@a-mtaout23.012.net.il>; Tue, 17 Apr 2012 20:53:12 +0300 (IDT) In-reply-to: <20120417172635.GA26574@agmartin.aq.upm.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149735 Archived-At: > Date: Tue, 17 Apr 2012 19:26:36 +0200 > From: Agustin Martin > > The only reason I can think is that at that time there is no way to know if > that wordchar is going to be in the middle of a word or not. If it appears > at a word boundary, is not what ispell.el seems to consider a wordchar. But in that case, the following non-word character (blank or punctuation) will trigger the spell-check of the word. So we lose nothing, right? > Did your test work only with CASECHARS instead of CASECHARS+OTHERCHARS? I actually _added_ to the word-syntax test the test against CASECHARS, like this: ((or (and (= flyspell-pre-point (- (point) 1)) (or (eq (char-syntax (char-after flyspell-pre-point)) ?w) (string-match-p (flyspell-get-casechars) (buffer-substring-no-properties flyspell-pre-point (1+ flyspell-pre-point))))) (= flyspell-pre-point (point)) (= flyspell-pre-point (+ (point) 1))) nil)