Rename backend-add-new -> backend-new-record
The former sounded like it was for adding a new backend, rather than a new record in a backend.
This commit is contained in:
parent
74b1206296
commit
3ada39fb84
|
@ -568,7 +568,7 @@ Generic Function - chronometrist-backend-current-task (backend)
|
|||
@item
|
||||
Generic Function - chronometrist-backend-create-file (backend)
|
||||
@item
|
||||
Generic Function - chronometrist-backend-add-new (backend plist)
|
||||
Generic Function - chronometrist-backend-new-record (backend plist)
|
||||
@item
|
||||
Generic Function - chronometrist-backend-replace-last (backend plist)
|
||||
@end enumerate
|
||||
|
@ -1158,7 +1158,7 @@ Method - chronometrist-current-task ((backend chronometrist-sexp))
|
|||
@item
|
||||
Method - chronometrist-create-file ((backend chronometrist-sexp))
|
||||
@item
|
||||
Method - chronometrist-new (((backend chronometrist-sexp)) plist)
|
||||
Method - chronometrist-backend-new-record (((backend chronometrist-sexp)) plist)
|
||||
@item
|
||||
Function - chronometrist-sexp-delete-list (&optional arg)
|
||||
@item
|
||||
|
|
|
@ -228,7 +228,7 @@ Each of these has a corresponding function to clear it and fill it with values -
|
|||
7. Generic Function - chronometrist-backend-latest-record (backend)
|
||||
8. Generic Function - chronometrist-backend-current-task (backend)
|
||||
9. Generic Function - chronometrist-backend-create-file (backend)
|
||||
10. Generic Function - chronometrist-backend-add-new (backend plist)
|
||||
10. Generic Function - chronometrist-backend-new-record (backend plist)
|
||||
11. Generic Function - chronometrist-backend-replace-last (backend plist)
|
||||
|
||||
** chronometrist-common.el
|
||||
|
@ -479,7 +479,7 @@ Each of these has a corresponding function to clear it and fill it with values -
|
|||
* -> plist
|
||||
9. Method - chronometrist-current-task ((backend chronometrist-sexp))
|
||||
11. Method - chronometrist-create-file ((backend chronometrist-sexp))
|
||||
12. Method - chronometrist-new (((backend chronometrist-sexp)) plist)
|
||||
12. Method - chronometrist-backend-new-record (((backend chronometrist-sexp)) plist)
|
||||
13. Function - chronometrist-sexp-delete-list (&optional arg)
|
||||
14. Method - chronometrist-replace-last (((backend chronometrist-sexp)) plist)
|
||||
15. Command - chronometrist-sexp-reindent-buffer ()
|
||||
|
|
|
@ -50,7 +50,7 @@ there were none.")
|
|||
(cl-defgeneric chronometrist-backend-create-file (backend)
|
||||
"Create BACKEND file if it does not already exist.")
|
||||
|
||||
(cl-defgeneric chronometrist-backend-add-new (backend plist)
|
||||
(cl-defgeneric chronometrist-backend-new-record (backend plist)
|
||||
"Use PLIST to add a new interval to BACKEND.")
|
||||
|
||||
(cl-defgeneric chronometrist-backend-replace-last (backend plist)
|
||||
|
|
|
@ -123,7 +123,7 @@ neatly), or falls back to `pp' if it isn't."
|
|||
;; :name should be removed from `chronometrist-task-list', but to ascertain
|
||||
;; that condition we would have to either read the entire file or
|
||||
;; map over the hash table, defeating the optimization. Thus, we
|
||||
;; don't update `chronometrist-task-list' here (unlike `chronometrist-new')
|
||||
;; don't update `chronometrist-task-list' here (unlike `chronometrist-backend-new-record')
|
||||
(chronometrist-tags-history-replace-last plist)
|
||||
(setq chronometrist--inhibit-read-p t)
|
||||
(save-buffer)))
|
||||
|
|
|
@ -223,7 +223,7 @@ Argument _FS-EVENT is ignored."
|
|||
TASK is the name of the task, a string. PREFIX is ignored."
|
||||
(interactive "P")
|
||||
(let ((plist `(:name ,task :start ,(chronometrist-format-time-iso8601))))
|
||||
(chronometrist-new chronometrist-backend-current plist)
|
||||
(chronometrist-backend-new-record chronometrist-backend-current plist)
|
||||
(chronometrist-refresh)))
|
||||
|
||||
(defun chronometrist-out (&optional _prefix)
|
||||
|
|
Reference in New Issue