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 yCiEDahK9mMaewAAbAwnHQ (envelope-from ) for ; Wed, 22 Feb 2023 18:02:32 +0100 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 qKOhDahK9mPeVQAAauVa8A (envelope-from ) for ; Wed, 22 Feb 2023 18:02:32 +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 50872EC4F for ; Wed, 22 Feb 2023 18:02:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=red-bean.com header.s=202005newsp header.b=S2E74yBj; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=red-bean.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677085352; a=rsa-sha256; cv=none; b=K79/y2ShPeSponcgjufwcp5trPvf/yxj+4FwI3POZhXVKsdNBtV2xwqj7hhw2NzsRkXK6w Ugt4Mp0VSjYyJmHMFzme/OCzAO0Mk5es7H4lGklbB2vzlC6VIEEm62e2NAi4q45G5QOKf+ uNe3+bxS+z33cC6txP9oaAOO2aSty1QmmXV1/f7xjuDclp6A951gwPQrDk+qdvvuMXNJ3R VuX/y81H5svLDHvJl77SPNd1F6SBEocIVgr3TKw8jCvXOfr9tVEbqaEnHhJTwnlZMF7+m7 bJUu3LHed7B85M6SlgGMeEYYhrrXzNAuic7VuGAtaDYstFg3dp+s6euSTRK8eQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=red-bean.com header.s=202005newsp header.b=S2E74yBj; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=red-bean.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677085352; h=from:from:sender:sender:reply-to: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=cJ/XGZj9kn0oBor7cHUFz6Pfp8HFqfmVhenL7olcftI=; b=LS6MtUB+FeRJF1yur0q0Wi/FmnLPYO5P9IBEaPQjuvrovBEJuLdIEq/E/qPRov+WgKYvXv 3/IYkaBUP6XNpZUaGda9sIbfMRWBLhuQlnmaDx14eiKwz7yO5JfkW63G0IBxo24dmFnqor yMsEYIZJF2yC7+wCHSLlp0VBq98WHTrM0F4hnTBSfoPoWwujsYQqsKgmksEqSTFIuR8V13 DEi6qJ1LbqVrAEfm7ESkJNH83vdba2RHNYbBaMwF8TfDPI5HhC/NYwJw/aFGk6aSjFBtQa 8lTItLxVEjX95IuJQPa4Kfvf4wa7f26HEnKF34h0gLCyuMrN831hVjfGAcId6g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUsUl-0000vq-Fz; Wed, 22 Feb 2023 12:01:32 -0500 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 1pUsUW-0000gR-Ga for emacs-orgmode@gnu.org; Wed, 22 Feb 2023 12:01:19 -0500 Received: from sanpietro.red-bean.com ([45.79.25.59]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUsUS-00039K-9D for emacs-orgmode@gnu.org; Wed, 22 Feb 2023 12:01:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=red-bean.com; s=202005newsp; h=Content-Type:MIME-Version:Message-ID:Date: Reply-To:References:In-Reply-To:Subject:Cc:To:From:Sender: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cJ/XGZj9kn0oBor7cHUFz6Pfp8HFqfmVhenL7olcftI=; t=1677085271; x=1678294871; b=S2E74yBjbsl01XziOedynQM5q8g2kO6y0a4gRcPoKbeKUQhq2+e+J9gCxkgYqDXpZsTPbaiNYSP vgPkwOO3Dfopm8gYf/0dqCYU998KBntyewcUJtwP/j7+YzX+AmKlu9tEe4hchR60SprIk6+pH1C0S zn4ZCsIHJ4ec4czyw64S2GrLzVlGt18fcfjtHIm1FhgpLmYytXE4U/dfsl+q0xX3d1dqxGtiVNa+3 keNcB8envrtMXtEANJ2t/0x1jqiMBqqihxc/L+MpIuR7AfihZ9hKouEC8/XlIHaV9uQkMTiOaMJjl OLtVeAlkUctmlYaB8lDOowffufzlzTRYGqzw==; Received: from 99-112-125-163.lightspeed.cicril.sbcglobal.net ([99.112.125.163]:37860 helo=floss) by sanpietro.red-bean.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pUsUQ-00EugK-9y; Wed, 22 Feb 2023 17:01:10 +0000 From: Karl Fogel To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: PROPOSAL: Bind `org-fold-hide-subtree' by default in Org Mode. In-Reply-To: (Max Nikulin's message of "Wed, 22 Feb 2023 22:57:34 +0700") References: <87k00aw43b.fsf@red-bean.com> Date: Wed, 22 Feb 2023 11:01:09 -0600 Message-ID: <87356xws6i.fsf@red-bean.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=45.79.25.59; envelope-from=kfogel@red-bean.com; helo=sanpietro.red-bean.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, SPF_HELO_PASS=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: X-Migadu-Queue-Id: 50872EC4F X-Spam-Score: -2.86 X-Migadu-Spam-Score: -2.86 X-Migadu-Scanner: scn0.migadu.com List-Subscribe: , Reply-To: Karl Fogel Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: ekycQAGFwY+X On 22 Feb 2023, Max Nikulin wrote: >On 22/02/2023 14:29, Karl Fogel wrote: >> I put it on "C-" because that's normally unbound in Org >> Mode, >> and because so many of the Org Mode cycling commands involve >> modified tab already. > >Perhaps C- is not the best choice: > >9092c289b6bea38bb519e6c59a60237ae5af8f08 >author Bastien Mon Jun 1 14:39:28 2020 +0200 > >Bind `org-force-cycle-archived' to C-c C-TAB > >* lisp/org-keys.el (org-mode-map): Bind >`org-force-cycle-archived' >to C-c C-TAB instead of C-TAB to avoid conflict with native Emacs >keybinding. Ah, clearly it is not a good choice -- thank you for noticing that. I think there are two separate questions here: 1) Would it be useful to bind `org-fold-hide-subtree' by default? 2) If yes to (1), then is there a good key to bind it to? (C-c C-something, I guess.) If we agree on (1), then let's figure out the answer to (2). I don't know if anyone else agrees about (1) yet, though. By the way, the binding in my Org Mode hook looks like this: (when (not (keymap-lookup nil "C-")) (keymap-local-set "C-" 'org-fold-hide-subtree)) So FWIW C- is not bound in Org Mode buffers for me, in Emacs 30.x (i.e., recent development builds). However, I agree with Bastien's logic: C- is not in the reserved keymap space, so Emacs might bind it (and perhaps does bind it in other modes). I don't know how widely-used `org-cycle-force-archived' is (that's the new name of that function). I don't use it, personally, so if we decide against (1)+(2) above, then perhaps I'll just override that binding for myself instead. Best regards, -Karl