Kinneyzhang/gkroam

gkroam-file-re misunderstands `gkroam-file-re`

Closed this issue · 1 comments

Whil- commented

Hi,

Trying the package out and facing some issues. It seems the regexp gkroam-file-re in gkroam--process-searched-string is not evaluated correctly on Windows machines. It misunderstands backslashes and assumes the're supposed to be forwardslashes.

To make it agnostic to operating system, I propose this change:

modified   gkroam.el
@@ -444,7 +444,7 @@ The backlink refers to a link in LINE-NUMBER line of PAGE."
       (insert string)
       (goto-char (point-min))
       (let ((gkroam-file-re
-             (concat "^" (expand-file-name ".+\\.org" gkroam-root-dir)))
+             (concat "^" (expand-file-name gkroam-root-dir) ".+\\.org"))
             (beg (point-min)) (end (point)) (num 0) references)
         (while (not (= end (point-max)))
           (save-excursion

Thanks, have merged your PR.