From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32610: Enhancement Request (Flyspell/Ispell): Customizing a NIL value for ispell-async-processp. Date: Sun, 02 Sep 2018 18:41:51 +0300 Message-ID: <831sab29fk.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535903110 11935 195.159.176.226 (2 Sep 2018 15:45:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2018 15:45:10 +0000 (UTC) Cc: 32610@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 17:45:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwUYj-0002xL-8J for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 17:45:05 +0200 Original-Received: from localhost ([::1]:41470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwUap-0007ta-9F for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 11:47:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwUa3-0007bO-IV for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 11:46:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwUWk-0006EZ-ML for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 11:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwUWk-0006EV-GH for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwUWk-0005kr-DY for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 11:43: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: Sun, 02 Sep 2018 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32610-submit@debbugs.gnu.org id=B32610.153590293122058 (code B ref 32610); Sun, 02 Sep 2018 15:43:02 +0000 Original-Received: (at 32610) by debbugs.gnu.org; 2 Sep 2018 15:42:11 +0000 Original-Received: from localhost ([127.0.0.1]:43209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwUVv-0005ji-Gc for submit@debbugs.gnu.org; Sun, 02 Sep 2018 11:42:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwUVt-0005jT-VT for 32610@debbugs.gnu.org; Sun, 02 Sep 2018 11:42:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwUVl-0005tE-CT for 32610@debbugs.gnu.org; Sun, 02 Sep 2018 11:42:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwUVl-0005tA-8a; Sun, 02 Sep 2018 11:42:01 -0400 Original-Received: from [176.228.60.248] (port=4479 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fwUVk-0006ap-TA; Sun, 02 Sep 2018 11:42:01 -0400 In-reply-to: (message from Keith David Bershatsky on Sat, 01 Sep 2018 17:57:13 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:149967 Archived-At: > Date: Sat, 01 Sep 2018 17:57:13 -0700 > From: Keith David Bershatsky > > Some users (such as myself) may desire to control whether a spelling subprocess runs all the time. I don't really see why. As long as the speller keeps running, it remembers all of your previous choices in this session, like words you told it to accept in this document (but not in others), etc. If you restart the speller, it "forgets" all that, and you need to tell it the same things anew. This is why Emacs generally keeps the speller running at all times. > Flyspell does not work if a user purposefully sets ispell-async-processp to a nil value. That variable is an internal variable not meant to be set by users or external Lisp programs, it is supposed to be set and used by ispell.el itself. And you seem to have a mistaken idea regarding that variable's purpose: it is supposed to be set to nil by ispell.el when it runs on a system that doesn't support async subprocesses (i.e. on MS-DOS). I don't see how it could be useful on modern systems, certainly not for what you want to accomplish. If you must stop the speller, simply kill it by invoking ispell-kill-ispell. > > Step 1: > > (require 'flyspell) > > (setq ispell-program-name "/path/to/aspell") > > (setq ispell-async-processp nil) > > (turn-on-flyspell) > > Step 2: Switch to the *Messages* buffer and observe the error message: > > Error enabling Flyspell mode: > ( > > @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)) Evidently, flyspell was never adapted to work when ispell-async-processp is nil. > OBSERVATION: It appears to me from a review of the code that some initial work has already been done to permit Flyspell and/or Ispell to work with ispell-async-processp having a nil value; however, additional modification of the code is needed. I don't expect anyone to work on this, since its only purpose is to support a system no one here is interested in. And in any case, this is not what you want. I think we should close this bug.