diff options
| author | Paul Eggert | 2016-09-26 13:37:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-09-26 13:37:36 -0700 |
| commit | fa9d9041aa05263b5331e32f99f7e3d5a1f16696 (patch) | |
| tree | c04ce068cefba3b22d9eeacdaf434d808cd92c6f | |
| parent | 4dad9675c58ea82f6d2f8ec8dfa10d67d754d1d1 (diff) | |
| parent | 0ae9a816b9f68bd3f50fc287a342237c8b4fe78d (diff) | |
| download | emacs-fa9d9041aa05263b5331e32f99f7e3d5a1f16696.tar.gz emacs-fa9d9041aa05263b5331e32f99f7e3d5a1f16696.zip | |
Merge from origin/emacs-25
0ae9a81 Document 'timerp'
2c72c46 Improve documentation of overlay priorities
f6fa160 Fix 'dired-compress-files'
2b8c5f0 Update commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR
# Conflicts:
# lisp/dired.el
# src/buffer.h
# src/character.h
| -rw-r--r-- | doc/lispref/display.texi | 23 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 11 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 8 | ||||
| -rw-r--r-- | src/buffer.h | 2 | ||||
| -rw-r--r-- | src/character.h | 2 |
5 files changed, 30 insertions, 16 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 93b84a0f205..381edbac48a 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -1553,10 +1553,8 @@ the buffer's undo list. | |||
| 1553 | 1553 | ||
| 1554 | Since more than one overlay can specify a property value for the | 1554 | Since more than one overlay can specify a property value for the |
| 1555 | same character, Emacs lets you specify a priority value of each | 1555 | same character, Emacs lets you specify a priority value of each |
| 1556 | overlay. In case two overlays have the same priority value, and one | 1556 | overlay. The priority value is used to decide which of the |
| 1557 | is nested in the other, then the inner one will have priority over the | 1557 | overlapping overlays will ``win''. |
| 1558 | outer one. If neither is nested in the other then you should not make | ||
| 1559 | assumptions about which overlay will prevail. | ||
| 1560 | 1558 | ||
| 1561 | These functions read and set the properties of an overlay: | 1559 | These functions read and set the properties of an overlay: |
| 1562 | 1560 | ||
| @@ -1593,17 +1591,26 @@ If you want to specify a priority value, use either @code{nil} | |||
| 1593 | 1591 | ||
| 1594 | The priority matters when two or more overlays cover the same | 1592 | The priority matters when two or more overlays cover the same |
| 1595 | character and both specify the same property; the one whose | 1593 | character and both specify the same property; the one whose |
| 1596 | @code{priority} value is larger overrides the other. For the | 1594 | @code{priority} value is larger overrides the other. (For the |
| 1597 | @code{face} property, the higher priority overlay's value does not | 1595 | @code{face} property, the higher priority overlay's value does not |
| 1598 | completely override the other value; instead, its face attributes | 1596 | completely override the other value; instead, its face attributes |
| 1599 | override the face attributes of the lower priority @code{face} | 1597 | override the face attributes of the lower priority @code{face} |
| 1600 | property. | 1598 | property.) If two overlays have the same priority value, and one is |
| 1599 | nested in the other, then the inner one will prevail over the outer | ||
| 1600 | one. If neither is nested in the other then you should not make | ||
| 1601 | assumptions about which overlay will prevail. | ||
| 1601 | 1602 | ||
| 1602 | Currently, all overlays take priority over text properties. | 1603 | Currently, all overlays take priority over text properties. |
| 1603 | 1604 | ||
| 1604 | Note that Emacs sometimes uses non-numeric priority values for some of | 1605 | Note that Emacs sometimes uses non-numeric priority values for some of |
| 1605 | its internal overlays, so do not try to do arithmetic on the | 1606 | its internal overlays, so do not try to do arithmetic on the priority |
| 1606 | priority of an overlay (unless it is one that you created). If you | 1607 | of an overlay (unless it is one that you created). In particular, the |
| 1608 | overlay used for showing the region uses a priority value of the form | ||
| 1609 | @w{@code{(@var{primary} . @var{secondary})}}, where the @var{primary} | ||
| 1610 | value is used as described above, and @var{secondary} is the fallback | ||
| 1611 | value used when @var{primary} and the nesting considerations fail to | ||
| 1612 | resolve the precedence between overlays. However, you are advised not | ||
| 1613 | to design Lisp programs based on this implementation detail; if you | ||
| 1607 | need to put overlays in priority order, use the @var{sorted} argument | 1614 | need to put overlays in priority order, use the @var{sorted} argument |
| 1608 | of @code{overlays-at}. @xref{Finding Overlays}. | 1615 | of @code{overlays-at}. @xref{Finding Overlays}. |
| 1609 | 1616 | ||
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 08c69d37c5e..277abb1477d 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -1726,10 +1726,17 @@ This function returns @code{t} if @var{year} is a leap year. | |||
| 1726 | 1726 | ||
| 1727 | @node Timers | 1727 | @node Timers |
| 1728 | @section Timers for Delayed Execution | 1728 | @section Timers for Delayed Execution |
| 1729 | @cindex timer | 1729 | @cindex timers |
| 1730 | 1730 | ||
| 1731 | You can set up a @dfn{timer} to call a function at a specified | 1731 | You can set up a @dfn{timer} to call a function at a specified |
| 1732 | future time or after a certain length of idleness. | 1732 | future time or after a certain length of idleness. A timer is a |
| 1733 | special object that stores the information about the next invocation | ||
| 1734 | times and the function to invoke. | ||
| 1735 | |||
| 1736 | @defun timerp object | ||
| 1737 | This predicate function returns non-@code{nil} of @code{object} is a | ||
| 1738 | timer. | ||
| 1739 | @end defun | ||
| 1733 | 1740 | ||
| 1734 | Emacs cannot run timers at any arbitrary point in a Lisp program; it | 1741 | Emacs cannot run timers at any arbitrary point in a Lisp program; it |
| 1735 | can run them only when Emacs could accept output from a subprocess: | 1742 | can run them only when Emacs could accept output from a subprocess: |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 9e0943ac7f0..d25352ec5bc 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -990,12 +990,12 @@ output file. %i path(s) are relative, while %o is absolute.") | |||
| 990 | ;;;###autoload | 990 | ;;;###autoload |
| 991 | (defun dired-do-compress-to () | 991 | (defun dired-do-compress-to () |
| 992 | "Compress selected files and directories to an archive. | 992 | "Compress selected files and directories to an archive. |
| 993 | You are prompted for the archive name. | 993 | Prompt for the archive file name. |
| 994 | The archiving command is chosen based on the archive name extension and | 994 | Choose the archiving command based on the archive file-name extension |
| 995 | `dired-compress-files-alist'." | 995 | and `dired-compress-files-alist'." |
| 996 | (interactive) | 996 | (interactive) |
| 997 | (let* ((in-files (dired-get-marked-files)) | 997 | (let* ((in-files (dired-get-marked-files)) |
| 998 | (out-file (read-file-name "Compress to: ")) | 998 | (out-file (expand-file-name (read-file-name "Compress to: "))) |
| 999 | (rule (cl-find-if | 999 | (rule (cl-find-if |
| 1000 | (lambda (x) | 1000 | (lambda (x) |
| 1001 | (string-match (car x) out-file)) | 1001 | (string-match (car x) out-file)) |
diff --git a/src/buffer.h b/src/buffer.h index fa4866e8f72..6ac161c1c91 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1182,7 +1182,7 @@ buffer_has_overlays (void) | |||
| 1182 | 1182 | ||
| 1183 | /* Return character code of multi-byte form at byte position POS. If POS | 1183 | /* Return character code of multi-byte form at byte position POS. If POS |
| 1184 | doesn't point the head of valid multi-byte form, only the byte at | 1184 | doesn't point the head of valid multi-byte form, only the byte at |
| 1185 | POS is returned. No range checking. */ | 1185 | POS is returned. No range checking. */ |
| 1186 | 1186 | ||
| 1187 | INLINE int | 1187 | INLINE int |
| 1188 | FETCH_MULTIBYTE_CHAR (ptrdiff_t pos) | 1188 | FETCH_MULTIBYTE_CHAR (ptrdiff_t pos) |
diff --git a/src/character.h b/src/character.h index b72b61d7054..fc8a0dd74d2 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -308,7 +308,7 @@ enum | |||
| 308 | } \ | 308 | } \ |
| 309 | } while (false) | 309 | } while (false) |
| 310 | 310 | ||
| 311 | /* Return the character code of character whose multibyte form is at P. */ | 311 | /* Return the character code of character whose multibyte form is at P. */ |
| 312 | 312 | ||
| 313 | #define STRING_CHAR(p) \ | 313 | #define STRING_CHAR(p) \ |
| 314 | (!((p)[0] & 0x80) \ | 314 | (!((p)[0] & 0x80) \ |