From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.devel Subject: Re: jinx Date: Fri, 31 Mar 2023 21:35:25 +0200 Message-ID: <86edp4yarm.fsf@gnu.org> References: <87sfdnyuxc.fsf@posteo.de> <83sfdl2z26.fsf@gnu.org> <86tty0ydnl.fsf@gnu.org> <83fs9k20tu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39034"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rms@gnu.org, m.eliachevitch@posteo.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 01 09:09:20 2023 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 1piVMV-0009yx-T7 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Apr 2023 09:09:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piVME-0007Bv-JU; Sat, 01 Apr 2023 03:09:02 -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 1piVM9-00072Q-EE for emacs-devel@gnu.org; Sat, 01 Apr 2023 03:08:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piVM9-00022C-4W; Sat, 01 Apr 2023 03:08:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=tJaOYEtjslL4SlU3he93PFjICZIp+QIWgwxtM2PLG38=; b=Mf6H+QDKmupFE2Pn9GVt CPSTBiZN1JoVm0C8hqZneCXJA4f3Cy72dXi86uzk5Vx/CPxvjTYwc4/5Ol6WSzlxPW1LfmBB9+n7V AIRKjQejwFipwBLIQETo6T/N7JyzeugUiBAgatdYgcNUfKN14uKCMakyXxxy0v/OJwOrZ/B+CFdnE ZFVwXST7pSWX+D2JXIfYCYxXM1fizZFWH7q28oMiOt+6AJVFB7Zcmk+5gd3yxjp+p4wz8isc8gVVX G8VhS3EPW3Wvk4k2t+njwlhHHmWGtq1aSVH5wMD+V1LSjEviqCeylJwMM0o0YbzToINY8OLb/qAwO Lhd2mdZ0T/9Nqw==; Original-Received: from p5b326472.dip0.t-ipconnect.de ([91.50.100.114] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piVM8-0003zr-5O; Sat, 01 Apr 2023 03:08:56 -0400 In-Reply-To: <83fs9k20tu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Mar 2023 22:11:09 +0300") 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304971 Archived-At: Eli Zaretskii writes: > Please submit patches to do that, it shouldn't be hard. I tried it as I wrote tex-ispell.el but I didn't understand flyspell.el enough back then. Maybe I give it a new try, but I wouldn't hold my breath for that. > (I wonder why the built-in TeX support in the spell-checker doesn't do > this job, it's supposed to be adequate, and all Emacs needs to do is > to tell the speller it is working on TeX text. So I don't even > understand why we need to skip something on our own in these cases.) I can only tell for hunspell: It has built-in support for skipping of many macro arguments and environments[1], but: a) It is not complete (and probably will never be) b) It cannot work for user defined macros/environments, and this is where AUCTeX/ispell shine: AUCTeX can parse user defined macros/environments and add them automatically to `ispell-tex-skip-alists'. c) Another advantage of `ispell-tex-skip-alists' is that one can write a function and put that in `ispell-tex-skip-alists' for certain macros/environments: That gives us a lot of flexibility to precisely skip or check. Best, Arash Footnotes: [1] https://github.com/hunspell/hunspell/blob/e7ccb97fde9d7e9a81c920a3e255ad98426692f8/src/parsers/latexparser.cxx#L53