From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sOc2OzN0eWE+PQAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 17:45:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uGH1NjN0eWEeagAAB5/wlQ (envelope-from ) for ; Wed, 27 Oct 2021 15:45:55 +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 6BF3F1771C for ; Wed, 27 Oct 2021 17:45:55 +0200 (CEST) Received: from localhost ([::1]:56374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfl7i-0004h7-HT for larch@yhetil.org; Wed, 27 Oct 2021 11:45:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfkdV-0003mR-P6 for emacs-orgmode@gnu.org; Wed, 27 Oct 2021 11:14:41 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:40929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfkdT-0007p9-B5 for emacs-orgmode@gnu.org; Wed, 27 Oct 2021 11:14:40 -0400 Received: by mail-pg1-x533.google.com with SMTP id l186so3204880pge.7 for ; Wed, 27 Oct 2021 08:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=3pIu4Z6y7b9pwcGtuLolvLopbhDYHlvkI3DXcqn8kZs=; b=MOWo/tEBrJqSr4rPOTeti+n08ujBbOb8hMZOK6aKe6JjTdjiddAZorWTkkD5KzHm5W H1jwrIw0wKww0MMQJ7OmcoV8tu/PQDLKIUga/UNLsxK0j8oleAxikKGprFCt2XaUFMv2 n48vZIQhP2F2Tw3mS2oHXF/OMfT2jA5EEeNzi3ms2Y7xTSniLC3ZBVcMSRXFnEGAadRk cztZocT2Y2074tVEoJai4OXTwUIJmkG3jjd7I4iTAPjHnT0qSpXseREppvXai8t7PYLe zOuYxhcXkQ5GAUsRGWfwUVvX/EG5/Z6k4oKBOtSBMlaS7sWC2gd1CDOyuUwLJpqlJrWf T7YQ== 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:in-reply-to:references:date :message-id:mime-version; bh=3pIu4Z6y7b9pwcGtuLolvLopbhDYHlvkI3DXcqn8kZs=; b=SRdlT6c5XxEjrQncpqCSnWfdTHLypDVc3Abd9lra8JiRHjZ7slCWTxk4GeZJh4Zr8V yY6904rdRl1/HUJH3b0tPT8nekY9VdpEkDHtcjCBqLhuxZmAxFSFikRuEsLSaTA6h/24 97ke7B+ylUwdh6faAzZbkXrgVv45U88VUTgBJRtat1c8GbUveqUtV03TRoGIXdVONfFw VRFTOyVdnp+b+fHRqH7RghpRGAh+FzJEqiOzQVerbnhj4ek41pvRE+R7q/BRICwIoAaV kkTm80SyYRyVwp47QeWmYGUTe+XCqOUQWBWtX/4r88uw1vvJBWPG8fPna2JIY8C2Ot7J 9jYA== X-Gm-Message-State: AOAM531lA1g872HUGvRvgXTQeLMMz5LOauM5OVJnhSYKJa28vE/dwhat y8IFjBCZnTbhdcLB9Jf+IycjCNwMhCPQjSkF2I0= X-Google-Smtp-Source: ABdhPJyRZYD5A9fpZf9B/oqYY2BomlB4bkb5hVzvWzj7cRCbzjaKqS1KAmBgXSeESvuKsZdSfH/T4w== X-Received: by 2002:a62:1455:0:b0:47b:e9ac:3966 with SMTP id 82-20020a621455000000b0047be9ac3966mr22501288pfu.80.1635347677872; Wed, 27 Oct 2021 08:14:37 -0700 (PDT) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id d6sm295901pfa.39.2021.10.27.08.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 08:14:37 -0700 (PDT) From: Ihor Radchenko To: "Christopher M. Miles" Subject: Re: [ISSUE] org-mode fill paragraph is slow and suspend often In-Reply-To: References: <87cznsnql6.fsf@localhost> Date: Wed, 27 Oct 2021 23:16:05 +0800 Message-ID: <878ryev6q2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=yantar92@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, 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 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: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635349555; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3pIu4Z6y7b9pwcGtuLolvLopbhDYHlvkI3DXcqn8kZs=; b=WIoNwFFTfKpcmUX2RkuLjH7KOcGfgFzecXob36678yIVYMMZo5dXwt9ZjWWrPSZDOTULWq y8XFBIha8ugYLJMJOnX013N0M7aH9KJFJkVlkJ4xv2jCP1UHe+ONSsKUCZpO56I8RNUPiQ IuaZ2U2/d9HEidrrc3xbwqjo0xJxBPfnHAh21idhoRVpKvd13Dx0SbnAb4nekghCbVu3ae dr71s8Wv2GwmM2Pk4j/2lkZ1ArTMiXqzlwmIlZWmZlePdIlBaJUZ7M+RAxMBP8QMjTtQAg gWvPtMQMxARF7gjhSShJKLfpRG0PCh1lDWYvwQpxGPrA+w6jFRT4zi7vg+cMXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635349555; a=rsa-sha256; cv=none; b=EEUGBwWFavJ9WzLu4HMHHiBCLW2ytAL0XtjqzDNfLVB6jc8TiRwtzTuIkptUClnBMd7MT7 1Pw3OpN++gf1/BrPCN9dZ3jtIG6+bzz+eAmOVXgZTVXgmzdtR78VpkdNMjfjTYj9XE/diP Q9dCWPFbbD4fLCUYabyJFUHT9859zy8XO+EUWK9kXAd7AiTdPCCxAFc+LgFJvmyuaH4vO/ 3lTogj272772Yi2eswWG+VS9ZXErktqKCrArgG8ns5WrhaDwuY6SUMe393c+ERizA6sEMT gCvjpKjcPcYpjAYTmX7t2YMl0rlJVcIya9JWhUlpCe1N4Jr0y+QUsMZp1LvMcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="MOWo/tEB"; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Spam-Score: -1.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="MOWo/tEB"; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: 6BF3F1771C X-Spam-Score: -1.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: mdASMGf5v5C6 "Christopher M. Miles" writes: > I applied your patch on the latest pulled org-mode source code. Still can't org-fill elements > quickly when region select text contains org headlines, properties drawer etc. > > If I only fill paragraph, it is fine. Thanks for the pointer. I now managed to reproduce the problem. It was an infinite loop in org--backward-paragraph-once. Fixed on main via cc3df3af2. Best, Ihor