From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#69703: Ispell process restarted too often Date: Sun, 10 Mar 2024 09:37:20 +0200 Organization: LINKOV.NET Message-ID: <86y1aqh70o.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34600"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) To: 69703@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 10 08:46:46 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rjDtO-0008tV-93 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Mar 2024 08:46:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjDtE-0001ka-Vx; Sun, 10 Mar 2024 03:46:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjDt7-0001jw-MB for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 03:46:29 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rjDt7-0000xk-1D for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 03:46:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjDtd-0001rI-T6 for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 03:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Mar 2024 07:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69703 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17100567767078 (code B ref -1); Sun, 10 Mar 2024 07:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 07:46:16 +0000 Original-Received: from localhost ([127.0.0.1]:35405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjDst-0001q6-RI for submit@debbugs.gnu.org; Sun, 10 Mar 2024 03:46:16 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjDsp-0001px-W8 for submit@debbugs.gnu.org; Sun, 10 Mar 2024 03:46:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjDsI-00014r-Iu for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 03:45:38 -0400 Original-Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjDsG-0000s3-Fn for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 03:45:38 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id E663440003 for ; Sun, 10 Mar 2024 07:45:30 +0000 (UTC) X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=2001:4b98:dc4:8::222; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281380 Archived-At: When different projects have different personal dictionaries and flyspell mode is used, then ispell process is killed and restarted almost on every key press. This creates hundreds of hunspell processes that soon fill all available memory. Is it possible to fix this? Here is an example of project-local .dir-locals.el: ((nil . ((ispell-personal-dictionary . "/tmp/test/.hunspell") (mode . flyspell)))) Example of backtrace after switching buffers with different personal dictionaries: ispell-kill-ispell(t) ispell-internal-change-dictionary() ispell-buffer-local-dict() ispell-accept-buffer-local-defs() flyspell-accept-buffer-local-defs() flyspell-word() flyspell-check-changes() Also tried to make the ispell process buffer-local with: (make-variable-buffer-local 'ispell-process) (make-variable-buffer-local 'ispell-current-personal-dictionary) But this is worse and caused more problems: Error enabling Flyspell mode: (Buffer *temp* has no process) flyspell-mode() set-auto-mode-0(flyspell-mode t) hack-one-local-variable(mode flyspell) hack-local-variables-apply() hack-dir-local-variables-non-file-buffer() project--value-in-dir(project-vc-name "/tmp/test/") project-name((vc Git "/tmp/test/")) project-mode-line-format() eval((project-mode-line-format) t) redisplay_internal\ \(C\ function\)()