From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 QBceF7wV8GSd4QAA9RJhRA:P1 (envelope-from ) for ; Thu, 31 Aug 2023 06:23:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QBceF7wV8GSd4QAA9RJhRA (envelope-from ) for ; Thu, 31 Aug 2023 06:23:24 +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 CDCE9C33D for ; Thu, 31 Aug 2023 06:23:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=alphapapa.net header.s=dreamhost header.b=V5tSqUAi; dmarc=none; 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"; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693455804; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TC9h3qln+NouUYEtrjj7RdMjsIkF32FblfRORPm2vf8=; b=EmC8RhWdiRAKnqJ7rTAk0PkoRDcqVpo6T3pkgUmaWBmeCMy9NdrInU/LkvGEsJUz9qYxDx /0IRNeUktEo/hcrLFTznvJhWWsI3hnkzW+cJFi4+uXZVZJODyQxm27ferIxkv8Vcy8Ix59 bivITXQkwXY1lketE+uBLsLLN5u+KssXVvdyKfReKT9Zz9s34XwM0ZdhcFXbvnPrRtS7Hl P3OhatZVwDQ86lmtt99DYqppgO/OSoj/h+KXqdCtghLUq5tx04A+gdc0V6Ww+zeYFXqm4l 78exhT4HGHFrX/6Jw05kVxFNGRCwdgSbI4rloHfL274UjFHmSlDCCTf3Ccshhg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=alphapapa.net header.s=dreamhost header.b=V5tSqUAi; dmarc=none; 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"; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1693455804; a=rsa-sha256; cv=pass; b=Exdd0iKIF8nNdJ1E02d44uxVQzm8/HqzTUKytosNVX3NSQRqgt9qpf9OcWFo8gRzDxKBJP G9VDVwyUWPjcg1jrJS9XfqCgqBL8SZNt+kInyRLGW3Y2kG6buBqcbqc4TJa3Mx6DBuwvom WRhpsjG4dwZrunmX/Mu9mne5Tm+RMFRSgndlqwRY9xaXctGppAS5DxYXGQ1H3CUESuKoI3 zAU+bfe5cGQ3pWvW2NidjUZ0J7y8J2lCABjMx5Aj556cCvcoOlmoUqF0vdlGeZ1x361Qgt BbrxLEvfaML1Ri41z+VY04FIKbWyLPHit/ANo+AcpQN1X1jbRomHQgNMmUBrJQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbZCN-0004Qp-MS; Thu, 31 Aug 2023 00:22:27 -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 1qbZCL-0004Qb-Fw for emacs-orgmode@gnu.org; Thu, 31 Aug 2023 00:22:25 -0400 Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbZCJ-0006k4-2Z for emacs-orgmode@gnu.org; Thu, 31 Aug 2023 00:22:25 -0400 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id BE91C8406F5; Thu, 31 Aug 2023 04:22:19 +0000 (UTC) Received: from pdx1-sub0-mail-a311.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 52D8D841034; Thu, 31 Aug 2023 04:22:19 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1693455739; a=rsa-sha256; cv=none; b=jHgaiGovBshHIcB7UVi6CoyTmNyX0FRM5tWGn06JD5QnuD+wX0EGbggfV0puqTb1f0TGr/ FtObUme6pTK8sx3a0cIZOUxS+k4EniGorz91QGvfzZHA4UJZt+3nOh+Si5QjG7ygkd+431 E170+VdKrSAv0aXuHYqudckuGmsJUdzsnCM9omUhx9DCo4Gbg5hcFwjmOaFkr2rvyPJjsV QenYJeZ+uPyRzGcZIGrOqxenV0dRHOp5cFKgTLK5lTO6ZYmwlOIKZNyW8Vjj5PDP6uTKcS 4iZlrj4uxXjASu96OEz/p+yhx1kF4byIEo1cjbK0wCa/dBfwI+PjC4DS0TUcnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1693455739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=TC9h3qln+NouUYEtrjj7RdMjsIkF32FblfRORPm2vf8=; b=LvjbPHCqzbZbkAP50jelshAoKRUkHPCesGfLIluEnRatSFN1hyuoHzon2wPE+q6iG/9WO5 r5+PAxI2LuoZCzPqx54zmRMaX+JhqbyDN9xZaeGfEW/AUY796Szn2A1vj3JQFZBs9Un3bm lRlqfHjrH7OYtfy4NDpxl0pc3iX64hCyKkmwRdGBonfOSi2EkcR1aN5SOZYeVklmkJoQ2z siTcFagyg6Gu1m6dfuFrEaAGrEwqATaLWqBslgalG87MZ6ttC4VKmTKti9UydfNIGwY84r plEcAJR9VRBL9HK0LOlL8hzE0VEhCmog7N/bysyEpKvdOyXjDx0QIL2CBKHrrA== ARC-Authentication-Results: i=1; rspamd-6fd95854bb-6ss76; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Plucky-Wipe: 6c2783854bdbd98f_1693455739562_2829696821 X-MC-Loop-Signature: 1693455739562:212230183 X-MC-Ingress-Time: 1693455739562 Received: from pdx1-sub0-mail-a311.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.116.104.140 (trex/6.9.1); Thu, 31 Aug 2023 04:22:19 +0000 Received: from [10.43.0.246] (unknown [193.56.116.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a311.dreamhost.com (Postfix) with ESMTPSA id 4Rbp0V6CPzz20; Wed, 30 Aug 2023 21:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1693455739; bh=TC9h3qln+NouUYEtrjj7RdMjsIkF32FblfRORPm2vf8=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=V5tSqUAi0l+hhlb55IWOaB3L82PIJlmJas8dbbFloXFGx/7RN3Y5AkgNXttvhKtMK BpA0+2AzlUPbpOtd2nT+6YqQBNJBG+7U78LQIHJ/Do2KAjajVORlCGLEnTypW7xXlp RQ+iu4X6oQ+ce/9Fhy1HlgTGvURw/oldZjzr6/5Xul4zgDQAginbJ08CQNkL08l/Gc SpdE+8ZWiiX8UGdVRpSrYeTTsaeiKu73eq08JvbI2jzUndsRmZMtKwFR2Oi6Gk49tN Tpe+gHipU4WwTBZBQ9NpDBSZVb/0l33IELFMQUQhe+aEwI3ac2uAu+gppGbhjjo0O5 PpaQZcqDdZZ/Q== Message-ID: Date: Wed, 30 Aug 2023 23:22:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 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/)] Content-Language: en-US To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <873507ilf7.fsf@localhost> <87v8cz34fs.fsf@localhost> From: Adam Porter In-Reply-To: <87v8cz34fs.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: neutral client-ip=23.83.212.46; envelope-from=adam@alphapapa.net; helo=cross.elm.relay.mailchannels.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 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, NICE_REPLY_A=-1.242, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.40 X-Migadu-Queue-Id: CDCE9C33D X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.40 X-TUID: Q3SLmzug0ez6 Hi Ihor, On 8/28/23 04:24, Ihor Radchenko wrote: > 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. My apologies, I overlooked that when investigating the problem. Thanks for your work. Adam