From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uINLBdlNlWJ80wAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 01:06:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SB9JBNlNlWLbZwEAG6o9tA (envelope-from ) for ; Tue, 31 May 2022 01:06:01 +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 744F529A87 for ; Tue, 31 May 2022 01:06:00 +0200 (CEST) Received: from localhost ([::1]:51428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvoSV-00070U-99 for larch@yhetil.org; Mon, 30 May 2022 19:05:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvoRx-0006zu-8X for emacs-orgmode@gnu.org; Mon, 30 May 2022 19:05:25 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:36370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvoRv-0003hJ-IA for emacs-orgmode@gnu.org; Mon, 30 May 2022 19:05:24 -0400 Received: by mail-pj1-x1036.google.com with SMTP id u12-20020a17090a1d4c00b001df78c7c209so640797pju.1 for ; Mon, 30 May 2022 16:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=W8Aypj/vq18ipeEdjneti3RlIAMsMucIqoJ5DslaWFQ=; b=Ly5NnCaCx5Y+pZpvV2xooTugPlgVEHv3ttQwLM0Y7qd1Hbbvam63a5RmQi2kvA7fSC /H12le+uyOuqcZZVRmozohHwyHHRWsrLL1r2vtMuExcszV178TIQvaGDJWCq/7i2ZWzx 6eP+NLqrdEV4YT14Ayc573B2SN4byKGj9BA1JxxkgHSuEuuiJokj0xDiABeyMJa7riKv qJ5M9F77F16VbUFXpJQdgkN45psanyaiaZ+Fxjm3DDnrAq5JjO+FVCmZ3N3Pl5eMGpgo xrtngKfWDwTusjM9icg16nOwdgiMrBuf+PoIhBs3E+MrQv5WNvN1sQBdZQygPTdwdQK0 iPwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=W8Aypj/vq18ipeEdjneti3RlIAMsMucIqoJ5DslaWFQ=; b=amwTCoz0jef/feReLO4QfTfgKvv2zeAfoGmef38FPFMwRMcL+1fqcwz+ptWfTT2l7u 0q+RYYEwDwea63B0Nxb/YEGnNQnMSmFxei1kN6duTFNRf94IUUEMmD75brYDX8jkf/bI TcsctT8z6IXiTbyQKgESJ40Bwtd6ork9Ok2Jx5QIVNCKVCqi8X1A+q9fjCwVBqSbgcL9 vN4P12LxQtJtyZgFlAEyyIjf8155cAZewaiJsDNQIm7Bm4i+0j/91vY91z7tG4c6Tt4G cyh8BjSYn8ZncvEXtMLCiIecG+QfdfMXB+GqyzD/SvFoPYgw1gptxojsMQCk28IAZZjp h4GQ== X-Gm-Message-State: AOAM530sCsVYVMQ8SmfK+cH4TbOBrCUrnU86r5b0WQdqduNQHPu9P+jC eFnF8hZimyzNeCFOQMFHuaAhmeMfp4LerrA15UUH5ApkBF0= X-Google-Smtp-Source: ABdhPJxYc8085QVVbcMaay+7JGV4ZpvVYCDzJYqn5bLeYA28ccRzuuqei2PJpLJBkW0c9bxJpQnMN6bLzTqU62NiYOo= X-Received: by 2002:a17:90b:1e4f:b0:1e0:b91:39ef with SMTP id pi15-20020a17090b1e4f00b001e00b9139efmr25268578pjb.51.1653951921298; Mon, 30 May 2022 16:05:21 -0700 (PDT) MIME-Version: 1.0 From: Kaushal Modi Date: Mon, 30 May 2022 19:04:45 -0400 Message-ID: Subject: BUG: org cycling regression when using the legacy folding style overlays To: emacs-org list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=kaushal.modi@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653951960; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W8Aypj/vq18ipeEdjneti3RlIAMsMucIqoJ5DslaWFQ=; b=AnW92ElBcHYZ7SgZYvghofOiOPSnH2wcaZLyc3dG5eOH3gCCFpx4sKW+/L+HEqFW7MTa77 dDLWNjmcGAvouCzqsD/oF5ewcb3jSlvzjKfaXwr+bpD+Vrb/3/U8srisKpEozQ2W8yLO2p kVvNTBWOx7IkVShsx7dHu7ZmufDncv13f8kDMMRllcDo1Q4PRaG66wZWoW15fYwjkB/7eD eJMwiP8LsTki5TA+8A0NGmssE0YmbiNS/nHTLzCCMdC6dOygqVmn1uSQi+/n3G8xDqqz3W Gtl6CHDAULWHRaiCgqSPFuxhlbAjbINyCiuuUISsHYPkgLk5ijC91zcquBsR+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653951960; a=rsa-sha256; cv=none; b=birC44Bb7R4kRScvEgaMvklYiuajLw8m/zxUR6T7uEUse/yRmLvnzhhQ3YNtWW3TBEp0g8 Ni3aqi0cWlUMN6+P3hi8ZP3wCsO1bAjgAefe7eU0ugH7NKvfOW1rp2OoOXyLD7KfXODJqu Hf6EIIug7p6l7vSuWpOmawzTN9SMpDDRaIYicrUd8EagMzRB+uVSci9SnG4o+RohhyMX4F w70EHP5uJoi0mOo1Z0VJH9zvhnAzYPoJgJ/jk8fI3ywnmWMnMefn0kiUjpyQK0CIZYoYB8 Xli2hrD8J5QUQIbCl0LqjJlj0A5al9UBEfOKjjDQQxsge6LtnDFyS4mkZTQ/Vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ly5NnCaC; 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.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ly5NnCaC; 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: 744F529A87 X-Spam-Score: -4.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: JZjUT5yajivf Hello, I was trying to create a minimal reproducible example for a different issue and I ended up with this other issue that I didn't expect and so I am reporting that first. Issue: Opening an Org file gives (wrong-number-of-arguments # 2) error. ===== Warning (org-element-cache): org-element--cache: Org parser error in t.org::88. Resetting. The error was: (wrong-number-of-arguments # 2) Backtrace: nil Please report this to Org mode mailing list (M-x org-submit-bug-report). ===== Recipe: 1. Clone https://gitlab.com/kaushalmodi/org-mode-mwe to a temp directory (say, in /tmp) 2. cd to the org repo and check out the main branch. The Org version used when creating this report was release_9.5.3-520-g4dda0d. 3. emacs -Q -L ./lisp/ /tmp/org-mode-mwe/bug-recipes/collapse-all-post-subtrees/t.org & 4. Evaluate the "code__fold_style" src block in that test file; it sets the fold style to overlays 5. Evaluate the "code__collapse_all_posts" src block; this code hides all the subtrees with non-empty values for EXPORT_FILE_NAME or CUSTOM_ID properties. If you skip step 4, you will find the collapsing of all subtrees where EXPORT_FILE_NAME or CUSTOM_ID is set happens as expected in step 5. But if you evaluate step 4, most (or all?) subtrees remain uncollapsed. Additionally, once step 4 + 5 are evaluated, the default TAB binding that should cycle a subtree's visibility also starts behaving erratically. For example, move cursor to line 68 (* Image / Figure) in the test file t.org after completing all of the above steps. You will find these lines visible: ===== * Image / Figure :image: ** Image links :PROPERTIES: :EXPORT_FILE_NAME: image-links :EXPORT_DATE: 2017-07-15T07:49:44-04:00 :END: ===== Hit TAB once, and now you see this: it hid only the title of the subtree heading under it, but still shows the property drawer expanded! ===== * Image / Figure :image: :PROPERTIES: :EXPORT_FILE_NAME: image-links :EXPORT_DATE: 2017-07-15T07:49:44-04:00 :END: ===== Hit TAB once again, you will see: ===== * Image / Figure :image: ** Image links... ===== Now if you move the point to line 69 (* Image links), hitting the TAB will not do any kind of cycling at all. -- Kaushal Modi