From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60333: [PATCH] whitespace: Update bob, eob markers in base and indirect buffers Date: Thu, 29 Dec 2022 15:45:24 -0500 Message-ID: References: <87k02dz75f.fsf@localhost> <87358zprk1.fsf@localhost> <878riqv4m7.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60333@debbugs.gnu.org, Richard Hansen To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 21:46:11 2022 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 1pAzn0-0003Hq-KU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 21:46:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAzmu-0003XL-IX; Thu, 29 Dec 2022 15:46:04 -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 1pAzms-0003Wt-E9 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 15:46:02 -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 1pAzms-0004Ic-5T for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 15:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAzmr-0007ys-To for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 15:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 20:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60333 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60333-submit@debbugs.gnu.org id=B60333.167234673630640 (code B ref 60333); Thu, 29 Dec 2022 20:46:01 +0000 Original-Received: (at 60333) by debbugs.gnu.org; 29 Dec 2022 20:45:36 +0000 Original-Received: from localhost ([127.0.0.1]:33027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAzmS-0007y8-Ak for submit@debbugs.gnu.org; Thu, 29 Dec 2022 15:45:36 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAzmQ-0007xu-Ut for 60333@debbugs.gnu.org; Thu, 29 Dec 2022 15:45:35 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E7C3E4417A7; Thu, 29 Dec 2022 15:45:28 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9C57C4417A3; Thu, 29 Dec 2022 15:45:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1672346727; bh=5pdZuZcVKiTSa9/FghxB3Zr9c7/CouN3d4t5xrsIEcg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=D4m4vD9cztNmXwogqZ6Rx0FnNa8/iDFeOOUBCDhADuKZuG4B8gYoDEb6CLybmK1zN yk0/vVjuyxRMOY1jy1wosZH1lYqFrf/5AFTMfkB8+wJ1t4oGZ8yiM3YTPr0ctHW4Iy OLO2Zt5qMjeWNMhT7K4J0g2J65xEFlGthL/znyEfmwKSXSRRAh/SE2I13TxOgG2uzC cdL/4m9QuNQCFZVWL92tJapeOV5/NwjZPOmJK+rzJ/EjVytcomPjMN22jIMj061kJB wuX9ZEidS79NKhnYEicis2x39ic08McZiQRLOxhWVTNZb7GABmyQdZLy1lOtBb6l1e Xzxvn+k+LJS+g== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 71CAA1201D0; Thu, 29 Dec 2022 15:45:27 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Thu, 29 Dec 2022 09:30:03 -0500") 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:252059 Archived-At: >> Would it make sense to refactor `make-indirect-buffer' into Elisp part + >> smaller C part? > I think that's where we're headed, yes. And then the ELisp part of `make-indirect-buffer` could (among other things) add buffer-local `after/before-change-functions` that make sure to run the hooks in all the buffers sharing the same text. This way whitespace.el wouldn't need to do anything special. Stefan