From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 cHoiApzwBGTIXAEAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 20:42:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qDUlApzwBGSzfQEAauVa8A (envelope-from ) for ; Sun, 05 Mar 2023 20:42:20 +0100 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 B37DD2BDE2 for ; Sun, 5 Mar 2023 20:42:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYuEb-0004U1-Al; Sun, 05 Mar 2023 14:41:29 -0500 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 1pYuEU-0004TW-Sa for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 14:41:23 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYuES-0004AE-Hy for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 14:41:22 -0500 Received: by mail-lf1-x132.google.com with SMTP id i9so10063080lfc.6 for ; Sun, 05 Mar 2023 11:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678045277; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zgbDYr/CwNgTgXzSajj5+mgXOGQB0fuW527mlpJkHuo=; b=C/3IkVqDYMbyfLfMQWDVDtTGzG/Q0k8z0Bk2CvWXSu1ATqRQgimg3FXPe+jAuqQ1eU 08uIb1z1wSgPBtmaL7loAFb78Rbm91/s5X6Cy47OgZTKTnxI8SeCwuh4kCbXMb5K3jwR UspfKMpGw5U1VjgpQZD182fFtKknNO9dx89eQFLdwgrD2g1XhQ5JW9Xc3+nJE5ft1tcB OIhVJuhJHKk0ITlt76ZrjeczN3HOa5QZfZitI0IrTDbvAvtSjB4Y+2aeH2q2AMfefOky DpvYyrYkBoyX7xqjDCz9PyBCvjmtnTTsuCVilJoxi4pkkruZMj8LFOqesusQep8Z5xUG xuRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678045277; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zgbDYr/CwNgTgXzSajj5+mgXOGQB0fuW527mlpJkHuo=; b=YRr+dC2rDUkwWsSjT02PtQX8T02XcFPybUIzvMaPveqOl2dU5a2vgtz7KfaZQ7AovU KLeHnAqZvIRfUsiJj7UU6ZVzBQwzv0AuYUJqYZ9TtlFTCK14rjAyK35Qpdb6IVBq/0Xv W4MwD158mf/LhyD0mT8EDpkIcURlaYZBVfWW9upaX73qpDT8H/u+ftS3tDDz0G3mj//q 6WnVO0UaX9SYTNQrky48uVuDRKEOlt7XjqqNbXqHTKle1yEt0Jz17AZrXhqUFPa1RddA 7ILfZ3b0ptDKtLDFYAqI97rMvILUApGR3t5b1UhY8EDwdTnclFoagK0mCOt9zBcutAd9 GxGA== X-Gm-Message-State: AO0yUKVgB+MnGVcgSJkeSfAwT0oqQv9QyhEZg2FAHaEUDmEVaVBMFBju KGPd0c93zJROtaWuenwkb1V7x1aJ0bFr5CuWxDIe42sxw+Y= X-Google-Smtp-Source: AK7set8fWcd5RGpuDCyxOE3kwD8V7pVeos/HnF9qM8oCd4b3qaR5evg2BuUnYY07bqPINpLeIhTwgX7H4i/G6J1Ut9Q= X-Received: by 2002:a05:6512:239e:b0:4dd:a379:f24c with SMTP id c30-20020a056512239e00b004dda379f24cmr5763172lfv.6.1678045277238; Sun, 05 Mar 2023 11:41:17 -0800 (PST) MIME-Version: 1.0 From: Deric Bytes Date: Sun, 5 Mar 2023 19:41:05 +0000 Message-ID: Subject: [BUG] org-element-at-point rx error on large file [9.6.1 (release_9.6.1-34-geea8da @ /home/dericbytes/installs/share/emacs/30.0.50/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000aac22c05f62c5cc1" Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=dericbytes@gmail.com; helo=mail-lf1-x132.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, HTML_MESSAGE=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.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678045339; 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=zgbDYr/CwNgTgXzSajj5+mgXOGQB0fuW527mlpJkHuo=; b=lYQEoFLJCHFWyCYFq3Gm2v6Vnk1zKE4smV6Aqv47O6t4txmEvVTROrFJI13bW8Ty1q96qz zfB7vOXFTng8N9ejZv7p3oF9dR6s4/1rATf/AdJ389YVkeFPWlmPKI+L5130TmrJcCd1ji p5Gzn6p8mZH6aGtPmUYt+OKD3N8seW/NskYN7GUTJNgIDEAovBjAKlEoAWE3EC+FZmZQw1 SLF0hj2aSKwOeFTatyoHm6eh2xmz60L/mXhIFLvG8+es6BMFHZkTrcmCqwGsPa8If7RVpm PgI6NAB3/XP+gOScgOeR0Vy7vxqkThmxe6cj9eW/U1JGnY9gAhx/EN26jmq4UA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/3IkVqD"; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678045339; a=rsa-sha256; cv=none; b=uNJZOa3+3kgWO9Qd5qhXMf8y81VI9QrnOcspqbUPBW22OZzO2E3GG1kaMttDpg+URAV5iu 86gmsJbmoRtQcanbVlZizjRdjzk8+ldfW1puM2H/VKsG9gyvELutvlkhaHy4MvaQFb7RZ7 9lhGU15rU2zadIDyBp4NGIIGGZ9FXuo+VUS1CBLPFO7KZGZzqsjp+iGPgfpbSeH7c0yncD t0DYqzr//xWSdKfDB4jqWIhRjMB4cSbKw9deLent4fvN0LCIlx6JRAl/6beUsc2m2AIwVl EB69I9hPGsbjEg3MH70USxRAWg5gmAt1kQgUEaWzf751HJR0rnWDwecBeDiaDA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.44 X-Spam-Score: -6.44 X-Migadu-Queue-Id: B37DD2BDE2 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="C/3IkVqD"; 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=gmail.com X-TUID: hHUNg2Y3kR7A --000000000000aac22c05f62c5cc1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Expected: Running `org-element-at-point' on large empty file returns nil. How to replicate: emacs -q (require 'org) (newline 200000) (org-element-at-point) Actual response =E2=9B=94 Warning (org-element-cache): org-element--cache: Org parser error= in *scratch*::24. Resetting. The error was: (error "rx =E2=80=98**=E2=80=99 range error") Backtrace: " backtrace-to-string(nil) org-element-at-point() (progn (org-element-at-point)) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) command-execute(eval-last-sexp) " Please report this to Org mode mailing list (M-x org-submit-bug-report). emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-02-28 Package: Org mode version 9.6.1 (release_9.6.1-34-geea8da @ /home/dericbytes/installs/share/emacs/30.0.50/lisp/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-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-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-mode-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-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) 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-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-persist-directory "/tmp/org-persist-ohZeX1" 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-arg-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 org-attach-complete-link) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :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-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :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-doi-export) ("id" :follow org-id-open) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302 Q \"\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) ) --000000000000aac22c05f62c5cc1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Expected:

=C2=A0 =C2=A0Running `org-element-at-poi= nt' on large empty file returns nil.

How to replicate:

em= acs -q
(require 'org)
(newline 200000)
(org-element-at-point)<= br>
Actual response

=E2=9B=94 Warning (org-element-cache): org-el= ement--cache: Org parser error in *scratch*::24. Resetting.
=C2=A0The er= ror was: (error "rx =E2=80=98**=E2=80=99 range error")
=C2=A0B= acktrace:
" =C2=A0backtrace-to-string(nil)
=C2=A0 org-element-at= -point()
=C2=A0 (progn (org-element-at-point))
=C2=A0 elisp--eval-las= t-sexp(nil)
=C2=A0 eval-last-sexp(nil)
=C2=A0 funcall-interactively(e= val-last-sexp nil)
=C2=A0 command-execute(eval-last-sexp)
"
= =C2=A0Please report this to Org mode mailing list (M-x
=C2=A0org-submit-= bug-report).
=C2=A0

emacs =C2=A0: GNU Emacs 30.0.50 (build 1, x86= _64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
=C2=A0of 2= 023-02-28
Package: Org mode version 9.6.1 (release_9.6.1-34-geea8da @ /h= ome/dericbytes/installs/share/emacs/30.0.50/lisp/org/)

current state= :
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-link-= elisp-confirm-function 'yes-or-no-p
=C2=A0org-bibtex-headline-format= -function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)&= quot;]
=C2=A0org-persist-after-read-hook '(org-element--cache-persis= t-after-read)
=C2=A0org-export-before-parsing-hook '(org-attach-expa= nd-links)
=C2=A0org-cycle-tab-first-hook '(org-babel-hide-result-tog= gle-maybe
=C2=A0 =C2=A0org-babel-header-arg-expand)
=C2=A0org-arc= hive-hook '(org-attach-archive-delete-maybe)
=C2=A0org-cycle-hook &#= 39;(org-cycle-hide-archived-subtrees
=C2=A0org-cycle-show-empty-lines=
=C2=A0org-cycle-optimize-window-after-visibility-change org-cycle-di= splay-inline-images)
=C2=A0org-persist-before-read-hook '(org-elemen= t--cache-persist-before-read)
=C2=A0org-mode-hook '(#[0 "\300\3= 01\302\303\304$\207"
=C2=A0 [add-hook change-major-mode-hook
= =C2=A0 =C2=A0org-fold-show-all append local]
=C2=A0 5]
#[0 &= quot;\300\301\302\303\304$\207"
=C2=A0 [add-hook change-major-mo= de-hook
=C2=A0 =C2=A0org-babel-show-result-all append local]
= =C2=A0 5]
org-babel-result-hide-spec
org-babel-hide-all-hashes)=
=C2=A0org-confirm-shell-link-function 'yes-or-no-p
=C2=A0outline= -isearch-open-invisible-function 'outline-isearch-open-invisible
=C2= =A0org-agenda-before-write-hook '(org-agenda-add-entry-text)
=C2=A0o= rg-src-mode-hook '(org-src-babel-configure-edit-buffer
=C2=A0 =C2= =A0 org-src-mode-configure-edit-buffer)
=C2=A0org-confirm-elisp-link-fun= ction 'yes-or-no-p
=C2=A0org-speed-command-hook '(org-speed-comm= and-activate
=C2=A0org-babel-speed-command-activate)
=C2=A0org-pe= rsist-directory "/tmp/org-persist-ohZeX1"
=C2=A0org-fold-core-= isearch-open-function 'org-fold-core--isearch-reveal
=C2=A0org-persi= st-before-write-hook '(org-element--cache-persist-before-write)
=C2= =A0org-tab-first-hook '(org-babel-hide-result-toggle-maybe
=C2=A0= =C2=A0 =C2=A0org-babel-header-arg-expand)
=C2=A0org-link-shell-confirm-= function 'yes-or-no-p
=C2=A0org-babel-pre-tangle-hook '(save-buf= fer)
=C2=A0org-agenda-loop-over-headlines-in-active-region nil
=C2=A0= org-occur-hook '(org-first-headline-recenter)
=C2=A0org-metadown-hoo= k '(org-babel-pop-to-session-maybe)
=C2=A0org-link-parameters '(= ("attachment" :follow org-attach-follow
:complete org-attac= h-complete-link)
=C2=A0 =C2=A0 =C2=A0 ("eww" :follow org-ew= w-open :store
org-eww-store-link)
=C2=A0 =C2=A0 =C2=A0 ("r= mail" :follow org-rmail-open :store
org-rmail-store-link)
= =C2=A0 =C2=A0 =C2=A0 ("mhe" :follow org-mhe-open :store
org= -mhe-store-link)
=C2=A0 =C2=A0 =C2=A0 ("irc" :follow org-ir= c-visit :store
org-irc-store-link :export org-irc-export)
=C2= =A0 =C2=A0 =C2=A0 ("info" :follow org-info-open :export
org= -info-export :store
org-info-store-link :insert-description
org= -info-description-as-command)
=C2=A0 =C2=A0 =C2=A0 ("gnus" = :follow org-gnus-open :store
org-gnus-store-link)
=C2=A0 =C2=A0= =C2=A0 ("docview" :follow org-docview-open
:export org-doc= view-export :store
org-docview-store-link)
=C2=A0 =C2=A0 =C2=A0= ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-= link)
=C2=A0 =C2=A0 =C2=A0 ("bbdb" :follow org-bbdb-open :e= xport
org-bbdb-export :complete
org-bbdb-complete-link :store org-bbdb-store-link)
=C2=A0 =C2=A0 =C2=A0 ("w3m" :stor= e org-w3m-store-link)
=C2=A0 =C2=A0 =C2=A0 ("doi" :follow o= rg-link-doi-open :export
org-link-doi-export)
=C2=A0 =C2=A0 =C2= =A0 ("id" :follow org-id-open) ("file+sys")
=C2= =A0 =C2=A0 =C2=A0 ("file+emacs")
=C2=A0 =C2=A0 =C2=A0 (&quo= t;shell" :follow org-link--open-shell)
=C2=A0 =C2=A0 =C2=A0 (&qu= ot;news" :follow
#[514 "\301\300\302 Q \"\207" =C2=A0["news" browse-url ":"] 6
=C2=A0"= ;\n\n(fn URL ARG)"]
)
=C2=A0 =C2=A0 =C2=A0 ("mailto&q= uot; :follow
#[514 "\301\300\302 Q \"\207"
=C2= =A0["mailto" browse-url ":"] 6
=C2=A0"\n\n(= fn URL ARG)"]
)
=C2=A0 =C2=A0 =C2=A0 ("https" :f= ollow
#[514 "\301\300\302 Q \"\207"
=C2=A0[&quo= t;https" browse-url ":"] 6
=C2=A0"\n\n(fn URL AR= G)"]
)
=C2=A0 =C2=A0 =C2=A0 ("http" :follow
= #[514 "\301\300\302 Q \"\207"
=C2=A0["http&quo= t; browse-url ":"] 6
=C2=A0"\n\n(fn URL ARG)"] )
=C2=A0 =C2=A0 =C2=A0 ("ftp" :follow
#[514 &quo= t;\301\300\302 Q \"\207"
=C2=A0["ftp" browse-url= ":"] 6
=C2=A0"\n\n(fn URL ARG)"]
)
= =C2=A0 =C2=A0 =C2=A0 ("help" :follow org-link--open-help :store org-link--store-help)
=C2=A0 =C2=A0 =C2=A0 ("file" :co= mplete org-link-complete-file)
=C2=A0 =C2=A0 =C2=A0 ("elisp"= ; :follow org-link--open-elisp))
=C2=A0org-metaup-hook '(org-babel-l= oad-in-session-maybe)
=C2=A0)
--000000000000aac22c05f62c5cc1--