From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wael-zwaiter@gmx.com Newsgroups: gmane.emacs.help Subject: Re: ispell and flyspell Date: Sat, 2 Jan 2021 16:35:35 +0100 Message-ID: References: <83pn2ne7nu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 02 16:36:22 2021 Return-path: Envelope-to: geh-help-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 1kvix3-0005G7-Dx for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Jan 2021 16:36:21 +0100 Original-Received: from localhost ([::1]:40216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvix2-0002D0-CG for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Jan 2021 10:36:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kviwU-0002Cp-36 for help-gnu-emacs@gnu.org; Sat, 02 Jan 2021 10:35:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:45925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kviwM-0005VL-6L; Sat, 02 Jan 2021 10:35:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609601735; bh=4RPrPK1YC/VPKNWavIoQhjRIYQAOHB6YyusDTlOO9q8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Su+olRykzEVdp8jheK0rpr+vbK00Sa9rQBPY1A/O1BxCSnLSlhaF/JwbS5gHGQYyp wZvkE0G24UtxhoV/mG/8SpK671DK43TYmN1v/tnXlgznlbL04WUzcrSUxZckoVQHcv vVgo/xtltB5oyrNBe26KMxD8yZXN3B3ZVQlTbILw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Sat, 2 Jan 2021 16:35:35 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <83pn2ne7nu.fsf@gnu.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:iFmy0qVfYVQhX8MoisTqxeHDpUFNrau1cRcPCrL9joF5RmJeR6yWygT87qFKaoi0a0Jw6 TEZ6FXxr/1k87UwQYTXcQthged75rQtRfPMEZ5+ldbLIvngdGpo97F2UuasQczZP1L2hmES0z1YZ 0q2WKQs4LSNc1+eC/bA0XrBJ+fEi2BcmFJPu2gnqyQNH1Aevqr+dLwoB//vKpOS0V77zn2VMCwip 8lF7888uZHUHwdco1aNFy1jyR6NFLNFKizeEGDk9KJiB/D4GCos39mtFeRyCiJQVkAiDfuvKk6ua mI= X-UI-Out-Filterresults: notjunk:1;V03:K0:wuHjs3clRvM=:0B43zf2j1Hf1V4qQgOHc4n Sa4PXucsWZt5eIDFltZo2TT7euivoEi9JErrP6mBVihIMSxR2wlh6lMUtK/NfalZjZCnzzOG/ cp3lY05sqiv7GorfKUjDFOeNk2tfLs6ACJFta7SmeR8Y/gj5J5ugboFu4070uZPgO3YUnJ6qf 1QZUBj/vMTG+Ps1ybYj0G9AwDkrfmfDZnW+U5pFBr7z++m72vp/EkaUw8GK3qB5SCDU2Ia6xQ mfNk8K9Tej8t1kHMzR9E9QPi80OLU5D+vGhbRO9fE1qzVASSpIDO8KYu19T5U93vDQBwo+Ppt aHPFg3G8bQLt5DMXbhR8QT0x+lRkB133w2fX+RcW2O2Wd1U0XFYaaWiwQaCf/81FTfCA841vQ WMBODPXYRg6GFNFT/bg4ROGjTD3xWyXLfNn0i9SZyVX46IAPg5b7GeSjioqCZBDsP4wv40xwl lfq+y2F7DF7AmfmJ9+JcOuhDjInnwoiDgpbhxWY+IRYmQWL2EN+crCZTEE+K4KHpNnyM/MB4G fCrG58PG/bLRrT2YMHNmSimcV8IYcoLmg5PYrP2lgPCvLPEd5JPjMtIBPsO2KzkA//CGIc40V cywYV8v89tUOA= Received-SPF: pass client-ip=212.227.15.18; envelope-from=wael-zwaiter@gmx.com; helo=mout.gmx.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, DKIM_SIGNED=0.1, DKIM_VALID=-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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126964 Archived-At: Have written the following function, but (ispell-region) is failing. How can I make option 2 call (ispell-region) on the current paragraph. Basically, option 1 will check the current word, option 2 will check the c= urrent paragraph, and option 3 will check the whole buffer. (defvar spelt-state nil) (defun spelt () "Corrects the spelling of text." (interactive) (pcase spelt-state (1 (flyspell-mode 0) (ispell-word) (message "%s" "Spell: Word") (setq spelt-state 2)) (2 (ispell-region) (message "%s" "Spell: Region") (setq spelt-state 3)) (3 (ispell-buffer) (message "%s" "Spell: Buffer") (setq spelt-state 0)) (_ (flyspell-mode) (setq spelt-state 1))) ) (global-unset-key (kbd "M-v")) (global-set-key (kbd "M-v") 'spelt) > Sent: Saturday, January 02, 2021 at 7:57 PM > From: "Eli Zaretskii" > To: help-gnu-emacs@gnu.org > Subject: Re: ispell and flyspell > > > From: wael-zwaiter@gmx.com > > Date: Sat, 2 Jan 2021 13:26:34 +0100 > > > > Writing prose in texinfo, I wonder how best to use ispell and flyspell= . Should I > > use both modes together or should I concentrate primarily on one rathe= r than the > > other? > > I'd suggest to turn on flyspell-mode, it will highlight the spelling > mistakes as you type. > >