From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitrii Pisarenko Newsgroups: gmane.emacs.help Subject: How to detect words being added and removed to a buffer in a minor mode? Date: Sat, 19 Nov 2022 20:44:46 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20184"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 21:08:38 2022 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 1owqcI-00056P-3J for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 21:08:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owqbo-0003zO-9o; Sun, 20 Nov 2022 15:08:08 -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 1owUiA-0008OO-1o for help-gnu-emacs@gnu.org; Sat, 19 Nov 2022 15:45:14 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owUi7-00024u-Ew for help-gnu-emacs@gnu.org; Sat, 19 Nov 2022 15:45:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpisarenko.com; s=protonmail; t=1668890701; x=1669149901; bh=/jDMqDdWOoBisKK6MDeWbMD5zNItaARw1Q5iPDp36do=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ACas4AaSW84Eu7OIBGolwIMnIhbknKq5MvSi+LTfYhYLXsxM4wohSpC7Z4zZzXtH3 SlNTN9pWjzkhInw5PJe4WLXsn3mhGveUYuQQvuyiOZ98zZTTeDCcJx0TG8ocnjccQA VuQ4U+8ZFc4V6FfKhlFg4+YrzWV/eb6BYCHHFwNI= Feedback-ID: 18534060:user:proton Received-SPF: pass client-ip=185.70.40.136; envelope-from=dp@dpisarenko.com; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 20 Nov 2022 15:08:06 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141066 Archived-At: SGVsbG8hCgpJIHdhbnQgdG8gY3JlYXRlIGEgbWlub3IgbW9kZSB3aGljaCBhbGxvd3MgeW91IHRv IHNlZSB0aGUgbnVtYmVyIG9mIHdvcmRzIGluIGEgYnVmZmVyLgoKSSB3YW50IGl0IHRvIHdvcmsg aW4gdGhlIGZvbGxvd2luZyB3Y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