mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
af32fa9562
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. |
||
---|---|---|
.. | ||
00gnulib.m4 | ||
absolute-header.m4 | ||
acl.m4 | ||
alloca.m4 | ||
byteswap.m4 | ||
c-strtod.m4 | ||
clock_time.m4 | ||
close-stream.m4 | ||
count-one-bits.m4 | ||
count-trailing-zeros.m4 | ||
dirent_h.m4 | ||
dirfd.m4 | ||
dup2.m4 | ||
environ.m4 | ||
errno_h.m4 | ||
euidaccess.m4 | ||
execinfo.m4 | ||
extensions.m4 | ||
extern-inline.m4 | ||
faccessat.m4 | ||
fcntl_h.m4 | ||
fcntl.m4 | ||
fdatasync.m4 | ||
fdopendir.m4 | ||
filemode.m4 | ||
fpending.m4 | ||
fstatat.m4 | ||
fsync.m4 | ||
getdtablesize.m4 | ||
getgroups.m4 | ||
getloadavg.m4 | ||
getopt.m4 | ||
gettime.m4 | ||
gettimeofday.m4 | ||
gnulib-common.m4 | ||
gnulib-comp.m4 | ||
gnulib-tool.m4 | ||
group-member.m4 | ||
include_next.m4 | ||
inttypes.m4 | ||
largefile.m4 | ||
longlong.m4 | ||
lstat.m4 | ||
manywarnings.m4 | ||
md5.m4 | ||
memrchr.m4 | ||
mkostemp.m4 | ||
mktime.m4 | ||
multiarch.m4 | ||
nocrash.m4 | ||
off_t.m4 | ||
pathmax.m4 | ||
pipe2.m4 | ||
pkg.m4 | ||
pselect.m4 | ||
pthread_sigmask.m4 | ||
putenv.m4 | ||
readlink.m4 | ||
readlinkat.m4 | ||
secure_getenv.m4 | ||
setenv.m4 | ||
sha1.m4 | ||
sha256.m4 | ||
sha512.m4 | ||
sig2str.m4 | ||
signal_h.m4 | ||
socklen.m4 | ||
ssize_t.m4 | ||
st_dm_mode.m4 | ||
stat-time.m4 | ||
stat.m4 | ||
stdalign.m4 | ||
stddef_h.m4 | ||
stdint.m4 | ||
stdio_h.m4 | ||
stdlib_h.m4 | ||
stpcpy.m4 | ||
strftime.m4 | ||
string_h.m4 | ||
strtoimax.m4 | ||
strtoll.m4 | ||
strtoull.m4 | ||
strtoumax.m4 | ||
symlink.m4 | ||
sys_select_h.m4 | ||
sys_socket_h.m4 | ||
sys_stat_h.m4 | ||
sys_time_h.m4 | ||
sys_types_h.m4 | ||
tempname.m4 | ||
time_h.m4 | ||
time_r.m4 | ||
time_rz.m4 | ||
timegm.m4 | ||
timer_time.m4 | ||
timespec.m4 | ||
tm_gmtoff.m4 | ||
unistd_h.m4 | ||
utimbuf.m4 | ||
utimens.m4 | ||
utimes.m4 | ||
vararrays.m4 | ||
warnings.m4 | ||
wchar_t.m4 |