From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: help in writing function to pop indirect buffer Date: Mon, 30 Jan 2023 19:38:00 +0100 Message-ID: <63d80c7a.df0a0220.1cd1c.7c73@mx.google.com> References: <63d50c2c.5d0a0220.cad7c.0cb0@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11862"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Jean Louis To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 30 19:29:44 2023 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 1pMYuW-0002ui-AX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Jan 2023 19:29:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMYu7-0000Qu-Ry; Mon, 30 Jan 2023 13:29:19 -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 1pMYu6-0000L0-AO for help-gnu-emacs@gnu.org; Mon, 30 Jan 2023 13:29:18 -0500 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMYu4-0000yn-IZ for help-gnu-emacs@gnu.org; Mon, 30 Jan 2023 13:29:17 -0500 Original-Received: by mail-wr1-x429.google.com with SMTP id bk16so11978797wrb.11 for ; Mon, 30 Jan 2023 10:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=1ecFFB8u+DRBP0WzbNtp+3nZ+sqhGsxQQR7Tfy+b1ZI=; b=ECTS8Vww+A/BVaKOOB0v6zCAg88ILmnYDG2NAxxjkne+tyTA2mcOfjljBsXwgaKNSP Klr8DfYUahdnLqi2kp42cuGyXGV18eHPfK4bJ0gMkQVtrPtGAWfJwjgIgB0bEnZ4KcH6 HPGuVDp5ycEFxRYQr6p736O+KfKLQZauQiSOaxEBigzT1M7ffDY4yZmKQ1XX7mNoTYCx HWYaPIukH2PJ4fmX/CurOB9z+jxwU+ZANxPXOSYCPRkCQ1D8RuWvvx6KmU6Rm8LTLWru 9p8Ej2VzzknWs8q/JtwV9VDZHLA3UAgfMXB4cgA0wulBN3ycvBhGon/WwcgMGHhlMxZd InwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1ecFFB8u+DRBP0WzbNtp+3nZ+sqhGsxQQR7Tfy+b1ZI=; b=MVDiJe9L8KcBJQRL78dFMoQ3D71Zkifw/2G7fLBt43TVTcc311X8ObmcU6dD4tbM73 GTZUUXZ0tczKAXgr1j+YcxDqgHchikA+eJ23/Lxlw1nvW6FoT3/1JrykR5P8wuLRVg6m 1LyrZSjJKPmICoK4gFKWoNR4j/Z66D1DKoSo2RROWl5B24u4ruWbYy/wnId3FCQDpu/G uU6D4E1Tm0ujX6EmE3Dj0PaVxypWjcUgfYfboLO+NThOOGj04YQ7dvyEVLPQZt4QNf6N TQPAV2Hw5OokoOfyPiyH0iwOnSZoeLABbczJPWLYJM2qeQHb4ZJLhe2hhjx2icGGNjW5 0/Hg== X-Gm-Message-State: AO0yUKUSTIX/my+OZqsc27v+r28jbk0JaphE/YnyS6gTq/S49OBjQlPk a0lWLjLGX1BX4rUpLMQktG8= X-Google-Smtp-Source: AK7set8eEWDP+/Stk+JV9KeTnxVprtLB2CjXreoKu1PZ2ArOjrDAHrlUa2rI+HAAUwO0QhOAeABdXA== X-Received: by 2002:adf:e187:0:b0:2bf:c05d:60bd with SMTP id az7-20020adfe187000000b002bfc05d60bdmr382520wrb.55.1675103354970; Mon, 30 Jan 2023 10:29:14 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id y17-20020adffa51000000b002238ea5750csm15118814wrr.72.2023.01.30.10.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:29:14 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Mon, 30 Jan 2023 19:38:00 +0100 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x429.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, MSGID_FROM_MTA_HEADER=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: 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:142560 Archived-At: Luca Ferrari writes: > Another idea could be to use a normal buffer, narrowed to the region I > would like to have. The problem is that clone-buffer cannot be used > for a file visiting buffer. > Any idea? > Jean posted a link to a wiki page about indirect buffers: https://www.emacswiki.org/emacs/IndirectBuffers >From that page, it looks like the package 'edit-indirect' should do what you want: https://github.com/Fanael/edit-indirect (edit-indirect doesn't use "indirect" buffers) Bruno