mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
fix some byte-compile errors
This commit is contained in:
@ -276,8 +276,7 @@ the capture)."
|
|||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(when region
|
(when region
|
||||||
(delete-region (car region) (cdr region)))
|
(delete-region (car region) (cdr region)))
|
||||||
(let ((path (org-roam-capture--get :file-path))
|
(let ((desc (org-roam-capture--get :link-description)))
|
||||||
(desc (org-roam-capture--get :link-description)))
|
|
||||||
(org-with-point-at mkr
|
(org-with-point-at mkr
|
||||||
(insert (org-link-make-string (concat "id:" id) desc))))
|
(insert (org-link-make-string (concat "id:" id) desc))))
|
||||||
(when region
|
(when region
|
||||||
|
@ -235,17 +235,6 @@ If UPDATE-P is non-nil, first remove the file in the database."
|
|||||||
:values $v1]
|
:values $v1]
|
||||||
(list (vector file hash)))))
|
(list (vector file hash)))))
|
||||||
|
|
||||||
(defun org-roam-id-at-point ()
|
|
||||||
"Return the ID at point, if any.
|
|
||||||
Recursively traverses up the headline tree to find the
|
|
||||||
first encapsulating ID."
|
|
||||||
(let (source)
|
|
||||||
(org-with-wide-buffer
|
|
||||||
(while (and (not (setq source (org-id-get)))
|
|
||||||
(not (bobp)))
|
|
||||||
(org-roam-up-heading-or-point-min)))
|
|
||||||
source))
|
|
||||||
|
|
||||||
(defun org-roam-db-get-scheduled-time ()
|
(defun org-roam-db-get-scheduled-time ()
|
||||||
"Return the scheduled time at point in ISO8601 format."
|
"Return the scheduled time at point in ISO8601 format."
|
||||||
(when-let ((time (org-get-scheduled-time (point))))
|
(when-let ((time (org-get-scheduled-time (point))))
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
;; Org-roam refile allows you to refile notes to your nodes.
|
;; Org-roam refile allows you to refile notes to your nodes.
|
||||||
;;
|
;;
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
(defvar org-auto-align-tags)
|
||||||
|
(defvar org-loop-over-headlines-in-active-region)
|
||||||
|
|
||||||
(defun org-roam-refile ()
|
(defun org-roam-refile ()
|
||||||
"Refile to node."
|
"Refile to node."
|
||||||
|
@ -1018,7 +1018,7 @@ in the file."
|
|||||||
(message "No matches."))
|
(message "No matches."))
|
||||||
((= 1 (length matches))
|
((= 1 (length matches))
|
||||||
(car matches))
|
(car matches))
|
||||||
(_
|
(t
|
||||||
;; TODO: need to fix UX somehow
|
;; TODO: need to fix UX somehow
|
||||||
(let ((choice (completing-read "Choose node:" matches nil t)))
|
(let ((choice (completing-read "Choose node:" matches nil t)))
|
||||||
(cdr (assoc choice matches #'string-equal))))))))))
|
(cdr (assoc choice matches #'string-equal))))))))))
|
||||||
|
Reference in New Issue
Block a user