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:
contrapunctus 2020-11-11 01:39:46 +05:30
parent 74b1206296
commit 3ada39fb84
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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 ()

View File

@ -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)

View File

@ -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)))

View File

@ -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)