]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ispell program comparison
authorDmitrii Kuragin <dkuragin@ya.ru>
Thu, 6 May 2021 09:45:06 +0000 (11:45 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 6 May 2021 09:45:06 +0000 (11:45 +0200)
* 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

lisp/textmodes/ispell.el

index 932308ee59d51395262ee72167c3dd8020900a41..4dbc7640bcf6641b5275ef3848908702c8dbe672 100644 (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