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 8GPOAA3AVV8yWgAA0tVLHw (envelope-from ) for ; Mon, 07 Sep 2020 05:07:25 +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 Bwc9OAzAVV9TNAAAbx9fmQ (envelope-from ) for ; Mon, 07 Sep 2020 05:07:24 +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 4A4E09403A0 for ; Mon, 7 Sep 2020 05:07:24 +0000 (UTC) Received: from localhost ([::1]:34648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kF9NC-0006l3-2x for larch@yhetil.org; Mon, 07 Sep 2020 01:07:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kF9Mt-0006kw-Ae for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 01:07:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35213) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kF9Mr-0003QU-TV; Mon, 07 Sep 2020 01:07:01 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:45462 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kF9Mr-0002lb-H9; Mon, 07 Sep 2020 01:07:01 -0400 Received: by guerry (Postfix, from userid 1000) id ABC711A60D70; Mon, 7 Sep 2020 07:06:58 +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> <87eenfl8ey.fsf@bzg.fr> <7fc400e9-07bb-dafa-951f-56c98b170901@posteo.net> Date: Mon, 07 Sep 2020 07:06:58 +0200 In-Reply-To: <7fc400e9-07bb-dafa-951f-56c98b170901@posteo.net> (D.'s message of "Sun, 6 Sep 2020 13:09:33 +0200") Message-ID: <87h7saqiod.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Tzz3Gy6LtVFg --=-=-= Content-Type: text/plain Hi, D writes: >> 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). Can you try the attached patch and tell wether it fixes your issue? >> 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. I'd rather not add a dependency over seq.el anyway. Thanks, -- Bastien --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=org-forward-heading-same-level.patch diff --git a/lisp/org.el b/lisp/org.el index a5c7dcf3b..f6e04e65c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20529,7 +20529,7 @@ non-nil it will also look at invisible ones." ((and (= l level) (or invisible-ok (not (org-invisible-p - (line-beginning-position))))) + (1- (line-end-position)))))) (cl-decf count) (when (= l level) (setq result (point))))))) (goto-char result)) --=-=-=--