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#50370: Fix bug in ispell-init-process error handling Date: Sat, 04 Sep 2021 21:40:55 +0300 Message-ID: <83ilzguqtk.fsf@gnu.org> References: <6aeebcfa-8a3a-4668-987b-dbe665c514ad@Spark> <83h7f0wnxr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8654"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50370@debbugs.gnu.org To: Ian W Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 04 20:42:13 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 1mMacH-00024e-3v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 20:42:13 +0200 Original-Received: from localhost ([::1]:57712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMacF-0008Gf-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 14:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMac6-0008Ek-NR for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMac6-0002gY-Fa for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMac6-0004LS-9u for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:42: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: Sat, 04 Sep 2021 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50370 X-GNU-PR-Package: emacs Original-Received: via spool by 50370-submit@debbugs.gnu.org id=B50370.163078086316624 (code B ref 50370); Sat, 04 Sep 2021 18:42:02 +0000 Original-Received: (at 50370) by debbugs.gnu.org; 4 Sep 2021 18:41:03 +0000 Original-Received: from localhost ([127.0.0.1]:48568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMab8-0004K4-N1 for submit@debbugs.gnu.org; Sat, 04 Sep 2021 14:41:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMab7-0004JR-9b for 50370@debbugs.gnu.org; Sat, 04 Sep 2021 14:41:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40618) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMab1-0001uq-Tm; Sat, 04 Sep 2021 14:40:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1924 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 1mMab1-00075F-Gu; Sat, 04 Sep 2021 14:40:55 -0400 In-Reply-To: (message from Ian W on Sat, 4 Sep 2021 11:33:42 -0700) 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:213431 Archived-At: [Please use Reply All to keep the bug address on the CC list.] > Date: Sat, 4 Sep 2021 11:33:42 -0700 > From: Ian W > > I think it’s a better error message, but that is just my opinion. It tells me that ispell is trying to read an invalid > dictionary file. In my case, I deleted that file and everything started working. I also think it’s the error message > intended to be displayed (by the ispell program and ispell package), as it is the error message designed to > help the user solve their problem. > > (t > ;; Otherwise, it must be an error message. Show the user. > ;; But first wait to see if some more output is going to arrive. > ;; Otherwise we get cool errors like "Can't open ". > (sleep-for 1) > (ispell-accept-output 3) ;; <<< This is the line that errors >>> > (error "%s" (mapconcat #'identity ispell-filter "\n")))) > > So the intended error message is never displayed. > > I’m sorry for not including a repo. I got it consistently because I had a bad file cached by aspell (or maybe > doom). You also get the same message when you didn’t install your dictionaries correctly. This is a problem > in how ispell displays errors, so it’s consistent but only if you already had a real problem with ispell. > > To repo: > (setq ispell-local-dictionary-overridden t > ispell-local-dictionary "not-a-dict") > > This misconfigures your local dictionary, and ensures that the ispell process will error on start. Then run > ispell-word on any word. Thanks for the prompt response. With the above recipe, I get: ispell-phaf: No matching entry for not-a-dict in ‘ispell-hunspell-dict-paths-alist’. (My speller is Hunspell.) So does this mean this problem doesn't happen with Hunspell? Ir is the recipe incomplete or something?