From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: philip@warpmail.net (Philip K.) Newsgroups: gmane.emacs.bugs Subject: bug#34019: 26.1; Changing ispell-program-name causes unwanted behavior Date: Wed, 09 Jan 2019 01:01:18 +0100 Message-ID: <87bm4q8zsh.fsf@bulbul> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1546992785 9428 195.159.176.226 (9 Jan 2019 00:13:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 00:13:05 +0000 (UTC) To: 34019@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 01:13:01 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1US-0002Ks-JO for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 01:13:01 +0100 Original-Received: from localhost ([127.0.0.1]:38539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1WZ-0004xf-Ak for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jan 2019 19:15:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1WR-0004wl-Tr for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh1WR-0007Br-0E for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gh1WQ-0007BR-M1 for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gh1WQ-00011A-AA for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: philip@warpmail.net (Philip K.) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jan 2019 00:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15469928833866 (code B ref -1); Wed, 09 Jan 2019 00:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2019 00:14:43 +0000 Original-Received: from localhost ([127.0.0.1]:50655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1W7-00010I-BW for submit@debbugs.gnu.org; Tue, 08 Jan 2019 19:14:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1JX-0000i4-SL for submit@debbugs.gnu.org; Tue, 08 Jan 2019 19:01:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gh1JP-0008QB-HY for submit@debbugs.gnu.org; Tue, 08 Jan 2019 19:01:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1JO-0006E1-Gf for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:01:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh1JL-0008Os-DE for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:01:33 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35571) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gh1JJ-0008NB-1J for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2019 19:01:29 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 572C825514 for ; Tue, 8 Jan 2019 19:01:22 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 08 Jan 2019 19:01:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=kbAIpqLJzaQ+Dwi6R5dqBz33Dd0IfYLrRU+Ooh9f+bk=; b=O5urs+eR ROm8kJUk8JZO05FMXH4ZrQLXjaJEY5stX4f0xm1JknU7J0SpbJ/A045EdaYHNc/C /YH/Ikkq4W+GKUZLtYChSa3AFg6xwyozcxr+meaKfqP30GlxsLiJ7u9Y+KALa8ad Y8x8rUSkhFZo253Q7iZoCWEtFRndaodLSOXHhYh42WMx5bL6J0cD0cowdZNTv0aT bLAdlYjzoI9M4vAofNw4Plb6RYOYaxSfMWwUfpRYM/H2gzb7Uw+rzUA1eEa+r2ld HF35fMUHZfzSmvZS5GlBaIUa92JfQQzxxSYaHTVZcV0+A7/ecfxQqn8S1DrlaGhW nqh2I7ttlmSULA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=kbAIpqLJzaQ+Dwi6R5dqBz33Dd0If YLrRU+Ooh9f+bk=; b=fqmTsbOw0J2qbrGANSkSR1Y1vm6r1iewoKBHerQIy9Jdr oeK+rkN4ySe8krJJXuwnCdx8qBQFsQEm5vxeZRk5c5CXFp1TnwwxjFrhAuJjaObg /eHobvb6lEMXQx1M64NaLvRfF3yivPhyXJEQZcEAFOG9eoiHi2LHtDSg5MJk1LFl 7rVheRe1hLRArnj4RvMbKVbB1iqbtcb4hglo0d3zxoW+nKBlzwVopQYz1c4qLwDD xPiH9rNQM5hgTCVcJahkK/ZdWg6d4XtFPDvV4UR6oP5vPsKSCOq9UM3lGOBoyggG 1K7dRJB43PvxywsTA6xivASkmF1POgdbgQ5rLiTrQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfedtgddukeculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephffvufffkfggtgesghdtreertddttdenucfhrhhomhepphhhihhlihhpseif rghrphhmrghilhdrnhgvthculdfrhhhilhhiphcumfdrmdenucffohhmrghinhepuhhsrd htohenucfkphepjeelrddvudelrdduleegrddugeefnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehphhhilhhiphesfigrrhhpmhgrihhlrdhnvghtnecuvehluhhsthgvrhfuihiivg eptd X-ME-Proxy: Original-Received: from localhost (p4fdbc28f.dip0.t-ipconnect.de [79.219.194.143]) by mail.messagingengine.com (Postfix) with ESMTPA id 9517CE41AC for ; Tue, 8 Jan 2019 19:01:21 -0500 (EST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 08 Jan 2019 19:14:41 -0500 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: 209.51.188.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:154276 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, I've recently updated my Debian installation from stretch (9, stable) to buster (10, testing) and I got to install Emacs 26.1 + enchant. But sadly the version in the Debian repository is still too old (1.6 vs 2.1). But when changing back to aspell, I was informed that aspell was too old (0.6 vs 2.1). It's easy to reproduce the bug, assuming one's enchant is also too old. Simply eval (setq-default ispell-program-name (executable-find "enchant")) try spell-checking any word (which should lead to an error), followed by (setq-default ispell-program-name (executable-find "aspell")) or whatever one was using before. Any spell-checking should still not work, and an error will be reported no matter what version of aspell/hunspell/ispell one uses. Looking through the code I noticed that the issue was simply caused by forgetting to reset the variable `ispell-really-enchant`, thus resetting it fixes the issue. I hope I haven't messed something up in the process, since this is the first time I'm sending a patch. If that's not the case, please tell me and I'll be eager to fix any issue (related to this bug). Sincerely, Philip K. https://zge.us.to --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-re-initialize-ispell-really-enchant-properly.patch Content-Transfer-Encoding: quoted-printable From=2025e0c36e60ee9737e92994684887fe9a4062b0cc Mon Sep 17 00:00:00 2001 From: Philip K Date: Wed, 9 Jan 2019 00:37:48 +0100 Subject: [PATCH] (re-)initialize ispell-really-enchant properly To: bug-gnu-emacs@gnu.org * lisp/textmodes/ispell.el: adding missing variable that should have been reset =2D-- lisp/textmodes/ispell.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 22047598b2..0b07254af4 100644 =2D-- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -726,7 +726,7 @@ ispell-check-version ;; Make sure these variables are (re-)initialized to the default value (setq ispell-really-aspell nil ispell-really-hunspell nil + ispell-really-enchant nil ispell-encoding8-command nil) =20 (goto-char (point-min)) =2D-- 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEXEVvqaSeWykH0GvsTLppj2Aa7OEFAlw1Oc4ACgkQTLppj2Aa 7OG9swf+LOoS0+ddven6WYcmSDK+CzUPFYXOxoIq25iNbA7HxID0xkVY93ooW2l3 abqnQlntbqWyc4goqd/ttkcantOC8iux9gMFQD+t0jv3oOHbvYNlJDJAnRHXrXSy oJ490x+YsKdlV7J7WHVlNQMt0HtR5Npyo3+NpUqsWO29NBLZrZPkyQM+8uFVS5EM kvvHw91QqzsorETFVRo2V/1Zgx5AObV5xywgmTMKm3W9Zb3nUQ+Dy3qEyHDpfh1W fQWJna1iE9irbj04lmgmyjpmaQ9bzs8oEtk/bOp6VGQhxowad+KnJAHd026meWyF 93qJmZsX36YhZvnyUSJtPmvs9ici4w== =2LaU -----END PGP SIGNATURE----- --==-=-=--