From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.devel Subject: Re: Buffers with buffers (transclusion) Date: Tue, 15 Oct 2024 09:57:29 -0800 Message-ID: <87r08h1c6u.fsf@librehacker.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="11637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Vladimir Kazanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 15 19:58:36 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 1t0loa-0002pv-K2 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Oct 2024 19:58:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0lns-000545-Vu; Tue, 15 Oct 2024 13:57:53 -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 1t0lnq-00053f-QX for emacs-devel@gnu.org; Tue, 15 Oct 2024 13:57:51 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0lnp-0000UL-71; Tue, 15 Oct 2024 13:57:50 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 14C23354241B; Tue, 15 Oct 2024 19:57:37 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :received:received:received; s=dkim20240523; t=1729015056; x= 1730829457; bh=dJZC/6FTLDB8SwmmjGZEJBsdi5uww1XtegmRNW12Bfc=; b=r DXXFtozYFZAV0Nla1j03lGnOchr1TH2AzZsM56GJ7iDcf6tdlmey4surYQ6XuSF9 6LfKRkeDuHHKKpK4e9d6n0UShBvWfY/3qTMpqLVz7+E0a5dphciTCyEWVMHR0lAV 0t3RI8RRQCuan/0q/1MDG0avNbNS6f28w+z1qSdyMTYDlIDXj4Us2UOHr+kq8WnD URAkPvE8CkVfA9BBT2vWkOddEmieqtpQECoIKuZZpISVh7gBg9o2dnzrFZkwzuwl ubQvFSmosYK1bikIPanCaiIO5BSxc7etWbvi9lcvRLe35hDjS8g6N+3NH+MdpsOt j3slaXWE32vqCWZoiT8OA== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id xOuc6I8B8tK3; Tue, 15 Oct 2024 19:57:36 +0200 (CEST) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id AD648354241A; Tue, 15 Oct 2024 19:57:35 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 7B14B20C2864; Tue, 15 Oct 2024 19:57:35 +0200 (CEST) In-Reply-To: Vladimir Kazanov's message of "Tue, 15 Oct 2024 16:01:44 +0100 (2 hours, 41 minutes, 59 seconds ago)" Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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:324604 Archived-At: Hi, *chunk-edit* seemed like a very appealing idea to me, so I tried it rig= ht away this morning. My use case was editing two chunks of elisp code that= were very far apart in a single file. However, for me the fatal issue is that chunk-edit-mode replaces the active= major mode, so that indentation, and presumably other things, are not hand= led properly. I think any approach to this has to deal with that properly = =E2=80=94 maintaining the correct major mode in chunk. It think my particular use case could instead be handled with zones.el. Not= sure about the case where you have, e.g., someone wanting to edit a region= in a C header file and a region in a C source file, in the same buffer. I = suppose that might be useful, e.g., when using search and replace macros an= d such like. --=20 Christopher Howard