From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50241@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163017564419363 (code B ref -1); Sat, 28 Aug 2021 18:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Aug 2021 18:34:04 +0000 Received: from localhost ([127.0.0.1]:55000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK39Y-00052F-DA for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:34:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:51242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK39V-000527-Ql for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:34:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK39V-0002M8-Jt for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 14:34:01 -0400 Received: from forward104o.mail.yandex.net ([37.140.190.179]:33952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK39S-0001Wy-0X for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 14:34:01 -0400 Received: from myt6-62b593a78afd.qloud-c.yandex.net (myt6-62b593a78afd.qloud-c.yandex.net [IPv6:2a02:6b8:c12:1da3:0:640:62b5:93a7]) by forward104o.mail.yandex.net (Yandex) with ESMTP id D45D065D5D23 for ; Sat, 28 Aug 2021 21:33:51 +0300 (MSK) Received: from myt5-aad1beefab42.qloud-c.yandex.net (myt5-aad1beefab42.qloud-c.yandex.net [2a02:6b8:c12:128:0:640:aad1:beef]) by myt6-62b593a78afd.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 61TrBAhvgk-XpHWv0rV; Sat, 28 Aug 2021 21:33:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630175631; bh=CLAR2sBn23mAOeXeHBFumw5f5sZwRtgP/DjEwR3QiPk=; h=Date:To:From:Subject:Message-ID; b=jSJWQKAiioTxtwJPLOv6+SfcNIv8tVOAnYR8qQ0QA4OWkr+amwMTMwAKhETtuzwAR 2hXTNtGufjbzglfZTD9DCLAoBI2sDcm7uEHZSe70o52PJOsn+kgs02Ub16AHmgehwV fl5f8HHokl7WhO+XvyzhWVezNvpCXXNTCgpTalW8= Authentication-Results: myt6-62b593a78afd.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt5-aad1beefab42.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id KSycWcoEuS-Xp385t7g; Sat, 28 Aug 2021 21:33:51 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 21:33:50 +0300 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.140.190.179; envelope-from=hi-angel@yandex.ru; helo=forward104o.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I spent a few hours today trying to make it work, and as far I can see multiple dictionaries support is just broken. # 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) ) 3. Execute in a shell `ps aux | grep hunspell` ## Expected The `hunspell` process has argument `-d ru_RU,en_US` ## Actual The `hunspell` process has argument `-d en_US` ## Additional information M-x report-emacs-bug output goes below: In GNU Emacs 28.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-05 built on constantine-N61Ja Repository revision: 3dbbcc9a255ce2703d42792e6967797b78e8720b Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=gtk3 --without-xaw3d --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-flto=2 -march=native -O3 -pipe -fno-stack-protector -fweb -fmerge-all-constants -fno-plt -fcommon -flto -fuse-linker-plugin -flto -fuse-linker-plugin' 'LDFLAGS=-flto=2 -O3 -march=native -fweb -fmerge-all-constants -floop-nest-optimize -Wl,--sort-common,-z,relro -fno-plt -fcommon'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_TIME: ru_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: yas-global-mode: t yas-minor-mode: t global-color-identifiers-mode: t color-identifiers-mode: t delete-selection-mode: t winum-mode: t symbol-overlay-mode: t global-symbol-overlay-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t highlight-numbers-mode: t evil-goggles-mode: t global-evil-surround-mode: t evil-surround-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t windmove-mode: t global-auto-revert-mode: t global-company-mode: t company-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/constantine/.emacs.d/lisp/idomenu hides /home/constantine/.emacs.d/elpa/idomenu-20141123.2120/idomenu /home/constantine/.emacs.d/lisp/popup hides /home/constantine/.emacs.d/elpa/popup-20210625.400/popup /home/constantine/.emacs.d/elpa/cmake-mode-20210104.1831/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/constantine/.emacs.d/elpa/transient-20210723.1601/transient hides /usr/share/emacs/28.0.50/lisp/transient Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dabbrev server undo-fu imenu pp eieio-opt speedbar ezimage dframe shortdoc text-property-search flycheck debug backtrace quail smartparens-markdown markdown-mode noutline outline smex find-func cl-print help-fns radix-tree tabify yasnippet-snippets yasnippet face-remap color-identifiers-mode smartparens-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat parse-time iso8601 time-date ls-lisp format-spec misearch multi-isearch vc-git diff-mode vc-dispatcher delsel winum symbol-overlay highlight-parentheses sp-sublimetext-like smartparens-config smartparens-text smartparens dash highlight-numbers parent-mode ido evil-goggles pulse color evil-surround emvil evil evil-keybindings evil-integration evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core advice evil-common windmove calc calc-loaddefs calc-macs thingatpt rect evil-digraphs evil-vars avy autorevert filenotify company-oddmuse company-keywords company-etags etags fileloop generator xref project ring company-gtags files-x company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company pcase cl-extra help-mode use-package-bind-key use-package-core edmacro kmacro bind-key easy-mmode rx cc-styles cc-align cc-engine cc-vars cc-defs info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 353438 136088) (symbols 48 24458 1) (strings 32 87321 23690) (string-bytes 1 2859020) (vectors 16 53736) (vector-slots 8 1417151 443852) (floats 8 276 1005) (intervals 56 13087 471) (buffers 992 21)) From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017703321506 (code B ref 50241); Sat, 28 Aug 2021 18:58:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 18:57:13 +0000 Received: from localhost ([127.0.0.1]:55005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3Vt-0005ak-Kv for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:57:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3Vo-0005aA-Kg for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 14:57:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44598) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mK3Vj-0008MS-5W; Sat, 28 Aug 2021 14:56:59 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4494 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK3Vi-0000fA-Nz; Sat, 28 Aug 2021 14:56:59 -0400 Date: Sat, 28 Aug 2021 21:56:43 +0300 Message-Id: <83lf4lmm8k.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> (message from Konstantin Kharlamov on Sat, 28 Aug 2021 21:33:50 +0300) References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Konstantin Kharlamov > 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. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: Acknowledgement (flyspell doesn't work with multiple dictionaries) Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 19:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017717321701 (code B ref 50241); Sat, 28 Aug 2021 19:00:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 18:59:33 +0000 Received: from localhost ([127.0.0.1]:55010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3Y9-0005du-HB for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:59:33 -0400 Received: from forward100o.mail.yandex.net ([37.140.190.180]:50644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3Y3-0005dc-AF for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 14:59:27 -0400 Received: from forward100q.mail.yandex.net (forward100q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb97]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 51D4052AB4BD for <50241@debbugs.gnu.org>; Sat, 28 Aug 2021 21:59:16 +0300 (MSK) Received: from vla1-a82bbd6843fb.qloud-c.yandex.net (vla1-a82bbd6843fb.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:1389:0:640:a82b:bd68]) by forward100q.mail.yandex.net (Yandex) with ESMTP id 4F7E57080009 for <50241@debbugs.gnu.org>; Sat, 28 Aug 2021 21:59:16 +0300 (MSK) Received: from vla5-8422ddc3185d.qloud-c.yandex.net (vla5-8422ddc3185d.qloud-c.yandex.net [2a02:6b8:c18:3495:0:640:8422:ddc3]) by vla1-a82bbd6843fb.qloud-c.yandex.net (mxback/Yandex) with ESMTP id nyDoT4Fqrh-xGEaHRUt; Sat, 28 Aug 2021 21:59:16 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630177156; bh=9oba2AxcmTGv04jCVrqhpYDQpT60L1ktTUOssJO3u50=; h=References:Date:To:From:Subject:Message-ID:In-Reply-To; b=vJPHtqCAG/n2LTb2ZoigCHINpZv5hEwEP7Mp549b3lqY6zxHYH2fcvhBEuFw8L0k9 5ks8Ouon0F9Bz23KXUAyLrDxmF+5Z+O1QXUA0Vvzs7DM2lwCIubptLN3G7lA+YE/gu Lftt4xzKtBoxp8fLsxdLVbLHylD+9WiGGkG6fPgg= Authentication-Results: vla1-a82bbd6843fb.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla5-8422ddc3185d.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ab4jAqdrEH-xF9uOgPE; Sat, 28 Aug 2021 21:59:15 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <76db898be8fd31b72b29ac56217ddd3ee2dfaaa7.camel@yandex.ru> From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 21:59:15 +0300 In-Reply-To: References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Alright, partially I made it to work: adding a line `(setq ispell-dictionary "ru_RU,en_US")` as in: (progn (require 'ispell) (setq ispell-program-name "hunspell") (ispell-hunspell-add-multi-dic "ru_RU,en_US") (setq ispell-dictionary "ru_RU,en_US") (flyspell-mode 1) ) Launches the process with correct args. However, in this case running `(flyspell-mode 1)` ends up with an error Error in post-command-hook (flyspell-post-command-hook): (error "No data for dictionary \"ru_RU,en_US\" in ‘ispell-local-dictionary-alist’ or ‘ispell-dictionary-alist’") On Sat, 2021-08-28 at 18:35 +0000, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): >  bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 50241@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 19:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017757222453 (code B ref 50241); Sat, 28 Aug 2021 19:07:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 19:06:12 +0000 Received: from localhost ([127.0.0.1]:55014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3eb-0005q1-08 for submit@debbugs.gnu.org; Sat, 28 Aug 2021 15:06:12 -0400 Received: from forward101o.mail.yandex.net ([37.140.190.181]:46750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK3eV-0005pQ-6B for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 15:06:07 -0400 Received: from iva7-a02d2dc84845.qloud-c.yandex.net (iva7-a02d2dc84845.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:2faf:0:640:a02d:2dc8]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 1A383369DDA2; Sat, 28 Aug 2021 22:05:57 +0300 (MSK) Received: from iva7-f62245f79210.qloud-c.yandex.net (iva7-f62245f79210.qloud-c.yandex.net [2a02:6b8:c0c:2e83:0:640:f622:45f7]) by iva7-a02d2dc84845.qloud-c.yandex.net (mxback/Yandex) with ESMTP id HoDkpC6OJS-5uIWcTat; Sat, 28 Aug 2021 22:05:57 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630177557; bh=JlBZ+poj2snreNwGDT6h3JRIA0oklbj3oxseGaYMiqg=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=CRXcNpIhol5VNTY+kkGuTV5gCG+4VgT6FcTZNOXp4xB+9xeyhQ6AHn/eMeffV8KNL 8NdyzfDtkplIMYkrHgepbCC6Bvv/xPhJyRiM4z18ytelJJ+wWeWj4y2Xy9dtwUQq1Y awGa/hhq2F7aKKnj4tLdPTQaNLZT8keBGV/8ZsWA= Authentication-Results: iva7-a02d2dc84845.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva7-f62245f79210.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ybWqZAnDTx-5ufS9Cw5; Sat, 28 Aug 2021 22:05:56 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 22:05:55 +0300 In-Reply-To: <83lf4lmm8k.fsf@gnu.org> References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > You miss this step at the end: > >   (ispell-change-dictionary "ru_RU,en_US") > > It tells Emacs to restart Hunspell with these two dictionaries. Thank you! Running this command results in error: (error "Undefined dictionary: ru_RU,en_US") From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: undisclosed-recipients:; Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017931725340 (code B ref 50241); Sat, 28 Aug 2021 19:36:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 19:35:17 +0000 Received: from localhost ([127.0.0.1]:55033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK46n-0006ad-M6 for submit@debbugs.gnu.org; Sat, 28 Aug 2021 15:35:17 -0400 Received: from forward107j.mail.yandex.net ([5.45.198.252]:40496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK46k-0006aJ-QD for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 15:35:16 -0400 Received: from iva7-eacae0ae1191.qloud-c.yandex.net (iva7-eacae0ae1191.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:322a:0:640:eaca:e0ae]) by forward107j.mail.yandex.net (Yandex) with ESMTP id 5F81B8844B3 for <50241@debbugs.gnu.org>; Sat, 28 Aug 2021 22:35:06 +0300 (MSK) Received: from iva5-057a0d1fbbd8.qloud-c.yandex.net (iva5-057a0d1fbbd8.qloud-c.yandex.net [2a02:6b8:c0c:7f1c:0:640:57a:d1f]) by iva7-eacae0ae1191.qloud-c.yandex.net (mxback/Yandex) with ESMTP id uGYYkKr6W4-Z5HCB3Wa; Sat, 28 Aug 2021 22:35:06 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630179306; bh=o7u9xk/Tin/v6R24QB7pcJsEwLrDlVr8zUUj1JcaBh8=; h=In-Reply-To:References:Date:From:Subject:Message-ID:Cc:To; b=ZlZTE7zaAeK9zTKkZA+naL4koHOT6amSpPiYjH4uSo/k6Tn4ahY6ND5jyKvO62c61 VWIfozRGvZN3UyL1uS6HvNeAdZkTEj8CfTJw2AK/7Qppx2bKD85CximOmtOugkibKy Itb8i8kqI+YaCsVCt9UjjLMbhRr+RE2REBWUPtY0= Authentication-Results: iva7-eacae0ae1191.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva5-057a0d1fbbd8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id YkwIoW3Zl3-Z524PCwO; Sat, 28 Aug 2021 22:35:05 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 22:35:05 +0300 In-Reply-To: References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 ("- [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 UNDISCLOSED_TO Sent to undisclosed recipients -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [5.45.198.252 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hi-angel[at]yandex.ru) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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). From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017941125495 (code B ref 50241); Sat, 28 Aug 2021 19:37:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 19:36:51 +0000 Received: from localhost ([127.0.0.1]:55039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK48J-0006d8-0m for submit@debbugs.gnu.org; Sat, 28 Aug 2021 15:36:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK48F-0006cv-OI for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 15:36:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45512) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mK48A-0001WC-Et; Sat, 28 Aug 2021 15:36:42 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2948 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK48A-00051c-0N; Sat, 28 Aug 2021 15:36:42 -0400 Date: Sat, 28 Aug 2021 22:36:26 +0300 Message-Id: <83k0k5mked.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Konstantin Kharlamov on Sat, 28 Aug 2021 22:05:55 +0300) References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Konstantin Kharlamov > Cc: 50241@debbugs.gnu.org > Date: Sat, 28 Aug 2021 22:05:55 +0300 > > On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > > > You miss this step at the end: > > > >   (ispell-change-dictionary "ru_RU,en_US") > > > > It tells Emacs to restart Hunspell with these two dictionaries. > > Thank you! Running this command results in error: > > (error "Undefined dictionary: ru_RU,en_US") Strange. Here, it doesn't error out. I did this: M-x flyspell-mode RET M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET M-x ispell-change-dictionary RET ru_RU,en_US RET And I don't get any errors, and flyspell-mode works for both Russian and English. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163017991626283 (code B ref 50241); Sat, 28 Aug 2021 19:46:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 19:45:16 +0000 Received: from localhost ([127.0.0.1]:55044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4GO-0006pn-SK for submit@debbugs.gnu.org; Sat, 28 Aug 2021 15:45:16 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:46326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4GK-0006pN-28 for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 15:45:12 -0400 Received: from myt6-5c8bb24560be.qloud-c.yandex.net (myt6-5c8bb24560be.qloud-c.yandex.net [IPv6:2a02:6b8:c12:299e:0:640:5c8b:b245]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 2F1664EC76A0; Sat, 28 Aug 2021 22:45:01 +0300 (MSK) Received: from myt5-aad1beefab42.qloud-c.yandex.net (myt5-aad1beefab42.qloud-c.yandex.net [2a02:6b8:c12:128:0:640:aad1:beef]) by myt6-5c8bb24560be.qloud-c.yandex.net (mxback/Yandex) with ESMTP id KlsmXCH4Vn-j0H4HHPa; Sat, 28 Aug 2021 22:45:01 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630179901; bh=8RSQ8Lk0nCM8JmGyj6ioNlivagPlJOM04e1EJ/FDbD0=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=hxj/umXkrxWaAFNVCs3WvSklkkh2KFoI4ZZeQC6Es83n7nUUne92CIrZuGpd3ueTu ppH41G28KR241K7G2aAhJPXCoSjMWldserhe5qKBEPPTr+5VJgqln1gm3p5S4jJrIv DCtS9JiLa6EWKiBP2ZS5CSwUB202ZRyC6eS7YI/4= Authentication-Results: myt6-5c8bb24560be.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt5-aad1beefab42.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id b5t5apnrD2-j03ipXrb; Sat, 28 Aug 2021 22:45:00 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 22:45:00 +0300 In-Reply-To: <83k0k5mked.fsf@gnu.org> References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 2021-08-28 at 22:36 +0300, Eli Zaretskii wrote: > > From: Konstantin Kharlamov > > Cc: 50241@debbugs.gnu.org > > Date: Sat, 28 Aug 2021 22:05:55 +0300 > > > > On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > > > > > You miss this step at the end: > > > > > >   (ispell-change-dictionary "ru_RU,en_US") > > > > > > It tells Emacs to restart Hunspell with these two dictionaries. > > > > Thank you! Running this command results in error: > > > >         (error "Undefined dictionary: ru_RU,en_US") > > Strange.  Here, it doesn't error out.  I did this: > >   M-x flyspell-mode RET >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > And I don't get any errors, and flyspell-mode works for both Russian > and English. Thank you! With a little modification for steps to be: M-x flyspell-mode RET M-: (setq ispell-program-name "hunspell") M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET M-x ispell-change-dictionary RET ru_RU,en_US RET this worked for me! Hmm, let me try to experiment with that a bit to see why it didn't work for me non-interactively… From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 20:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163018097828021 (code B ref 50241); Sat, 28 Aug 2021 20:03:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 20:02:58 +0000 Received: from localhost ([127.0.0.1]:55058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4XW-0007Ho-NU for submit@debbugs.gnu.org; Sat, 28 Aug 2021 16:02:58 -0400 Received: from forward108j.mail.yandex.net ([5.45.198.253]:49170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4XR-0007HX-1K for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 16:02:53 -0400 Received: from iva4-eaf978c3d1df.qloud-c.yandex.net (iva4-eaf978c3d1df.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:d14:0:640:eaf9:78c3]) by forward108j.mail.yandex.net (Yandex) with ESMTP id BF26B3F202A6; Sat, 28 Aug 2021 23:02:42 +0300 (MSK) Received: from iva4-b3ebd202b141.qloud-c.yandex.net (iva4-b3ebd202b141.qloud-c.yandex.net [2a02:6b8:c0c:4e8e:0:640:b3eb:d202]) by iva4-eaf978c3d1df.qloud-c.yandex.net (mxback/Yandex) with ESMTP id xT77vDZpue-2gHKuYK1; Sat, 28 Aug 2021 23:02:42 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630180962; bh=SS5sWkk5Ao9b1oMw8CcyYEFzqDSnOdesKOiwk09tkCc=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=nRve315liG+P5NL5djb+vzsdLM3VICKi7QcYa9WUoL/7J6H2MQpxrhTMx6Sbm2H1g We3NPuKlEsn//p3kgNtC4tK1EWXwOEJDpxZj09MvqrfXs2uOyHSNmxmgGo4iCbI6Rc CRRf4f68WSGFum5lanG/pEf3QwXFJlxvHnzD8r7s= Authentication-Results: iva4-eaf978c3d1df.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva4-b3ebd202b141.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id DNQR4NJUCJ-2f6GmUt2; Sat, 28 Aug 2021 23:02:41 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 23:02:41 +0300 In-Reply-To: <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, 2021-08-28 at 22:45 +0300, Konstantin Kharlamov wrote: > On Sat, 2021-08-28 at 22:36 +0300, Eli Zaretskii wrote: > > > From: Konstantin Kharlamov > > > Cc: 50241@debbugs.gnu.org > > > Date: Sat, 28 Aug 2021 22:05:55 +0300 > > > > > > On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > > > > > > > You miss this step at the end: > > > > > > > >   (ispell-change-dictionary "ru_RU,en_US") > > > > > > > > It tells Emacs to restart Hunspell with these two dictionaries. > > > > > > Thank you! Running this command results in error: > > > > > >         (error "Undefined dictionary: ru_RU,en_US") > > > > Strange.  Here, it doesn't error out.  I did this: > > > >   M-x flyspell-mode RET > >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET > >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > > > And I don't get any errors, and flyspell-mode works for both Russian > > and English. > > Thank you! With a little modification for steps to be: > >   M-x flyspell-mode RET >   M-: (setq ispell-program-name "hunspell") >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > this worked for me! Hmm, let me try to experiment with that a bit to see why > it > didn't work for me non-interactively… Okay, so the bug seems to be in ispell-hunspell-add-multi-dic function. When called interactively, then the following interactive call to (ispell-change-dictionary) has the ru_RU,en_US dictionary as a completion. However, if ispell-hunspell-add-multi-dic was called non-interactively, the completion from the subsequent (ispell-change-dictionary) call seems to be missing. Not sure though why the difference in behaviour, the "interactive" part of that function look innocent, simply (interactive "sPrompt"). Not sure what starting "s" means though. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163018199229587 (code B ref 50241); Sat, 28 Aug 2021 20:20:02 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 20:19:52 +0000 Received: from localhost ([127.0.0.1]:55071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4ns-0007h5-MB for submit@debbugs.gnu.org; Sat, 28 Aug 2021 16:19:52 -0400 Received: from forward100j.mail.yandex.net ([5.45.198.240]:54484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4nn-0007gn-QO for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 16:19:48 -0400 Received: from forward102q.mail.yandex.net (forward102q.mail.yandex.net [IPv6:2a02:6b8:c0e:1ba:0:640:516:4e7d]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 8ED0664F3342; Sat, 28 Aug 2021 23:19:37 +0300 (MSK) Received: from vla5-396535d496ca.qloud-c.yandex.net (vla5-396535d496ca.qloud-c.yandex.net [IPv6:2a02:6b8:c18:341f:0:640:3965:35d4]) by forward102q.mail.yandex.net (Yandex) with ESMTP id 8C2493A2000F; Sat, 28 Aug 2021 23:19:37 +0300 (MSK) Received: from vla5-47b3f4751bc4.qloud-c.yandex.net (vla5-47b3f4751bc4.qloud-c.yandex.net [2a02:6b8:c18:3508:0:640:47b3:f475]) by vla5-396535d496ca.qloud-c.yandex.net (mxback/Yandex) with ESMTP id JdjVSJAEp4-JbHelNTw; Sat, 28 Aug 2021 23:19:37 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630181977; bh=jO9Lyt2Ac2NXuDdNgE0RjBLOyYd8o+X5glg7yudMWGI=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=k6ID3eQEEF+epben3U823aE2l22OKyrbPZs/5oWK8cBL0fhqoPM673eNxs9tfWDRo i+wvozkoT6qgmTKaGEjU7HLswqq3BZQbKAC5xNt5waWWPIyYscwpkpucEQx+pKw23I yzyEo/WpS8EDlHjhLda2y6Iti1f9vmjPGCLs61XU= Authentication-Results: vla5-396535d496ca.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla5-47b3f4751bc4.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 6dLfUshaV0-JawORXFc; Sat, 28 Aug 2021 23:19:36 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 23:19:36 +0300 In-Reply-To: <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 2021-08-28 at 23:02 +0300, Konstantin Kharlamov wrote: > On Sat, 2021-08-28 at 22:45 +0300, Konstantin Kharlamov wrote: > > On Sat, 2021-08-28 at 22:36 +0300, Eli Zaretskii wrote: > > > > From: Konstantin Kharlamov > > > > Cc: 50241@debbugs.gnu.org > > > > Date: Sat, 28 Aug 2021 22:05:55 +0300 > > > > > > > > On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > > > > > > > > > You miss this step at the end: > > > > > > > > > >   (ispell-change-dictionary "ru_RU,en_US") > > > > > > > > > > It tells Emacs to restart Hunspell with these two dictionaries. > > > > > > > > Thank you! Running this command results in error: > > > > > > > >         (error "Undefined dictionary: ru_RU,en_US") > > > > > > Strange.  Here, it doesn't error out.  I did this: > > > > > >   M-x flyspell-mode RET > > >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET > > >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > > > > > And I don't get any errors, and flyspell-mode works for both Russian > > > and English. > > > > Thank you! With a little modification for steps to be: > > > >   M-x flyspell-mode RET > >   M-: (setq ispell-program-name "hunspell") > >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET > >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > > > this worked for me! Hmm, let me try to experiment with that a bit to see why > > it > > didn't work for me non-interactively… > > Okay, so the bug seems to be in ispell-hunspell-add-multi-dic function. When > called interactively, then the following interactive call to (ispell-change- > dictionary) has the ru_RU,en_US dictionary as a completion. However, if > ispell-hunspell-add-multi-dic was called non-interactively, the completion > from the subsequent (ispell-change-dictionary) call seems to be missing. > > Not sure though why the difference in behaviour, the "interactive" part of > that function look innocent, simply (interactive "sPrompt"). Not sure what > starting "s" means though. Okay, so, I figured there's some sort of odd cooperation between (ispell-hunspell-add-multi-dic) and (ispell-change-dictionary) going on. When the first is called non-interactively, interactive call to the second results in no completion for the new dict, right? So, the fun thing is that if you abort prompt afterwards, then you call (ispell-hunspell-add-multi-dic) again, and then you call (ispell-change-dictionary) interactively again, the prompt will have the completion. It looks as if call to (ispell-change-dictionary) initializes some important variable required by (ispell-hunspell-add-multi-dic) to function properly. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 20:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163018240230236 (code B ref 50241); Sat, 28 Aug 2021 20:27:01 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 20:26:42 +0000 Received: from localhost ([127.0.0.1]:55075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4uY-0007rb-5r for submit@debbugs.gnu.org; Sat, 28 Aug 2021 16:26:42 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:52512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK4uS-0007rK-Tm for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 16:26:40 -0400 Received: from sas1-934f36a1872d.qloud-c.yandex.net (sas1-934f36a1872d.qloud-c.yandex.net [IPv6:2a02:6b8:c14:492:0:640:934f:36a1]) by forward105j.mail.yandex.net (Yandex) with ESMTP id EA5CA4EC8782; Sat, 28 Aug 2021 23:26:29 +0300 (MSK) Received: from sas1-f4dc5f2fc86f.qloud-c.yandex.net (sas1-f4dc5f2fc86f.qloud-c.yandex.net [2a02:6b8:c08:cb28:0:640:f4dc:5f2f]) by sas1-934f36a1872d.qloud-c.yandex.net (mxback/Yandex) with ESMTP id dkvEwnMpSC-QTIiassE; Sat, 28 Aug 2021 23:26:29 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630182389; bh=BzpXHHPnrLmdydup76yKBqWYSHseEajbr1ZzWpN3nzI=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=CjTFtUgwIG+4MENY1SrvhEH/6wT3/uL0jydVT5BD6riV2WzMyDPx6VNPXhDFr23p1 vgTd5HJ/E9Ts1jmcjBqZOMXvnzQFMh6P91C+KoyazSnFipau74GCEVBqoxNa76nzY1 DWGwMiDrGbzTiDp2lLKwAzikoBOMut1GfGHi8Pgo= Authentication-Results: sas1-934f36a1872d.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas1-f4dc5f2fc86f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Uf3Y2klC1Z-QTg0ZIZp; Sat, 28 Aug 2021 23:26:29 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 23:26:28 +0300 In-Reply-To: References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, 2021-08-28 at 23:19 +0300, Konstantin Kharlamov wrote: > On Sat, 2021-08-28 at 23:02 +0300, Konstantin Kharlamov wrote: > > On Sat, 2021-08-28 at 22:45 +0300, Konstantin Kharlamov wrote: > > > On Sat, 2021-08-28 at 22:36 +0300, Eli Zaretskii wrote: > > > > > From: Konstantin Kharlamov > > > > > Cc: 50241@debbugs.gnu.org > > > > > Date: Sat, 28 Aug 2021 22:05:55 +0300 > > > > > > > > > > On Sat, 2021-08-28 at 21:56 +0300, Eli Zaretskii wrote: > > > > > > > > > > > > You miss this step at the end: > > > > > > > > > > > >   (ispell-change-dictionary "ru_RU,en_US") > > > > > > > > > > > > It tells Emacs to restart Hunspell with these two dictionaries. > > > > > > > > > > Thank you! Running this command results in error: > > > > > > > > > >         (error "Undefined dictionary: ru_RU,en_US") > > > > > > > > Strange.  Here, it doesn't error out.  I did this: > > > > > > > >   M-x flyspell-mode RET > > > >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET > > > >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > > > > > > > And I don't get any errors, and flyspell-mode works for both Russian > > > > and English. > > > > > > Thank you! With a little modification for steps to be: > > > > > >   M-x flyspell-mode RET > > >   M-: (setq ispell-program-name "hunspell") > > >   M-x ispell-hunspell-add-multi-dic RET ru_RU,en_US RET > > >   M-x ispell-change-dictionary RET ru_RU,en_US RET > > > > > > this worked for me! Hmm, let me try to experiment with that a bit to see > > > why > > > it > > > didn't work for me non-interactively… > > > > Okay, so the bug seems to be in ispell-hunspell-add-multi-dic function. When > > called interactively, then the following interactive call to (ispell-change- > > dictionary) has the ru_RU,en_US dictionary as a completion. However, if > > ispell-hunspell-add-multi-dic was called non-interactively, the completion > > from the subsequent (ispell-change-dictionary) call seems to be missing. > > > > Not sure though why the difference in behaviour, the "interactive" part of > > that function look innocent, simply (interactive "sPrompt"). Not sure what > > starting "s" means though. > > Okay, so, I figured there's some sort of odd cooperation between (ispell- > hunspell-add-multi-dic) and (ispell-change-dictionary) going on. > > When the first is called non-interactively, interactive call to the second > results in no completion for the new dict, right? So, the fun thing is that if > you abort prompt afterwards, then you call (ispell-hunspell-add-multi-dic) > again, and then you call (ispell-change-dictionary) interactively again, the > prompt will have the completion. > > It looks as if call to (ispell-change-dictionary) initializes some important > variable required by (ispell-hunspell-add-multi-dic) to function properly. …and, the function that needs to be called before (ispell-hunspell-add-multi-dic "ru_RU,en_US") is (ispell-valid-dictionary-list) From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163018334631648 (code B ref 50241); Sat, 28 Aug 2021 20:43:01 +0000 Received: (at 50241) by debbugs.gnu.org; 28 Aug 2021 20:42:26 +0000 Received: from localhost ([127.0.0.1]:55080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK59i-0008EK-O1 for submit@debbugs.gnu.org; Sat, 28 Aug 2021 16:42:26 -0400 Received: from forward102o.mail.yandex.net ([37.140.190.182]:36982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK59d-0008E3-4c for 50241@debbugs.gnu.org; Sat, 28 Aug 2021 16:42:20 -0400 Received: from iva4-b3068118e41e.qloud-c.yandex.net (iva4-b3068118e41e.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:14a6:0:640:b306:8118]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 52D0E6FF9103; Sat, 28 Aug 2021 23:42:10 +0300 (MSK) Received: from iva3-dd2bb2ff2b5f.qloud-c.yandex.net (iva3-dd2bb2ff2b5f.qloud-c.yandex.net [2a02:6b8:c0c:7611:0:640:dd2b:b2ff]) by iva4-b3068118e41e.qloud-c.yandex.net (mxback/Yandex) with ESMTP id U9Hn0A7C6I-gAH4spgd; Sat, 28 Aug 2021 23:42:10 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630183330; bh=n1tbJVUGesLQaisl3HjlJplTvJP4uOq09e/lcDaMKAI=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=q1adhmd7JO3a8Xz4vj11RvcvcXz/TbrAq4u25x2+8imCphWpCpfHSKV/rmYfGl9J/ GN9bK2C2q2zapwis98eAgoLRfwniURKSFWBUvEFrumDGGy+U4aTFoa5yBS/axkP37D rrUeGkRQoOehXz/NJff4HJr+kKBz/z/1HWLzhLHE= Authentication-Results: iva4-b3068118e41e.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva3-dd2bb2ff2b5f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id LiGIw6e7BR-g9siLJtK; Sat, 28 Aug 2021 23:42:09 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> From: Konstantin Kharlamov Date: Sat, 28 Aug 2021 23:42:08 +0300 In-Reply-To: References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Okay, I finally found the working combination, it is: (progn (require 'ispell) (setq ispell-program-name "hunspell") (ispell-set-spellchecker-params) (ispell-hunspell-add-multi-dic "ru_RU,en_US") (ispell-change-dictionary "ru_RU,en_US") (flyspell-mode 1) ) So, the magical function is `(ispell-set-spellchecker-params)`. Judging by its description, it has to be called before any ispell usage. I can probably call it manually, but I presume the behaviour needs fixing. I think perhaps, should ispell have a global variable like `ispell-initialized`, which then would be set in (ispell-set-spellchecker-params). And then the variable would be checked in `ispell-hunspell-add-multi-dic`, and if it wasn't set, throw an exception "Ispell wasn't initialized. Please call `(ispell-set-spellchecker-params)'"? From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Aug 2021 06:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163021760023324 (code B ref 50241); Sun, 29 Aug 2021 06:14:02 +0000 Received: (at 50241) by debbugs.gnu.org; 29 Aug 2021 06:13:20 +0000 Received: from localhost ([127.0.0.1]:55381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKE4F-000648-Mo for submit@debbugs.gnu.org; Sun, 29 Aug 2021 02:13:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKE4C-00063t-1u for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 02:13:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58678) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKE46-0001yZ-KZ; Sun, 29 Aug 2021 02:13:10 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1935 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKE46-0007oe-7g; Sun, 29 Aug 2021 02:13:10 -0400 Date: Sun, 29 Aug 2021 09:12:58 +0300 Message-Id: <83h7f8n5hx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> (message from Konstantin Kharlamov on Sat, 28 Aug 2021 23:42:08 +0300) References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Konstantin Kharlamov > Cc: 50241@debbugs.gnu.org > Date: Sat, 28 Aug 2021 23:42:08 +0300 > > Okay, I finally found the working combination, it is: > > (progn > (require 'ispell) > (setq ispell-program-name "hunspell") > (ispell-set-spellchecker-params) > (ispell-hunspell-add-multi-dic "ru_RU,en_US") > (ispell-change-dictionary "ru_RU,en_US") > (flyspell-mode 1) > ) > > So, the magical function is `(ispell-set-spellchecker-params)`. Judging by its description, it has to be called before any ispell usage. > > I can probably call it manually, but I presume the behaviour needs fixing. I'm not sure I agree. These are commands that are supposed to be invoked interactively, in the order I've shown, which works. If you want to make this part of your initialization, you need to figure out the required sequence of calls, which you did. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Aug 2021 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.16302410204814 (code B ref 50241); Sun, 29 Aug 2021 12:44:02 +0000 Received: (at 50241) by debbugs.gnu.org; 29 Aug 2021 12:43:40 +0000 Received: from localhost ([127.0.0.1]:55731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKKA0-0001Fa-IT for submit@debbugs.gnu.org; Sun, 29 Aug 2021 08:43:40 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:55438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKK9y-0001FM-T6 for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 08:43:39 -0400 Received: from iva5-8cd627e71aff.qloud-c.yandex.net (iva5-8cd627e71aff.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:7b87:0:640:8cd6:27e7]) by forward105j.mail.yandex.net (Yandex) with ESMTP id C07154EC8A42; Sun, 29 Aug 2021 15:43:31 +0300 (MSK) Received: from iva3-dd2bb2ff2b5f.qloud-c.yandex.net (iva3-dd2bb2ff2b5f.qloud-c.yandex.net [2a02:6b8:c0c:7611:0:640:dd2b:b2ff]) by iva5-8cd627e71aff.qloud-c.yandex.net (mxback/Yandex) with ESMTP id n2YoYu3lPQ-hVIqT8FO; Sun, 29 Aug 2021 15:43:31 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630241011; bh=tHiS1OqfoPTjalRnUjXdhwduoMGCi9V4ooL5RJaIQTo=; h=In-Reply-To:References:Date:To:From:Subject:Message-ID:Cc; b=XkkfoMMN3HfkC1xNsmUnO3uXGoUy8RoCw7/YUTGjfkW0dtKUpjnZ7K+vDUo/zk1EO wpRzR+POf/bq8gb9Z0zk94xHewBYAnfbU6pizqEy1aPHKOgWUjcqz2CD1hCtakG6Ga AXmA6Mi9BtH/xVkEprbH/I6Sh1fMGZ4r5w9Dzdy4= Authentication-Results: iva5-8cd627e71aff.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva3-dd2bb2ff2b5f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id I99FYsdN40-hUf8hr42; Sun, 29 Aug 2021 15:43:30 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: From: Konstantin Kharlamov Date: Sun, 29 Aug 2021 15:43:30 +0300 In-Reply-To: <83h7f8n5hx.fsf@gnu.org> References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, 2021-08-29 at 09:12 +0300, Eli Zaretskii wrote: > > From: Konstantin Kharlamov > > Cc: 50241@debbugs.gnu.org > > Date: Sat, 28 Aug 2021 23:42:08 +0300 > > > > Okay, I finally found the working combination, it is: > > > >     (progn > >       (require 'ispell) > >       (setq ispell-program-name "hunspell") > >       (ispell-set-spellchecker-params) > >       (ispell-hunspell-add-multi-dic "ru_RU,en_US") > >       (ispell-change-dictionary "ru_RU,en_US") > >       (flyspell-mode 1) > >       ) > > > > So, the magical function is `(ispell-set-spellchecker-params)`. Judging by > > its description, it has to be called before any ispell usage. > > > > I can probably call it manually, but I presume the behaviour needs fixing. > > I'm not sure I agree.  These are commands that are supposed to be > invoked interactively, in the order I've shown, which works.  If you > want to make this part of your initialization, you need to figure out > the required sequence of calls, which you did. Would you agree if I say that a good user interface means that a function invoked interactively should behave same way when it's invoked non-interactively (barring the fact that it won't show the prompt)? I would say that the answer is yes, otherwise it is very confusing. So I would say, at least the (ispell-set-spellchecker-params) needs to be added into one of them, so the same order as if they were called interactively would work when they are invoked from a Emacs Lisp file. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Aug 2021 13:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 50241@debbugs.gnu.org Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.16302424576968 (code B ref 50241); Sun, 29 Aug 2021 13:08:01 +0000 Received: (at 50241) by debbugs.gnu.org; 29 Aug 2021 13:07:37 +0000 Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKKX7-0001oG-0Z for submit@debbugs.gnu.org; Sun, 29 Aug 2021 09:07:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKKX1-0001o0-W7 for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 09:07:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37286) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKKWw-0008G7-6b; Sun, 29 Aug 2021 09:07:22 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3724 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKKWv-0002tl-ON; Sun, 29 Aug 2021 09:07:22 -0400 Date: Sun, 29 Aug 2021 16:07:08 +0300 Message-Id: <83mtp0l7r7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Konstantin Kharlamov on Sun, 29 Aug 2021 15:43:30 +0300) References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Konstantin Kharlamov > Cc: 50241@debbugs.gnu.org > Date: Sun, 29 Aug 2021 15:43:30 +0300 > > > I'm not sure I agree.  These are commands that are supposed to be > > invoked interactively, in the order I've shown, which works.  If you > > want to make this part of your initialization, you need to figure out > > the required sequence of calls, which you did. > > Would you agree if I say that a good user interface means that a function invoked interactively should behave same way when it's invoked non-interactively (barring the fact that it won't show the prompt)? No, I don't agree. And neither does Emacs: the 'interactive' form is not necessarily a no-op. As a trivial example, consider: describe-char is an autoloaded interactive compiled Lisp function in ‘descr-text.el’. (describe-char POS &optional BUFFER) Probably introduced at or before Emacs version 22.1. Describe position POS (interactively, point) and the char after POS. ^^^^^^^^^^^^^^^^^^^^^^ As you see, there's some magic happening in interactive invocations that doesn't happen when you call this function from Lisp. A less trivial example: previous-line is an interactive compiled Lisp function in ‘simple.el’. It is bound to C-p, . (previous-line &optional ARG TRY-VSCROLL) This function is for interactive use only; in Lisp code use `forward-line' with negative argument instead. Move cursor vertically up ARG lines. Interactively, vscroll tall lines if ‘auto-window-vscroll’ is enabled. Non-interactively, use TRY-VSCROLL to control whether to vscroll tall lines: if either ‘auto-window-vscroll’ or TRY-VSCROLL is nil, this function will not vscroll. Again, the behavior in interactive and non-interactive calls is different. > So I would say, at least the (ispell-set-spellchecker-params) needs to be added into one of them, so the same order as if they were called interactively would work when they are invoked from a Emacs Lisp file. Maybe, I need to think about it. But the general principle still stands: it is okay for interactive and non-interactive invocations to behave differently. We do it all the time in Emacs. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Aug 2021 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org, Konstantin Kharlamov Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163026662822061 (code B ref 50241); Sun, 29 Aug 2021 19:51:02 +0000 Received: (at 50241) by debbugs.gnu.org; 29 Aug 2021 19:50:28 +0000 Received: from localhost ([127.0.0.1]:57451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKQp2-0005jl-5n for submit@debbugs.gnu.org; Sun, 29 Aug 2021 15:50:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKQov-0005jF-LR for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 15:50:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KehsAD/gj6A8SxW9yqZjIC6q3H//UQ1zrwwv9EoOCaw=; b=tcHyR5MrMgOxyX8kUflq/8m8Lk faPhQyO2vZhh+q9J8IAiAWXTmE4aXMiaMRQSrm1d1NgwCX9KjOUSSN/oJwYqh/SUXB1+dbiCwBDso AtfLVNfgL69UNQ0enO2hnOn7z9vK8M2nIngyTbpFdgSnaW729ncct0T1nUglxzNBBdlw=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKQol-0003CB-9S; Sun, 29 Aug 2021 21:50:15 +0200 From: Lars Ingebrigtsen References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> <83mtp0l7r7.fsf@gnu.org> Date: Sun, 29 Aug 2021 21:50:10 +0200 In-Reply-To: <83mtp0l7r7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 29 Aug 2021 16:07:08 +0300") Message-ID: <87mtp0do99.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Would you agree if I say that a good user interface means that a >> function invoked interactively should behave same way when it's >> invoked non-interactively (barring the fact that it won't show [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Would you agree if I say that a good user interface means that a >> function invoked interactively should behave same way when it's >> invoked non-interactively (barring the fact that it won't show the >> prompt)? > > No, I don't agree. Well, it should be possible to set up multiple dictionaries without using `M-x'. So something here should be fixed, in my opinion. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Aug 2021 02:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 50241@debbugs.gnu.org, hi-angel@yandex.ru Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163029031928345 (code B ref 50241); Mon, 30 Aug 2021 02:26:01 +0000 Received: (at 50241) by debbugs.gnu.org; 30 Aug 2021 02:25:19 +0000 Received: from localhost ([127.0.0.1]:57862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKWz5-0007N2-F6 for submit@debbugs.gnu.org; Sun, 29 Aug 2021 22:25:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKWyz-0007Mf-Kx for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 22:25:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59380) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKWyt-0000je-Oc; Sun, 29 Aug 2021 22:25:03 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4827 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKWys-0001Zp-PP; Sun, 29 Aug 2021 22:25:03 -0400 Date: Mon, 30 Aug 2021 05:24:51 +0300 Message-Id: <83czpvlle4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87mtp0do99.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 29 Aug 2021 21:50:10 +0200) References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> <83mtp0l7r7.fsf@gnu.org> <87mtp0do99.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Konstantin Kharlamov , 50241@debbugs.gnu.org > Date: Sun, 29 Aug 2021 21:50:10 +0200 > > Eli Zaretskii writes: > > >> Would you agree if I say that a good user interface means that a > >> function invoked interactively should behave same way when it's > >> invoked non-interactively (barring the fact that it won't show the > >> prompt)? > > > > No, I don't agree. > > Well, it should be possible to set up multiple dictionaries without > using `M-x'. It is already possible, see the recipe up-thread. From unknown Sat Aug 09 13:21:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50241: flyspell doesn't work with multiple dictionaries Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Aug 2021 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 50241@debbugs.gnu.org, hi-angel@yandex.ru Received: via spool by 50241-submit@debbugs.gnu.org id=B50241.163029046228549 (code B ref 50241); Mon, 30 Aug 2021 02:28:02 +0000 Received: (at 50241) by debbugs.gnu.org; 30 Aug 2021 02:27:42 +0000 Received: from localhost ([127.0.0.1]:57866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKX1R-0007QO-P7 for submit@debbugs.gnu.org; Sun, 29 Aug 2021 22:27:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKX1P-0007Q9-CI for 50241@debbugs.gnu.org; Sun, 29 Aug 2021 22:27:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=joToe2FiAtsUS6ZTXwuKcQERDwk0pMp7GEIUFaWAaek=; b=D9+14LzWCbfl6okUCK7MtP9vNr K1VQfbjKWpO4Qr/MK2Gf00a950ccuhKGtAdYqNSehV0kd70YAaTKtI8ML6fWZZyWaVyVWAOdpaQoT 8o74S6g4Xf2U1QhPeDFxMPr+ucxnz2pLTNp86/NhZo7sDF83/FGLDDSjmF1IQsaO8AOI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKX1F-0007Wu-74; Mon, 30 Aug 2021 04:27:33 +0200 From: Lars Ingebrigtsen References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> <83mtp0l7r7.fsf@gnu.org> <87mtp0do99.fsf@gnus.org> <83czpvlle4.fsf@gnu.org> Date: Mon, 30 Aug 2021 04:27:28 +0200 In-Reply-To: <83czpvlle4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Aug 2021 05:24:51 +0300") Message-ID: <87k0k38y5r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Well, it should be possible to set up multiple dictionaries without >> using `M-x'. > > It is already possible, see the recipe up-thread. Right. But it should be documented -- I think mentioning `ispell-set-spellchecker-params' is what's missing. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Well, it should be possible to set up multiple dictionaries without >> using `M-x'. > > It is already possible, see the recipe up-thread. Right. But it should be documented -- I think mentioning `ispell-set-spellchecker-params' is what's missing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 09 13:21:29 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Konstantin Kharlamov Subject: bug#50241: closed (Re: bug#50241: flyspell doesn't work with multiple dictionaries) Message-ID: References: <83y28jjdwy.fsf@gnu.org> <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> X-Gnu-PR-Message: they-closed 50241 X-Gnu-PR-Package: emacs Reply-To: 50241@debbugs.gnu.org Date: Mon, 30 Aug 2021 12:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1630327802-10102-1" This is a multi-part message in MIME format... ------------=_1630327802-10102-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #50241: flyspell doesn't work with multiple dictionaries which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 50241@debbugs.gnu.org. --=20 50241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50241 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1630327802-10102-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 50241-done) by debbugs.gnu.org; 30 Aug 2021 12:49:37 +0000 Received: from localhost ([127.0.0.1]:58410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKgjJ-0002c3-92 for submit@debbugs.gnu.org; Mon, 30 Aug 2021 08:49:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKgjH-0002bh-7E for 50241-done@debbugs.gnu.org; Mon, 30 Aug 2021 08:49:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44630) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKgjB-0006hj-8M; Mon, 30 Aug 2021 08:49:29 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3281 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKgjA-0008OJ-Cl; Mon, 30 Aug 2021 08:49:28 -0400 Date: Mon, 30 Aug 2021 15:49:17 +0300 Message-Id: <83y28jjdwy.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87k0k38y5r.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 30 Aug 2021 04:27:28 +0200) Subject: Re: bug#50241: flyspell doesn't work with multiple dictionaries References: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> <83lf4lmm8k.fsf@gnu.org> <83k0k5mked.fsf@gnu.org> <8658b0b457b9fc41624b454a0534013173de37ce.camel@yandex.ru> <65a1ecacc7ae808fc6fbc204094375604352c4aa.camel@yandex.ru> <1b2e0b953b4036fe10d45451e6b1381fe8931eeb.camel@yandex.ru> <83h7f8n5hx.fsf@gnu.org> <83mtp0l7r7.fsf@gnu.org> <87mtp0do99.fsf@gnus.org> <83czpvlle4.fsf@gnu.org> <87k0k38y5r.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50241-done Cc: 50241-done@debbugs.gnu.org, hi-angel@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: hi-angel@yandex.ru, 50241@debbugs.gnu.org > Date: Mon, 30 Aug 2021 04:27:28 +0200 > > Eli Zaretskii writes: > > >> Well, it should be possible to set up multiple dictionaries without > >> using `M-x'. > > > > It is already possible, see the recipe up-thread. > > Right. But it should be documented -- I think > mentioning `ispell-set-spellchecker-params' is what's missing. OK, I made such a change in the doc string of ispell-hunspell-add-multi-dic, and I'm therefore closing this bug report. ------------=_1630327802-10102-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Aug 2021 18:34:04 +0000 Received: from localhost ([127.0.0.1]:55000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK39Y-00052F-DA for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:34:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:51242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK39V-000527-Ql for submit@debbugs.gnu.org; Sat, 28 Aug 2021 14:34:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK39V-0002M8-Jt for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 14:34:01 -0400 Received: from forward104o.mail.yandex.net ([37.140.190.179]:33952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK39S-0001Wy-0X for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 14:34:01 -0400 Received: from myt6-62b593a78afd.qloud-c.yandex.net (myt6-62b593a78afd.qloud-c.yandex.net [IPv6:2a02:6b8:c12:1da3:0:640:62b5:93a7]) by forward104o.mail.yandex.net (Yandex) with ESMTP id D45D065D5D23 for ; Sat, 28 Aug 2021 21:33:51 +0300 (MSK) Received: from myt5-aad1beefab42.qloud-c.yandex.net (myt5-aad1beefab42.qloud-c.yandex.net [2a02:6b8:c12:128:0:640:aad1:beef]) by myt6-62b593a78afd.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 61TrBAhvgk-XpHWv0rV; Sat, 28 Aug 2021 21:33:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1630175631; bh=CLAR2sBn23mAOeXeHBFumw5f5sZwRtgP/DjEwR3QiPk=; h=Date:To:From:Subject:Message-ID; b=jSJWQKAiioTxtwJPLOv6+SfcNIv8tVOAnYR8qQ0QA4OWkr+amwMTMwAKhETtuzwAR 2hXTNtGufjbzglfZTD9DCLAoBI2sDcm7uEHZSe70o52PJOsn+kgs02Ub16AHmgehwV fl5f8HHokl7WhO+XvyzhWVezNvpCXXNTCgpTalW8= Authentication-Results: myt6-62b593a78afd.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt5-aad1beefab42.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id KSycWcoEuS-Xp385t7g; Sat, 28 Aug 2021 21:33:51 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <581ffd00b0c4a0762689a423aff0ee13b5c85e52.camel@yandex.ru> Subject: flyspell doesn't work with multiple dictionaries From: Konstantin Kharlamov To: bug-gnu-emacs@gnu.org Date: Sat, 28 Aug 2021 21:33:50 +0300 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.140.190.179; envelope-from=hi-angel@yandex.ru; helo=forward104o.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I spent a few hours today trying to make it work, and as far I can see multiple dictionaries support is just broken. # 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) ) 3. Execute in a shell `ps aux | grep hunspell` ## Expected The `hunspell` process has argument `-d ru_RU,en_US` ## Actual The `hunspell` process has argument `-d en_US` ## Additional information M-x report-emacs-bug output goes below: In GNU Emacs 28.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-05 built on constantine-N61Ja Repository revision: 3dbbcc9a255ce2703d42792e6967797b78e8720b Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=gtk3 --without-xaw3d --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-flto=2 -march=native -O3 -pipe -fno-stack-protector -fweb -fmerge-all-constants -fno-plt -fcommon -flto -fuse-linker-plugin -flto -fuse-linker-plugin' 'LDFLAGS=-flto=2 -O3 -march=native -fweb -fmerge-all-constants -floop-nest-optimize -Wl,--sort-common,-z,relro -fno-plt -fcommon'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_TIME: ru_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: yas-global-mode: t yas-minor-mode: t global-color-identifiers-mode: t color-identifiers-mode: t delete-selection-mode: t winum-mode: t symbol-overlay-mode: t global-symbol-overlay-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t highlight-numbers-mode: t evil-goggles-mode: t global-evil-surround-mode: t evil-surround-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t windmove-mode: t global-auto-revert-mode: t global-company-mode: t company-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/constantine/.emacs.d/lisp/idomenu hides /home/constantine/.emacs.d/elpa/idomenu-20141123.2120/idomenu /home/constantine/.emacs.d/lisp/popup hides /home/constantine/.emacs.d/elpa/popup-20210625.400/popup /home/constantine/.emacs.d/elpa/cmake-mode-20210104.1831/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/constantine/.emacs.d/elpa/transient-20210723.1601/transient hides /usr/share/emacs/28.0.50/lisp/transient Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dabbrev server undo-fu imenu pp eieio-opt speedbar ezimage dframe shortdoc text-property-search flycheck debug backtrace quail smartparens-markdown markdown-mode noutline outline smex find-func cl-print help-fns radix-tree tabify yasnippet-snippets yasnippet face-remap color-identifiers-mode smartparens-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat parse-time iso8601 time-date ls-lisp format-spec misearch multi-isearch vc-git diff-mode vc-dispatcher delsel winum symbol-overlay highlight-parentheses sp-sublimetext-like smartparens-config smartparens-text smartparens dash highlight-numbers parent-mode ido evil-goggles pulse color evil-surround emvil evil evil-keybindings evil-integration evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core advice evil-common windmove calc calc-loaddefs calc-macs thingatpt rect evil-digraphs evil-vars avy autorevert filenotify company-oddmuse company-keywords company-etags etags fileloop generator xref project ring company-gtags files-x company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company pcase cl-extra help-mode use-package-bind-key use-package-core edmacro kmacro bind-key easy-mmode rx cc-styles cc-align cc-engine cc-vars cc-defs info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 353438 136088) (symbols 48 24458 1) (strings 32 87321 23690) (string-bytes 1 2859020) (vectors 16 53736) (vector-slots 8 1417151 443852) (floats 8 276 1005) (intervals 56 13087 471) (buffers 992 21)) ------------=_1630327802-10102-1--