Re: org-clock idle time in pgtk Emacs

2023-02-04 Thread Ihor Radchenko
Max Nikulin writes: > As to Org my opinion is still that a defcustom for user-defined function > returning idle may be a better option. Agree. If pgtk does not have to use something that absolutely needs to be pgtk-specific, we should rather introduce a generic customization. For example, a

Re: org-clock idle time in pgtk Emacs

2023-02-03 Thread Max Nikulin
On 03/02/2023 19:17, Ihor Radchenko wrote: Julien Cubizolles writes: May I know where "jc-idle-time" is coming from? Is it a built-in command on wayland? Sorry, I forgot to mention. It's a custom python program, working both in X11 and wayland. I didn't find a built-in command. I would

Re: org-clock idle time in pgtk Emacs

2023-02-03 Thread Ihor Radchenko
Julien Cubizolles writes: >> May I know where "jc-idle-time" is coming from? Is it a built-in command >> on wayland? > > Sorry, I forgot to mention. It's a custom python program, working both > in X11 and wayland. I didn't find a built-in command. I would prefer something built-in or, at least,

Re: org-clock idle time in pgtk Emacs

2023-02-02 Thread Julien Cubizolles
Ihor Radchenko writes: >> +(defcustom org-clock-pgtkidle-program-name >> + (if (executable-find "jc-idle-time") >> + "jc-idle-time") >> + "Name of the program which prints idle time in milliseconds. > > May I know where "jc-idle-time" is coming from? Is it a built-in command > on

Re: org-clock idle time in pgtk Emacs

2023-02-02 Thread Ihor Radchenko
Max Nikulin writes: >>> +(defvar org-pgtkidle-exists-p >>> + ;; Check that org-clock-pgtkidle-program-name exists. But don't do that >>> on DOS/Windows, >>> + ;; since the command definitely does NOT exist there, and invoking >>> + ;; COMMAND.COM on MS-Windows is a bad idea -- it hangs. >>>

Re: org-clock idle time in pgtk Emacs

2023-02-01 Thread Max Nikulin
On 01/02/2023 20:15, Ihor Radchenko wrote: +(defcustom org-clock-pgtkidle-program-name + (if (executable-find "jc-idle-time") + "jc-idle-time") + "Name of the program which prints idle time in milliseconds. May I know where "jc-idle-time" is coming from? Is it a built-in command on

Re: org-clock idle time in pgtk Emacs

2023-02-01 Thread Ihor Radchenko
Julien Cubizolles writes: > Ihor Radchenko writes: > >> >> As Tim pointed out, we cannot guarantee that things working on 'x build >> will also work on 'pgtk. Instead of abusing settings for 'x window >> system, can you please introduce a new function org-pgtk-idle-seconds >> using a new

Re: org-clock idle time in pgtk Emacs

2023-01-31 Thread Julien Cubizolles
Ihor Radchenko writes: > > As Tim pointed out, we cannot guarantee that things working on 'x build > will also work on 'pgtk. Instead of abusing settings for 'x window > system, can you please introduce a new function org-pgtk-idle-seconds > using a new variable org-clock-pgtkidle-program-name,

Re: org-clock idle time in pgtk Emacs

2022-05-25 Thread Ihor Radchenko
Julien Cubizolles writes: > org-clock checks for the 'x window-system in order to use the program > set up by org-clock-x11idle-program-name. Recent Emacs versions use the > 'pgtk instead of 'x and as such will default to using > org-emacs-idle-seconds in org-user-idle-seconds. > > The following

Re: org-clock idle time in pgtk Emacs

2022-05-24 Thread Tim Cross
Julien Cubizolles writes: > org-clock checks for the 'x window-system in order to use the program > set up by org-clock-x11idle-program-name. Recent Emacs versions use the > 'pgtk instead of 'x and as such will default to using > org-emacs-idle-seconds in org-user-idle-seconds. > I"m not sure

org-clock idle time in pgtk Emacs

2022-05-24 Thread Julien Cubizolles
org-clock checks for the 'x window-system in order to use the program set up by org-clock-x11idle-program-name. Recent Emacs versions use the 'pgtk instead of 'x and as such will default to using org-emacs-idle-seconds in org-user-idle-seconds. The following patch provides a crude workaround.