From: Eli Zaretskii Date: Mon, 30 Aug 2021 12:48:35 +0000 (+0300) Subject: Improve documentation of 'ispell-hunspell-add-multi-dic' X-Git-Tag: emacs-28.0.90~1258 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e67ef88f2047a5afdfaf6d6447273724d56a07b;p=emacs.git Improve documentation of 'ispell-hunspell-add-multi-dic' * lisp/textmodes/ispell.el (ispell-hunspell-add-multi-dic): Explain in the doc string how to call from Lisp. (Bug#50241) --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 67852998f42..632b00111ab 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1039,7 +1039,11 @@ did." Invoke this command before you want to start Hunspell for the first time with a particular combination of dictionaries. The first dictionary -in the list must have an affix file where Hunspell affix files are kept." +in the list must have an affix file where Hunspell affix files are kept. + +If you invoke this from Lisp, make sure to precede it with +a call to `ispell-set-spellchecker-params', as `ispell-change-dictionary' +calls it only when invoked interactively." (interactive "sMulti-dictionary combination: ") ;; Make sure the first dictionary in the list is known to us. (let ((first-dict (car (split-string dict "," t))))