I would like create function that ask me how length I want the Pomodoro but it say wrong type argument.
(defun changePomoLength ()
(interactive)
(set-variable org-pomodoro-length (read-string "How longth: "))
)
When I open set-variable function description. it signature is
(set-variable VARIABLE VALUE &optional MAKE-LOCAL)
VALUE is a LISP Object, is string read from (read-string) function not count as LISP object? how to make my string became LISP object?
user-error: Value ‘"15"’ does not match type integer of org-pomodoro-length
is this mean that I should not save the variable as string? can you help me again how to save org-pomdoro-length as integer?
– moanrisy Apr 21 '20 at 11:56(read-string)
to(read)
and it work, thank you very much. – moanrisy Apr 21 '20 at 12:01