aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-04-12 08:50:47 -0700
committerPaul Eggert2016-04-12 08:50:47 -0700
commit7c2c2196fd4be0b656bdf0e0b68f3d7c4a5eca08 (patch)
treec038edb545cc82ee825390d1e7691a247fd7fc5f /src
parent435da5d2955ce35be4785b7d46566ed9b42ea9fb (diff)
parentca509810014726cf6bee9f7e8f69bdeaf62dc146 (diff)
downloademacs-7c2c2196fd4be0b656bdf0e0b68f3d7c4a5eca08.tar.gz
emacs-7c2c2196fd4be0b656bdf0e0b68f3d7c4a5eca08.zip
Merge from origin/emacs-25
ca50981 Improve time zone documentation c23c965 Prevent bootstrap autoload backup files 9344612 Disable multicolor fonts on OS X since they are not supported... c41ce1c Capitalize “Universal Time” in documentation 10597c9 Don't use 'find-program'
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c27
-rw-r--r--src/macfont.m6
2 files changed, 18 insertions, 15 deletions
diff --git a/src/editfns.c b/src/editfns.c
index a2d5673a257..70285e6d5db 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1969,10 +1969,10 @@ DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0,
1969 doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. 1969 doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted.
1970TIME is specified as (HIGH LOW USEC PSEC), as returned by 1970TIME is specified as (HIGH LOW USEC PSEC), as returned by
1971`current-time' or `file-attributes'. The obsolete form (HIGH . LOW) 1971`current-time' or `file-attributes'. The obsolete form (HIGH . LOW)
1972is also still accepted. 1972is also still accepted. The optional ZONE is omitted or nil for Emacs
1973The optional ZONE is omitted or nil for Emacs local time, t for 1973local time, t for Universal Time, `wall' for system wall clock time,
1974Universal Time, `wall' for system wall clock time, or a string as in 1974or a string as in the TZ environment variable.
1975`set-time-zone-rule' for a time zone rule. 1975
1976The value is a copy of FORMAT-STRING, but with certain constructs replaced 1976The value is a copy of FORMAT-STRING, but with certain constructs replaced
1977by text that describes the specified date and time in TIME: 1977by text that describes the specified date and time in TIME:
1978 1978
@@ -2087,7 +2087,7 @@ as from `current-time' and `file-attributes', or nil to use the
2087current time. The obsolete form (HIGH . LOW) is also still accepted. 2087current time. The obsolete form (HIGH . LOW) is also still accepted.
2088The optional ZONE is omitted or nil for Emacs local time, t for 2088The optional ZONE is omitted or nil for Emacs local time, t for
2089Universal Time, `wall' for system wall clock time, or a string as in 2089Universal Time, `wall' for system wall clock time, or a string as in
2090`set-time-zone-rule' for a time zone rule. 2090the TZ environment variable.
2091 2091
2092The list has the following nine members: SEC is an integer between 0 2092The list has the following nine members: SEC is an integer between 0
2093and 60; SEC is 60 for a leap second, which only some operating systems 2093and 60; SEC is 60 for a leap second, which only some operating systems
@@ -2152,9 +2152,9 @@ DEFUN ("encode-time", Fencode_time, Sencode_time, 6, MANY, 0,
2152This is the reverse operation of `decode-time', which see. 2152This is the reverse operation of `decode-time', which see.
2153The optional ZONE is omitted or nil for Emacs local time, t for 2153The optional ZONE is omitted or nil for Emacs local time, t for
2154Universal Time, `wall' for system wall clock time, or a string as in 2154Universal Time, `wall' for system wall clock time, or a string as in
2155`set-time-zone-rule' for a time zone rule. It can also be a list (as 2155the TZ environment variable. It can also be a list (as from
2156from `current-time-zone') or an integer (as from `decode-time') 2156`current-time-zone') or an integer (as from `decode-time') applied
2157applied without consideration for daylight saving time. 2157without consideration for daylight saving time.
2158 2158
2159You can pass more than 7 arguments; then the first six arguments 2159You can pass more than 7 arguments; then the first six arguments
2160are used as SECOND through YEAR, and the *last* argument is used as ZONE. 2160are used as SECOND through YEAR, and the *last* argument is used as ZONE.
@@ -2214,7 +2214,7 @@ but this is considered obsolete.
2214 2214
2215The optional ZONE is omitted or nil for Emacs local time, t for 2215The optional ZONE is omitted or nil for Emacs local time, t for
2216Universal Time, `wall' for system wall clock time, or a string as in 2216Universal Time, `wall' for system wall clock time, or a string as in
2217`set-time-zone-rule' for a time zone rule. */) 2217the TZ environment variable. */)
2218 (Lisp_Object specified_time, Lisp_Object zone) 2218 (Lisp_Object specified_time, Lisp_Object zone)
2219{ 2219{
2220 time_t value = lisp_seconds_argument (specified_time); 2220 time_t value = lisp_seconds_argument (specified_time);
@@ -2291,7 +2291,7 @@ instead of using the current time. The argument should have the form
2291`current-time' and from `file-attributes'. SPECIFIED-TIME can also 2291`current-time' and from `file-attributes'. SPECIFIED-TIME can also
2292have the form (HIGH . LOW), but this is considered obsolete. 2292have the form (HIGH . LOW), but this is considered obsolete.
2293Optional second arg ZONE is omitted or nil for the local time zone, or 2293Optional second arg ZONE is omitted or nil for the local time zone, or
2294a string as in `set-time-zone-rule'. 2294a string as in the TZ environment variable.
2295 2295
2296Some operating systems cannot provide all this information to Emacs; 2296Some operating systems cannot provide all this information to Emacs;
2297in this case, `current-time-zone' returns a list containing nil for 2297in this case, `current-time-zone' returns a list containing nil for
@@ -2332,8 +2332,11 @@ the data it can't find. */)
2332 2332
2333DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, 2333DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0,
2334 doc: /* Set the Emacs local time zone using TZ, a string specifying a time zone rule. 2334 doc: /* Set the Emacs local time zone using TZ, a string specifying a time zone rule.
2335If TZ is nil or `wall', use system wall clock time. If TZ is t, use 2335
2336Universal Time. If TZ is an integer, treat it as in `encode-time'. 2336If TZ is nil or `wall', use system wall clock time; this differs from
2337the usual Emacs convention where nil means current local time. If TZ
2338is t, use Universal Time. If TZ is an integer, treat it as in
2339`encode-time'.
2337 2340
2338Instead of calling this function, you typically want something else. 2341Instead of calling this function, you typically want something else.
2339To temporarily use a different time zone rule for just one invocation 2342To temporarily use a different time zone rule for just one invocation
diff --git a/src/macfont.m b/src/macfont.m
index c9082a58415..04456283fa1 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2373,9 +2373,9 @@ macfont_list (struct frame *f, Lisp_Object spec)
2373 != (spacing >= FONT_SPACING_MONO))) 2373 != (spacing >= FONT_SPACING_MONO)))
2374 continue; 2374 continue;
2375 2375
2376 /* Don't use a color bitmap font unless its family is 2376 /* Don't use a color bitmap font until it is supported on
2377 explicitly specified. */ 2377 free platforms. */
2378 if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family)) 2378 if (sym_traits & kCTFontTraitColorGlyphs)
2379 continue; 2379 continue;
2380 2380
2381 if (j > 0 2381 if (j > 0