From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WFniJRKJS2Tq0gAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 10:51:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MGDhJBKJS2Sp0QAAG6o9tA (envelope-from ) for ; Fri, 28 Apr 2023 10:51:30 +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 34FA0136F1 for ; Fri, 28 Apr 2023 10:51:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psJnk-0004KZ-Ht; Fri, 28 Apr 2023 04:50:00 -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 1psJni-0004KB-1e for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 04:49:58 -0400 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psJnf-0006Sy-KV for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 04:49:57 -0400 Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-b994571219fso6891587276.1 for ; Fri, 28 Apr 2023 01:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671793; x=1685263793; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wuLbK4+r3aVn9LiPBdQh3iah0u4bIblKj2WvvKRR87Y=; b=LmZ9m8KI3I04OgqxDuO/DbV325D7jzAM9dTTpcsjQgK3EVZKlatpPSj7i/D9cU5faR 7CYX3NX9WBvMBWaMMHMsL3PUYZtnnBF1MrlzIgMmsodWLq7Qn+Dwg/f1i1hA2V9aLqe+ kMOxBvEZbZDWMwF0nplwtTakPhTYty0lWvsdYxiHgEadsMRh5gqyuY6lU3WEu1Vl4lmi jmzdf91wT/tyxfghMZj82r7d/XIQwhGiGtmGFoRwXucubJkoxm5hF33VbUCnfU6cA4Yd opuoHF+WQ5AZGEUdABnBYc9ZNQ2+bdTgzkm9E5ulbf7er7/og5/7zGGpeBi9au27hn+J uwuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671793; x=1685263793; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wuLbK4+r3aVn9LiPBdQh3iah0u4bIblKj2WvvKRR87Y=; b=kVCwYdqGvCwUXDc5M9GZGhZ1k+hmRC9RYNckJtLMXvnEux5G+bT22TorQIsR6id57P ZA88JFV9qQg/zYtJRMojf5KFf+iIxjUQfPaJpErGK2pxtxN480/7p/ZBA4WgKIVr7Hfx Iy3OPOWljYg5RvO+bhuIGlLEVKH0ulZsoYrZ+MmDF/PoVJnrIXAuIYKNfGo5rwJKDxZW yqDTW8l3PLM58t6MMkJTV4wnGTpGj0aDABgHFbIMPp4A+/Wq/PkP3vEnOLhwdJ0IjVEk wGd0s4xDxGDXLcQMFJRmXcKucHlBXUQCQl8aamzpq4mGiPA2HvMqWl3pZM8c3kqjif3G z1AQ== X-Gm-Message-State: AC+VfDyP6pTjTapSDZe0XSBx9vugpspseymaNyX7cXwi9WMSQI8YDaMf FvI1PjFRq8Au0cYL5ZkWgWFDPHueEB71hvEm/fP1Xn9SlLQ= X-Google-Smtp-Source: ACHHUZ5upi+5I5TM9GMAKasM9zPyDOj7c2qckmgcfS0R62or4zEm6csIAVDc8WTXnP1fzp9uScwZSJ+Lo31xGPoL06g= X-Received: by 2002:a0d:ff05:0:b0:54f:a8cf:6b44 with SMTP id p5-20020a0dff05000000b0054fa8cf6b44mr3121309ywf.2.1682671793566; Fri, 28 Apr 2023 01:49:53 -0700 (PDT) MIME-Version: 1.0 From: Philipp Kiefer Date: Fri, 28 Apr 2023 10:49:17 +0200 Message-ID: Subject: Suggestion to increase usefulness of TAB key / 'org-cycle' function To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000087780105fa618eac" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=phil.kiefer@gmail.com; helo=mail-yb1-xb2e.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, HTML_MESSAGE=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682671890; a=rsa-sha256; cv=none; b=gurFT1bj7Xfixsn8DfSV3CCVT6qjPMxy1iRShq/0tbAucAVeJxx7bbsoDPtLwLqYEVl++S 4a74efVDk3FLUpcCKCgDOMUuEZnh9n56vmyUk7KAnAe3GEvfGxQX7+vEc7qHgm9Shi2uMD 1r5tl2dQPHc+ylqeuj9o9PEML6nCJkksEsZyarW1bpfRb7SZ68loNqQWRudTTIQ32DBgWj /MuUrQ/a5LbQgaySvLyW8TwpHCEgYUzvCKmx03qLIa9Oc7EE2kuOZz76qYq4vUqlLj7jt3 J/tNdcER0roQic6J4e/zWmE63m5cK06hTHU+NjqHJX/DFs5AwZXbm4M0Udfbpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=LmZ9m8KI; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682671890; 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=wuLbK4+r3aVn9LiPBdQh3iah0u4bIblKj2WvvKRR87Y=; b=jXuYsS3nDRqqBArDHQHXxIHmLL73XL/QQmozxKhVq9SjBX0B+nG73bbXvuhekupmqOMrk2 KFpvEI815psBle7wPZcueq9vncYvVK+qVKmhi5yGzfbcC1g/Tvzg/VKhncvEmwHWuh5dku d5rzC7WJ6I7C6h82N3urBhOCUZEC9+P7/qKEseUSRiyfAsqPb7PTD7kSiHyGVHmjXwZuLV zz4zfYOv8LuKmVlkF8PMrgLwHXZ1vILYG76JpHux0J+muFr5fk3oBA17T8MLAs7kD0xKRs pOUTie7wUjqg1vFtryuQU8KKqKnHvbqqlrFK/rVb6qQEy2wP3X9EgAnx0m1ExQ== X-Migadu-Spam-Score: -8.32 X-Spam-Score: -8.32 X-Migadu-Queue-Id: 34FA0136F1 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=LmZ9m8KI; 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-TUID: EvC3U/9Lfmny --00000000000087780105fa618eac Content-Type: text/plain; charset="UTF-8" To quote from the Org Manual: "Org greatly simplifies the use of outlines by compressing the entire show and hide functionalities into a single command, org-cycle, which is bound to the TAB key." Well, it could simplify things a good deal further if, on issuing the command when point is *not* on a parent heading, (non-global) org-cycle would instead fold the subtree that point is in, i. e. do 'outline-up-heading' and 'hide-subtree' on the parent heading. This would make collapsing subtrees a lot easier and quicker as it could be done from any non-parent position inside a tree. It is very noticeable when collapsing multiple adjacent trees in succession. Currently, hitting TAB when not on a parent heading merely returns an 'EMPTY ENTRY' message - not useful at all. 'Outline-up-heading' (C-c C-u) has to be called manually each time before hitting TAB to achieve what the user is most likely attempting to do anyway. Personally, I doubt this change in behaviour would break much for users, unless one were to assume that there is a lot of Elisp code out there that relies on 'org-cycle' doing nothing in such cases, incurring the 'EMPTY ENTRY' reprimand to boot, rather than first checking whether point is on a parent heading. I don't see any drawbacks when 'org-cycle' is used interactively. --00000000000087780105fa618eac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To quote from the Org Manual:
"Org greatly simplif= ies the use of outlines by compressing the entire show and hide functionali= ties into a single command, org-cycle, which is bound to the TAB key."=

Well, it could simplify things a good deal further if, on issuing t= he command when point is *not* on a parent heading, (non-global) org-cycle = would instead fold the subtree that point is in, i. e. do 'outline-up-h= eading' and 'hide-subtree' on the parent heading. This would ma= ke collapsing subtrees a lot easier and quicker as it could be done from an= y non-parent position inside a tree. It is very noticeable when collapsing = multiple adjacent trees in succession.

Currently, hitting TAB when = not on a parent heading merely returns an 'EMPTY ENTRY' message - n= ot useful at all. 'Outline-up-heading' (C-c C-u) has to be called m= anually each time before hitting TAB to achieve what the user is most likel= y attempting to do anyway.

Personally, I doubt this change in behavi= our would break much for users, unless one were to assume that there is a l= ot of Elisp code out there that relies on 'org-cycle' doing nothing= in such cases, incurring the 'EMPTY ENTRY' reprimand to boot, rath= er than first checking whether point is on a parent heading. I don't se= e any drawbacks when 'org-cycle' is used interactively.
--00000000000087780105fa618eac--