From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#61814: [RFC] Asynchronous, jit-lock-based Flyspell Date: Mon, 06 Mar 2023 11:52:53 +0100 Message-ID: <878rgaqhh6.fsf@gmail.com> References: <87a60spwv7.fsf@gmail.com> <5734219A-738C-4BA4-97F4-91670B7DAAAF@gmail.com> 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="27539"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, Stefan Monnier , 61814@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 11:54:28 2023 Return-path: Envelope-to: geb-bug-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 1pZ8U8-0006yj-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 11:54:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ8Tv-0008H7-DO; Mon, 06 Mar 2023 05:54:15 -0500 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 1pZ8Tl-0008Av-AS for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 05:54:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ8Th-0001bc-VG for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 05:54:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZ8Th-0007ll-O9 for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 05:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 10:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61814-submit@debbugs.gnu.org id=B61814.167809998529785 (code B ref 61814); Mon, 06 Mar 2023 10:54:01 +0000 Original-Received: (at 61814) by debbugs.gnu.org; 6 Mar 2023 10:53:05 +0000 Original-Received: from localhost ([127.0.0.1]:41508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ8Sm-0007kL-Jc for submit@debbugs.gnu.org; Mon, 06 Mar 2023 05:53:04 -0500 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:39637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZ8Sk-0007jp-Kx for 61814@debbugs.gnu.org; Mon, 06 Mar 2023 05:53:03 -0500 Original-Received: by mail-ed1-f50.google.com with SMTP id ec29so5827167edb.6 for <61814@debbugs.gnu.org>; Mon, 06 Mar 2023 02:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678099976; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IfI0+kUkLyi/bmgyJXhqEhoBI6VexTFnZ2UClUmIJPI=; b=oS8We2E24k34ybGEPtYyJegLFuvSJ+5GXZf13PlWfyN5hwaAJnGoCqlAVJffY6YrIl Sf/DQoYC59ZqD3tYQ8SY3yeiCBDAJZGuatbqv26tP2W822Imag5PmiiCRsA51Ud7y610 nO/vbQ3tU9B67JAF6dood5YTZkBlfuDsGvBcJi3r0kN45m5t/AUxaSVwguZJIltnDzuY gf84clZJRlYbNisL+YbRKD4vfMF3FEPge7IWlOWZNDYn6fzQKmJQxVAvZYSEUGVGDcZm SrNNbydwVvmElH4vOzl8UbbaVuHOK3X+cIBdVhojtBJx+aHXx4BDCpyZ4VF/pOjmv3uf pRUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678099976; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IfI0+kUkLyi/bmgyJXhqEhoBI6VexTFnZ2UClUmIJPI=; b=x0japS52yn35wCiABKcabvaqkh4CDjNPkEu33iOxWQ4m2BEb8wrsWcimGGLaZNCLF6 mi/P8jSXX6Lz8WF4wKiuZPwltjS9Mrhol8m2AzlYbdnuimJpcGISi1FUIRHB4uN+2+vf 8rbEnFBk3OfqoSQ3zAgnY0lxkcEyppmslGdfBU3RdVMV8VvkjGKB8WjARZcIocSwSwTe 5Y3yxiaI174gallAM3cn3MV4iUFaj7bDlIqyn2cZiImJlB0YTxJh4kIaIgbaP2LxyJu6 Nk/YpQl+BRXf/0Quj5kkHN4uHOc32MvsCxVPmyYSgFDLZu5xlt/9ITnlN1reiijflEza 9JXA== X-Gm-Message-State: AO0yUKWWxO1aGIb9lT2yfsGFliy5dIuemLPaDxg/H1Nb6/9ZuMT5MX3S X4XPD6TvLoaefwA+5olQpA/Gh93d5RyQ+w== X-Google-Smtp-Source: AK7set+YzDdxTI3LZ1W8WItvBwR1kSBJEKzGIq1itTkSwMEds6kKpHO/iNa6FCE2qfiWXy8NvRuOZQ== X-Received: by 2002:a17:906:164e:b0:878:481c:c49b with SMTP id n14-20020a170906164e00b00878481cc49bmr10233508ejd.1.1678099975382; Mon, 06 Mar 2023 02:52:55 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id qt2-20020a170906ece200b008e938e98046sm4371700ejb.223.2023.03.06.02.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 02:52:54 -0800 (PST) In-Reply-To: <5734219A-738C-4BA4-97F4-91670B7DAAAF@gmail.com> (Yuan Fu's message of "Sat, 4 Mar 2023 14:59:41 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257377 Archived-At: On Sat, 4 Mar 2023 at 14:59, Yuan Fu wrote: > wucuo.el also caused an issue when I opened a buffer with some inline > images. The inline image is the raw image data encoded in base64 > inserted into the file as a string, plus a display text property over > the whole string displaying it as the image. wucuo.el thinks that huge > string is visible in the window (because of the display text > property), and tries to spell check that huge string, and got stuck. wucuo.el seems to be synchronous like Flyspell, so that sounds like a big problem. Anyway, which major mode does that? AFAIK the usual is to have the underlying text of an image just a space or something similar. > I wonder if it=E2=80=99s possible or desirable to follow the flyspell=E2= =80=99s > behavior but make it async? Preferably when some mechanism to discard > unnecessary spell checks. For example, I modified my scrolling > functions to inhibit flyspell from running in post-command-hook, which > speeds up scrolling considerably. Otherwise flyspell would try to > spell check every word you scrolled by and cause perceivable > slow-down. It sure is possible, but not something I would be interested in doing. jit-spell shouldn't suffer from the issue you described.