From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0OHhDJtARV8xAgAA0tVLHw (envelope-from ) for ; Tue, 25 Aug 2020 16:47:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iOWnCJtARV/aJAAAbx9fmQ (envelope-from ) for ; Tue, 25 Aug 2020 16:47:23 +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 6E91D9403A9 for ; Tue, 25 Aug 2020 16:47:22 +0000 (UTC) Received: from localhost ([::1]:45756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAc6T-00050u-2e for larch@yhetil.org; Tue, 25 Aug 2020 12:47:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAc5u-00050P-JX for emacs-orgmode@gnu.org; Tue, 25 Aug 2020 12:46:47 -0400 Received: from mout02.posteo.de ([185.67.36.66]:59105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAc5s-0002r0-GJ for emacs-orgmode@gnu.org; Tue, 25 Aug 2020 12:46:46 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1F3A72400FC for ; Tue, 25 Aug 2020 18:46:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1598374000; bh=tdiMhngnHF4lcQsYZ0S1/Sawr6/hS+44ZanbKPpgtS4=; h=To:From:Subject:Date:From; b=EboAlbn124cfRvEJLs35dMM3QaxI7+86jSRsXRYLkgLcHFexKXSfGaHd/Inxm2xeF Bc9OIb7ew62ZMAiAXax1OZBc+QvuLJu2ZpXnhUYAcOOtPEXzTpiHKEru5B351iPABR eUA608I9Hnc/V7ms/80CFhCQ73++oDhxhkGaks6gWlE+hZElbtOAHugPIyUjuJWkWz sFvQLj0G9x26MFeHdpyLpH1uIMpOFt+aZ4HK8R4pUqudUiFaGtNjpX3g8Fb7jVuzZL NDv1ciJp1TTQmtrc9DwCF9VFEby31Mxa0zH7bQNR1Okz3VDgUVgiiOxPIv/ybkyAdj YuArmJVJOSK7g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BbZdW0pCMz9rxD for ; Tue, 25 Aug 2020 18:46:38 +0200 (CEST) To: emacs-orgmode@gnu.org From: D Subject: org-forward-heading-same-level and the invisible-ok argument Message-ID: Date: Tue, 25 Aug 2020 18:46:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=d.williams@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/25 12:46:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=posteo.net header.s=2017 header.b=EboAlbn1; dmarc=pass (policy=none) header.from=posteo.net; 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: -1.71 X-TUID: OEnZo9+iliX4 Hi, I am currently thinking about how to have org-forward-heading-same-level and its sister command work together with a setting of my minor mode org-superstar-mode. The issue that arises is that when my mode renders the leading stars of a headline invisible, org-forward-heading-same-level considers the partially invisible headlines fully invisible, and hence only works correctly for single-asterisk headlines. The solution I considered is making two interactive commands that simply call org-forward-heading-same-level with invisible-ok set to t and overshadow the bindings (C-c C-f and ). The downside to this is of course is the intrusive nature of it, and I am concerned about side effects I may be overlooking. So I thought it is best to ask *why* the navigation commands take invisibility into account the way they do, and whether you guys have a suggestion that may be more elegant than the approach I came up? Cheers, D.