Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(dev) remove all autoloads #82

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions vulpea-db.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
;;
;; Searching

;;;###autoload
(defun vulpea-db-search-by-title (title)
"Return a list of `vulpea-note' that has TITLE.

Expand All @@ -69,7 +68,6 @@ Does not support headings in the note."
;;
;; Exchanging ID to X

;;;###autoload
(defun vulpea-db-get-by-id (id)
"Find a `vulpea-note' by ID.

Expand Down Expand Up @@ -97,7 +95,6 @@ Supports headings in the note."
:level level
:id id)))

;;;###autoload
(defun vulpea-db-get-file-by-id (id)
"Get file of `vulpea-note' with ID.

Expand All @@ -112,7 +109,6 @@ Supports headings in the note."
;;
;; Exchange FILE to X

;;;###autoload
(defun vulpea-db-get-id-by-file (file)
"Get ID of `vulpea-note' represented by FILE.

Expand All @@ -132,7 +128,6 @@ If the FILE is relative, it is considered to be relative to
;;
;; Update

;;;###autoload
(defun vulpea-db-update (note-or-id)
"Update db for NOTE-OR-ID."
(let ((file (if (stringp note-or-id)
Expand Down
7 changes: 0 additions & 7 deletions vulpea-meta.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"\\)")
"UUID regexp.")

;;;###autoload
(defun vulpea-meta (note-or-id)
"Get metadata for NOTE-OR-ID.

Expand Down Expand Up @@ -116,7 +115,6 @@ Return plist (:file :buffer :pl :items)"
items-all)))
(plist-put meta :items items)))

;;;###autoload
(defun vulpea-meta-get-list! (meta prop &optional type)
"Get all values of PROP from META.

Expand Down Expand Up @@ -184,7 +182,6 @@ Each element value depends on TYPE:
- symbol - an interned symbol."
(vulpea-meta-get-list! (vulpea-meta note-or-id) prop type))

;;;###autoload
(defun vulpea-meta-get! (meta prop &optional type)
"Get value of PROP from META.

Expand All @@ -203,7 +200,6 @@ one is returned. In case all values are required, use
`vulpea-meta-get-list'."
(car (vulpea-meta-get-list! meta prop type)))

;;;###autoload
(defun vulpea-meta-get (note-or-id prop &optional type)
"Get value of PROP for NOTE-OR-ID.

Expand All @@ -222,7 +218,6 @@ one is returned. In case all values are required, use
`vulpea-meta-get-list'."
(vulpea-meta-get! (vulpea-meta note-or-id) prop type))

;;;###autoload
(defun vulpea-meta-set (note-or-id prop value &optional append)
"Set VALUE of PROP for NOTE-OR-ID.

Expand Down Expand Up @@ -313,7 +308,6 @@ which case VALUE is added at the end of the meta."
"\n"))
values)))))))

;;;###autoload
(defun vulpea-meta-remove (note-or-id prop)
"Delete values of PROP for NOTE-OR-ID."
(let* ((meta (vulpea-meta--get (vulpea-meta note-or-id) prop))
Expand All @@ -333,7 +327,6 @@ which case VALUE is added at the end of the meta."
(delete-region begin end)))
(seq-reverse items)))))))

;;;###autoload
(defun vulpea-meta-clean (note-or-id)
"Delete all meta from NOTE-OR-ID."
(when-let* ((meta (vulpea-meta note-or-id))
Expand Down
4 changes: 0 additions & 4 deletions vulpea-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@

(require 'org)

;;;###autoload
(cl-defstruct vulpea-note
id
title
path
tags
level)

;;;###autoload
(defmacro vulpea-utils-with-file (file &rest body)
"Execute BODY in `org-mode' FILE.

Expand All @@ -55,7 +53,6 @@ that macro properly handles notes with level greater than 0."
`(with-current-buffer (find-file-noselect ,file)
,@body))

;;;###autoload
(defmacro vulpea-utils-with-note (note &rest body)
"Execute BODY in with buffer visiting NOTE.

Expand All @@ -67,7 +64,6 @@ beginning of the buffer. Otherwise at the heading with note id."
(goto-char (org-find-entry-with-id (vulpea-note-id ,note))))
,@body))

;;;###autoload
(defun vulpea-utils-link-make-string (note)
"Make a bracket link to NOTE."
(org-link-make-string
Expand Down
2 changes: 0 additions & 2 deletions vulpea.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
(require 'vulpea-meta)
(require 'vulpea-db)

;;;###autoload
(defun vulpea-select (prompt &optional
initial-prompt
completions
Expand Down Expand Up @@ -149,7 +148,6 @@ Calls ORIG-FUNC with ALLOW-EXISTING-FILE-P."
:around
#'vulpea--capture-new-file)

;;;###autoload
(defun vulpea-create (title template &optional id)
"Create a new note file with TITLE using TEMPLATE.

Expand Down