From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 oJyYAoTVx2KEqgAAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 08:58:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qH2cAYTVx2JMUwEAG6o9tA (envelope-from ) for ; Fri, 08 Jul 2022 08:58:12 +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 AE0F32AAE5 for ; Fri, 8 Jul 2022 08:58:11 +0200 (CEST) Received: from localhost ([::1]:44134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9hwI-0000Tk-K9 for larch@yhetil.org; Fri, 08 Jul 2022 02:58:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9hvU-0000R8-EW for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 02:57:20 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:35617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9hvS-0004ax-VT for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 02:57:20 -0400 Received: by mail-pj1-x102f.google.com with SMTP id x18-20020a17090a8a9200b001ef83b332f5so1047881pjn.0 for ; Thu, 07 Jul 2022 23:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=iperof1fw8cHIqvJMqcvA5G+bfPOone+vzgyw1ystl8=; b=KIXWO6USC6q+BP/IYm5VGgA1dZkODyZ6cXST2IyIPbrx5p8FdvBXFIs/hKQOrOsQId 8pPZngemEP/vcvZJRvzRjFzQBDEQncfrvQE/yTy70wOruTBNHFBAk8ZDvmJWnPdcYEpj WhhC3AsQqoTODBYPladxEC85g+/wzckN7mKMfCf0YZFfrYHu2zU+e44dlaaCsW+6Wx6n KY1DvUIK0qkiIGjTIIVo60Is64D846ArvqzRL4MpOSNnLt6cmIpUkE6bRN1txtVlWKbn 6bTKA1i72g9V2M3rrCvJc1oPLFDvqcN10ejX/hntXegrpl1MOrKEAdNpViR5dfA9H1G8 Xszw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=iperof1fw8cHIqvJMqcvA5G+bfPOone+vzgyw1ystl8=; b=XI6gsf/LCq/HNhI7N64eFmuXE42MtqsAltJKQBU6YWKq0MtKjkzW80zIIuJEmIM0f4 KSVrATAXBWF5MNxtqLW8YQALv5K/M+FnOZeaMkfVAVZrhkoG32Ziu8dlQvdyg/QW0UVH wjGfOdL7XKi8W8CuXD2E0MWrulThmeyQyjJeIHSeeT045hgfuiuuSjbPe7TkXoQBuQI+ +oMSIVttmcs9jfw7Lr+bpq73AOXjbzi8XoEyzEsEKBglmf/BdvGYswePoF+bNLB9bvSq hVNjgapehrpQiIkJ3ou18S8QlqidhznAO1rbBhoSZMcMd/DgJ4uNi+CC/E4CpaELY7DN RtoA== X-Gm-Message-State: AJIora9SlMgK3gmX+MDJiiiINkswLF3G88eXXQunEgiQlhZhdWXg9TZ9 loZwfNioeHAtcAWFHG3QcXI= X-Google-Smtp-Source: AGRyM1uJEDVVdoOWC7Ym4SfowICF+CBiq4GKzc3iK2OOdZoHUkt/5M7HhfavfwnPI4omNPqXPCq0lw== X-Received: by 2002:a17:902:9341:b0:16b:c2e4:f2fc with SMTP id g1-20020a170902934100b0016bc2e4f2fcmr2122320plp.160.1657263437420; Thu, 07 Jul 2022 23:57:17 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id x4-20020a623104000000b0052878f66f8asm7450867pfx.132.2022.07.07.23.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 23:57:16 -0700 (PDT) From: Ihor Radchenko To: Tyler Grinn Cc: emacs-orgmode@gnu.org Subject: Re: org-insert-heading-before-current In-Reply-To: <87fsjnw235.fsf@gmail.com> References: <87fsjnw235.fsf@gmail.com> Date: Fri, 08 Jul 2022 14:58:24 +0800 Message-ID: <87o7y02ir3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.google.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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=1657263491; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iperof1fw8cHIqvJMqcvA5G+bfPOone+vzgyw1ystl8=; b=nku6gFwKir0Pgq4AJw2qVHHyvcPV62Yz8yBq0KTmTfFvzU21isjRRyw3IHsoHTcolFder4 j077Af77u4ej440eOxnJzNw8RpkDQnvs+nyiZ2EkHcANdvjrQhWbPyZHuOzddlqaz2U322 h47XYpMsYQQMBeqdILFlg9S2q9x7QYXknUGbQf7+XJDOZvPWkSCznwM8ucdJLHFR806hZc MpH4aNvuSdqhPM9BPlbC0UK+9pPOg6lEesg28gk1cxaiWdNs1mZmvQQjxpRaZ3SaB5LP0L Xh0LlOjvNuqsI3znpZimg22yOCaWD8tyugDZtx+fMCYMo373vyRo3NJBLH2oQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657263491; a=rsa-sha256; cv=none; b=dbaWkjAV/B0kKA/unEGPg0y9YEkjp2qCRToVnMnWC12AZpH5MXc+3mtLMN2Y/BXeD4aQxt m9/qPo9GKS8/Uwr7wyCsoMZwRSQsey7Sv9X9fNGA2xhSBpzZuuN53FzOknzucNTaNAVgvY bdhn4aD2aINbHPSoX7YCq5hHzTaOAPFzMYo/M8UX0JvjE3Cbcunqw5COo2bkuSnIRvc44O u5VL7qX5uTeePoXHV873LPOwooq2lM9fyoouoAd1Lsi5ZQNa2FUMK86mJch2sMAe5U0KLq b33Ub3gHZ5aL8crljRc3TgGXzJmyai7827+YAPQwU9bg0qHF/swqzHNOEwITOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KIXWO6US; 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: -8.74 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KIXWO6US; 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: AE0F32AAE5 X-Spam-Score: -8.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: h9IuAqWsl40F Tyler Grinn writes: > 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 One can implement this using prefix arguments for org-insert-heading. Similar to the existing C-u and C-u C-u arguments (see the docstring of org-insert-heading). Patches are welcome. (If you find this feature sufficiently important, feel free to implement this new functionality and submit the patch) Best, Ihor