emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Subject: [BUG] error when visit bibtex file link [9.5 (9.5-gd4e192 @ c:/Users/scott/.emacs.d/straight/build/org/)]
@ 2021-11-07  2:25 Scott Otterson
  2021-11-07  4:43 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Otterson @ 2021-11-07  2:25 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 37567 bytes --]

When I type C-c o on a bibtex file link like this:

[[file:energy.bib::Dubitzky07datMinGenBook][Dubitzky et al. 2007:
Fundamentals]]

I get the error message shown below:

=== *Warnings* ================================================

Warning (emacs): org-element--cache: Cache corruption detected in
energy.bib. Resetting.
 The error was: (error "rx ‘repeat’ range error")
 Please report this to Org mode mailing list (M-x org-submit-bug-report).

=== End *Warnings* =============================================


Emacs  : GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26
Package: Org mode version 9.5 (9.5-gd4e192 @
c:/Users/scott/.emacs.d/straight/build/org/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize-h)
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-appear-autoentities t
 org-roam-db-node-include-function #[0 "\300\207" [t] 1]
 org-table-header-line-p t
 org-refile-targets '((nil :maxlevel . 6))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-noter-auto-save-last-location t
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-latex-pdf-process '("latexmk -pdf -output-directory=%o -f %f")
 org-download-annotate-function 'org-download-annotate-default
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-agenda-files '("c:/Users/scott/OneDrive/share/proj/roadmapFrcst/
forecast_roadmap.org" "c:/Users/scott/OneDrivef/energytop.org"
"c:/Users/scott/OneDrive/ref/DOE_brainstorm/20200605152244-test0.org"
"c:/Users/scott/OneDrive/ref/tmp.org")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-modules '(ol-bibtex ol-info org-inlinetask org-mouse ol-eshell ol-man
               org-mouse org-protocol)
 org-cycle-include-plain-lists 'integrate
 org-mode-hook '(#[0
                   "\305\x10\306 >\203\x14\0\307\n\310\311#\210\307
\312\313#\210\307 \314\315#\210\306
>\203,\0\307\n\316\317#\210\307\n\320\321#\210\322 >\203>\0\307
\323\324#\210\307 \325\324#\210\326
>\203P\0\307\n\327\317#\210\307\n\330\321#\210\331
>\203_\0\332\311\f\333BC\334#\210\335 >\203k\0\332\311\336\334#\210\337
>\203w\0\332\311\340\334#\210\341\342\343\344\311$\210\345\342\311\"\210\342\207"
                   [org-mouse-context-menu-function

                    org-mouse-features

                    org-mouse-map

                    org-mode-map

                    org-outline-regexp

                    org-mouse-context-menu

                    context-menu

                    org-defkey

                    [mouse-3]

                    nil

                    [mouse-3]

                    org-mouse-show-context-menu

                    [down-mouse-1]

                    org-mouse-down-mouse

                    [C-drag-mouse-1]

                    org-mouse-move-tree

                    [C-down-mouse-1]

                    org-mouse-move-tree-start

                    yank-link

                    [S-mouse-2]

                    org-mouse-yank-link

                    [drag-mouse-3]

                    move-tree

                    [drag-mouse-3]

                    [down-mouse-3]

                    activate-stars

                    font-lock-add-keywords

                    (0















                     `(face org-link mouse-face highlight keymap
                       ,org-mouse-map)
















                     'prepend)

                    t

                    activate-bullets

                    (("^[ ]*\\([-+*]\\|[0-9]+[.)]\\) +"













                      (1






































                       `(face org-link keymap ,org-mouse-map mouse-face
highlight)






































                       'prepend)














                      )













                     )

                    activate-checkboxes

                    (("^[ ]*\\(?:[-+*]\\|[0-9]+[.)]\\)[
]+\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ ]*\\)?\\(\\[[- X]\\]\\)"








                      (1


























                       `(face nil keymap ,org-mouse-map mouse-face
highlight)


























                       prepend)








                      )







                     )

                    ad-add-advice

                    org-open-at-point

                    (org-mouse-open-at-point













                     nil













                     t













                     (advice












































































                      lambda












































































                      nil












































































                      (let









































































































































































































































































































































                       ((context


































































































































































































































































































































































































































































































































































































































































































































































                         (org-context)




























































































































































































































































































































































































































































































































































































































































































































































































                                                            )







































































































































































































































































































































































































































































































































































































































































                        )









































































































































































































































































































































                       (cond

























































































































































































































































































































































                        ((assq :headline-stars context)































































































































































































































































































































































































































































































































































































































































































































                         (org-cycle)































































































































































































































































































































































































































































































































































































































































































































                         )

























































































































































































































































































































































                        ((assq :checkbox context)

























































































































































































































































































































































                         (org-toggle-checkbox)

























































































































































































































































































































































                         )

























































































































































































































































































































































                        ((assq :item-bullet context)

























































































































































































































































































































































                         (let

























































































































































































































































































































































                          ((org-cycle-include-plain-lists t)































































































































































































































































































































































































































































































































































































































































































































                           )

























































































































































































































































































































































                          (org-cycle)

























































































































































































































































































































































                          )

























































































































































































































































































































































                         )

























































































































































































































































































































































                        ((org-footnote-at-reference-p)

























































































































































































































































































































































                         nil)

























































































































































































































































































































































                        (t ad-do-it)

























































































































































































































































































































































                        )









































































































































































































































































































































                       )












































































                      )













                     )

                    around ad-activate]
                   5]
                 wrap-region-mode org-superstar-mode
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-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-autolist-mode org-appear-mode)
 org-yank-adjusted-subtrees t
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-outline-path-complete-in-steps nil
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-roam-capture-new-node-hook '(org-roam-protocol--insert-captured-ref-h)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-superstar-headline-bullets-list '("●" "■" "○" "►" "•" "□" "▸" "▫" "▹")
 org-confirm-elisp-link-function 'yes-or-no-p
 org-noter-doc-property-in-notes t
 org-download-file-format-function 'org-download-file-format-default
 org-appear-autolinks t
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-noter-notes-search-path
'("c:/Users/scott/OneDrive/share/ref/DOE_brainstorm/org-notes")
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-bibtex-headline-format-function #[257 "\300\x01\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-download-method 'org-download-method-dirname-from-orgfile
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-file-apps '(("\\.docx\\'" . default) ("\\.mm\\'" . default)
                 ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)
                 (auto-mode . emacs))
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
 org-export-with-broken-links 'mark
 org-hide-leading-stars t
 org-roam-capture-preface-hook '(org-roam-dailies--override-capture-time-h
                                 org-roam-protocol--try-capture-to-ref-h)
 org-hide-emphasis-markers t
 org-export-backends '(ascii html latex odt org)
 org-roam-completion-everywhere t
 org-font-lock-hook '(org-inlinetask-fontify)
 org-startup-align-all-tables t
 org-ascii-format-drawer-function #[771 "\x01\207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-ellipsis "…"
 org-superstar-todo-bullet-alist '(("TODO" . 9646) ("DONE" . 9647))
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-case-fold-search ''smart
 org-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h
                           org-roam--register-completion-functions-h
                           org-roam--replace-roam-links-on-save-h
                           org-roam-open-id-with-org-roam-db-h
                           org-roam-db-autosync--setup-update-on-save-h)
 org-appear-autokeywords t
 org-occur-hook '(org-first-headline-recenter)
 org-agenda-mode-hook '(#[0
                          "\302\x10\303 \304\305#\210\303 \306\307#\210\303
\310\311#\210\303 \312\313#\210\303 \314\315#\207"
                          [org-mouse-context-menu-function

                           org-agenda-mode-map

                           org-mouse-agenda-context-menu

                           org-defkey

                           [mouse-3]

                           org-mouse-show-context-menu

                           [down-mouse-3]

                           org-mouse-move-tree-start

                           [C-mouse-4]

                           org-agenda-earlier

                           [C-mouse-5]

                           org-agenda-later

                           [drag-mouse-3]

                           #[257


 "\300\x01!\211\301\267\202\x15\0\302\303!\202\x16\0\304\303!\202\x16\0\305\207"

                             [org-mouse-get-gesture










                              #s










                              (hash-table







































                               size







































                               2







































                               test







































                               eq







































                               rehash-size







































                               1.5







































                               rehash-threshold







































                               0.8125







































                               purecopy







































                               t







































                               data







































                               (:left 9 :right 15)







































                               )











                              org-agenda-earlier 1 org-agenda-later nil]

                             4 "\n\n(fn EVENT)" "e"]

                           ]
                          4]
                        )
 outline-minor-mode-hook '(outshine--outline-minor-mode-hook outshine-mode)
 org-noter-notes-window-location 'other-frame
 org-protocol-protocol-alist '(("org-roam-node" :protocol "roam-node"
                                :function org-roam-protocol-open-node)
                               ("org-roam-ref" :protocol "roam-ref"
:function
                                org-roam-protocol-open-ref)
                               )
 org-noter-hide-other nil
 org-appear-autosubmarkers t
 org-odd-levels-only t
 org-pandoc-options-for-docx '((standalone))
 org-cycle-hook '(org-inlinetask-hide-tasks org-cycle-hide-archived-subtrees
                  org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
                          org-babel-speed-command-activate)
 org-roam-node-annotation-function 'org-roam-node-read--annotation
 org-id-method 'ts
 org-roam-ui-browser-function 'browse-url
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-roam-ref-annotation-function 'org-roam-ref-read--annotation
 org-roam-dailies-directory "c:/Users/scott/tmp/daily"
 org-appear-delay 1
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-font-lock-set-keywords-hook '(org-hidden-links-hook-function)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("roam" :follow org-roam-link-follow-link)
                       ("man" :follow org-man-open :export org-man-export
                        :store org-man-store-link)
                       ("eshell" :follow org-eshell-open :store
                        org-eshell-store-link)
                       ("info" :follow org-info-open :export org-info-export
                        :store org-info-store-link)
                       ("bibtex" :follow org-bibtex-open :store
                        org-bibtex-store-link)
                       ("zotero" :follow
                        (lambda (zpath)
                         (browse-url (format "zotero:%s" zpath)))
                        )
                       ("attachment" :follow org-attach-follow :complete
                        org-attach-complete-link)
                       ("id" :follow org-id-open) ("file+sys")
("file+emacs")
                       ("shell" :follow org-link--open-shell)
                       ("news" :follow
                        #[514 "\301\300\302\x04Q\x02\"\207"
                          ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]
                        )
                       ("mailto" :follow
                        #[514 "\301\300\302\x04Q\x02\"\207"
                          ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]
                        )
                       ("https" :follow
                        #[514 "\301\300\302\x04Q\x02\"\207"
                          ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]
                        )
                       ("http" :follow
                        #[514 "\301\300\302\x04Q\x02\"\207"
                          ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]
                        )
                       ("ftp" :follow
                        #[514 "\301\300\302\x04Q\x02\"\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-noter-always-create-frame nil
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-link-elisp-confirm-function 'yes-or-no-p
 org-roam-db-autosync-mode t
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-superstar-special-todo-items t
 org-superstar-cycle-headline-bullets nil
 org-roam-directory "c:/Users/scott/tmp"
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-superstar-item-bullet-alist '((42 . 10043) (43 . 10011) (45 . 9644))
 org-directory "c:/Users/scott/OneDrive/share/ref/DOE_brainstorm/org-notes"
 org-download-link-format-function
'org-download-link-format-function-default
 org-link-from-user-regexp nil
 org-use-speed-commands t
 org-download-abbreviate-filename-function 'file-relative-name
 org-ctrl-k-protect-subtree 'error
 org-list-allow-alphabetical t
 )

[-- Attachment #2: Type: text/html, Size: 1186740 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Subject: [BUG] error when visit bibtex file link [9.5 (9.5-gd4e192 @ c:/Users/scott/.emacs.d/straight/build/org/)]
  2021-11-07  2:25 Subject: [BUG] error when visit bibtex file link [9.5 (9.5-gd4e192 @ c:/Users/scott/.emacs.d/straight/build/org/)] Scott Otterson
@ 2021-11-07  4:43 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2021-11-07  4:43 UTC (permalink / raw)
  To: Scott Otterson; +Cc: Emacs-orgmode@gnu.org

Scott Otterson <scotto@sharpleaf.org> writes:

> When I type C-c o on a bibtex file link like this:
>
> [[file:energy.bib::Dubitzky07datMinGenBook][Dubitzky et al. 2007:
> Fundamentals]]
>
> I get the error message shown below:
>
> === *Warnings* ================================================
>
> Warning (emacs): org-element--cache: Cache corruption detected in
> energy.bib. Resetting.
>  The error was: (error "rx ‘repeat’ range error")

I cannot reproduce. It looks like something is calling
org-element-at-point inside bibtex buffer. Do you have any adviced Org
functions?

Also, if you update to latest main, the warning should provide more
information for debugging.

Best,
Ihor


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-07  4:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-07  2:25 Subject: [BUG] error when visit bibtex file link [9.5 (9.5-gd4e192 @ c:/Users/scott/.emacs.d/straight/build/org/)] Scott Otterson
2021-11-07  4:43 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).