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 WHR2F02DVF+hKwAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 06:35:57 +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 +M5DE02DVF85ZgAAbx9fmQ (envelope-from ) for ; Sun, 06 Sep 2020 06:35:57 +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 EB3D99404C2 for ; Sun, 6 Sep 2020 06:35:56 +0000 (UTC) Received: from localhost ([::1]:52218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEoHL-0000iI-WC for larch@yhetil.org; Sun, 06 Sep 2020 02:35:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEoGu-0000hu-PD for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 02:35:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47120) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEoGu-0003dm-G9; Sun, 06 Sep 2020 02:35:28 -0400 Received: from [2a01:e35:2fe1:f780:d122:b755:abc5:9fce] (port=35500 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEoGl-00031g-0V; Sun, 06 Sep 2020 02:35:27 -0400 Received: by guerry (Postfix, from userid 1000) id 6CBBF1A60D69; Sun, 6 Sep 2020 08:35:17 +0200 (CEST) From: Bastien To: D Subject: Re: [PATCH] Re: Re: Re: org-forward-heading-same-level and the invisible-ok argument Organization: GNU References: <87a6yi42ie.fsf@localhost> <61342cad-ed4c-59ef-d2fe-685de58df5de@posteo.net> <87tuwo2tr3.fsf@localhost> <67d953fc-3396-8038-4302-6e1ad4cde72c@posteo.net> <87tuwm7uo3.fsf@localhost> <8e63089c-ba3e-788a-f80f-c05b14d3228d@posteo.net> <87364611hw.fsf@localhost> <7365d467-2a31-85b4-4f0b-8c8871c4e180@posteo.net> Date: Sun, 06 Sep 2020 08:35:17 +0200 Message-ID: <87eenfl8ey.fsf@bzg.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: emacs-orgmode@gnu.org, Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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.01 X-TUID: eLLXT3Zy1fOG D writes: >> Probably, it is easier if you just use seq-every-p instead of >> mapcar on (number-sequence max-pos min-pos -1). The result of >> seq-every-p will be inverse of the currently used expression. > > Oh yeah, that's much nicer. I also made the predicate check > right-to-left, which just causes it to check the text bit of a heading > first, which is useful for the cases where the predicate returns t and > makes no difference otherwise. I again ran the tests and it seems ready > to go. Thanks for the patch. Does it fix a problem for org-superstar-mode or a more general problem in Org? Why do you need to check the visibility status every character in the headline (even for the org-superstar-mode, where you seem to need to check for the visibility status /after/ the stars)? If you use seq* functions, the code will be incompatible with previous emacsen, right? Thanks for any follow-up, -- Bastien