From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IBCAHetn7GS1/gAAG6o9tA:P1 (envelope-from ) for ; Mon, 28 Aug 2023 11:24:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IBCAHetn7GS1/gAAG6o9tA (envelope-from ) for ; Mon, 28 Aug 2023 11:24:59 +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 EB8A95909D for ; Mon, 28 Aug 2023 11:24:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GfidtG2l; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693214699; a=rsa-sha256; cv=none; b=Rxx/w8dgrPHJ9DbDIw7dB160NsMXWKnAsyqUde2B8pgHeJsRakmUMkza4rrphfw2EnN+Nu NEsIK8XRIEidyA0mgnxVG2IINOAaBAiN3kM8iZ+OukjbsL4gEh/i4TOaO/uCy1o9KO2lLC J+Dft5A7Ez1lVtV/bH2exyH6HZ6sd9VsMc/wjVzTL3lnNjzxwp/5P+3SfWFwynN4sO4wEq uydbOT7IFO3Z+RtrT6NTuIfbTQLiTCUNNgoMpbqc6qvBkK2hmq5cb3VE1Awnwddqmf80/7 JbjuC6MSbr2OEtk6ZWZ0vPDEWRvZ5oWHc+v0JqD/wUFDBbRpQgbSZpyCjPwccg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GfidtG2l; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693214699; 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=fDpT8mLhZRGS9n9Pf8VrczIwlK6EcmNNehi3h9rrvmk=; b=mt3toNR3xntsFf7fmNhFFIK4Y8BVvf09QgcVGce/J/dWX77kiVUDCEkxoIDnM0FCoshgj4 +uTjD6bdyEjqsQ4k7VZCIurCC0s0BR6HPB175ysqM+JmEd+wfqZjbYPnZzzvccX3JlWNPK MDBXxthJxGzS9M0F5HcYWBvjNfRacBudPEm99Jw0Bz2sZ+5oEXsqAa/KGggR3iSsaIYNse 3rOz8SvFodgWSTitXGXYBriqSMcs31IgY2p4Y+7LUeZ0MRLWhUXRRR+9zmi8ZSJSqx4QmQ CLVPSmQTZQvM2rf3VdXVBI4gFwQSlufHp8DUSd3HxMnzYEwLe8BaBxM1tGAiYw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaYTZ-0001ax-Of; Mon, 28 Aug 2023 05:24:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaYTY-0001Yz-KE for emacs-orgmode@gnu.org; Mon, 28 Aug 2023 05:24:00 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaYTU-0006sS-Mv for emacs-orgmode@gnu.org; Mon, 28 Aug 2023 05:24:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B3B20240027 for ; Mon, 28 Aug 2023 11:23:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693214633; bh=Wd3bG+Pn04Y7briyUGoGGw8Qx5l6BRJQVoLMLkdjO8Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=GfidtG2l/KiMdE33EUKvd3p/BTbegCGdXMIzidbaGSLWp0JjT/vQC/9MOFj1/yK3T 58pnBsEozCSpNuEIL5JnRS7mZQM3klpKgUJEhOndtfKigW1T582g3bjcMUSlDmt+1H PBoRp9/JRIJVQeVRsdVr4nDj7JvUN7oH3HZL3js9VrX64SGZO9ivGMPrdOx2guFN2S 7UkZH8oh2PmnPTHPoYvaNZGe82HtTPIvnNXQciR3WT5oVuhhX+8BKOLBnR1aGm62tK XzOy5i02N/l7zkesGPUyCedsofBCesm4y0J9S04tlRowrpi5pjz7hj8tK9/Of+pFrU X1unamLeqoLGg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RZ4qs0skZz9s2m; Mon, 28 Aug 2023 11:23:52 +0200 (CEST) From: Ihor Radchenko To: Adam Porter Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] When calling org-tree-to-indirect-buffer: (wrong-type-argument listp org-fold-outline) in org-fold-core-get-folding-spec-from-alias [9.6.6 (release_9.6.6 @ /gnu/store/c7vqk20kf6zw73klr8bacnh0gqahk5dd-emacs-29.1-29.1/share/emacs/29.1/lisp/org/)] In-Reply-To: References: <873507ilf7.fsf@localhost> Date: Mon, 28 Aug 2023 09:24:23 +0000 Message-ID: <87v8cz34fs.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, 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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -4.85 X-Migadu-Queue-Id: EB8A95909D X-Migadu-Spam-Score: -4.85 X-TUID: 9VO4snBcSbs8 Adam Porter writes: >> This is a very strange backtrace. >> When I run that `alist-get' call manually, there is no error. And >> `alist-get' does not call `car'. >> >> May you try to re-generate the backtrace again? > > It is indeed strange. I generated the backtrace several times over > several sessions before reporting. I also can reproduce it in a clean > Emacs configuration like so: You re-define `alist-get' in one of the callers in a way that cannot handle normal alists like (key . value), not (key . list-value). (cl-defun burly-follow-url-org-mode (&key buffer query) "In BUFFER, jump to heading and position from QUERY, and return a buffer. If QUERY specifies that the buffer should be indirect, a new, indirect buffer is returned. Otherwise BUFFER is returned." ;; `pcase's map support uses `alist-get', which does not work with string keys ;; unless its TESTFN arg is bound to, e.g. `equal', but `map-elt' has deprecated ;; its TESTFN arg, and there's no way to pass it or bind it when using `pcase' ;; anyway. So we rebind `alist-get' to a function that uses `assoc-string'. (with-current-buffer buffer (cl-letf (((symbol-function 'alist-get) (lambda (key alist &optional _default _remove _testfn) ;; Only the first value in the list of values is returned, so multiple ;; values are not supported. I don't expect this to be a problem... (cadr (assoc-string key alist))))) Handled. Not an Org bug. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at