Subject: bug#50241: flyspell doesn't work with multiple dictionaries

From: Eli Zaretskii <[email-masked]>
Date: Sat, 28 Aug 2021 21:56:43 +0300

> From: Konstantin Kharlamov <[email-masked]>
> Date: Sat, 28 Aug 2021 21:33:50 +0300
> 
> # Steps to reproduce
> 
> Note: for 2nd step here not to throw exception you need to make sure you have both hunspell dictionaries used in (ispell-hunspell-add-multi-dic …) call installed in the system.
> 
> 1. Start `emacs -Q`
> 2. Evaluate:
>     (progn
>       (require 'ispell)
>       (setq ispell-program-name "hunspell")
>       (ispell-hunspell-add-multi-dic "ru_RU,en_US")
>       (flyspell-mode 1)
>       )

You miss this step at the end:

  (ispell-change-dictionary "ru_RU,en_US")

It tells Emacs to restart Hunspell with these two dictionaries.