summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Edström <meedstrom@runbox.eu>2026-03-26 12:45:57 +0100
committerMartin Edström <meedstrom@runbox.eu>2026-03-26 12:45:57 +0100
commit07094dac902e452d59533e4d01e8177afaa0cfd1 (patch)
tree47f85a2d06035c77e23fffcecbf8b69392cdb387
parentad025758b72b478aced96736703e20fdf6d6d0aa (diff)
Revert "Change pseudo-id algorithm: no sxhash"externals/org-mem
This reverts commit ad025758b72b478aced96736703e20fdf6d6d0aa.
-rw-r--r--org-mem-parser.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/org-mem-parser.el b/org-mem-parser.el
index 632e3ca..400ffce 100644
--- a/org-mem-parser.el
+++ b/org-mem-parser.el
@@ -77,11 +77,8 @@ file, however org-mem-parser uses a work-around for that.
It is stable enough for use-cases such as caching backlink previews,
since the majority of entries are typically left unchanged over weeks."
- (let ((nums (flatten-tree (file-attribute-file-identifier file-attribs))))
- (string-to-number
- (md5 (string-join (cons entry-string (mapcar #'number-to-string nums))
- " "))
- 16)))
+ (+ (sxhash (file-attribute-file-identifier file-attribs))
+ (string-to-number (md5 entry-string) 16)))
(defun org-mem-parser--org-link-display-format (s)
"Copy of `org-link-display-format'.