Fix ispell program comparison

* lisp/textmodes/ispell.el (ispell-set-spellchecker-params):
Compare strings with `equal', not `eq' (since the identity of the
string may change) (bug#48246).

Copyright-paperwork-exempt: yes
This commit is contained in:
Dmitrii Kuragin 2021-05-06 11:45:06 +02:00 committed by Lars Ingebrigtsen
parent f0648fef35
commit c8c27864aa

View file

@ -1245,7 +1245,7 @@ aspell is used along with Emacs).")
(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