From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73663: 29.4; indirect-buffer behaviour is not correct Date: Tue, 08 Oct 2024 00:49:50 +0200 Message-ID: <877cajbka9.fsf@web.de> References: <877cal44fe.fsf@gmail.com> <861q0turor.fsf@gnu.org> <87zfng2cdt.fsf@gmail.com> Reply-To: Michael Heerdegen 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="12623"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 73663@debbugs.gnu.org, Stefan Monnier To: PENG Kevin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 08 00:50:18 2024 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 1sxwYT-00039d-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Oct 2024 00:50:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxwY9-0006FK-O5; Mon, 07 Oct 2024 18:49:57 -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 1sxwY6-0006F0-AD for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 18:49:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxwY6-0002mM-28 for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 18:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=1fsnckZV1lL1umzuGpFqoDJyWsVsNKCnV2UwABMUqNQ=; b=nE28BIldtZey8uSaYnqZfzs/CB0+bMCzKT3ZMWE5nkNJ2jE9iHPKiRfcgVWAcDqzjd8rd5t/HromVGnf8ORExy2n5cIg0ryi550zhUUJkft1tQCWovP0Zikrwi6rUuyVPzsSCOooUWBorZhLWgypcTlmv4vCOnie6nz0Y78iEK2CZoUuTKTeCP0QuzpnFsw+7whnsZwiU+duxFk3iCyk2rv5Fry3D8PZogPKla+v3H4C/rCnXTKdFh8w8NWM43G5fjGHW5mKrxacJVA3ymn8rZMLH0fInMqIlKE8tgt1anHHv10zsJHvzeEmNbFCAqM3HC08Cgv/ooYTzkNEfuNtoQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxwYD-0001lp-Me for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 18:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2024 22:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73663 X-GNU-PR-Package: emacs Original-Received: via spool by 73663-submit@debbugs.gnu.org id=B73663.17283413606742 (code B ref 73663); Mon, 07 Oct 2024 22:50:01 +0000 Original-Received: (at 73663) by debbugs.gnu.org; 7 Oct 2024 22:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:49296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxwXX-0001kg-QB for submit@debbugs.gnu.org; Mon, 07 Oct 2024 18:49:20 -0400 Original-Received: from mout.web.de ([212.227.15.4]:56373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxwXV-0001kP-E2 for 73663@debbugs.gnu.org; Mon, 07 Oct 2024 18:49:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1728341335; x=1728946135; i=michael_heerdegen@web.de; bh=1fsnckZV1lL1umzuGpFqoDJyWsVsNKCnV2UwABMUqNQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=mS/WyTNF6/+XE89zIyXQDiC/OXxR0l97MQw+uv5dV+gbw7Vm7v8s1X9abRDUc+be ngGR5IedbOIKvsWQJmAAff3r1JqUwMOdyiG1rkPy9zDiKzJqNbvft7oDoXhaY1W9t WbuDQ/PuS6IRP1hfFECzQqN9C3P//NNS7ihbMMq5FD3Mb40iOYrRlxboFCq6UTccr t6Tt9Jecw13FiWMOPgHssR5GJf06fPDHmS0LgNP2FTz2aZTcsi1F7Rg7CG/K40VAw cmO5cmxMPSDTyUtqglObv4XRZeQQQMyDrWzM+8mbONWEYj4QhC3b+2JQcouAGxVxs r6Mmqdo88DuJS7urrQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([92.75.138.227]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MjgT9-1tj4vs1jzv-00pJYy; Tue, 08 Oct 2024 00:48:55 +0200 In-Reply-To: <87zfng2cdt.fsf@gmail.com> (PENG Kevin's message of "Mon, 07 Oct 2024 22:34:27 +0800") X-Provags-ID: V03:K1:KQEtgeQJAarwIAMvWkgqIVJXUF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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:293131 Archived-At: PENG Kevin writes: > The text of the indirect buffer is always identical to the text of its > base buffer; changes made by editing either one are visible > immediately in the other. =E2=80=9CText=E2=80=9D here includes both the c= haracters and > their text properties. `image-mode' uses text properties to display the image! Most major modes use text properties to font-lock the buffer and change the way how its contents are displayed. Use cases of indirect buffers are limited, maybe we need to warn more explicitly that their usefulness is very restricted. IIRC, having indirect and base buffer using different major modes is something that was never supported. >From the past discussions about the matter I also recall that the limitations are lying in the concept and we can't do much here without a reimplementation of the idea. So I would suggest to rather think about how to get what you want without using indirect buffers. Michael.