unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48246: [PATCH] Prevent unnecessary restarings of ispell program.
@ 2021-05-05 20:29 Dmitrii Kuragin
  2021-05-06  4:57 ` Eli Zaretskii
  2021-05-06  9:45 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Dmitrii Kuragin @ 2021-05-05 20:29 UTC (permalink / raw)
  To: 48246; +Cc: Dmitrii Kuragin

From: Dmitrii Kuragin <dkuragin@ya.ru>

Fix bug when ispell always restarted when `ispell-program-name` has a
custom value. Function `eq` compares the object identity and not the
object values which causes `eq` always return `nil` for values with the
same value but different identity (address). `equal` compares actual
values.
---
 lisp/textmodes/ispell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 932308ee59..4dbc7640bc 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1245,7 +1245,7 @@ ispell-initialize-spellchecker-hook
 
 (defun ispell-set-spellchecker-params ()
   "Initialize some spellchecker parameters when changed or first used."
-  (unless (eq ispell-last-program-name ispell-program-name)
+  (unless (equal ispell-last-program-name ispell-program-name)
     (ispell-kill-ispell t)
     (if (and (condition-case ()
 		 (progn
-- 
2.31.1.527.g47e6f16901-goog






^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-07  8:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 20:29 bug#48246: [PATCH] Prevent unnecessary restarings of ispell program Dmitrii Kuragin
2021-05-06  4:57 ` Eli Zaretskii
2021-05-06  7:12   ` Andreas Schwab
2021-05-06  7:59     ` Eli Zaretskii
2021-05-06  8:20       ` Andreas Schwab
2021-05-06  9:45 ` Lars Ingebrigtsen
2021-05-06 15:48   ` Dmitrii Kuragin
2021-05-07  8:41     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).