From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gGOVNjFvZWP62wAAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 20:59:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UBGkNjFvZWPL/gAA9RJhRA (envelope-from ) for ; Fri, 04 Nov 2022 20:59:45 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DD7139A4A for ; Fri, 4 Nov 2022 20:59:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or2q0-0000JT-6d; Fri, 04 Nov 2022 15:58:48 -0400 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 1or2py-0000Ic-3E for emacs-orgmode@gnu.org; Fri, 04 Nov 2022 15:58:46 -0400 Received: from bird.banana.relay.mailchannels.net ([23.83.217.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or2pv-0006M4-LF for emacs-orgmode@gnu.org; Fri, 04 Nov 2022 15:58:45 -0400 X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B60626C2099 for ; Fri, 4 Nov 2022 19:58:34 +0000 (UTC) Received: from pdx1-sub0-mail-a297.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E917B6C1C4D for ; Fri, 4 Nov 2022 19:58:33 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1667591913; a=rsa-sha256; cv=none; b=IJoYE0PC1A4lxTiBErnqGFvE/siZNi0K+RojzXxeJ8+SDLvzqw4X/LWxl76iLecdab+8b8 n/8F7RieK0ZfEbj0ontyv/taOuajMQFJ/jvyPh7QhilaGj/PnKud7B88gC/g10onAM+N3i C/rCPJuLecyH05Ty6cIq7tTKCMgPnj3zwix4pVqe68rWjKW5YjrlPFSLatBXM3EpZK0PWe dBb3b6ojEHSko2jikQE71ULn3MrwE7WAsPV6GzKkhUJM5Lk7UobAXlRYIB+e5DOGxace+C 3EanCvKSDu1V9T0NBHSsVTVkmFMnVSx33Hj6/mh1pd4C3ugRNQ2H5fFmpsl/nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1667591913; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=aW4d09DNwGeUwsS7isDy0UQwU1BU2fo3hh4s0UlcV+o=; b=QzoG+TcoF+LbWAbQv0OgunpmLs8rtO7X0LjI1xWMrVh0LuYiUlTTo6EVvu6qNQHKPI0QI4 GqxMxnVouPYqhHmLKolZxetARp4Lxi1W4q2GVDKnPAXultrUv1i5RQrfis41Chtq4CSHmW nB26E336EgncWS87mLBlQ7Ur25p3eJYlYWNO26ZyEHMwD4ytAg6gCppRIjCIcDcC5qJDck EtTcifnMzvn2un2DIcUp2ppj9vfgDts2dQr9Wc9dLZ6xlE/bzlfR/xMbrfeKuADRXJ+LAW D9dRMHIFxui4jcKnz50XX5FwoeRgodoD/AttEVWXwabZrMgLK3x0i7qItJqhng== ARC-Authentication-Results: i=1; rspamd-5cb65d95c4-44jsd; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net X-MC-Relay: Bad X-MailChannels-SenderId: dreamhost|x-authsender|inbox@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Cure-Power: 1c857cd77c179fb3_1667591914436_454766394 X-MC-Loop-Signature: 1667591914436:2535634807 X-MC-Ingress-Time: 1667591914436 Received: from pdx1-sub0-mail-a297.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.24.77 (trex/6.7.1); Fri, 04 Nov 2022 19:58:34 +0000 Received: from [10.67.0.66] (unknown [193.56.116.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: inbox@alphapapa.net) by pdx1-sub0-mail-a297.dreamhost.com (Postfix) with ESMTPSA id 4N3rzF19mCz3P for ; Fri, 4 Nov 2022 12:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1667591913; bh=aW4d09DNwGeUwsS7isDy0UQwU1BU2fo3hh4s0UlcV+o=; h=Content-Type:Date:To:From:Subject; b=x4Xs9U9VBtIAuE4cGGeOtIP+Y+dymY6gkLaD7kL8ar8QhskgRytFC1Sx+6qB3iOtN 56GKF88/17x49yRJ9inTfCcCybdYhfMgH9yimC/xTJAMYadeeEhYqx+Zx+uvEWt2vE EfUeuGi4lAqJcJ1nLvq8a9oKTuKZwSRDUYnM0kxcMhjfwsk+e3AG0P6n+amXmAJryB ksC7R1uJrBYwwsngVdcDM2mtiWRHs+eLLi1mKboCixYrn1qfg0BpW+BUgWw03Xf26B xIpPWIAQdz9yxBOFlXOoBvsFpQqX9KdDDNiPUk45Co97Ri6jnXl2YLC01hY4u2rPh5 LtP/Ht5AP/uEw== Content-Type: multipart/mixed; boundary="------------6cmOimsNEIbcyC4ERJCKyngq" Message-ID: <66cdbc7d-9720-d124-a9f1-2467ae07a4ef@alphapapa.net> Date: Fri, 4 Nov 2022 14:58:32 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US To: emacs-orgmode@gnu.org From: Adam Porter Subject: [PATCH] * lisp/org.el: (org-get-indirect-buffer) Allow indirect base buffers Received-SPF: neutral client-ip=23.83.217.17; envelope-from=adam@alphapapa.net; helo=bird.banana.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667591985; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aW4d09DNwGeUwsS7isDy0UQwU1BU2fo3hh4s0UlcV+o=; b=eR7uTFhG1gWnEZRHcFLXmudyRp7Fwkmw9I7MJJGWqozJSiIA4er+5WCkXfN6dt4BlQZ487 yY3hfL2tvf0nFjpmmEMldwr3C2/MfhT3jgCSB297N5Z3wwLm9ZrpL88vhMyjNYEFSVqaxF xbkgYlZ/afDdFQOmYbB7gRYIRivELGpVjDpxw1TEMiEjMQyhqULYoO/5Ph7TwlxSoYyT4Q sL0FTLpUNZykROK3QNCEWtejySaNG5K1KxcmPwVb+Q9m3vt4VxLRKj1lD+6OwA+cW3ESZz 3qSSlj6Be2a3htMXXwF8Pl6YlBwAILvh8MAbUYSgD96A/t/e2475w9g6kMkTRw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1667591985; a=rsa-sha256; cv=pass; b=mbgCYnybVzlyavwNSvfyhAD9Eu5PPgnSIsimgBfWGQKmwbcRTWcWex1XWBFXPOh63L0o1F XewcUsC8fmbvzESr2OGdagPSPwNTgOfVX7y/ZuPfO/utlpUd1ZmJ4WhcByfZQTPR2jsNb2 fISpo45lVdSUCap2UgoAKSo9fYzUsyh8sLMMbym7GahoW1UODx2qlnsq09QCXT6dNsLDql SeLmR2nEmnsA0hS83UzEWUywgSfW2h8D8/TS8zy1Q3QNUH3tblBol/nFsksI2YbHQBAofF 9d24lsDIIRjyJhEhCnhz0HOyLgXC1zzhhSwJavmrefBjh42Zy5E3zrQJ/62xBA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=alphapapa.net header.s=dreamhost header.b=x4Xs9U9V; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=alphapapa.net header.s=dreamhost header.b=x4Xs9U9V; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5DD7139A4A X-Spam-Score: -3.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: G2rwU2arYYmw This is a multi-part message in MIME format. --------------6cmOimsNEIbcyC4ERJCKyngq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, The attached patch improves the function org-get-indirect-buffer, fixing a bug, clarifying the code, and adding a docstring. Thanks, Adam --------------6cmOimsNEIbcyC4ERJCKyngq Content-Type: text/x-patch; charset=UTF-8; name="0001-lisp-org.el-org-get-indirect-buffer-Allow-indirect-b.patch" Content-Disposition: attachment; filename*0="0001-lisp-org.el-org-get-indirect-buffer-Allow-indirect-b.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSA4ZTcwMDI0Y2FlM2Y0NTY5ZDZhMGM4NmEwZTRkODA3OTEyNmZlOWU1IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBBZGFtIFBvcnRlciA8YWRhbUBhbHBoYXBhcGEubmV0 PgpEYXRlOiBGcmksIDQgTm92IDIwMjIgMTQ6NTI6NTggLTA1MDAKU3ViamVjdDogW1BBVENI XSAqIGxpc3Avb3JnLmVsOiAob3JnLWdldC1pbmRpcmVjdC1idWZmZXIpIEFsbG93IGluZGly ZWN0IGJhc2UKIGJ1ZmZlcnMKClByZXZpb3VzbHksIGNhbGxpbmcgdGhpcyBmdW5jdGlvbiBv biBhbiBpbmRpcmVjdCBidWZmZXIgd291bGQgZmFpbCwKcHJldmVudGluZyB0aGUgdXNlciBm cm9tIG1ha2luZyBhIG5ldyBpbmRpcmVjdCBidWZmZXIgYmFzZWQgb24gYW4KaW5kaXJlY3Qg YnVmZmVyIChlLmcuIGltYWdpbmUgdGhlIHVzZXIgbWFrZXMgYW4gaW5kaXJlY3QgYnVmZmVy IGZvciBhCmxhcmdlIHN1YnRyZWUsIHRoZW4gd2FudHMgdG8gbWFrZSBhbm90aGVyIG9uZSBm b3IgYSBzdWJ0cmVlIG9mIHRoYXQpLgpOb3csIHRoZSBiYXNlIGJ1ZmZlciBvZiB0aGUgYnVm ZmVyIG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G4pKSkpKSkKLSAgICAgIChzZXRxIG4gKDErIG4pKSkKKyhjbC1kZWZ1 biBvcmctZ2V0LWluZGlyZWN0LWJ1ZmZlciAoJm9wdGlvbmFsIChidWZmZXIgKGN1cnJlbnQt YnVmZmVyKSkgaGVhZGluZykKKyAgIlJldHVybiBhbiBpbmRpcmVjdCBidWZmZXIgYmFzZWQg b24gQlVGRkVSLgorSWYgSEVBRElORywgcHJlcGVuZCBpdCB0byB0aGUgbmFtZSBvZiB0aGUg bmV3IGJ1ZmZlci4iCisgIChsZXQqICgoYmFzZS1idWZmZXIgKG9yIChidWZmZXItYmFzZS1i dWZmZXIgYnVmZmVyKSBidWZmZXIpKQorICAgICAgICAgKHN1ZmZpeC1wcmVmaXggKGlmIGhl YWRpbmcKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29uY2F0IGhlYWRpbmcgIi0i KQorICAgICAgICAgICAgICAgICAgICAgICAgICAiIikpCisgICAgICAgICAoYnVmZmVyLW5h bWUgKGNsLWxvb3AgZm9yIG4gZnJvbSAxIHRvIDEwMAorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGZvciBzdWZmaXggPSAoZm9ybWF0ICIlcyVzIiBzdWZmaXgtcHJlZml4IG4p CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIG5hbWUgPSAoZm9ybWF0ICIl cy0lcyIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKGJ1ZmZlci1uYW1lIGJhc2UtYnVmZmVyKQorICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBzdWZmaXgpCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgd2hpbGUgKGJ1ZmZlci1saXZlLXAgKGdldC1idWZmZXIgbmFtZSkpCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmluYWxseSByZXR1cm4gbmFtZSkpKQog ICAgIChjb25kaXRpb24tY2Fz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