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: Wed, 18 Apr 2012 21:45:41 +0300 Message-ID: <8362cwkhey.fsf@gnu.org> References: <838vhvsb7q.fsf@gnu.org> <20120417172635.GA26574@agmartin.aq.upm.es> <83y5puqmar.fsf@gnu.org> <20120418162619.GA3478@agmartin.aq.upm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334774762 8149 80.91.229.3 (18 Apr 2012 18:46:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2012 18:46:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Agustin Martin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 18 20:46:01 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 1SKZt7-0004e8-7h for ged-emacs-devel@m.gmane.org; Wed, 18 Apr 2012 20:45:57 +0200 Original-Received: from localhost ([::1]:34127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKZt6-0004tA-MP for ged-emacs-devel@m.gmane.org; Wed, 18 Apr 2012 14:45:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKZt0-0004sy-KZ for emacs-devel@gnu.org; Wed, 18 Apr 2012 14:45:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKZsw-0005Tn-3V for emacs-devel@gnu.org; Wed, 18 Apr 2012 14:45:50 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:39944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKZsv-0005Tg-Jc for emacs-devel@gnu.org; Wed, 18 Apr 2012 14:45:45 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M2O00M00UMSJH00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Wed, 18 Apr 2012 21:45:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.105.225]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2O00MIWUS6J410@a-mtaout21.012.net.il>; Wed, 18 Apr 2012 21:45:43 +0300 (IDT) In-reply-to: <20120418162619.GA3478@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.169 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:149779 Archived-At: > Date: Wed, 18 Apr 2012 18:26:19 +0200 > From: Agustin Martin > > > 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) > > I tested with your changes and they do not seem to help here. Those were not all of the changes, I just showed them for an illustration. The full change involved a similar change a few lines below the above snippet, where again flyspell checks the word syntax. > Does attached diff help at your site? I will try that when I have time, thanks.