From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4H3LF3gz9WEyQwAAgWs5BA (envelope-from ) for ; Sat, 29 Jan 2022 13:30:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OOBcEHgz9WF9sAAAG6o9tA (envelope-from ) for ; Sat, 29 Jan 2022 13:30:48 +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 B627129E03 for ; Sat, 29 Jan 2022 13:30:47 +0100 (CET) Received: from localhost ([::1]:59398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDmsQ-0001dG-Ml for larch@yhetil.org; Sat, 29 Jan 2022 07:30:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDm3a-0004ii-11 for emacs-orgmode@gnu.org; Sat, 29 Jan 2022 06:38:15 -0500 Received: from [2607:f8b0:4864:20::1036] (port=43775 helo=mail-pj1-x1036.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDm3Y-0000va-AD; Sat, 29 Jan 2022 06:38:13 -0500 Received: by mail-pj1-x1036.google.com with SMTP id qe6-20020a17090b4f8600b001b7aaad65b9so2774266pjb.2; Sat, 29 Jan 2022 03:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W6BiaCBBhUQ5vLi9QGB9yHB4hWfz0CuiQGEcAEOUBCg=; b=mtXlI1jZwwZiIQnzRKTxCW31ru2EEii3Nit3yMUVbp6DB1eRTzBc3wBDqEznT5Zgb0 eM3CcrcSdpuohIu2SBZrvDOUNOd1Ha5ScYafIqu23p5Ym2mcEtNY6HXPSVesIguvrUI9 +MigUy79kTLO+Ks5KeOiqXFRPG0XAUKNyjvZ/2GUw7thYioEDSMVJXvpZ/n5vUG5tr+5 vSv2aGNH+P76OB7A7rHOJ3HeOQ1KG5Lzylv0c5p9FQCHBNmTAoFmr8jdlHjW/L6Ixt9Q +wTfHiqKY3lO9YCk/XqHcg/jL+BrYb99t4KcRxVTs/vIQxEqKSzGPO6tYKRrKONe/7U7 3KPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W6BiaCBBhUQ5vLi9QGB9yHB4hWfz0CuiQGEcAEOUBCg=; b=XsjWvEHXEYGKSjO9vPRqjZyH8Cv7yVz3MhwJMVr/BWhb8FPMEig65yCikea1rIvWdE LazvVdM+AWBgzkrvKUI5iIMjF8TlHx/ygnZ+Z+EQ0Mm4kHtxpRq7pv2l99OSXKQFWWPq JrTLdiYMRcx4NUwQpFokyn+HzHsEakdd61xEqT4WwZv6oYkME0xe/XtIQ8C0Ro4cwKQ2 k+hNdKMr/9F8aXxwWXFc+Ac9x+HpmfO0+ovDXwRVXb7EH/QNKh3ZkSMa4bA2u9TtkqYG QvPB/eK5+yK2/n7cwwl5PDXEqNA6w/vpQkPdQCJtzbDgEK5xlT/2AKV5jPGWAzDP+nJr QIqQ== X-Gm-Message-State: AOAM530QTtjBGkKmQSPc+KnOg3YTALnIGc5DN53HODXlvqHJhGSoLWVD FtyVxPRTDALl9LsD8yKcYa0NdMbf0xqsamAW X-Google-Smtp-Source: ABdhPJw0oipPgSvgkVbD/IB4Y2jyuvkLJw9uxVJGrsfzOsQGvqe7sSWj2r91wMJllyWB9q8A6yWWtg== X-Received: by 2002:a17:902:edd0:: with SMTP id q16mr13064619plk.170.1643456273835; Sat, 29 Jan 2022 03:37:53 -0800 (PST) Received: from localhost ([209.95.60.92]) by smtp.gmail.com with ESMTPSA id u2sm13869907pfk.15.2022.01.29.03.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 03:37:53 -0800 (PST) From: Ihor Radchenko To: Bastien , Kyle Meyer , Nicolas Goaziou , Karl Voit , Christian Heinrich , emacs-orgmode@gnu.org Subject: [PATCH 27/35] Fix org-fold--hide-drawers--overlays Date: Sat, 29 Jan 2022 19:38:19 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: <87y2cvloay.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.34.1" Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1036 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: List-Subscribe: , Cc: Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643459448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=W6BiaCBBhUQ5vLi9QGB9yHB4hWfz0CuiQGEcAEOUBCg=; b=t6CA2t+KUe27QDGvdKfMnXbVDgSNCJTjEIl+DyJ3iY0qYso659cbEbtWczA8C69Bay1ED5 eLrz1bYG3auvHu+AsD0vgAZOngQJYki7lR+Lr/hJJhJ9e8eq/HoNDMZvkJluGMzRqklzwa Cc3PDWI2aUjbN6Jjt7VE9YYKWC/ULAFM8TzhZKSo8vdbiV95PlI3NDT4T5kuNx57Fg5/3z +n8ODIjSVaKYN8c4ctfINJ1A0AGGn12EZWp5PXPc71avl5kuCWBHDZwWwh+J47kzjNFVhZ J0EyfXrHFAWpGqfzCkYaYCmuiYZq7pD371+ZtNzhCMCigJN8sTvjXIKwLe0Stg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643459448; a=rsa-sha256; cv=none; b=FSU7pmalCtFPKqeGKXL3XDF8ilzJKqHK3u+dv5EDNQMHUslTZVG1TgOZtyxy/ZJ7ugGdK7 9zDOnHwmdQjhFNluL7sZ0egDd3TXGX7Aqcu+MO5sO7df4kvv0P3HhrLrZQqAnzVEOG46Jr Shtt05f0lQdaMRkmm/z97CR1hUdu0y6kfL8o1tLuhgGb/cKKb7AdQY7kmU15x3Cm3S3LIz fFXvhShZcZLEX1ZyZEy1tOtTjoNcgjjUSvfRkABrtXcyBNTUdT3ZlU/RTkvZiprF1KzrFp vn2DwkvlTbBRbSoJKhg4hk48aTr4hgHKl5rvW3srhL+IpMIRTZXT3NGvJA4cHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mtXlI1jZ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mtXlI1jZ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: B627129E03 X-Spam-Score: -3.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: jM7mUTIGonmM This is a multi-part message in MIME format. --------------2.34.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- lisp/org-fold.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------2.34.1 Content-Type: text/x-patch; name="0027-Fix-org-fold-hide-drawers-overlays.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0027-Fix-org-fold-hide-drawers-overlays.patch" diff --git a/lisp/org-fold.el b/lisp/org-fold.el index e48a528bf..a16ee0f9b 100644 --- a/lisp/org-fold.el +++ b/lisp/org-fold.el @@ -714,7 +714,7 @@ (defun org-fold--hide-drawers--overlays (begin end) "Hide all drawers between BEGIN and END." (save-excursion (goto-char begin) - (while (re-search-forward org-drawer-regexp end t) + (while (and (< (point) end) (re-search-forward org-drawer-regexp end t)) (let* ((pair (get-char-property-and-overlay (line-beginning-position) 'invisible)) (o (cdr-safe pair))) --------------2.34.1--