dendroam icon indicating copy to clipboard operation
dendroam copied to clipboard

Symbol’s value as variable is void: org-roam-slug-trim-chars

Open hoppla20 opened this issue 4 years ago • 2 comments

I'm using Doom Emacs with the org +roam2 feature. After installing and configuring dendroam I got the following error:

Symbol’s value as variable is void: org-roam-slug-trim-chars

After a little bit of digging I understood, that it probably should be the same value as slug-trim-chars in the org-roam-node-slug method. So I had to add the following variable to my config:

(setq org-roam-slug-trim-chars '(;; Combining Diacritical Marks https://www.unicode.org/charts/PDF/U0300.pdf
                                   768 ; U+0300 COMBINING GRAVE ACCENT
                                   769 ; U+0301 COMBINING ACUTE ACCENT
                                   770 ; U+0302 COMBINING CIRCUMFLEX ACCENT
                                   771 ; U+0303 COMBINING TILDE
                                   772 ; U+0304 COMBINING MACRON
                                   774 ; U+0306 COMBINING BREVE
                                   775 ; U+0307 COMBINING DOT ABOVE
                                   776 ; U+0308 COMBINING DIAERESIS
                                   777 ; U+0309 COMBINING HOOK ABOVE
                                   778 ; U+030A COMBINING RING ABOVE
                                   780 ; U+030C COMBINING CARON
                                   795 ; U+031B COMBINING HORN
                                   803 ; U+0323 COMBINING DOT BELOW
                                   804 ; U+0324 COMBINING DIAERESIS BELOW
                                   805 ; U+0325 COMBINING RING BELOW
                                   807 ; U+0327 COMBINING CEDILLA
                                   813 ; U+032D COMBINING CIRCUMFLEX ACCENT BELOW
                                   814 ; U+032E COMBINING BREVE BELOW
                                   816 ; U+0330 COMBINING TILDE BELOW
                                   817 ; U+0331 COMBINING MACRON BELOW
                                   ))

I'm not sure whether I'm using another version of org-roam, but the variable org-roam-slug-trim-chars doesn't exist for me.

hoppla20 avatar Aug 06 '21 12:08 hoppla20

A possible fix would be to add the let expression of the org-roam version of the org-roam-node-slug function to the dendroam version of the function.

hoppla20 avatar Aug 06 '21 12:08 hoppla20

Thank you for sharing your workaround!

codeluggage avatar Nov 06 '21 02:11 codeluggage

I'm going to close this issue

hoppla20 avatar Mar 13 '24 09:03 hoppla20