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 15:00:16 +0300 Message-ID: <83h7f0wnxr.fsf@gnu.org> References: <6aeebcfa-8a3a-4668-987b-dbe665c514ad@Spark> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4820"; 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 14:01:19 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 1mMUMJ-00018b-Dj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 14:01:19 +0200 Original-Received: from localhost ([::1]:57748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMUMH-0001wI-HN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 08:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMUM2-0001sd-Ed for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 08:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMUM2-0007Hx-76 for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 08:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMUM2-0002Uy-57 for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 08:01: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 12:01: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.16307568349561 (code B ref 50370); Sat, 04 Sep 2021 12:01:02 +0000 Original-Received: (at 50370) by debbugs.gnu.org; 4 Sep 2021 12:00:34 +0000 Original-Received: from localhost ([127.0.0.1]:46836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMULa-0002U8-Gn for submit@debbugs.gnu.org; Sat, 04 Sep 2021 08:00:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMULY-0002Tv-Ma for 50370@debbugs.gnu.org; Sat, 04 Sep 2021 08:00:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMULT-0006ot-CI; Sat, 04 Sep 2021 08:00:27 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4921 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 1mMULJ-0007bB-SH; Sat, 04 Sep 2021 08:00:26 -0400 In-Reply-To: <6aeebcfa-8a3a-4668-987b-dbe665c514ad@Spark> (message from Ian W on Fri, 3 Sep 2021 20:53:24 -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:213416 Archived-At: > Date: Fri, 3 Sep 2021 20:53:24 -0700 > From: Ian W > > This fixes the error handling in ispell-init-process. I encountered this bug, and also saw it mentioned here: > https://mail.gnu.org/archive/html/auctex/2021-08/msg00007.html > > The previous behavior involved the ispell process terminating > prematurely (correct behavior, invalid input) and then calling > ispell-accept-output. Because ispell-process had terminated, > ispell-accept-output threw its own error, which prevented the underlying > error from being displayed. > > The bug resulted in the following interaction: > ispell-word would print out: > "Starting new Ispell process aspell with default dictionary...done" > "ispell-accept-output: No Ispell process to read output from!" > > The correct behavior is: > "Starting new Ispell process aspell with default dictionary...done" > "cond: Error: ~/.emacs.d/.local/etc/ispell/.pws: The language "nil" is not known. This is probably because: the > file "/usr/local/Cellar/aspell/0.60.8/lib/aspell-0.60/nil.dat" can not be opened for reading."" I'm not sure I agree that the "correct behavior" better than the "incorrect". The error message is not more self-explanatory, at least. Anyway, do you have a recipe for reproducing this problem? The URL of the AUCTeX discussion seems to say it happens every time? I don't think I understand what's going wrong to trigger the problem. Thanks.