GNU bug report logs - #50241
flyspell doesn't work with multiple dictionaries

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <hi-angel <at> yandex.ru>

Date: Sat, 28 Aug 2021 18:35:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Konstantin Kharlamov <hi-angel <at> yandex.ru>
To: undisclosed-recipients:;
Cc: 50241 <at> debbugs.gnu.org
Subject: bug#50241: flyspell doesn't work with multiple dictionaries
Date: Sat, 28 Aug 2021 22:35:05 +0300
I found a wrokaround: executing the following code *twice* makes it work:

    (progn
      (require 'ispell)
      (setq ispell-program-name "hunspell")
      (ispell-hunspell-add-multi-dic "ru_RU,en_US")
      (setq ispell-local-dictionary
            '(("ru_RU,en_US" "[[:alpha:]]" "[^[:alpha:]]" "['0-9]" t ("-d"
    "ru_RU,en_US") nil utf-8)))
      (ispell-change-dictionary "ru_RU,en_US")
      (flyspell-mode 1)
      )

So, manually creating an entry in ispell-local-dictionary makes it work. However note I emphasized "twice" word — for some readon (I don't know why) even this workaround works if you execute this code twice. On the first evaluation it always generates an error. I tried changing the order of various expressions, but so far wasn't able to make it behave always same way (not sure it really matters though as it's just a a workaround).






This bug report was last modified 3 years and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.