From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#20741: 24.4; flyspell doesn't work with abbreviations ending in a period Date: Fri, 5 Jun 2015 22:42:39 +0100 Message-ID: References: <87pp5az1u7.fsf@sc3d.org> <83twumnem2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c31700d5786a0517cc2b2d X-Trace: ger.gmane.org 1433540653 23904 80.91.229.3 (5 Jun 2015 21:44:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 21:44:13 +0000 (UTC) Cc: 20741@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 23:43:55 2015 Return-path: Envelope-to: geb-bug-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 1Z0zP0-0005QF-4k for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 23:43:46 +0200 Original-Received: from localhost ([::1]:49716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zOz-00086X-JM for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 17:43:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zOM-000702-VR for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0zOI-0000k2-Kc for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:43:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zOI-0000jv-IV for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0zOI-0008Ab-1Z for bug-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jun 2015 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20741-submit@debbugs.gnu.org id=B20741.143354056831386 (code B ref 20741); Fri, 05 Jun 2015 21:43:01 +0000 Original-Received: (at 20741) by debbugs.gnu.org; 5 Jun 2015 21:42:48 +0000 Original-Received: from localhost ([127.0.0.1]:42253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0zO3-0008A9-JL for submit@debbugs.gnu.org; Fri, 05 Jun 2015 17:42:48 -0400 Original-Received: from mail-ig0-f170.google.com ([209.85.213.170]:33686) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0zO1-00089w-Dy for 20741@debbugs.gnu.org; Fri, 05 Jun 2015 17:42:46 -0400 Original-Received: by igbpi8 with SMTP id pi8so24890871igb.0 for <20741@debbugs.gnu.org>; Fri, 05 Jun 2015 14:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o7pr//TIMO+WhfBc+4RUwPAFdcQBib9Jx0odAco4J3U=; b=Iou/S8LBfyZOILMMJ3bNnZiqRNtKq/JS/w5d/4caKdXm1TltOEQpRidluVlQVRKQ0T zu3ADnhQkYflpK0B0xZLOgJqLy4XzpMwmstNenINYLzebyuG3eL5tgbPoUd239s2H+q1 8Arf/9d7G9ogfPH072KcaOWlQlr8Y4A627LN4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=o7pr//TIMO+WhfBc+4RUwPAFdcQBib9Jx0odAco4J3U=; b=UazEZ2pH9qEVoAalHNeu9Nyb4+laPgpel+TeYi4u0+gDO4m+mHBTOylPhXWJdLM516 U8yt8EJoJgRvfPSmyvugVc5/ZrXbMSQGO/lrr2OkNvs/pHR++hrFIHAeV0QCMrQH77oA g8lqZhRtvN6MdZmkZr+4DYsHbImE5L7fQI3/qt5f5zenv4NrFmQ8SKf7zJUVD0+Qp/RW 0z23XlrAsTZ0BVxv5JvJ5CEYhjqercwidxMbO/vBqp3vp25Puqh/xHz11RpOx8+wqzpD qBkSBa6iWa3qFdBU/q6rxxT7Kb+OpGJ/bHpiTYC3kRaJAKFJ28I5kFySbwVED2UKtUbj 2VrQ== X-Gm-Message-State: ALoCoQmu+WCoqxx1+t07xmaZ7muyRsjEvt0KSxxBnT2rt8qb44jAeGWN8gilR4DXbRgWMtavD6Tu X-Received: by 10.42.213.136 with SMTP id gw8mr12621438icb.95.1433540559722; Fri, 05 Jun 2015 14:42:39 -0700 (PDT) Original-Received: by 10.36.118.19 with HTTP; Fri, 5 Jun 2015 14:42:39 -0700 (PDT) In-Reply-To: <83twumnem2.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103636 Archived-At: --001a11c31700d5786a0517cc2b2d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5 June 2015 at 20:23, Eli Zaretskii wrote: > > From: Reuben Thomas > > Date: Fri, 05 Jun 2015 15:06:40 +0100 > > > > flyspell marks as incorrect =E2=80=9Cetc.=E2=80=9D, =E2=80=9Ci.e.=E2=80= =9D, =E2=80=9Ce.g.=E2=80=9D &c. > > I can reproduce part of this with en_GB, but not with en_US. So I > think it's an issue with the dictionary, not with flyspell or ispell. > The en_US dictionary contains "etc", which is incorrect. What OTHERCHARS are you looking at? In Emacs 24.4 and later, > ispell.el takes that value from the dictionary's .aff file, not from > the internal database. So if you customized ispell-dictionary-alist, > try without those customizations, you shouldn't need them in v24.4. > =E2=80=8BOh dear, after =E2=80=8Bfurther investigation this turns out to be= because Debian overrides ispell.el and flyspell.el with its own patched versions, which predate Emacs 24.4 (they are from 2013). In what follows, I have moved these patched files aside, and am definitely working with just Emacs 24.4's versions! Now, still using hunspell, and having removed "i.e", "e.g" and "etc" from my en_GB spelling list, I get exactly the same highlighting. > > ispell sets my default dictionary to en_GB (from my locale, I presume), > > Yes. But you can override that, if you want. > =E2=80=8BI don't want to override it, it's fine. =E2=80=8BWhen I mention OTHERCHARS, I am looking at the documentation for ispell-dictionary-alist. Indeed, when I change language, and I am using hunspell, the language definitions seem to be auto-generated. With hunspell, OTHERCHARS is set to include ".".=E2=80=8B But indeed, removing i= t or moving it into CASECHARS and NOT-CASECHARS still seems not to help, so I'm back to my original workaround. But indeed, apart from when I specifically mentioned customising the dictionary, I am working with Emacs's default values, not customised at all= . =E2=80=8BThanks very much for your help with this. --=20 http://rrt.sc3d.org --001a11c31700d5786a0517cc2b2d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 5= June 2015 at 20:23, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Reuben Thomas <<= a href=3D"mailto:rrt@sc3d.org" target=3D"_blank">rrt@sc3d.org>
> Date: Fri, 05 Jun 2015 15:06:40 +0100
>
> flyspell marks as incorrect =E2=80=9Cetc.=E2=80=9D, =E2=80=9Ci.e.=E2= =80=9D, =E2=80=9Ce.g.=E2=80=9D &c.

I can reproduce part of this with en_GB, but not with en_US.=C2=A0 So I
think it's an issue with the dictionary, not with flyspell or ispell.

The en_US dictionary contains "etc", which is incorrect.
<= /div>
What OTHERCHARS are you looking at?=C2=A0 In Emacs 24.4 and later,
ispell.el takes that value from the dictionary's .aff file, not from the internal database.=C2=A0 So if you customized ispell-dictionary-alist,<= br> try without those customizations, you shouldn't need them in v24.4.
=

=E2=80=8BOh dear, after =E2=80=8Bfurther investigation this turns out to = be because Debian overrides ispell.el and flyspell.el with its own patched = versions, which predate Emacs 24.4 (they are from 2013).

In what follows, I have m= oved these patched files aside, and am definitely working with just Emacs 2= 4.4's versions!

Now, still using hunspell, and having removed "i.e",= "e.g" and "etc" from my en_GB spelling list, I get exa= ctly the same highlighting.
=C2=A0
> ispell sets my default dictionary to en_GB (from my locale, I presume)= ,

Yes.=C2=A0 But you can override that, if you want.
=E2=80=8BI don'= t want to override it, it's fine.

=E2=80=8BWhen I mention OTHERCHARS, = I am looking at the documentation for ispell-dictionary-alist. Indeed, when= I change language, and I am using hunspell, the language definitions seem = to be auto-generated. With hunspell, OTHERCHARS is set to include ".&q= uot;.=E2=80=8B But indeed, removing it or moving it into CASECHARS and NOT-= CASECHARS still seems not to help, so I'm back to my original workaroun= d.

But = indeed, apart from when I specifically mentioned customising the dictionary= , I am working with Emacs's default values, not customised at all.
<= /div>
=E2=80=8BTh= anks very much for your help with this.

--
--001a11c31700d5786a0517cc2b2d--