From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +E9zElcvdGTJJwAASxT56A (envelope-from ) for ; Mon, 29 May 2023 06:51:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2AWcElcvdGTXIwAA9RJhRA (envelope-from ) for ; Mon, 29 May 2023 06:51:35 +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 A46F48879 for ; Mon, 29 May 2023 06:51:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Upx-0001Rj-Nu; Mon, 29 May 2023 00:50:29 -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 <420actionunits@gmail.com>) id 1q3Upo-0001RZ-9F for emacs-orgmode@gnu.org; Mon, 29 May 2023 00:50:20 -0400 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <420actionunits@gmail.com>) id 1q3Upk-0007Kv-JU for emacs-orgmode@gnu.org; Mon, 29 May 2023 00:50:20 -0400 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-399e9455e9fso680748b6e.0 for ; Sun, 28 May 2023 21:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685335814; x=1687927814; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=LGwqsweIlPechEQHTl9zFff0LLnAsMmS0Pn+jRxF0+Y=; b=BvqQgAypsl/hr7ZLikJfC+1IuHxybFZTmPjkfsEjquJ9TTgUPPjj+xd19Bv8DCNZzj aXWdT1TRB1lCAjz7yKvy7VkkbVysHSY38g5i9W/r87z4GcUjieJLBw57m9u8PeWawDyT lozLIClp4YE7p5b9mUtR9uuzYIs3JbPR5eKupkOwPIErVcyg7hGit8RwzVxGPHXe4pqq PvQNXq3wWFTv4Z/byl3te4TfkRFOSlGkW5YH6hzFcx/pr+IyiVf/ozv8TDKYEjhzPyj0 kCIiYcf220/+xK4KHQYETTmg+xDIXqU3Ek/ftfDrono1hfu60WwJKxCooug2M+2gMshN BUNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685335814; x=1687927814; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LGwqsweIlPechEQHTl9zFff0LLnAsMmS0Pn+jRxF0+Y=; b=Ti/H0+L0DevGvY5NvbVaFkdDFoOPcnukQqeuaseAF1y/mw9mVgtz+DVHCutF6x5DVD 5VMTE3/hg7JnIXO79EI0qiJFfEEBKgeYBrOAC8dawGamOknMrzOmJ2tmVJ6MLxwgb2OB v+qJ0CQrtCb0SBH8DZGZ5Mdqsi55j1hJ+a9JKhMbO+Z0rPH5s5LUBmCr7VJXA5dhbywf dLkTGCOdMBoHqSeyoz0LQVFVZkY1a46p93yUDegJOu4l5u3FiarnTQ5+tug50ZRlqt51 GB3SHTg2/R1anJzw3mWubErQMzBXu2dHIHo6RShCXQ59/yEXqCuC8p1WtllmsU+o3Ek/ NDig== X-Gm-Message-State: AC+VfDyMGS3jJY78nVdAUN+Z6XmanNNoMeO2l2AeKOLpPoYOJNSZpTNO hcgVhvsiD0T4W+pkMLgfPmETxxCcXCo= X-Google-Smtp-Source: ACHHUZ40xupuDz01dim07Afnn+jrlhmrt76uOzwn3iZY+vekSOL68yKfip8C7xJbGPfoBNm5LPxXpQ== X-Received: by 2002:a05:6808:208f:b0:398:4b13:607b with SMTP id s15-20020a056808208f00b003984b13607bmr5337077oiw.2.1685335814300; Sun, 28 May 2023 21:50:14 -0700 (PDT) Received: from [192.168.43.12] (wsip-72-214-132-169.sv.om.cox.net. [72.214.132.169]) by smtp.gmail.com with ESMTPSA id i21-20020aca2b15000000b00397c03854edsm4061151oik.17.2023.05.28.21.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 21:50:14 -0700 (PDT) Message-ID: Subject: org-fold-core-region error: missing SPEC From: 420actionunits@gmail.com To: emacs-orgmode@gnu.org Date: Sun, 28 May 2023 22:50:12 -0600 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=420actionunits@gmail.com; helo=mail-oi1-x22a.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_FROM=0.001, FROM_STARTS_WITH_NUMS=0.738, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685335895; a=rsa-sha256; cv=none; b=AivSffHbUM12qqRIl35ikqinyz4gq0ZiPCVUTnBbiQVNZrDHjtofrgcwG/4/WdeQ3zHzhK j6vK9sEmOj8eqmgjwLzKnNym6Bd69GJZlcBGuuDykNXcGkKvsAF2bGUUsMqqVEG7E4oIbz Akf9+dCHM0XVlFKN13hoCl5FAlXimue542q5VdOS82uoMzxiaBk5FNt2/Z+icoFi9yNZRI f/KMMruROlBTqgH7BHC3a2pLTupUE2Kwtm0t9TxFPvgTy6UlmNvlL0Mw3LS6Y1yoAI7m+5 bA1uh3pwn9h3bUZk0uCOMTU1n+bVUbmbJJ/BPMVADsYKHyXGpCK1zX0X2Y/r9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=BvqQgAyp; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685335895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LGwqsweIlPechEQHTl9zFff0LLnAsMmS0Pn+jRxF0+Y=; b=TpivDZN76SqQLqxXbGSjBaCFEBvTxveL52ruOyX05Re93q2LvFxuHGGq6X3YzoR6auFQ/U mSzqhZvW7xDMrEUOqAntD7/H8FOn0E+ha8jYa+y4PLPnJqVdZgUHNTXNOkJO7xfelXf7wT SgLBP+Hb5HafhZ8nGfgLSDCZlZMrLWkQMhyP5o5x5lDDWhoq8kSgBWHdUFw97WVX8cIOex usPQlEitqePVPXGpypKZdrE3x1MSsAKboVGmy1NafBQ8ZAUMMUb9rmKb7hnE9zvuYngd40 VtyGi03IM7vl0WlvYMHyWLN7jNuPf7TYbSNqtndEMPcycMAFZDMGm7rR9EVqwg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=BvqQgAyp; 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: -4.80 X-Spam-Score: -4.80 X-Migadu-Queue-Id: A46F48879 X-TUID: FcKWxP7Fu4/A I get the following stack trace when calling ORG-JIRA-GET-ISSUES from org-jira I also get it from similar calls from ejira. After looking at the code I think it's a problem in org and org-fold. Debugger entered--Lisp error: (error "Calling =E2=80=98org-fold-core-region= =E2=80=99 with missing SPEC") signal(error ("Calling =E2=80=98org-fold-core-region=E2=80=99 with missin= g SPEC")) error("Calling `org-fold-core-region' with missing SPEC") org-fold-region(1312 1318 t outline) org-insert-property-drawer() org-get-property-block(1222 force) org-entry-put(1286 "assignee" "Carlos Konstanski") org-jira-entry-put(1286 "assignee" "Carlos Konstanski") org-jira--render-issue(#) mapc(org-jira--render-issue (# ...)) org-jira--render-issues-from-issue-list((# ...)) org-jira-get-issues((# ...)) #f(compiled-function (&rest rest) "Callback for async, DATA is the respon= se from the request call.\n\nWill send a list of org-jira-sdk-issue objects= to the list printer." #)(:data (... ... ... .= .. ...) :symbol-status success :error-thrown nil :response #s(request-respo= nse :status-code 200 :history nil :data ... :error-thrown nil :symbol-statu= s success :url "https://ololab..." :done-p nil :settings ... :-buffer # :-raw-header "HTTP/2 200 \nda..." :-timer nil :-backend curl)) apply(#f(compiled-function (&rest rest) "Callback for async, DATA is the = response from the request call.\n\nWill send a list of org-jira-sdk-issue o= bjects to the list printer." #) (:data ... :sy= mbol-status success :error-thrown nil :response ...)) request--callback(# :sync nil :headers (... ...) :parser j= iralib--json-read :complete #f(compiled-function (&rest rest) "Callback for= async, DATA is the response from the request call.\n\nWill send a list of = org-jira-sdk-issue objects to the list printer." #) :error (lambda ... "\n\n(fn &key DAT..." ...) :type "POST" :data ...) apply(request--callback # (:sync nil :headers (("Authoriza= tion" . "Basic Y2FybG9zLmtvbnN0YW5z...") ("Content-Type" . "application/jso= n")) :parser jiralib--json-read :complete #f(compiled-function (&rest rest)= "Callback for async, DATA is the response from the request call.\n\nWill s= end a list of org-jira-sdk-issue objects to the list printer." #) :error (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &= allow-oth..." (apply ... ... ... --cl-rest--)) :type "POST" :data "{\"jql\"= :\"assignee =3D current..." :url "https://ololabs.atlassian...." :response = #s(request-response :status-code 200 :history nil :data (... ... ... ... ..= .) :error-thrown nil :symbol-status success :url "https://ololabs.atlassian= ...." :done-p nil :settings #3 :-buffer # :-raw-header "HTTP= /2 200 \ndate: Sat, 27 ..." :-timer nil :-backend curl) :encoding utf-8)) request--curl-callback("https://ololabs.atlassian.net/rest/api/2/search" = #> "finished\n") apply(request--curl-callback ("https://ololabs.atlassian.net/rest/api/2/s= earch" #> "finished\n")) #f(compiled-function (&rest args2) #)(#> "finished\n") I set a breakpoint at the beginning of function ORG-FOLD-CORE-GET-FOLDING-SPEC-FROM-ALIAS. It runs quite a few times successfully. Every time the input argument SPEC-OR-ALIAS has one of these values: 'ORG-FOLD-VISIBLE or 'ORG-FOLD-HIDDEN. But at some point the function runs with a value of 'DRAWER, and that's when it returns NIL and the error is thrown higher up in ORG-FOLD-CORE-REGION when it explicitly tests for a NIL result. ORG-FOLD-CORE--SPEC-SYMBOLS has the value: ((HIDDEN . ORG-FOLD-HIDDEN) (:ALIAS . ORG-FOLD-HIDDEN) (ORG-FOLD-HIDDEN . ORG-FOLD-HIDDEN) (VISIBLE . ORG-FOLD-VISIBLE) (:ALIAS . ORG-FOLD-VISIBLE) (ORG-FOLD-VISIBLE . ORG-FOLD-VISIBLE)) But when a drawer wants to be added we call ORG-FOLD-REGION like this: (ORG-FOLD-REGION (LINE-END-POSITION 0) (POINT) T (IF (EQ ORG-FOLD-CORE-STYLE 'TEXT-PROPERTIES) 'DRAWER 'OUTLINE)) It will pass in either 'DRAWER or 'OUTLINE, neither of which are valid given the alist they need to match against. It would seem that any execution path that goes through ORG-INSERT-PROPERTY-DRAWER is going to fail. I'm still unclear on how ORG-FOLD-CORE--SPEC-SYMBOLS gets set with this alist. Is there is an opportunity for callers to customize it? What would be appropriate values to add for 'DRAWER and 'OUTLINE? Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo = version 1.17.8, Xaw3d scroll bars) of 2023-05-27 Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/l= isp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n= (fn ENTRY)"] org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-he= ader-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lin= es org-cycle-optimize-window-after-visibility-change org-cyc= le-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mod= e-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-a= ll append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes #[0 "\301\211=10\207" [imenu-create-index-function org-ime= nu-get-tree] 2]) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete or= g-attach-complete-link) ("eww" :follow org-eww-open :store org-eww-store-lin= k) ("rmail" :follow org-rmail-open :store org-rmail-sto= re-link) ("mhe" :follow org-mhe-open :store org-mhe-store-lin= k) ("irc" :follow org-irc-visit :store org-irc-store-li= nk :export org-irc-export) ("info" :follow org-info-open :export org-info-expor= t :store org-info-store-link :insert-description org-info-description-as-command= ) ("gnus" :follow org-gnus-open :store org-gnus-store-= link) ("docview" :follow org-docview-open :export org-docv= iew-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-= store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-expor= t :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-do= i-export) ("jira" :follow org-jira-open :export nil) ("id" :fo= llow org-id-open) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell= ) ("news" :follow #[514 "\301\300\302=04Q\"\207" ["news" browse-url "= :"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302=04Q\"\207" ["mailto" browse-url= ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302=04Q\"\207" ["https" browse-url = ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302=04Q\"\207" ["http" browse-url "= :"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302=04Q\"\207" ["ftp"= browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link-= -store-help) ("file" :complete org-link-complete-file) ("elisp" := follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) org-fold-core-style 'text-properties )