From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.bugs Subject: bug#46298: 28.0.50; Best default for ispell-program-name Date: Thu, 4 Feb 2021 16:03:15 +0000 (GMT) Message-ID: <3d4d8987-f388-dc95-bd43-d7cc4c29d3bc@froglet.home.mavit.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1018014547-1612454596=:15751" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37176"; mail-complaints-to="usenet@ciao.gmane.io" To: 46298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 04 17:32:59 2021 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 1l7hYw-0009XI-4N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Feb 2021 17:32:58 +0100 Original-Received: from localhost ([::1]:44438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7hYv-0007sW-3o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Feb 2021 11:32:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7h6w-0003O5-90 for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2021 11:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7h6w-0004ak-1b for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2021 11:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7h6v-0005i4-TJ for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2021 11:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter Oliver Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2021 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46298 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161245460821887 (code B ref -1); Thu, 04 Feb 2021 16:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2021 16:03:28 +0000 Original-Received: from localhost ([127.0.0.1]:42059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7h6N-0005gv-Aq for submit@debbugs.gnu.org; Thu, 04 Feb 2021 11:03:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7h6L-0005go-OI for submit@debbugs.gnu.org; Thu, 04 Feb 2021 11:03:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7h6K-0002KX-NT for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2021 11:03:24 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:35708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7h6I-0004FX-DR for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2021 11:03:24 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id j21so737373wmj.0 for ; Thu, 04 Feb 2021 08:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=sender:from:date:to:subject:message-id:mime-version; bh=qk5GG3zlPpYSYtBejNJ4yPk3Yh4cX5JucUBHuuZbdUc=; b=Kh3drCLVzlZqz7Hl8p4E8Pb9S/LMo6Yv5TcdILpCAUPRc/qo6OOIefz/YoZLOIHQ0a 3ij2CJGyakqK8siIwm77JAAMxnHhwGOhaAh9pA06xdTs7QqBJHw47t4N1F4PMgGFRBeo PRc7aj75UNvd1eLusR7yhIWNf8SxTcNBJQEBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:subject:message-id :mime-version; bh=qk5GG3zlPpYSYtBejNJ4yPk3Yh4cX5JucUBHuuZbdUc=; b=ootlM36qx5W9e/GKuBD6SudECzOkQP2FSKlSdjx6YL0yXcMogvlp4DMXctarquVujD YSvXBB2icDwlQmSUbQM6z8rvqr05HUdwJbcU/K7ThOUl8AI4qcm0W8fKrKrHKiZhqjh+ E/GPY6OiSbWeItDzPsBpkuRoGtoSzyAPyTsrpzsuBIpZ2/eTZ2eaHZ0/cNu/edFi+7ol 3W6g6cpwYe5/OIg2RTvFPCeqJ+wm3eGfFt2hGeLvI2XlyGXszZa9YWcx5rxSjrXVOVwg Jj/90lN1zHJz3iTXwzMZzRV7ZI2d4MwBDR2r+0hnLJU5IRc1Z7bgOGnkwxMczczIAiem chOQ== X-Gm-Message-State: AOAM531aW0UrouJfqwktugwVthk6NtIMSjhXSakj9PXVSP707sSbolD+ uVyda9K7ULZWI+/wq6cObaIX3ptV+XpO21tw X-Google-Smtp-Source: ABdhPJxPebwDHXut1THQyMVYPBdy/SOucCpMxwnmnVW7qMGEismsWCnDAdlnG0+o/YydkPmre5HCiQ== X-Received: by 2002:a05:600c:35c4:: with SMTP id r4mr183367wmq.174.1612454598511; Thu, 04 Feb 2021 08:03:18 -0800 (PST) Original-Received: from froglet.home.mavit.org.uk (cpc118948-dudl14-2-0-cust32.16-1.cable.virginm.net. [82.37.201.33]) by smtp.gmail.com with ESMTPSA id 4sm9555268wrr.3.2021.02.04.08.03.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 08:03:17 -0800 (PST) X-Google-Original-From: Peter Oliver Original-Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.15.2/8.15.2) with ESMTPS id 114G3GEQ015860 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 4 Feb 2021 16:03:16 GMT Original-Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.15.2/8.15.2/Submit) with ESMTP id 114G3GW9015857 for ; Thu, 4 Feb 2021 16:03:16 GMT X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=mavit@mavit.org.uk; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:199307 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1018014547-1612454596=:15751 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: 8BIT The default value of ispell-program-name is decided by looking in turn for the binaries aspell, ispell, hunspell and enchant-2, and using whichever is first found. Would it make sense to sort these in order of which we believe to be best? As I understand it, which backend is most accurate varies from language to language. Assuming the quality of the Emacs integration is equal, I would suggest putting Enchant first on the list rather than last. Enchant doesnʼt do any spellchecking itself, but instead selects a backend based on a per-language configuration preference, automatically skipping any backends which are not installed or for which dictionaries are not installed in the current language. I notice that the Red Hat/Fedora packages patch Emacs to put Hunspell first on the list (https://src.fedoraproject.org/rpms/emacs/blob/rawhide/f/emacs-spellchecker.patch). The rationale for this was that if Aspell was installed but the Aspell dictionaries for a language were not, then ispell-buffer fails (https://bugzilla.redhat.com/show_bug.cgi?id=713600). If, instead, Enchant was tried first, this kind of tinkering would not be necessary. -- Peter Oliver ---1463811583-1018014547-1612454596=:15751--