diff options
| author | Paul Eggert | 2016-04-12 08:50:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-12 08:50:47 -0700 |
| commit | 7c2c2196fd4be0b656bdf0e0b68f3d7c4a5eca08 (patch) | |
| tree | c038edb545cc82ee825390d1e7691a247fd7fc5f /src | |
| parent | 435da5d2955ce35be4785b7d46566ed9b42ea9fb (diff) | |
| parent | ca509810014726cf6bee9f7e8f69bdeaf62dc146 (diff) | |
| download | emacs-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.c | 27 | ||||
| -rw-r--r-- | src/macfont.m | 6 |
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. |
| 1970 | TIME is specified as (HIGH LOW USEC PSEC), as returned by | 1970 | TIME 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) |
| 1972 | is also still accepted. | 1972 | is also still accepted. The optional ZONE is omitted or nil for Emacs |
| 1973 | The optional ZONE is omitted or nil for Emacs local time, t for | 1973 | local time, t for Universal Time, `wall' for system wall clock time, |
| 1974 | Universal Time, `wall' for system wall clock time, or a string as in | 1974 | or a string as in the TZ environment variable. |
| 1975 | `set-time-zone-rule' for a time zone rule. | 1975 | |
| 1976 | The value is a copy of FORMAT-STRING, but with certain constructs replaced | 1976 | The value is a copy of FORMAT-STRING, but with certain constructs replaced |
| 1977 | by text that describes the specified date and time in TIME: | 1977 | by 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 | |||
| 2087 | current time. The obsolete form (HIGH . LOW) is also still accepted. | 2087 | current time. The obsolete form (HIGH . LOW) is also still accepted. |
| 2088 | The optional ZONE is omitted or nil for Emacs local time, t for | 2088 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2089 | Universal Time, `wall' for system wall clock time, or a string as in | 2089 | Universal Time, `wall' for system wall clock time, or a string as in |
| 2090 | `set-time-zone-rule' for a time zone rule. | 2090 | the TZ environment variable. |
| 2091 | 2091 | ||
| 2092 | The list has the following nine members: SEC is an integer between 0 | 2092 | The list has the following nine members: SEC is an integer between 0 |
| 2093 | and 60; SEC is 60 for a leap second, which only some operating systems | 2093 | and 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, | |||
| 2152 | This is the reverse operation of `decode-time', which see. | 2152 | This is the reverse operation of `decode-time', which see. |
| 2153 | The optional ZONE is omitted or nil for Emacs local time, t for | 2153 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2154 | Universal Time, `wall' for system wall clock time, or a string as in | 2154 | Universal 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 | 2155 | the TZ environment variable. It can also be a list (as from |
| 2156 | from `current-time-zone') or an integer (as from `decode-time') | 2156 | `current-time-zone') or an integer (as from `decode-time') applied |
| 2157 | applied without consideration for daylight saving time. | 2157 | without consideration for daylight saving time. |
| 2158 | 2158 | ||
| 2159 | You can pass more than 7 arguments; then the first six arguments | 2159 | You can pass more than 7 arguments; then the first six arguments |
| 2160 | are used as SECOND through YEAR, and the *last* argument is used as ZONE. | 2160 | are used as SECOND through YEAR, and the *last* argument is used as ZONE. |
| @@ -2214,7 +2214,7 @@ but this is considered obsolete. | |||
| 2214 | 2214 | ||
| 2215 | The optional ZONE is omitted or nil for Emacs local time, t for | 2215 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2216 | Universal Time, `wall' for system wall clock time, or a string as in | 2216 | Universal Time, `wall' for system wall clock time, or a string as in |
| 2217 | `set-time-zone-rule' for a time zone rule. */) | 2217 | the 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 |
| 2292 | have the form (HIGH . LOW), but this is considered obsolete. | 2292 | have the form (HIGH . LOW), but this is considered obsolete. |
| 2293 | Optional second arg ZONE is omitted or nil for the local time zone, or | 2293 | Optional second arg ZONE is omitted or nil for the local time zone, or |
| 2294 | a string as in `set-time-zone-rule'. | 2294 | a string as in the TZ environment variable. |
| 2295 | 2295 | ||
| 2296 | Some operating systems cannot provide all this information to Emacs; | 2296 | Some operating systems cannot provide all this information to Emacs; |
| 2297 | in this case, `current-time-zone' returns a list containing nil for | 2297 | in this case, `current-time-zone' returns a list containing nil for |
| @@ -2332,8 +2332,11 @@ the data it can't find. */) | |||
| 2332 | 2332 | ||
| 2333 | DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, | 2333 | DEFUN ("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. |
| 2335 | If TZ is nil or `wall', use system wall clock time. If TZ is t, use | 2335 | |
| 2336 | Universal Time. If TZ is an integer, treat it as in `encode-time'. | 2336 | If TZ is nil or `wall', use system wall clock time; this differs from |
| 2337 | the usual Emacs convention where nil means current local time. If TZ | ||
| 2338 | is t, use Universal Time. If TZ is an integer, treat it as in | ||
| 2339 | `encode-time'. | ||
| 2337 | 2340 | ||
| 2338 | Instead of calling this function, you typically want something else. | 2341 | Instead of calling this function, you typically want something else. |
| 2339 | To temporarily use a different time zone rule for just one invocation | 2342 | To 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 |