From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MNEBII68oGArLwAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 08:32:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8Bu1G468oGA8fwAA1q6Kng (envelope-from ) for ; Sun, 16 May 2021 06:32:46 +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 BEB2410BF6 for ; Sun, 16 May 2021 08:32:45 +0200 (CEST) Received: from localhost ([::1]:46078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liAKR-0005jJ-Aw for larch@yhetil.org; Sun, 16 May 2021 02:32:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liAJX-0005io-Dc for emacs-orgmode@gnu.org; Sun, 16 May 2021 02:31:47 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:42751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liAJS-00081y-P2; Sun, 16 May 2021 02:31:47 -0400 Received: by mail-lf1-x136.google.com with SMTP id a2so4119046lfc.9; Sat, 15 May 2021 23:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=yaS8Of6BAKI51hNmpHgKCIEqR0nEkL3zUxp0yYQdM9Y=; b=QlzAnlHfNLXl6+J91PScvyiuGwUU230MWm8wuF/O9gxsaHghBPSI74wkUs6Esupeku HVNwSCDvob3VzHhetCAc/odnj8eUQkk9k91+DJhe71C45uCBJnKP7FTVCwfFeuxWTS5J TtE3Q1Br6SRvGe1TTKQMsmiHKIi65vMh9Ge3wGUpuc13tzvAI6HAHvBJPvyZ+235hXal 0Blzp6J3qjmV+FzGQSUILNOEbtB++nPLaJx7SWKXDoqWPBMRo2lfjv9fme7FdYGRgi9d Z2HZ+mOGgB1RVsA/EGmr051xd0x5X1HzICfRk/Q6f23/Y58evlIb4pE8E28Ke6pjI4Tf 5Zhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=yaS8Of6BAKI51hNmpHgKCIEqR0nEkL3zUxp0yYQdM9Y=; b=NX7ezehPJHjvUw2JdbaZ/B/3X+TlRRwrQXVblignGL70UFgBf2ZspM0xAsNMaukFPE t31HGgs1MrJC5X91gCqiy9sTKWWBpxDjLEKphAkbP3luu1aAxKELMjaHEVShV4G+hES6 cXbYC4yBS0OuD80kLnHmKYaOHVpfMk5lxl5GBt5f7fnQnAIe/6nOmNzaBrk4WXx0KkWx JE64Gi4zALQ8+kq4wR4qUUafBum0x+t1aGfKWZgRxrKzpSKSZI07mnALHJrs09gcGTmO +znYSbMgIMes5aQzf9He5s1y1qQYayBARI/+zhsZRE1U7mUNHeQSLwidUisHi7Ed9nEv YVuA== X-Gm-Message-State: AOAM533zij6SnLoErBXr/uU19NvpTd69gR8heKgT1vaRhFJFm7jqRiRd NlC12dmlogWA0TQsVi8GFabP7z7XxX7r/AQo X-Google-Smtp-Source: ABdhPJzHWLYPk6dplx6LGyNv8AWFP+4BDpX2MbtYv+7AZPPzLBFbgcNaQ/HYF9x8opvCInZz7sp/QQ== X-Received: by 2002:a05:6512:3d11:: with SMTP id d17mr34692145lfv.568.1621146699702; Sat, 15 May 2021 23:31:39 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id q127sm2367345ljq.88.2021.05.15.23.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 23:31:39 -0700 (PDT) From: Ihor Radchenko To: Bastien Subject: Re: [PATCH] Use cache in org-up-heading-safe In-Reply-To: <87pmxr5hn7.fsf@gnu.org> References: <874kfieduh.fsf@localhost> <87pmxr5hn7.fsf@gnu.org> Date: Sun, 16 May 2021 14:36:30 +0800 Message-ID: <87k0nzxk0h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=yantar92@gmail.com; helo=mail-lf1-x136.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: emacs-orgmode@gnu.org 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=1621146765; 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=yaS8Of6BAKI51hNmpHgKCIEqR0nEkL3zUxp0yYQdM9Y=; b=WK3M9/lJg/SysTTKt+q4iqnJbKkjxRUtU/BojGT1HTBuHHm7dKdmCHm8MqOIa+CFrIv09A rcoC0baTyYbHkAvi03ekQpZ3r/Gc1lLub90QAffdKXTezgd+KXe9BJNem9UL0ndbYJMrUs 6ap+nCXLtwj9ZINALnnIC5Zr6Mmbw336t80OwKlZMcvDY2/HXqJhVaPGYPoXmW12hOVJNk HxaaPPX0eEz0MWwwo89FNBmZv0IBy6JF1GBwfmfXW7lypC4vvggknODMZ2K3D0VHqz6L53 uMMdwJwnd1k5l0Y+EP3S6RrEstzbUp4qRxDD14Napchqvyg4zvkAF9W5gzCkKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621146765; a=rsa-sha256; cv=none; b=Xwx3BONtQYzS42IXZNvbs7LAUICgP6edC60gHo0wHrcYKVHNd4P8TBYpgDIUw4INqRe6aq RWT+EQCzNF2rmaZPkRNjcMNXeui+hmc1p1zff+iazHsCFjheJHK2uVsnaJ9241dP21LqIV XeuxDgJUABuWomnT7RD0spS2qgVVMj7nGHb0/1/vwxDaSfv0RbJlpM5AdJCkXFSiRPx0/f a3037oKyNROIHt8ALPZmB868EIwNZY8ngO1BK8WCB6tGQn5LcOq1MpKm8U0Uhf4xgXsImS Vcd1msINBE7mO3iQGYygOzUTE6rC36Z5DotjNvu/l1nb6JpdIhuHMN69TK1UDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=QlzAnlHf; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=QlzAnlHf; 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: BEB2410BF6 X-Spam-Score: -1.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: HNq8rDTY2zmv Bastien writes: > Debugger entered--Lisp error: (void-variable org--up-heading-cache) > org-up-heading-safe() > Ihor, do you see what's happening here? This is very odd. `org--up-heading-cache' is supposed to be buffer-local variable available in all buffers with default value of nil. Yet, the backtrace suggests that variable does not exist. Can you see the variable description when running describe-variable? Will the error disappear if you eval-last-sexp on the defvar-local? Can it be some strange interaction between .el, .elc, or even .eln files compiled for different Org versions? Best, Ihor