From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Kazanov Newsgroups: gmane.emacs.devel Subject: Re: Buffers with buffers (transclusion) Date: Tue, 15 Oct 2024 16:01:44 +0100 Message-ID: References: <86r08hqvbc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 15 17:02:58 2024 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 1t0j4c-0009rH-I2 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Oct 2024 17:02:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0j3o-0003nz-DC; Tue, 15 Oct 2024 11:02:08 -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 1t0j3i-0003nf-6Y for emacs-devel@gnu.org; Tue, 15 Oct 2024 11:02:02 -0400 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0j3f-0000XO-Nd; Tue, 15 Oct 2024 11:02:01 -0400 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539fbbadf83so2473857e87.0; Tue, 15 Oct 2024 08:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729004517; x=1729609317; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uaj0/y7wUfV+MmzoFGjkGgKmxvjQUbN6JaQAP3eMAiA=; b=l4PAo+Va0LVxPhmoG30Nt0XxFWg8hdm4PRZIgXuiIClioYOEg5i5eP8+ZbW0r/1ofD 99QhQCYLkJ3G25JCHGRaFaJwYW5qGMgF2/vImzJUsa+KX/w6eMqCUsOWrXBPDUrbN0VB Iddb0Ec7lDr7JxhYy+ov+pA8Fv7d/NzA2HsBU9zcn04s79B3kp70GoIvBQoY0ZJHKKbn yD+anEdal8kDh9jRuW8kA7iWgZHOfNcxSD90XWTcqhe1lRPcLF7alneG02sgZYzLz/ZR OhNaK+vNqhfhf3kA32EfVQDjeXYayRaljY3xUrFvQ4GMB0VWtyh7N4uIzOvxTDyHq+cW KhCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729004517; x=1729609317; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uaj0/y7wUfV+MmzoFGjkGgKmxvjQUbN6JaQAP3eMAiA=; b=arBfAZpMDnUatN5/l067eoORnLNAWoFPmceNIxCHs5c22havo+iFPZjZOgybf9UbOD Q7RcZZZwGV2TWDs4QNLY98NDKuZfmGDLr4f/Xb/jqIvnaCCRhz3y9PSDzQxyIEhrTTLD fLZflelZwwMntzkXAkx94pVQxQcqkePzwQawySCUADFGFakjtwiHKarUOSyx5Ywtvegy hWzHjuQ9Fge2egzGgIBwANVP+m2Pb4xBa3svGf66L8omEELnh7W2IWmZC2zr6jiVq4nA x8a0chPi8eKEMhg7iPTV0P0vBzFpKnzxqTzi91mTH57VKFC4Noa1gLkP5NZ3NajZM5tF cTrA== X-Gm-Message-State: AOJu0Ywq2zapS+hBEyvTx/WZp1GbTLRNpcQyQ8YVKlvygKAePVUbP56f 7POVE0U1Fp5SaTBHs0ZI63YAULwpqLJdtJBfrxNf7DOz5SsuvSNf4u1UjlIjCIV/kuOdhOouhlY YXFGOVDiWmllGg4Yj/iLU0I4zYwmj X-Google-Smtp-Source: AGHT+IEFgqvEjKpvYVy0JSorrz9ft3i0mznw9W1kn09HFZS+BJ4MqdkuTdwLJF1Qpd1ZL1Ja0Lv6snTa2/CiGfGIjgM= X-Received: by 2002:a05:6512:1596:b0:536:55a9:4b6c with SMTP id 2adb3069b0e04-539da3c5712mr7726400e87.13.1729004516137; Tue, 15 Oct 2024 08:01:56 -0700 (PDT) In-Reply-To: <86r08hqvbc.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=vekazanov@gmail.com; helo=mail-lf1-x131.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:324601 Archived-At: Hi Eli, > Thanks, but it is hard to reason about the ideas and possible > implementations without knowing the intended functionalities and the > use cases this should support. So my suggestion is to describe these > first. Sure! The core use case is being able to edit many files from within a single buffer. This is what chunk-edit.el does: it makes it possible to mark regions of interest in various buffers, which are then exposed in a temporary buffer (*chunk-edit*). The user can then focus on editing interesting bits of code within a single buffer. Here's an example user story: a programmer goes through 30k lines of code of xdisp.c and dispextern.c and finds the key bits of code he needs to change. Instead of jumping between points of interest, or setting up a complex window configuration, he just copies everything into *chunk-edit* where he can safely edit all of these at once. Secondary to this is having a reasonable way to edit these diverse chunks of code with the comfort of syntax highlighting. Ideally, I would like to solve both problems in one go: just *include* a subset of a buffer within *chunk-edit*, complete with text properties and all. Thanks, Vlad -- Regards, Vladimir Kazanov