Acronym lookup fails #4
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tec/org-glossary#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Emacs 28.1
org 9.5.2
org-glossary master
With glossary definition
Pressing RET on a reference of UAF (in a file
zig.org
, using#+glossary_sources
with appropriateorg-glossary-collection-root
) gives the backtrace at the end. I debugged this briefly and found thatb2b53e8246/org-glossary.el (L1841)
evaluates to:which looks suspicious to me where
:definition-file #<buffer zig.org>
the referring file (zig.org) is confused with the definitions file (glossary.org)?I suspect that you didn't save the zig.org buffer. Though such scenario is certainly missed in the code.
Double-checked that the buffer was saved. Error remains.
Actually, unsaved/non-file buffers are currently supported. The issue here was a typo misplacing a paren. Fixed in
10399b9d5e
.@tecosaur Thanks for the quick fix. After pulling your fix, after pressing RET on the
UAF
reference, point jumps to the:ID: ...
line of thezig.org
header:but I expected it to jump to the corresponding line in glossary.org.
It would be good if you could provide a MWE so I could attempt to reproduce this.
glossary.org (in
org-glossary-collection-root
)issue4.org
As mentioned in my first post, this remains suspect to me
:definition-file #<buffer zig.org>
. I also noted that I see this in debugging even if I pressed RET on UAF in the issue4.org file.What do you have
org-glossary-collection-root
set to?"/path/to/directory/containing/glossary.org/"
So
org-glossary-collection-root
is the path toglossary.org
and then you have#+glossary_sources: glossary.org
?Sorry for the confusion. It is the path to the folder containing
glossary.org
. It has a trailing slash because of another string concat bug.Ah cool, yep that's alright then.
Ok, I just attempted to reproduce this without success.
https://user-images.githubusercontent.com/20903656/180616339-18d6c1b1-c5d3-49d4-8c71-f37ca0766bb6.mp4
Might be a missing cache invalidation? Looking at
org-glossary--quicklookup-cache
here.@fleimgruber let me know if you still experience any issues along these lines.
@tecosaur thanks for checking back. As I am still using org-mode <9.6 I will test this more when I upgrade. In case of issues I will reopen.