From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Grammar checking in Emacs Date: Tue, 16 Nov 2021 20:09:19 +0200 Message-ID: <834k8c0y7k.fsf@gnu.org> References: <297e7f60-e97d-f162-d57-13335b65f4c4@froglet.home.mavit.org.uk> <87a6i4m12r.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15746"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mardani29@yahoo.es, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 16 19:10:05 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mn2uC-0003ub-4T for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 19:10:04 +0100 Original-Received: from localhost ([::1]:37752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn2uA-0001bg-V5 for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 13:10:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn2td-0000te-8W for emacs-devel@gnu.org; Tue, 16 Nov 2021 13:09:29 -0500 Original-Received: from [2001:470:142:3::e] (port=57478 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn2tc-0001a1-DO; Tue, 16 Nov 2021 13:09:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Ofe/uCrqbPNqFZUMxeaVOp+Ce4nr6N3M10bHKG3s9sA=; b=QCdYtUBgPCcN3aP9EmH7 xwuTW+7DYUkFXpbqjxJF4Wn8e+KUf75/jqhzeJw+qHvrMmh4ue5pm19g9T3WzawUImC9ityMz5KPA f2/3ldJkENMqEPHZy9IPeHfkemU2c04TvAtaUXGVcf19ErVuMjV0Qnbzo54WGcfZ0wjyJi6t7ghNu 2SaBfoNpo3C3RDMyPKSatR09mfrGUHuRFsBNaaLXWkXVeAJKhq+gaAxiQIghYEeXX+Tre9Foera1f /lDJ2iJK7qRMH1Zh0IfA77CIdG+RqDkei5jPFqo1dRE4ghaPMSjDDntud9rQBsqg++qX0wJ6VgoVj X+wPaci09kH3aw==; Original-Received: from [87.69.77.57] (port=2760 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 1mn2tc-0006Ov-2B; Tue, 16 Nov 2021 13:09:28 -0500 In-Reply-To: <87a6i4m12r.fsf@posteo.net> (message from Philip Kaludercic on Tue, 16 Nov 2021 18:01:48 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279578 Archived-At: > From: Philip Kaludercic > Date: Tue, 16 Nov 2021 18:01:48 +0000 > Cc: emacs-devel@gnu.org, Daniel Martín > > Stefan Monnier writes: > > > Any chance you could port it to `flymake` and contribute it to GNU ELPA? > > Should this use flymake or should ispell be generalized to handle > grammar checking as well? Usually flymake doesn't offer you direct > suggestions on how to fix code (or at least I haven't seen it yet), > while ispell gives me a list of possible fixes. Ispell's interface for the list of fixes is not really appropriate for grammar checking, since in the latter case one frequently needs to replace entire phrases, and also because in many cases the checker needs to display an elaborate explanation of the mistake. So I think IU-wise neither Ispell nor Flymake's default presentation are good candidates, perhaps something like flymake-show-buffer-diagnostics. Caveat: my experience with using grammar checkers is very limited.