From unknown Sun Aug 10 16:51:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34019 <34019@debbugs.gnu.org> To: bug#34019 <34019@debbugs.gnu.org> Subject: Status: 26.1; Changing ispell-program-name causes unwanted behavior Reply-To: bug#34019 <34019@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:51:06 +0000 retitle 34019 26.1; Changing ispell-program-name causes unwanted behavior reassign 34019 emacs submitter 34019 philip@warpmail.net (Philip K.) severity 34019 minor tag 34019 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 08 19:14:43 2019 Received: (at submit) by debbugs.gnu.org; 9 Jan 2019 00:14:43 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 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 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 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) 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: 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) From: philip@warpmail.net (Philip K.) To: bug-gnu-emacs@gnu.org Subject: 26.1; Changing ispell-program-name causes unwanted behavior Date: Wed, 09 Jan 2019 01:01:18 +0100 Message-ID: <87bm4q8zsh.fsf@bulbul> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --==-=-= 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----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 12 06:29:01 2019 Received: (at 34019-done) by debbugs.gnu.org; 12 Jan 2019 11:29:01 +0000 Received: from localhost ([127.0.0.1]:56566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giHTJ-0003EF-8o for submit@debbugs.gnu.org; Sat, 12 Jan 2019 06:29:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giHTG-0003E0-Rl for 34019-done@debbugs.gnu.org; Sat, 12 Jan 2019 06:28:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giHTB-00081z-G9; Sat, 12 Jan 2019 06:28:53 -0500 Received: from [176.228.60.248] (port=1248 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1giHTB-0002rv-3T; Sat, 12 Jan 2019 06:28:53 -0500 Date: Sat, 12 Jan 2019 13:28:33 +0200 Message-Id: <83lg3qf732.fsf@gnu.org> From: Eli Zaretskii To: philip@warpmail.net (Philip K.) In-reply-to: <87bm4q8zsh.fsf@bulbul> (philip@warpmail.net) Subject: Re: bug#34019: 26.1; Changing ispell-program-name causes unwanted behavior References: <87bm4q8zsh.fsf@bulbul> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34019-done Cc: 34019-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: philip@warpmail.net (Philip K.) > Date: Wed, 09 Jan 2019 01:01:18 +0100 > > 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. Thanks, pushed to the emacs-26 branch, and will appear in Emacs 26.2. > 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). The commit log message should state the function in which the change was made. See the commit I actually made. Otherwise, the patch was OK, but for some reason it "git am" didn't apply it; perhaps because you seem to have customized the number of context lines? From unknown Sun Aug 10 16:51:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Feb 2019 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator