From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yKosH3n3Kl+SIwAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 18:16:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oAwaG3n3Kl+SYgAAB5/wlQ (envelope-from ) for ; Wed, 05 Aug 2020 18:16:25 +0000 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 F19589400BF for ; Wed, 5 Aug 2020 18:16:24 +0000 (UTC) Received: from localhost ([::1]:40612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3Nxe-0002eQ-5O for larch@yhetil.org; Wed, 05 Aug 2020 14:16:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3Nx3-0002eG-Oc for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 14:15:46 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:42195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3Nx2-0006LH-35 for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 14:15:45 -0400 Received: by mail-pg1-x52f.google.com with SMTP id j21so6218172pgi.9 for ; Wed, 05 Aug 2020 11:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=W0peFtHR0FvUCzyGzfbYSGbDiylOV3iegwE7bl+CTXg=; b=Cu3HNn4NXlwPeF6ELYmAH7a2MQL+QkWUXVI6xbRp3HXopFj7+gmoMRL+740eU2kNvz 2Fxp6PIK4GDXvr0s7G2Pqyj30nstkV0ghVYLt/O8odeU3dgos9f1K5ENNitV+2j/MKd1 iTZ1P7bjC6HyzVAwP+a+o3r926kE8oLjlxfJ4RXKzEcCJY3MxRnMlaEdquO2DDotxH28 eTaGc07THGsBv4FrTi4dLJFg9SlUkgRCLKQC63lNYfx09978LlqG7tyJNfQni+Znrqr9 afy8MHfD8w3yqQuXZniJS0zMZrRasudxxyhbuRZt0X0ciQ6pQixAUNID5KgUuSf7OXMq GlNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=W0peFtHR0FvUCzyGzfbYSGbDiylOV3iegwE7bl+CTXg=; b=N5paD00Cp+QdcRblDiF8EsU/GxMxWq2MSzihIOtZrowuOtQNdbi1dxBeDWP3e6GKRl gE0BqBtNiPcAXFUVYBbtsUtNguY+/PyVz++tzAp7kVr8SJwa/O73OhTG77lzj9FVHr+8 gfsvD8UU+fuKgMsIHVhnAsV3h3uYRhNwynN0YW/cAxylZu0Au0vdzI3z1nifPvoUSVKK 0L9oCCyumhj7/maQQmysJwncTD+wGXxfcE5fCKQ3pWAM4R6lUjOMoPtu1L8Uitbs8mRG ea0IvWGUgD/ZkdVem3q+HVh1SXM0rS/yA0YSla7fYjIceMjzt/KrM9hIprwQtEUze0lN UczA== X-Gm-Message-State: AOAM531W0LjLTgydquTVRaUk0kv6R1Z4SF24GC4JlfYH+YTad4PDG2eZ DNcQFaf33cxKMJ2MuV8IT+RHgZlw X-Google-Smtp-Source: ABdhPJw0nt4SmicpUBU7Ju2+XtWLB4c7B0Al1Am5fkjJQVPynJ/0NLxzua7Bn5a2PeGC5yKFroC8RQ== X-Received: by 2002:a65:64c5:: with SMTP id t5mr4072675pgv.28.1596651342020; Wed, 05 Aug 2020 11:15:42 -0700 (PDT) Received: from localhost (node-1w7jr9qt7sj4x4bgkmwl97apt.ipv6.telus.net. [2001:569:7c17:1900:1523:9:dc9a:cf01]) by smtp.gmail.com with ESMTPSA id k5sm3765769pgk.78.2020.08.05.11.15.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 11:15:41 -0700 (PDT) From: David Rogers To: Org-mode list Subject: Delete duplicate subtrees? Date: Wed, 05 Aug 2020 11:15:40 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=davidandrewrogers@gmail.com; helo=mail-pg1-x52f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Cu3HNn4N; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: NYiaWIxjJnre Hello I've copied text from several different sources into an org buffer, and now I find I have a large number of subtrees that are exactly the same. All headlines are at the top level, so there are no duplicates at different levels from each other - but there *are* some where the headline matches but the contents don't match. Is there an efficient way to delete all-but-one of the exactly duplicate subtrees, but avoid deleting any whose contents are different? (When the large number of exact duplicates are gone, it will be easy for me to resolve the partial matches one by one.) -- Thanks David