Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
meedstrom committed Jul 26, 2024
1 parent e06de3c commit 98dc926
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eva.el
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@ Not to be confused with `eva-length-of-last-idle'."
(/ (eva--process-output-to-number eva--x11idle-program-name)
1000))

;; Wow, it's really surprising to do
;; (progn (sleep-for 1) (float-time (current-idle-time)))
;; because that's just (float-time nil) which does return a value
;; so the above form returns sth you don't expect
(defun eva--idle-secs-emacs ()
"Same as `org-emacs-idle-seconds'.
Digression: Should honestly be submitted to Emacs,
Expand Down Expand Up @@ -890,6 +894,7 @@ Runs `eva-periodic-hook'."
(run-hooks 'eva-periodic-hook)))

;; NOTE: This runs rapidly b/c it should react quickly on user returning.
;; TODO: Actually, just install a post-command-hook that removes itself.
(defun eva--user-is-idle (&optional decrement)
"Do stuff assuming the user is idle.
This function is called by `eva--start-next-timer'
Expand Down

0 comments on commit 98dc926

Please sign in to comment.