emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c8c2786: Fix ispell program comparison


From: Lars Ingebrigtsen
Subject: master c8c2786: Fix ispell program comparison
Date: Thu, 6 May 2021 05:46:38 -0400 (EDT)

branch: master
commit c8c27864aa5db2604304a6354ae441c7b0ca5474
Author: Dmitrii Kuragin <dkuragin@ya.ru>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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
---
 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 932308e..4dbc764 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]