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 20:33:02 +0200 Message-ID: <86tty0ydnl.fsf@gnu.org> References: <87sfdnyuxc.fsf@posteo.de> <83sfdl2z26.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="16752"; 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 Fri Mar 31 20:35:03 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 1piJaZ-0004AN-4C for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Mar 2023 20:35:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piJZz-0001bh-0V; Fri, 31 Mar 2023 14:34:27 -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 1piJZw-0001bA-Tw for emacs-devel@gnu.org; Fri, 31 Mar 2023 14:34:24 -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 1piJZw-00087w-5A; Fri, 31 Mar 2023 14:34:24 -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=Fs7wiDUXLBS2YqflEIFjwZqgPBs27aWoLTBFAIWSUms=; b=pEL226swDofQ2m+/oILB 55vQ1ftDDhp44yY3WBp/yOoq0CS4JHAh7RwD8Kr8BWrE7l8F20wK19uNXSKDwjrU3KA8yJ2Pb6H9F kFLVlX5xLlbSkC7jgIalO5zuD5y5Be5Gqhin//Lb4cW7WXUnb/6nULIxopsAlb8mWTUUlcash78yc 3XHrwK6US80mtfhpcx240vt3tzYMODG5YyJfMWQAVQYbArnKAtFOhk/uShbxlN5RF5ZwH6lyOuyL4 9ZovysQq+kDmicsctUuVcJZDsdy4Gq2QQCzfD9r+jDukhT5G7ne7zRUOQkkVqz5NVd6SEutvWOxFG ykZP+PkjpFpEhg==; 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 1piJZp-0004eU-9c; Fri, 31 Mar 2023 14:34:17 -0400 In-Reply-To: <83sfdl2z26.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Mar 2023 09:51:45 +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:304948 Archived-At: Eli Zaretskii writes: > Another feature of jinx is the ability to skip some buffer text, e.g., > relying on font-lock faces or user-defined regexps to identify the > parts that should be skipped. We have similar features: > spell-checking of comments and strings, but if that is not enough, we > could extend these capabilities in ispell and flyspell by simple > enough additions. Somewhat off-topic, but it would be great if ispell and flyspell could use the same logic for skipping portions of buffer text. Take for example (La)TeX mode: ispell uses `ispell-tex-skip-alists' and flyspell uses `flyspell-tex-command-regexp' (which is not very powerful) and then a function added to `flyspell-generic-check-word-predicate' (AFAIU). I once wrote an addition for AUCTeX (tex-ispell.el) which extends `ispell-tex-skip-alists' for many LaTeX packages but had hard times making it work with flyspell as well, skipping multi-line text portions was something I couldn't solve for flyspell, e.g.: \begin{verbatim} Please skip the entire text in this environment. \end{verbatim} Best, Arash