help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to debug functions depending on (current-time)?


From: Marcin Borkowski
Subject: How to debug functions depending on (current-time)?
Date: Wed, 15 Jul 2015 22:16:14 +0200

Hi all,

I have a bunch of functions depending on (current-time), and I'm
wondering how to test/debug them.  Is it safe to (temporarily) redefine
`current-time'?  Maybe it's better to do that in a separate Emacs
instance?  I could of course change their source code for the time of
debugging, but this still lefts the problem of testing (esp. automatic
testing) open.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]