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 WIkQHaPDVF+PLQAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 11:10:27 +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 sGvzGKPDVF9pNAAAbx9fmQ (envelope-from ) for ; Sun, 06 Sep 2020 11:10:27 +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 C31579404CB for ; Sun, 6 Sep 2020 11:10:26 +0000 (UTC) Received: from localhost ([::1]:37166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEsYy-0002s1-L1 for larch@yhetil.org; Sun, 06 Sep 2020 07:10:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEsYN-0002rs-BP for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 07:09:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEsYH-0005vR-W0 for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 07:09:46 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id F40F0160062 for ; Sun, 6 Sep 2020 13:09:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599390578; bh=ndsja49hivbt1oxAKHx7zgj+VghSR3OnoK7+vhwMV2w=; h=Subject:To:Cc:From:Date:From; b=iYqMXoAW51VWaX8AqJWdjse9fPAbNRzkwiIE64wCyxbEANy0T/p3Vf/UCpl/jyikX 0dFbp4sfBxqE4m0s4kyJRybCXVkSzJRz2bnbal6kB8H6OVY6Hl2AHvwvL7LUrtM6tt scQ6NayLD0BD1nNKMVmVqLUfvBhmZ03PdAna/OiHFcaRRs7Yfv8+iJtZBN+wFsYM0+ /g2m7skZTEj98E6HcSS3KVykYj9if+pd9i7G7oaXE9ZoLOYfc+yspX5uTpYYV2qlSo loo/tcTVOQ6iOLeJ0DuG5uEy6K7eH560Gk+2bCp4GtAZusYFdkoQOoyae094vR1OSi bdd1In/Re1uqA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Bkpb22ZTwz9rxH; Sun, 6 Sep 2020 13:09:34 +0200 (CEST) Subject: Re: [PATCH] Re: Re: Re: org-forward-heading-same-level and the invisible-ok argument To: Bastien 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> <87eenfl8ey.fsf@bzg.fr> From: D Message-ID: <7fc400e9-07bb-dafa-951f-56c98b170901@posteo.net> Date: Sun, 6 Sep 2020 13:09:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <87eenfl8ey.fsf@bzg.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=d.williams@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/06 07:09:38 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -47 X-Spam_score: -4.8 X-Spam_bar: ---- X-Spam_report: (-4.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, NICE_REPLY_A=-2.69, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , 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=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=iYqMXoAW; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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: 0.09 X-TUID: hjRSCuttBfR/ Hi, > Does it fix a problem for org-superstar-mode or a more general problem > in Org? It mostly fixes an org-superstar-mode problem (see https://github.com/integral-dw/org-superstar-mode/issues/19). > 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)? There is no intrinsic need for my current application for it to check anything past the last star, I just went with the most "naive" implementation first. If it were just for org-superstar (and similar modes [1]) it would be fully sufficient to check the heading from the position of the last star up to the first character past the space, if present (which would boil it down to checking 3 chars instead of N). > If you use seq* functions, the code will be incompatible with previous > emacsen, right? Hmm, looking at the oldest available ELPA release (seq-1.0, 2015), seq-every-p should be fully backwards-compatible. The current package itself also has a fallback option for Emacs versions <25, so that should be fine. Cheers, D [1] https://github.com/TonCherAmi/org-starless