<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src/timefns.c, branch scratch/faster-loaddefs</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>; Fix typo in documentation of 'current-time-list'</title>
<updated>2022-04-29T07:12:02+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2022-04-29T07:12:02+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5c606a46bfcb3851365de2d4ffbff9e88fc1c21c'/>
<id>5c606a46bfcb3851365de2d4ffbff9e88fc1c21c</id>
<content type='text'>
* src/timefns.c (syms_of_timefns) &lt;current-time-list&gt;:
* etc/NEWS:
* doc/lispref/os.texi (Time of Day): Fix a typo.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/timefns.c (syms_of_timefns) &lt;current-time-list&gt;:
* etc/NEWS:
* doc/lispref/os.texi (Time of Day): Fix a typo.
</pre>
</div>
</content>
</entry>
<entry>
<title>Change current-time back to list form</title>
<updated>2022-04-28T19:54:06+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-04-28T19:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=083d2708f9ec7f09712488a99fc9eedd3d594ff6'/>
<id>083d2708f9ec7f09712488a99fc9eedd3d594ff6</id>
<content type='text'>
Change current-time and related functions back to using the
traditional list form.  Also, add a new boolean variable
current-time-list that lets people try out (TICKS . HZ) form,
with the goal of smoothing the transition.
* src/timefns.c (CURRENT_TIME_LIST): Change default back to true.
(current-time-list): New boolean Lisp variable, which defaults to
CURRENT_TIME_LIST.  All uses of CURRENT_TIME_LIST changed to
use current_time_list, and all documentation changed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change current-time and related functions back to using the
traditional list form.  Also, add a new boolean variable
current-time-list that lets people try out (TICKS . HZ) form,
with the goal of smoothing the transition.
* src/timefns.c (CURRENT_TIME_LIST): Change default back to true.
(current-time-list): New boolean Lisp variable, which defaults to
CURRENT_TIME_LIST.  All uses of CURRENT_TIME_LIST changed to
use current_time_list, and all documentation changed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new function current-cpu-time</title>
<updated>2022-04-27T17:20:41+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2022-04-27T17:20:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=1110d7326f8b2b94f473244c5d2111324d06cd29'/>
<id>1110d7326f8b2b94f473244c5d2111324d06cd29</id>
<content type='text'>
* doc/lispref/os.texi (Time of Day): Document it.
* src/timefns.c (Fcurrent_cpu_time): New function (bug#44674).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/lispref/os.texi (Time of Day): Document it.
* src/timefns.c (Fcurrent_cpu_time): New function (bug#44674).
</pre>
</div>
</content>
</entry>
<entry>
<title>Use (TICKS . HZ) for current-time etc.</title>
<updated>2022-04-25T19:40:20+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-04-25T18:56:48+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4a1f69ebca9bbf5797b8898f8250f6580753d829'/>
<id>4a1f69ebca9bbf5797b8898f8250f6580753d829</id>
<content type='text'>
* src/timefns.c (CURRENT_TIME_LIST): Change default to false.
All documentation changed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/timefns.c (CURRENT_TIME_LIST): Change default to false.
All documentation changed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Support (encode-time (list s m h D M Y))</title>
<updated>2022-04-25T19:40:20+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-04-25T18:56:48+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d75e2c12ebbc7a758d1c24d30685e790b703eb64'/>
<id>d75e2c12ebbc7a758d1c24d30685e790b703eb64</id>
<content type='text'>
* src/timefns.c (Fencode_time): Add support for a 6-elt list arg.
Requested by Max Nikulin for Org (bug#54764).
* test/src/timefns-tests.el (encode-time-alternate-apis): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/timefns.c (Fencode_time): Add support for a 6-elt list arg.
Requested by Max Nikulin for Org (bug#54764).
* test/src/timefns-tests.el (encode-time-alternate-apis): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Document encode-time caveats</title>
<updated>2022-04-17T01:54:31+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-04-17T01:48:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f1ba92448d1e573640547c68d9bed89fe5c43da0'/>
<id>f1ba92448d1e573640547c68d9bed89fe5c43da0</id>
<content type='text'>
* doc/lispref/os.texi (Time of Day, Time Conversion):
Move the warnings about DST being -1 to closer to where DST is
discussed, and reword and improve the discussions and warnings.
Be more precise about years before 1969 (possible west of UTC) vs the
Epoch.  Mention some problems due to leap seconds, leap years,
daylight saving transitions, and time zone changes.  Modernize
discussion of OS timestamp range.  Prefer secular ‘BCE’ to religious
‘BC’.  Omit discussion of decoded-time-add and make-decoded-time, as
they are in a library and are not always available; instead, mention
the library.  Warn about common mistakes when doing simple date
arithmetic.
* src/timefns.c (Fencode_time): In doc string, mention date
arithmetic and tighten up the wording a bit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/lispref/os.texi (Time of Day, Time Conversion):
Move the warnings about DST being -1 to closer to where DST is
discussed, and reword and improve the discussions and warnings.
Be more precise about years before 1969 (possible west of UTC) vs the
Epoch.  Mention some problems due to leap seconds, leap years,
daylight saving transitions, and time zone changes.  Modernize
discussion of OS timestamp range.  Prefer secular ‘BCE’ to religious
‘BC’.  Omit discussion of decoded-time-add and make-decoded-time, as
they are in a library and are not always available; instead, mention
the library.  Warn about common mistakes when doing simple date
arithmetic.
* src/timefns.c (Fencode_time): In doc string, mention date
arithmetic and tighten up the wording a bit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Stress difference of new and old ways to call `encode-time'</title>
<updated>2022-04-17T01:54:30+00:00</updated>
<author>
<name>Max Nikulin</name>
</author>
<published>2022-04-17T01:48:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=15a5cf9a9aa7798ee12ae96b8b6b4efe1562b57e'/>
<id>15a5cf9a9aa7798ee12ae96b8b6b4efe1562b57e</id>
<content type='text'>
* doc/lispref/os.texi (Time Conversion): Add a warning that blind
changing of code calling `encode-time' to use single list instead of
multiple values may cause deferred bugs since it is common to use nil
for ignored arguments such as DST in the old calling convention.
* src/timefns.c (encode-time): Mention the warning added to the elisp
reference in the docstring.

Refactoring related to `encode-time' caused (bug#54731), so it is better
to make apparent the difference between the recommended and the
obsolescent ways to call the function.  More details concerning the
purpose and limitations of the DST field are added after discussion with
Paul Eggert in (bug#54764).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/lispref/os.texi (Time Conversion): Add a warning that blind
changing of code calling `encode-time' to use single list instead of
multiple values may cause deferred bugs since it is common to use nil
for ignored arguments such as DST in the old calling convention.
* src/timefns.c (encode-time): Mention the warning added to the elisp
reference in the docstring.

Refactoring related to `encode-time' caused (bug#54731), so it is better
to make apparent the difference between the recommended and the
obsolescent ways to call the function.  More details concerning the
purpose and limitations of the DST field are added after discussion with
Paul Eggert in (bug#54764).
</pre>
</div>
</content>
</entry>
<entry>
<title>New time-equal-p test</title>
<updated>2022-04-15T02:09:51+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-04-15T02:03:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=7c17bd2a6d8d7cf710051cd7ca00260c1e557609'/>
<id>7c17bd2a6d8d7cf710051cd7ca00260c1e557609</id>
<content type='text'>
* test/src/timefns-tests.el (time-equal-p-NaN-NaN): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/timefns-tests.el (time-equal-p-NaN-NaN): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid possibly unnecessary lisp_time_struct call</title>
<updated>2022-04-14T16:39:35+00:00</updated>
<author>
<name>Philip Kaludercic</name>
</author>
<published>2022-04-14T09:00:07+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=17b639aabb457ca6ffbcb6fdb73c03571fb0e360'/>
<id>17b639aabb457ca6ffbcb6fdb73c03571fb0e360</id>
<content type='text'>
* timefns.c (time_cmp): Defer the calculation of the time struct, in
  case A and B are eq to one another.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* timefns.c (time_cmp): Defer the calculation of the time struct, in
  case A and B are eq to one another.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused fns/data and make fns static</title>
<updated>2022-03-19T19:48:53+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2022-03-19T19:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=0fed5610426e141b057fc359ab9a86b3ac7e9df5'/>
<id>0fed5610426e141b057fc359ab9a86b3ac7e9df5</id>
<content type='text'>
* src/comp.c (saved_sigset, helper_temp_output_buffer_setup):
Remove; unused.
* src/comp.c (logfile, helper_link_table):
* src/fns.c (hashfn_equal, hashfn_eql):
* src/frame.c (frame_windows_min_size):
* src/gnutls.c (emacs_gnutls_global_init):
* src/minibuf.c (Vcommand_loop_level_list):
* src/syntax.c (syntax_code_spec):
* src/timefns.c (time_overflow):
* src/xterm.c (x_xrender_color_from_gc_foreground)
(x_display_set_last_user_time):
Now static, since it’s not used elsewhere.
* src/xterm.c (x_xrender_color_from_gc_foreground)
(x_xrender_color_from_gc_background): Move earlier to avoid
forward use.
(x_xrender_color_from_gc_foreground): Do not define unless
!defined USE_CAIRO &amp;&amp; (RENDER_MAJOR &gt; 0 || RENDER_MINOR &gt;= 2),
since it’s not used otherwise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/comp.c (saved_sigset, helper_temp_output_buffer_setup):
Remove; unused.
* src/comp.c (logfile, helper_link_table):
* src/fns.c (hashfn_equal, hashfn_eql):
* src/frame.c (frame_windows_min_size):
* src/gnutls.c (emacs_gnutls_global_init):
* src/minibuf.c (Vcommand_loop_level_list):
* src/syntax.c (syntax_code_spec):
* src/timefns.c (time_overflow):
* src/xterm.c (x_xrender_color_from_gc_foreground)
(x_display_set_last_user_time):
Now static, since it’s not used elsewhere.
* src/xterm.c (x_xrender_color_from_gc_foreground)
(x_xrender_color_from_gc_background): Move earlier to avoid
forward use.
(x_xrender_color_from_gc_foreground): Do not define unless
!defined USE_CAIRO &amp;&amp; (RENDER_MAJOR &gt; 0 || RENDER_MINOR &gt;= 2),
since it’s not used otherwise.
</pre>
</div>
</content>
</entry>
</feed>
