1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00
emacs/m4
Paul Eggert af32fa9562 New optional ZONE arg for format-time-string etc.
This simplifies time conversions in other time zones.
It also prevents display-time-world tampering with TZ (Bug#21020).
* admin/admin.el (add-release-logs):
Use improved add-log-time-format API.
* admin/merge-gnulib (GNULIB_MODULES): Add time_rz, timegm.
(GNULIB_TOOL_FLAGS): Avoid flexmember, setenv, unsetenv.
* configure.ac (tzalloc): Remove test for this, since
Emacs no longer uses HAVE_TZALLOC directly.
* doc/lispref/os.texi (Time of Day, Time Conversion)
(Time Parsing):
* etc/NEWS: Document the new behavior.
Merge from gnulib, incorporating:
2015-07-25 strftime: fix newly-introduced bug on Solaris
2015-07-23 fprintftime, strftime: use timezone_t args
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/strftime.c, lib/strftime.h, lib/time.in.h, m4/sys_time_h.m4:
* m4/time_h.m4:
Update from gnulib.
* lib/time_rz.c, lib/timegm.c, m4/time_rz.m4, m4/timegm.m4:
New files from gnulib.
* lisp/time-stamp.el (time-stamp-string):
* lisp/time.el (display-time-world-list)
(display-time-world-display):
Use new API, with time zone arg.
* lisp/time.el (display-time-world-display):
Fix race when current-time advances while we're running.
* lisp/vc/add-log.el (add-log-iso8601-time-zone)
(add-log-iso8601-time-string): Accept optional time zone arg.
* lisp/vc/add-log.el (add-change-log-entry):
* lisp/vc/log-edit.el (log-edit-changelog-ours-p): Use new arg.
* nt/gnulib.mk: Propagate lib/gnulib.mk changes here.
Add rules for the time module, since they're now needed
for tzalloc etc.
* src/conf_post.h (getenv_TZ, setenv_TZ): New macros.
(emacs_getenv_TZ, emacs_setenv_TZ): New decls.
* src/editfns.c: Include errno.h.
(set_time_zone_rule): Omit unnecessary forward decl.
(initial_tz): Remove, replacing with ...
(local_tz, wall_clock_tz, utc_tz): New static vars and constants.
(tzeqlen): New constant; prefer it to (sizeof "TZ=" - 1).
(emacs_localtime_rz, emacs_mktime_z, xtzalloc, xtzfree)
(tzlookup): New static functions.
(init_editfns): New arg DUMPING.  All uses changed.
(init_editfns): Omit most initialization if dumping, not if
!initialized.  Initialize wall_clock_tz and local_tz.
(emacs_nmemftime, format_time_string): Time zone argument can now
be any time zone, not just a boolean for UTC or local time.  All
callers changed.
(Fformat_time_string, Fencode_time, Fcurrent_time_string)
(Fcurrent_time_zone): New optional arg ZONE.
(Fdecode_time, Fset_time_zone_rule): ZONE arg can now also take
the same form as with the other new additions.
(decode_time_zone): Remove; no longer needed.
(tzvalbuf): Now file-scope.
(emacs_getenv_TZ, emacs_setenv_TZ): New functions.
(syms_of_editfns): Define Qwall.
* src/editfns.c (mktime_z) [!HAVE_TZALLOC]:
* src/systime.h (mktime_z, timezone_t, tzalloc, tzfree)
[!HAVE_TZALLOC]:
Remove; now supplied by gnulib.
* src/emacs.c (main):
* src/lisp.h (init_editfns): Adjust to init_editfns API change.
2015-07-26 12:44:54 -07:00
..
00gnulib.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
absolute-header.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
acl.m4 Merge from gnulib 2015-06-06 18:38:30 -07:00
alloca.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
byteswap.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
c-strtod.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
clock_time.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
close-stream.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
count-one-bits.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
count-trailing-zeros.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
dirent_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
dirfd.m4 Merge from gnulib 2015-03-19 12:33:44 -07:00
dup2.m4 Merge from gnulib 2015-02-24 16:40:23 -08:00
environ.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
errno_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
euidaccess.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
execinfo.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
extensions.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
extern-inline.m4 Merge from gnulib 2015-04-29 20:12:24 -07:00
faccessat.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
fcntl_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
fcntl.m4 Merge from gnulib 2015-02-24 16:40:23 -08:00
fdatasync.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
fdopendir.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
filemode.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
fpending.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
fstatat.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
fsync.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
getdtablesize.m4 Merge from gnulib 2015-02-20 23:32:45 -08:00
getgroups.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
getloadavg.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
getopt.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
gettime.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
gettimeofday.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
gnulib-common.m4 Merge from gnulib 2015-07-05 08:23:11 -07:00
gnulib-comp.m4 New optional ZONE arg for format-time-string etc. 2015-07-26 12:44:54 -07:00
gnulib-tool.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
group-member.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
include_next.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
inttypes.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
largefile.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
longlong.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
lstat.m4 Merge from gnulib 2015-04-24 22:41:56 -07:00
manywarnings.m4 Merge from gnulib 2015-04-24 22:41:56 -07:00
md5.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
memrchr.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
mkostemp.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
mktime.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
multiarch.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
nocrash.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
off_t.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
pathmax.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
pipe2.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
pkg.m4 Don't require pkg-config when building from repository. 2014-05-16 08:49:13 -07:00
pselect.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
pthread_sigmask.m4 Merge from gnulib 2015-06-06 18:38:30 -07:00
putenv.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
readlink.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
readlinkat.m4 Merge from gnulib 2015-06-06 18:38:30 -07:00
secure_getenv.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
setenv.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sha1.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sha256.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sha512.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sig2str.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
signal_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
socklen.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
ssize_t.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
st_dm_mode.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
stat-time.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
stat.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
stdalign.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
stddef_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
stdint.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
stdio_h.m4 Merge from gnulib 2015-05-27 17:55:06 -07:00
stdlib_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
stpcpy.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
strftime.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
string_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
strtoimax.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
strtoll.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
strtoull.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
strtoumax.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
symlink.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sys_select_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sys_socket_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sys_stat_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
sys_time_h.m4 New optional ZONE arg for format-time-string etc. 2015-07-26 12:44:54 -07:00
sys_types_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
tempname.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
time_h.m4 New optional ZONE arg for format-time-string etc. 2015-07-26 12:44:54 -07:00
time_r.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
time_rz.m4 New optional ZONE arg for format-time-string etc. 2015-07-26 12:44:54 -07:00
timegm.m4 New optional ZONE arg for format-time-string etc. 2015-07-26 12:44:54 -07:00
timer_time.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
timespec.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
tm_gmtoff.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
unistd_h.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
utimbuf.m4 Merge from gnulib and try to repair bad merge 2015-01-27 22:24:47 -08:00
utimens.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
utimes.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
vararrays.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
warnings.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00
wchar_t.m4 Merge from gnulib, incorporating: 2015-01-01 11:06:53 -08:00