From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oKxrEI4PYGJUSQAAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 15:50:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0PhdEI4PYGLlCwEA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 15:50:06 +0200 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 E30CF2C9DE for ; Wed, 20 Apr 2022 15:50:05 +0200 (CEST) Received: from localhost ([::1]:39710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhAia-0008Eb-Pm for larch@yhetil.org; Wed, 20 Apr 2022 09:50:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhAM2-0005YI-7d for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:26:46 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:42986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhAM0-0004NQ-Kh for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 09:26:45 -0400 Received: by mail-pj1-x102d.google.com with SMTP id z6-20020a17090a398600b001cb9fca3210so2029677pjb.1 for ; Wed, 20 Apr 2022 06:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:message-id:date:mime-version; bh=y+UeM01JbUSHCweYBr1Y0QzNaIvhEDp3KWu0qfJ58EI=; b=Kt3lTxPCERhY6RypAfJfsekm5r0FmbwNEJ5dk82c8hPKOCuChOYSlR9bxYDyubMyQ/ iijH/P01KnSOtV4KwR9jsJt+GF0GJS5Ia/0y71db6uFlCPgxWOAny20PidKqOCeAQ4aN NhQCqrK/HCcDXWXvnN5NsnZKLbivZLzVrK8YYbhoDhRO3Rtr3e/8TI4PjtlBWvZLbUEM YJWPIatG1Sro/Lr481JAZdkOd2yJGJ0DNgNI1pdpqMnYfn+5t9a17OA5kOVTfu+CNmab /mCpsfRERZfaeGhWcrs2oPW74VFmtsyZdpAQEjOWxtxGk5YSiuBR1QhiLJkThRWIk90c vO7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references :message-id:date:mime-version; bh=y+UeM01JbUSHCweYBr1Y0QzNaIvhEDp3KWu0qfJ58EI=; b=wJ7nrMpZmmBVOtglJqBa43GPIOSUcEViwoyKAygPpHU0VKv1JooWA51Aw+sShGgVWw lvNXJdHnX6REEdYDvwLy+YXKwasGMy2yTiVeyG8sofcOttsf+I4HY9cio2WNGLUwZb7l 02Kn6DDFcmxjuDWG9mdUVSkf1NZJbxQAynoWqbHDv2f3hJUnI7h2k+qcdtI3IbkItUHi gUsu48h1bDR2nJfQrHCsN2VeIj/oW4S2JRP7SaPCM5wyt6WH6i1mQ7mivEtBkRMXvLqM BqfdwPLbcQluzl8RE0RgKlCMcG4ucc9K1P/aWlp589dq4km5kTXWXiEVBqua8fhmcbIO Ovuw== X-Gm-Message-State: AOAM530pvxjTdrF0Ieu40aTF4CVIrkp/DCO3KUMoUfHHjt5ewbNC2tu+ qdI03uvNWROB869vSRasOdsJwzffNZfxcA== X-Google-Smtp-Source: ABdhPJylaiH2UZ5VfZoTSJy5FK7BoVVESYNI+hkbm48NFtuurNiOShAt2s7srQCfC28yJ+H0eC3cpA== X-Received: by 2002:a17:90a:d901:b0:1cb:97ae:636b with SMTP id c1-20020a17090ad90100b001cb97ae636bmr4513826pjv.60.1650461203058; Wed, 20 Apr 2022 06:26:43 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id bd11-20020a656e0b000000b0039da213aa72sm19625885pgb.5.2022.04.20.06.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 06:26:42 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH v2 27/38] Fix org-fold--hide-drawers--overlays--- In-Reply-To: References: Message-Id: <1025d1c4d10b95e1aa16737cc9774fd8ecabee38.1650460489.git.yantar92@gmail.com> Date: Wed, 20 Apr 2022 21:27:35 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650462605; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=y+UeM01JbUSHCweYBr1Y0QzNaIvhEDp3KWu0qfJ58EI=; b=VbKGngXZ2oynK3iDqgdkMGMIEi89fBP54DMKJZe+QE+YsV37ONQhe/ZjBKsbIhI6pWQ77r 6Y1jAH7waF71mlBo6HmFXe7X4SsScT5SEJovrjwMCUuOjJ7uMV3bM1eJxnEGOdgy7NCbqi 0pTVlT0mQKisUcVbeyVIO9eBnwiM5Eh7FJZNECozaFnUJRLOS7ciXilNnF38tqBVAG+COp IG2bdxc7Yqf0zTV8GhNdu5iVAajjJA0s3Vq4GRrE5SJvb5pejK3T1DsPJqWZAqiRCUymDL a0xYq7bMe3UhhO0dtJISsqkmvbR9flHMOluKT/EUJQIfw102UbX5hMp+lerSJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650462605; a=rsa-sha256; cv=none; b=SvGBlO4vq41ClMsp6832h3M51FbnOn3+LUaxQOCCM4W1uPAMI4RG+La/LPWL5Mp9TyY+mU YOCGqjaO/3ucaEErAMTBtrCUAG+pbDONFuK8HcgvzkRBCaxbHav9FMcHkohbDmutefdI1l D/2MKewU5/k5txfCYWLZXLpf8IFwIfnu8s2kZDyxXyY3iPMH+GmDgPacoNixEMrTgOC0Wd QqzqXvMkqRiFzG6tPLCr5t35t8ZG99T0idxRH6G2TJ8JRwSgTPkizmDn3i1XI5jdp1BBF/ uZ5NdhRptaue8vwhnwaNbkryWGJ53ZoMymBOiHFgdYOHw/WZvbjAiHtHMVFOtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Kt3lTxPC; 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.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Kt3lTxPC; 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: E30CF2C9DE X-Spam-Score: -3.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8sbKBQ4h6/xv --- lisp/org-fold.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.35.1 -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg