From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wCXNEJrOvGLEfAEAbAwnHQ (envelope-from ) for ; Thu, 30 Jun 2022 00:13:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UC2zEJrOvGJElwAAauVa8A (envelope-from ) for ; Thu, 30 Jun 2022 00:13:46 +0200 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 E57AB2C765 for ; Thu, 30 Jun 2022 00:13:45 +0200 (CEST) Received: from localhost ([::1]:45044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6fwO-0005PQ-V2 for larch@yhetil.org; Wed, 29 Jun 2022 18:13:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6fvp-0005P1-8p for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 18:13:09 -0400 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:43569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6fvn-0000NN-Mx for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 18:13:09 -0400 Received: by mail-qv1-xf35.google.com with SMTP id y14so26982013qvs.10 for ; Wed, 29 Jun 2022 15:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=kqBEC2QQR5A6U3NUHvjn9wOG5EuhVjsjJWv+TqDhOeY=; b=UW8PwyBMqvPm82sEWnxDpqBWk9qiEbs2cAe9qq2DxrC5n6aVFAwLmplXTkr5m9BO7f JBNru7hZcZ6Lyuw7zbxiQ5oBDU8Pre7eIrZoMguHCIpz8N9A3cwCjeAdMGDWx7butqvb TftszdzxzL6tHi9gu5xDYq8L+lckrw2cjAly8HAQgODSYqkBXPqxOYjl7yacgosdR6Ny k4cyvUxWhPJjt+nC8uydDMsd1b5nA0p/6mFEKtdgyYtHAbFkroMaKBV7RChqSmxmWKTe uVjzKgM5FmfPVwyEnZJPeBEg6lWaHIqf0Ap2qilMzWQE5GD+m2JdwFgvZc6yLk9w18VU 53cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=kqBEC2QQR5A6U3NUHvjn9wOG5EuhVjsjJWv+TqDhOeY=; b=Hsei9w3Mjh9ZT9VJN2dDDtREI+N6LFnQbnRSY353Kt9jsFTKfe1vstLHUjdXxEUs7z A6O3yp5kEmL1cLxwmGOx4IBYt1dVx+Ej8T4tMDZfc2eiTrsJe78AFy2ht2CS3Bz56zJL 5KqjLI3JT9qd08O5T1GKmMxWAMczTtxjAjjX3uvkPF4FRPPQVvEh/4oZrU+tHZ8hGdTn G8so+GOb8gB4sMHijuNoZ4nkYaSnLHlfCN1z5MBOSmdWuVDzZwoT5zwVjsMs3mqAV1Fd t8oiq6YMR/VosmBUiwWqQ8yngHfHYaSnyGj+AqejydfAZwKOepsEuvLpJgcqAc08x2EK iNHw== X-Gm-Message-State: AJIora92zwH6jSXwat9LgAxcw/2/vLeLTWNbvISk/kbAZsglgz7b8HQX v8dzmRhvcDHZ2SFicWObC+iF0itSKmOK9w== X-Google-Smtp-Source: AGRyM1tjgosfUkGfWrtwDbC4DSSwHQ8nc4lTC37m1W8yUbW63UpDqIMKiKzfKfMYaJSXDXwcLJ/Lhw== X-Received: by 2002:a05:6214:29ee:b0:470:2b57:3e24 with SMTP id jv14-20020a05621429ee00b004702b573e24mr8592218qvb.31.1656540785343; Wed, 29 Jun 2022 15:13:05 -0700 (PDT) Received: from tyler-fedora ([2600:6c48:4f7f:d921::14f4]) by smtp.gmail.com with ESMTPSA id x11-20020a05620a448b00b006a768c699adsm14814257qkp.125.2022.06.29.15.13.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 15:13:04 -0700 (PDT) From: Tyler Grinn To: emacs-orgmode@gnu.org Subject: org-insert-heading-before-current Date: Wed, 29 Jun 2022 18:13:02 -0400 Message-ID: <87fsjnw235.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=tylergrinn@gmail.com; helo=mail-qv1-xf35.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656540826; 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=kqBEC2QQR5A6U3NUHvjn9wOG5EuhVjsjJWv+TqDhOeY=; b=jrwy6r41UVFnRGiFak0w5e3TV8XxRzLw9i6hlPaNWcq6JRdt+76cPxQoOh8JrNFNCk2g30 pWjE0jUaPGwwUVmIY5GVE/vF+qIq+DcH+p691yqsOEge7pJ7+edGlJuAhJB6LNFqgE6rbK 4h8WQEqI5yIGeUgPqdix9fkPpxR094F3eQVYmH9lYdXwh6Sw3qAdKzwYngNQyfKSyax0aU GC9MA29OV2mTnzvEO6gNK2/eioryaY57tkeNcjqcNzeYn7PeEV9WRiK8Agm4KvQRDDtbY/ Et78PIp4fbV/TtzSoNcKvSW2XvhYCSDxiwhBYSi/RqRuJP4gKPP3ZLZf89XBfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656540826; a=rsa-sha256; cv=none; b=rB+Kl/ubO8xcZHiAti1w0arwEHENRqoSpw+lU6ic+Z1jaY2kpmID1ld9r8V2OnfbOZYNN/ NBB99Y0ZwPTOQtHAlSKMozqOUczKybL5WvKtw+T2mpr10g7GeBk9IrNZGTAnFUElZewPKo o/0QkxHJ/EROikiFwg22Cm1ZEH/RtwlxmJctuJb56DHreVNm2vpBX0s4lC3o6n3+S10cw9 TyJjrazeaN+eMgN8/kcGlowdkNZA35W92mBTsd7Pl49WanJTxT1YNVdQNSQcJBIrgMYszz YBilrn9vfOmzDnhwqrfiN+o0rU+uHLyj3EekcL5dvUwit/wzmBl6yF+NffFgGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UW8PwyBM; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UW8PwyBM; dmarc=pass (policy=none) header.from=gmail.com; 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: E57AB2C765 X-Spam-Score: -5.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: F3yPOc4YHfbv Hello, In general, I like to order my headings from newest to oldest top to bottom. I'm looking for a function which will prepend a heading at the current level in the current subtree. Some examples: * Subtree * Subtree ** Item 2 >>> ** | ** Item 1| ** Item 2 ** Item 1 * Parent * Parent ** Child| ** | *** Item 2 >>> ** Child *** Item 1 *** Item 2 *** Item 1 Best, Tyler