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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/calendar/solar.el | 18 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 42 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/org/org.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/project.el | 4 | ||||
| -rw-r--r-- | lisp/vc/add-log.el | 7 |
6 files changed, 44 insertions, 31 deletions
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el index bf8bedd599e..6fec8055319 100644 --- a/lisp/calendar/solar.el +++ b/lisp/calendar/solar.el | |||
| @@ -173,7 +173,7 @@ delta. At present, delta = 0.01 degrees, so the value of the variable | |||
| 173 | ;;; End of user options. | 173 | ;;; End of user options. |
| 174 | 174 | ||
| 175 | (defvar solar-sidereal-time-greenwich-midnight nil | 175 | (defvar solar-sidereal-time-greenwich-midnight nil |
| 176 | "Sidereal time at Greenwich at midnight (universal time).") | 176 | "Sidereal time at Greenwich at midnight (Universal Time).") |
| 177 | 177 | ||
| 178 | (defvar solar-northern-spring-or-summer-season nil | 178 | (defvar solar-northern-spring-or-summer-season nil |
| 179 | "Non-nil if northern spring or summer and nil otherwise. | 179 | "Non-nil if northern spring or summer and nil otherwise. |
| @@ -413,8 +413,8 @@ Result is in days. For the years 1800-1987, the maximum error is | |||
| 413 | (defun solar-ephemeris-time (time) | 413 | (defun solar-ephemeris-time (time) |
| 414 | "Ephemeris Time at moment TIME. | 414 | "Ephemeris Time at moment TIME. |
| 415 | TIME is a pair with the first component being the number of Julian centuries | 415 | TIME is a pair with the first component being the number of Julian centuries |
| 416 | elapsed at 0 Universal Time, and the second component being the universal | 416 | elapsed at 0 Universal Time, and the second component counting Universal Time |
| 417 | time. For instance, the pair corresponding to November 28, 1995 at 16 UT is | 417 | hours. For instance, the pair corresponding to November 28, 1995 at 16 UT is |
| 418 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between | 418 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between |
| 419 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. | 419 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. |
| 420 | 420 | ||
| @@ -430,7 +430,7 @@ Result is in Julian centuries of ephemeris time." | |||
| 430 | "Right ascension (in hours) and declination (in degrees) of the sun at TIME. | 430 | "Right ascension (in hours) and declination (in degrees) of the sun at TIME. |
| 431 | TIME is a pair with the first component being the number of | 431 | TIME is a pair with the first component being the number of |
| 432 | Julian centuries elapsed at 0 Universal Time, and the second | 432 | Julian centuries elapsed at 0 Universal Time, and the second |
| 433 | component being the universal time. For instance, the pair | 433 | component counting Universal Time hours. For instance, the pair |
| 434 | corresponding to November 28, 1995 at 16 UT is (-0.040945 16), | 434 | corresponding to November 28, 1995 at 16 UT is (-0.040945 16), |
| 435 | -0.040945 being the number of Julian centuries elapsed between | 435 | -0.040945 being the number of Julian centuries elapsed between |
| 436 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. SUNRISE-FLAG is passed | 436 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. SUNRISE-FLAG is passed |
| @@ -444,7 +444,7 @@ to `solar-ecliptic-coordinates'." | |||
| 444 | "Azimuth and height of the sun at TIME, LATITUDE, and LONGITUDE. | 444 | "Azimuth and height of the sun at TIME, LATITUDE, and LONGITUDE. |
| 445 | TIME is a pair with the first component being the number of | 445 | TIME is a pair with the first component being the number of |
| 446 | Julian centuries elapsed at 0 Universal Time, and the second | 446 | Julian centuries elapsed at 0 Universal Time, and the second |
| 447 | component being the universal time. For instance, the pair | 447 | component counting Universal Time hours. For instance, the pair |
| 448 | corresponding to November 28, 1995 at 16 UT is (-0.040945 16), | 448 | corresponding to November 28, 1995 at 16 UT is (-0.040945 16), |
| 449 | -0.040945 being the number of Julian centuries elapsed between | 449 | -0.040945 being the number of Julian centuries elapsed between |
| 450 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. SUNRISE-FLAG | 450 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. SUNRISE-FLAG |
| @@ -476,8 +476,8 @@ Sunrise if DIRECTION =-1 or sunset if =1 at LATITUDE, LONGITUDE, with midday | |||
| 476 | being TIME. | 476 | being TIME. |
| 477 | 477 | ||
| 478 | TIME is a pair with the first component being the number of Julian centuries | 478 | TIME is a pair with the first component being the number of Julian centuries |
| 479 | elapsed at 0 Universal Time, and the second component being the universal | 479 | elapsed at 0 Universal Time, and the second component counting Universal Time |
| 480 | time. For instance, the pair corresponding to November 28, 1995 at 16 UT is | 480 | hours. For instance, the pair corresponding to November 28, 1995 at 16 UT is |
| 481 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between | 481 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between |
| 482 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. | 482 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. |
| 483 | 483 | ||
| @@ -522,8 +522,8 @@ Uses binary search." | |||
| 522 | Parameters are the midday TIME and the LATITUDE, LONGITUDE of the location. | 522 | Parameters are the midday TIME and the LATITUDE, LONGITUDE of the location. |
| 523 | 523 | ||
| 524 | TIME is a pair with the first component being the number of Julian centuries | 524 | TIME is a pair with the first component being the number of Julian centuries |
| 525 | elapsed at 0 Universal Time, and the second component being the universal | 525 | elapsed at 0 Universal Time, and the second component counting Universal Time |
| 526 | time. For instance, the pair corresponding to November 28, 1995 at 16 UT is | 526 | hours. For instance, the pair corresponding to November 28, 1995 at 16 UT is |
| 527 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between | 527 | \(-0.040945 16), -0.040945 being the number of Julian centuries elapsed between |
| 528 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. | 528 | Jan 1, 2000 at 12 UT and November 28, 1995 at 0 UT. |
| 529 | 529 | ||
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 1b06fb6a51d..14e584df672 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -251,9 +251,22 @@ If a buffer is visiting the desired autoload file, return it." | |||
| 251 | (enable-local-eval nil)) | 251 | (enable-local-eval nil)) |
| 252 | ;; We used to use `raw-text' to read this file, but this causes | 252 | ;; We used to use `raw-text' to read this file, but this causes |
| 253 | ;; problems when the file contains non-ASCII characters. | 253 | ;; problems when the file contains non-ASCII characters. |
| 254 | (let ((delay-mode-hooks t)) | 254 | (let* ((delay-mode-hooks t) |
| 255 | (find-file-noselect | 255 | (file (autoload-generated-file)) |
| 256 | (autoload-ensure-default-file (autoload-generated-file)))))) | 256 | (file-missing (not (file-exists-p file)))) |
| 257 | (when file-missing | ||
| 258 | (autoload-ensure-default-file file)) | ||
| 259 | (with-current-buffer | ||
| 260 | (find-file-noselect | ||
| 261 | (autoload-ensure-file-writeable | ||
| 262 | file)) | ||
| 263 | ;; block backups when the file has just been created, since | ||
| 264 | ;; the backups will just be the auto-generated headers. | ||
| 265 | ;; bug#23203 | ||
| 266 | (when file-missing | ||
| 267 | (setq buffer-backed-up t) | ||
| 268 | (save-buffer)) | ||
| 269 | (current-buffer))))) | ||
| 257 | 270 | ||
| 258 | (defun autoload-generated-file () | 271 | (defun autoload-generated-file () |
| 259 | (expand-file-name generated-autoload-file | 272 | (expand-file-name generated-autoload-file |
| @@ -374,21 +387,22 @@ not be relied upon." | |||
| 374 | ;;;###autoload | 387 | ;;;###autoload |
| 375 | (put 'autoload-ensure-writable 'risky-local-variable t) | 388 | (put 'autoload-ensure-writable 'risky-local-variable t) |
| 376 | 389 | ||
| 390 | (defun autoload-ensure-file-writeable (file) | ||
| 391 | ;; Probably pointless, but replaces the old AUTOGEN_VCS in lisp/Makefile, | ||
| 392 | ;; which was designed to handle CVSREAD=1 and equivalent. | ||
| 393 | (and autoload-ensure-writable | ||
| 394 | (let ((modes (file-modes file))) | ||
| 395 | (if (zerop (logand modes #o0200)) | ||
| 396 | ;; Ignore any errors here, and let subsequent attempts | ||
| 397 | ;; to write the file raise any real error. | ||
| 398 | (ignore-errors (set-file-modes file (logior modes #o0200)))))) | ||
| 399 | file) | ||
| 400 | |||
| 377 | (defun autoload-ensure-default-file (file) | 401 | (defun autoload-ensure-default-file (file) |
| 378 | "Make sure that the autoload file FILE exists, creating it if needed. | 402 | "Make sure that the autoload file FILE exists, creating it if needed. |
| 379 | If the file already exists and `autoload-ensure-writable' is non-nil, | 403 | If the file already exists and `autoload-ensure-writable' is non-nil, |
| 380 | make it writable." | 404 | make it writable." |
| 381 | (if (file-exists-p file) | 405 | (write-region (autoload-rubric file) nil file)) |
| 382 | ;; Probably pointless, but replaces the old AUTOGEN_VCS in lisp/Makefile, | ||
| 383 | ;; which was designed to handle CVSREAD=1 and equivalent. | ||
| 384 | (and autoload-ensure-writable | ||
| 385 | (let ((modes (file-modes file))) | ||
| 386 | (if (zerop (logand modes #o0200)) | ||
| 387 | ;; Ignore any errors here, and let subsequent attempts | ||
| 388 | ;; to write the file raise any real error. | ||
| 389 | (ignore-errors (set-file-modes file (logior modes #o0200)))))) | ||
| 390 | (write-region (autoload-rubric file) nil file)) | ||
| 391 | file) | ||
| 392 | 406 | ||
| 393 | (defun autoload-insert-section-header (outbuf autoloads load-name file time) | 407 | (defun autoload-insert-section-header (outbuf autoloads load-name file time) |
| 394 | "Insert the section-header line, | 408 | "Insert the section-header line, |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index ca475828642..94ebbdd60c7 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1009,7 +1009,7 @@ on parts -- for instance, adding Vcard info to a database." | |||
| 1009 | 1009 | ||
| 1010 | (defcustom gnus-article-date-headers '(combined-lapsed) | 1010 | (defcustom gnus-article-date-headers '(combined-lapsed) |
| 1011 | "A list of Date header formats to display. | 1011 | "A list of Date header formats to display. |
| 1012 | Valid formats are `ut' (universal time), `local' (local time | 1012 | Valid formats are `ut' (Universal Time), `local' (local time |
| 1013 | zone), `english' (readable English), `lapsed' (elapsed time), | 1013 | zone), `english' (readable English), `lapsed' (elapsed time), |
| 1014 | `combined-lapsed' (both the original date and the elapsed time), | 1014 | `combined-lapsed' (both the original date and the elapsed time), |
| 1015 | `original' (the original date header), `iso8601' (ISO8601 | 1015 | `original' (the original date header), `iso8601' (ISO8601 |
diff --git a/lisp/org/org.el b/lisp/org/org.el index d2b48a64e45..231daa9a6a7 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -22674,7 +22674,7 @@ time-range, if possible. | |||
| 22674 | 22674 | ||
| 22675 | The optional ZONE is omitted or nil for Emacs local time, t for | 22675 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 22676 | Universal Time, `wall' for system wall clock time, or a string as in | 22676 | Universal Time, `wall' for system wall clock time, or a string as in |
| 22677 | `set-time-zone-rule' for a time zone rule." | 22677 | the TZ environment variable." |
| 22678 | (format-time-string | 22678 | (format-time-string |
| 22679 | format | 22679 | format |
| 22680 | (apply 'encode-time | 22680 | (apply 'encode-time |
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 9c8a88c80fc..82059c91363 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -162,7 +162,7 @@ end it with `/'. DIR must be one of `project-roots' or | |||
| 162 | DIRS is a list of absolute directories; it should be some | 162 | DIRS is a list of absolute directories; it should be some |
| 163 | subset of the project roots and external roots. | 163 | subset of the project roots and external roots. |
| 164 | 164 | ||
| 165 | The default implementation uses `find-program'. PROJECT is used | 165 | The default implementation uses `grep-find-program'. PROJECT is used |
| 166 | to find the list of ignores for each directory." | 166 | to find the list of ignores for each directory." |
| 167 | ;; FIXME: Uniquely abbreviate the roots? | 167 | ;; FIXME: Uniquely abbreviate the roots? |
| 168 | (require 'xref) | 168 | (require 'xref) |
| @@ -171,7 +171,7 @@ to find the list of ignores for each directory." | |||
| 171 | (lambda (dir) | 171 | (lambda (dir) |
| 172 | (let ((command | 172 | (let ((command |
| 173 | (format "%s %s %s -type f -print0" | 173 | (format "%s %s %s -type f -print0" |
| 174 | find-program | 174 | grep-find-program |
| 175 | dir | 175 | dir |
| 176 | (xref--find-ignores-arguments | 176 | (xref--find-ignores-arguments |
| 177 | (project-ignores project dir) | 177 | (project-ignores project dir) |
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el index d6c1fc203db..58a4e77a602 100644 --- a/lisp/vc/add-log.el +++ b/lisp/vc/add-log.el | |||
| @@ -583,10 +583,9 @@ Compatibility function for \\[next-error] invocations." | |||
| 583 | ;; called add-log-time-zone-rule since it's only used from add-log-* code. | 583 | ;; called add-log-time-zone-rule since it's only used from add-log-* code. |
| 584 | (defvaralias 'change-log-time-zone-rule 'add-log-time-zone-rule) | 584 | (defvaralias 'change-log-time-zone-rule 'add-log-time-zone-rule) |
| 585 | (defvar add-log-time-zone-rule nil | 585 | (defvar add-log-time-zone-rule nil |
| 586 | "Time zone used for calculating change log time stamps. | 586 | "Time zone rule used for calculating change log time stamps. |
| 587 | It takes the same format as the TZ argument of `set-time-zone-rule'. | 587 | If nil, use local time. If t, use Universal Time. |
| 588 | If nil, use local time. | 588 | If a string, interpret as the ZONE argument of `format-time-string'.") |
| 589 | If t, use universal time.") | ||
| 590 | (put 'add-log-time-zone-rule 'safe-local-variable | 589 | (put 'add-log-time-zone-rule 'safe-local-variable |
| 591 | (lambda (x) (or (booleanp x) (stringp x)))) | 590 | (lambda (x) (or (booleanp x) (stringp x)))) |
| 592 | 591 | ||