Skip to content

Commit 060ef2f

Browse files
committed
Bumps the version number and fixes relevant docstring warnings.
Signed-off-by: Atheriel <[email protected]>
1 parent 4d11480 commit 060ef2f

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

org-clock-csv.el

+17-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; Author: Aaron Jacobs <[email protected]>
66
;; URL: https://github.com/atheriel/org-clock-csv
77
;; Keywords: org
8-
;; Version: 0
8+
;; Version: 1.0
99

1010
;; This file is NOT part of GNU Emacs.
1111

@@ -30,7 +30,7 @@
3030

3131
;; In interactive mode, calling `org-clock-csv' will open a buffer
3232
;; with the parsed entries from the files in `org-agenda-files'. The
33-
;; function can also be called from lisp code with a file list
33+
;; function can also be called from Lisp code with a file list
3434
;; argument, and there is an `org-clock-csv-batch' version that will
3535
;; output the CSV content to standard output (for use in batch mode).
3636

@@ -47,14 +47,18 @@
4747
:group 'external)
4848

4949
(defcustom org-clock-csv-header "task,category,start,end,effort,ishabit,tags"
50-
"Header for the CSV output. Be sure to keep this in sync with
51-
changes to `org-clock-csv-row-fmt'."
50+
"Header for the CSV output.
51+
52+
Be sure to keep this in sync with changes to
53+
`org-clock-csv-row-fmt'."
5254
:group 'org-clock-csv)
5355

5456
(defcustom org-clock-csv-row-fmt #'org-clock-csv-default-row-fmt
5557
"Function to parse a plist of properties for each clock entry
56-
and produce a comma-separated CSV row. Be sure to keep this in
57-
sync with changes to `org-clock-csv-header'.
58+
and produce a comma-separated CSV row.
59+
60+
Be sure to keep this in sync with changes to
61+
`org-clock-csv-header'.
5862
5963
See `org-clock-csv-default-row-fmt' for an example."
6064
:group 'org-clock-csv)
@@ -74,7 +78,7 @@ See `org-clock-csv-default-row-fmt' for an example."
7478
;;;; Utility functions:
7579

7680
(defsubst org-clock-csv--pad (num)
77-
"Adds a leading zero to a number less than 10."
81+
"Add a leading zero when NUM is less than 10."
7882
(if (> num 10) num (format "%02d" num)))
7983

8084
;;;; Internal API:
@@ -110,7 +114,7 @@ Returns an empty string if no category is found."
110114
category))
111115

112116
(defun org-clock-csv--parse-element (element)
113-
"Ingests clock elements and produces a plist of their relevant
117+
"Ingest clock ELEMENT and produces a plist of its relevant
114118
properties."
115119
(when (and (equal (org-element-type element) 'clock)
116120
;; Only ingest closed, inactive clock elements.
@@ -176,7 +180,7 @@ When NO-CHECK is non-nil, skip checking if all files exist."
176180

177181
;;;###autoload
178182
(defun org-clock-csv (&optional infile)
179-
"Export clock entries to CSV format.
183+
"Export clock entries from INFILE to CSV format.
180184
181185
When INFILE is a filename or list of filenames, export clock
182186
entries from these files. Otherwise, use `org-agenda-files'.
@@ -201,11 +205,11 @@ for use in batch mode."
201205

202206
;;;###autoload
203207
(defun org-clock-csv-batch (&optional infile)
204-
"Export clock entries in CSV format to standard output.
208+
"Export clock entries from INFILE in CSV format to standard output.
205209
206-
This function is identical in function to `org-clock-csv'
207-
except that it directs output to `standard-output'. It is
208-
intended for use in batch mode."
210+
This function is identical in function to `org-clock-csv' except
211+
that it directs output to `standard-output'. It is intended for
212+
use in batch mode."
209213
(let* ((filelist (if (null infile) org-agenda-files
210214
(if (listp infile) infile (list infile))))
211215
(entries (org-clock-csv--get-entries filelist)))

0 commit comments

Comments
 (0)