Patch 8.2.4887
Problem:    Channel log does not show invoking a timer callback.
Solution:   Add a ch_log() call.
Files:      src/time.c


*** ../vim-8.2.4886/src/time.c  2022-04-04 15:16:50.742014128 +0100
--- src/time.c  2022-05-06 14:56:49.287015393 +0100
***************
*** 477,482 ****
--- 477,492 ----
      typval_T  rettv;
      typval_T  argv[2];
  
+ #ifdef FEAT_JOB_CHANNEL
+     if (ch_log_active())
+     {
+       callback_T *cb = &timer->tr_callback;
+ 
+       ch_log(NULL, "invoking timer callback %s",
+              cb->cb_partial != NULL ? cb->cb_partial->pt_name : cb->cb_name);
+     }
+ #endif
+ 
      argv[0].v_type = VAR_NUMBER;
      argv[0].vval.v_number = (varnumber_T)timer->tr_id;
      argv[1].v_type = VAR_UNKNOWN;
***************
*** 484,489 ****
--- 494,503 ----
      rettv.v_type = VAR_UNKNOWN;
      call_callback(&timer->tr_callback, -1, &rettv, 1, argv);
      clear_tv(&rettv);
+ 
+ #ifdef FEAT_JOB_CHANNEL
+     ch_log(NULL, "timer callback finished");
+ #endif
  }
  
  /*
*** ../vim-8.2.4886/src/version.c       2022-05-06 14:29:04.637209906 +0100
--- src/version.c       2022-05-06 14:51:19.431439568 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4887,
  /**/

-- 
Two percent of zero is almost nothing.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220506140010.F18121C13F2%40moolenaar.net.

Raspunde prin e-mail lui