From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cO9wES3J6mG4KwEAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 15:54:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +IzvDS3J6mE9FgEAauVa8A (envelope-from ) for ; Fri, 21 Jan 2022 15:54:37 +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 0F3E735CD0 for ; Fri, 21 Jan 2022 15:54:37 +0100 (CET) Received: from localhost ([::1]:38462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAvJE-0005j8-6v for larch@yhetil.org; Fri, 21 Jan 2022 09:54:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAvGB-0003qE-Jk for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 09:51:27 -0500 Received: from [2a00:1450:4864:20::431] (port=34458 helo=mail-wr1-x431.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAvGA-0002Cx-0P for emacs-orgmode@gnu.org; Fri, 21 Jan 2022 09:51:27 -0500 Received: by mail-wr1-x431.google.com with SMTP id f17so113976wrx.1 for ; Fri, 21 Jan 2022 06:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WQvgDOJdvYf+pMkUF2XZSWxLRwWq8OHbm/UcOMZ2fDo=; b=qyI2jCa/6LxaQ/BloEEAjMiW47PItZFnit9NQ7kWWiCH0/whGHZH2S8+n3HmtF8xtT zO/l7Ay2/W6Ik6mUmSGGAGG5Xa881nzkb+o1pQfaB/XN/DkqAJqS1jyLkFIXZg64Eoyu ajb0Xg8XZja/upFd0jZQ8tgdTtqNKBxFpy4PTBnMdvOZJSCFZZn2NXfIUon/tM3ATG++ Yv3TbX5lLDX04Yso+6gpufWcz9RRR7VTLbDd/JKBkG6p6qfWdZ8+HCCmMf8yl5po3qu9 rGRHkdryWo+lZ+m5uRd6Tm3ZHNIPD70+UA7fWtUfETlthrAN0q2n1ppkCRHNdDQi/Xj6 gp+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WQvgDOJdvYf+pMkUF2XZSWxLRwWq8OHbm/UcOMZ2fDo=; b=LgYIxoe3jHYxbQCkYXevtIOTRfoU5/4fzz7quJI+MX1puxfW02GSABHPkabQuC+TDv SPIVyR//SceySFCxpx+RIo4W+MEHPHTVc0b2NL3KFEYBkCZGOvPfWCiO11VRxjeYmIGR 32rHxye+3dGjjh18AXZRjcd7U4lvBzSv383CGR/UqeFPXNYNKh5/9vrl+2GN+jFDtsQM wFcr0ZHaW2Vsxsdg1hzzK9tspIQTiZoA48PA8Ym2uUxzKnle8/i55dpsePhPw+yYta6i emONfI2j1U+he38K0TtvAjqqbXJ9iaLC84pG2qATZCXh1TKisg9L8nCrVR/UFAdw/o+g mLJQ== X-Gm-Message-State: AOAM532LokBYcnIJK/cO/ZcdxFmuIkZy3BveLoJ0ERpkLsbItpqYABay Fnf1LcQvOG7p52alGlecH4xUUM+eCYNMzVzTVgM= X-Google-Smtp-Source: ABdhPJwJESRqzwfWvm9U1lCAJzs3CT4vp7lHrp2DY9cmfmr2EvMufS/iyLQNVJc7P8N7CRorC5aahjF2z87OVdihhR4= X-Received: by 2002:a5d:5282:: with SMTP id c2mr4247781wrv.580.1642776683244; Fri, 21 Jan 2022 06:51:23 -0800 (PST) MIME-Version: 1.0 References: <87sfthz4fq.fsf@localhost> In-Reply-To: <87sfthz4fq.fsf@localhost> From: Kaushal Modi Date: Fri, 21 Jan 2022 09:50:47 -0500 Message-ID: Subject: org-element-cache: org-set-tags (C-c C-q) makes Emacs unresponsive at times To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::431 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=kaushal.modi@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_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 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: org-mode-email 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=1642776877; 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=WQvgDOJdvYf+pMkUF2XZSWxLRwWq8OHbm/UcOMZ2fDo=; b=g7e44uG+UT7l362zlEHyo+gREYOQpXTPXH1iy8kFKvISdoPE1QjQCT+xJQMPj7/7/nSfkF ie348GQYG80fzoxdo7Ala/D8tH3+wGDs3rCgVGomheQzLV4NwIoqYyf/5Mh+lp5K4Wdvoz RkqW2SRNzp82CWZGueK2+DUaGkWSDn314gtCGFDr8jXvzvX5O/DFb9+1KkIi43NbtBdPF9 EuqRb/h//FT4NXERW4nT3Br7lwr4EWYCeTSUZvwfUCofyHZZd0vH8J00WTTMjFMhCeOOpJ 5WGBA6TZ2YlkzEa6cg+QBaMkUasLUvL6UE0RM+tIAE0IWyoGyya5RV2z0hiS6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642776877; a=rsa-sha256; cv=none; b=jsyZn2qACzoHtlQp80BLly08g16TnxKDt6InxJoBuymAG+yXjxIBx0ljvQqDDcnwZFCQFd HvfQMi8w8f05ubKtnZ9RWR0J3YJg35KV+eKAkvqDWph/lcFFNA14it6O88Dbb3PSH3W5eX 4LoFklRGUpOdMyggcYN6w/QHqmA85/OD3fm7HIzC/IR9pxtb76901QkiN2f2NsbxukU11x zxjaluDMIRdBfP6cRc1iGTgKiX63SXboIa4T2gUUJyJ2Vw5sV7obFgRR4bZ7BzV0IWSir0 TCO9gU9R/dn/j+jZA8d9qm4xNW2iI0oHtqZ2C2LAeSzAJkKXkq5JMMNcpKiqZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="qyI2jCa/"; 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: -5.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="qyI2jCa/"; 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: 0F3E735CD0 X-Spam-Score: -5.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: JAU4fAeJl7WN Hello Ihor, > The issue here had nothing to do with hanging. You are probably seeing > yet another bug. ok. > By hang, do you mean that even C-g does not restore responsiveness? Typically, within a second of doing C-c C-q, I would know that the buffer is going to freeze, and if I do C-g soon enough, Emacs would recover in a second or two. But if I wait 5-6 seconds and then do C-g, it could take minutes to recover, and I often do pkill SIGUSR2 from the terminal to get back. Sorry, but since then I set org-element-use-cache to nil once that issue comes back. It's usually that I am between something and I don't think of getting a backtrace on C-g (Now I have made a note to self to provide a backtrace in this thread when that issue repeats). --- Right now, I set org-element-use-cache back to t, did M-x toggle-debug-on-quit and did a couple of C-c C-q in a 10k line Org buffer .. this time, it's responsive and snappy :| I'll keep you posted. Thanks!! --- Org mode version 9.5 (release_9.5-415-g9b58ea) Emacs version: GNU Emacs 28.0.91 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2022-01-18, built using commit f393d0d441c3746f98007ae54341870a296bf809.