From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Titus von der Malsburg Newsgroups: gmane.emacs.devel Subject: Re: Changing dictionary while flyspell-buffer is running Date: Thu, 21 Feb 2019 09:29:06 +0100 Message-ID: <87lg29sfxp.fsf@posteo.de> References: <874l8ztmgk.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="232833"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 26.1.91 Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 09:29:22 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwjjM-000yPm-Sl for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2019 09:29:21 +0100 Original-Received: from localhost ([127.0.0.1]:56381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwjjL-0001F7-Sv for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2019 03:29:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwjjF-00017p-Cq for emacs-devel@gnu.org; Thu, 21 Feb 2019 03:29:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwjjE-0003vE-8n for emacs-devel@gnu.org; Thu, 21 Feb 2019 03:29:13 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:59436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwjjD-0003uS-P1 for emacs-devel@gnu.org; Thu, 21 Feb 2019 03:29:12 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A05E916005F for ; Thu, 21 Feb 2019 09:29:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1550737749; bh=MNMfG8nAB3bfDhFqUHwzmzELzMK4ZxODgKw1KSq6F/s=; h=From:To:Cc:Subject:Date:From; b=bBuhHZNDSvevxavKnR3P6xINHm5n8dd4CcdvhIfVRmXSS94N1SjqySZEb/xldkJSq yMcVIVGaVFZ4zN86/ikkAzVa9xX4AcvjJvW9Zs2xVLvv9mRMmYGwOyzZ/qHrw6RO3K VuZcbFTlBG0T+jB0r44/w5IX4VK3HJ4saI2S5R/7bDLTIX9BoZj90TDOPTdyYyDJyX qLr5kJskKBC283QvsaXsLE9c4lJQVMm5l1gQa9zsFAuUnU52dRxudwhB1ydXeslQjY pKTk18BVUgKPkJ6RMRlqoqpcOFQBY32mIFSJFKV8/lGH4+sVgSzh1XzkxEBxLSL06E n3C27JGwsDGdQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 444ngl5rB7z6tmZ; Thu, 21 Feb 2019 09:29:07 +0100 (CET) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.67.36.65 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233507 Archived-At: On 2019-02-21 Thu 04:26, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I wrote a package called guess-language that automatically detects the > > language of what is being typed and then switches dictionaries for > > spell-checking as needed. The code relies on > > fylspell-incorrect-hook. > > I don't use flyspell, but I would appreciate this feature of > automatically selecting the proper dictionary. Could you arrange > some other way to automatically run the program? > Perhaps a variable that would tell the user-level ispell commands > to call your package at the suitable times? Sure, that would work, but then we=E2=80=99d have to make changes in ispell.el. Alternatively, my code could defadvice ispell functions, such that we guess the buffer language and set dictionaries before spell-checking. By the way, if there is interest, I=E2=80=99d be happy to contribute my pac= kage to Emacs/Elpa. (I did the FSF copyright paperwork some years ago.) Titus > > --=20 > Dr Richard Stallman > President, Free Software Foundation (https://gnu.org, https://fsf.org) > Internet Hall-of-Famer (https://internethalloffame.org) --=20 Dr. Titus von der Malsburg Department of Linguistics University of Potsdam, Germany https://tmalsburg.github.io