1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 14:40:54 -08:00

Fix previous patch to ispell.el

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod):
with-current-buffer and with-output-to-string need to be the other
way around.
This commit is contained in:
Reuben Thomas 2020-11-02 22:10:56 +00:00
parent 50f0b00748
commit a8f04014c2

View file

@ -1215,8 +1215,8 @@ Internal use.")
(defun ispell--call-enchant-lsmod (&rest args)
"Call enchant-lsmod with ARGS and return the output as string."
(with-current-buffer standard-output
(with-output-to-string
(with-output-to-string
(with-current-buffer standard-output
(apply #'ispell-call-process
(replace-regexp-in-string "enchant\\(-[0-9]\\)?\\'"
"enchant-lsmod\\1"