From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52179: Highlighting a word in `ispell' using `enchant' Date: Wed, 25 May 2022 05:28:46 +0300 Message-ID: <83tu9e4a75.fsf@gnu.org> References: <83y1yq4ug1.fsf@gnu.org> <83v8tu4tac.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36735"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tor.kringeland@ntnu.no, 52179@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 04:30:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntgn0-0009O2-OA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 04:30:22 +0200 Original-Received: from localhost ([::1]:37602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntgmy-0000FH-Pf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 May 2022 22:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgmg-0000Eb-PJ for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntgmg-0000UV-Fk for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntgmg-0003lH-Az for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2022 02:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52179 X-GNU-PR-Package: emacs Original-Received: via spool by 52179-submit@debbugs.gnu.org id=B52179.165344574914371 (code B ref 52179); Wed, 25 May 2022 02:30:02 +0000 Original-Received: (at 52179) by debbugs.gnu.org; 25 May 2022 02:29:09 +0000 Original-Received: from localhost ([127.0.0.1]:53965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntglo-0003jj-TN for submit@debbugs.gnu.org; Tue, 24 May 2022 22:29:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntglj-0003j9-T7 for 52179@debbugs.gnu.org; Tue, 24 May 2022 22:29:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgld-0000NG-RQ; Tue, 24 May 2022 22:28:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9GAVOJDzhKEoRp7YKejuQXFEwLUcHYXzwlmYvkTOXqk=; b=I/YPR5JL14Wo BcRh9dYpYgvUJyKFbClPuL4j+hrgsBAVQzIcxCuWgJdMXb/6zAxI3dllc4rg44oMUOwTJ69L170Zc HsSdRAYu0+QFrGS8eiEmTAR7VmWtiEdbjft1jr9+w6W4WELJdxKVYO5iwza7F/Lr33D5vsv6Hus9I kiNOGBKnPs/IjhkJmVoVbTq8QROUNhbVoNTHpfil2XdbFJhrNgLbQgPcTR0NdHFxJ6kdrMCEVkne3 XBCZQyFcnkKZGcoLtNRINY0SYRr+0kPRr/pFMkkd3QvwcvY9ETajBfuY+FqexSMavykAuOcGXZg40 O/7vJmhJRuK74B+zh7knXA==; Original-Received: from [87.69.77.57] (port=1543 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgld-0001Me-AL; Tue, 24 May 2022 22:28:57 -0400 In-Reply-To: (message from Reuben Thomas on Tue, 24 May 2022 22:34:14 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233039 Archived-At: > From: Reuben Thomas > Date: Tue, 24 May 2022 22:34:14 +0100 > Cc: Tor Kringeland , 52179@debbugs.gnu.org > > Since ispell is the only spellchecker Emacs supports that can't cope with [[:alpha:]], it would seem more > sensible to have a default (nil-keyed) setting in ispell-dictionary-base-alist, and to overwrite the default with > [A-Za-z] only if the spellchecker is really ispell. > > This way, duplicate code can be removed and future spellcheckers will not need to rediscover this problem. That might be okay, but how does it help us get the Enchant support in ispell.el DTRT? We'd still need to detect when Ispell is used as the back-end speller, no? The issue here is that the current code already "patches" the nil case to use [:alpha:] when Aspell or Hunspell are the spell-checker, and we need to do that for Enchant. If you are saying that Enchant doesn't need to worry about the Ispell case, we could just modify ispell-find-enchant-dictionaries to always "patch" the nil entry to use [:alpha:], and leave the rest of the code, which already works, intact. If Enchant does need to cater to Ispell, we need a more complex change, but again it's local th the Enchant support code.