diff options
| author | Alan Mackenzie | 2015-12-17 21:06:39 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2015-12-17 21:06:39 +0000 |
| commit | f3f0d12cafb89b68bb5ccee0c6e2ced80d204336 (patch) | |
| tree | 09dee4f94ca641404bf6e5f6656ce2e3feb12355 | |
| parent | 64ad54734dc720b4e14fe75475cc767f2e421e06 (diff) | |
| download | emacs-f3f0d12cafb89b68bb5ccee0c6e2ced80d204336.tar.gz emacs-f3f0d12cafb89b68bb5ccee0c6e2ced80d204336.zip | |
* lisp/follow.el (follow-sit-for): Remove (it's redundant).
| -rw-r--r-- | lisp/follow.el | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/lisp/follow.el b/lisp/follow.el index 3a876bcb219..dc525315b86 100644 --- a/lisp/follow.el +++ b/lisp/follow.el | |||
| @@ -1479,9 +1479,9 @@ non-first windows in Follow mode." | |||
| 1479 | 1479 | ||
| 1480 | ;; These routines are the Follow Mode versions of the low level | 1480 | ;; These routines are the Follow Mode versions of the low level |
| 1481 | ;; functions described on page "Window Start and End" of the elisp | 1481 | ;; functions described on page "Window Start and End" of the elisp |
| 1482 | ;; manual, e.g. `window*-start'. The aim is to be able to handle | 1482 | ;; manual, e.g. `window-group-start'. The aim is to be able to handle |
| 1483 | ;; Follow Mode windows by replacing `window-start' by `window*-start', | 1483 | ;; Follow Mode windows by replacing `window-start' by |
| 1484 | ;; etc. | 1484 | ;; `window-group-start', etc. |
| 1485 | 1485 | ||
| 1486 | (defun follow-after-change (_beg _end _old-len) | 1486 | (defun follow-after-change (_beg _end _old-len) |
| 1487 | "After change function: set `follow-start-end-invalid'." | 1487 | "After change function: set `follow-start-end-invalid'." |
| @@ -1615,27 +1615,6 @@ zero means top of the first window in the group, negative means | |||
| 1615 | lines (+ lines count))))))) | 1615 | lines (+ lines count))))))) |
| 1616 | (+ lines (move-to-window-line arg)))) | 1616 | (+ lines (move-to-window-line arg)))) |
| 1617 | 1617 | ||
| 1618 | (defun follow-sit-for (seconds &optional nodisp) | ||
| 1619 | "Redisplay, then wait for SECONDS seconds. Stop when input is available. | ||
| 1620 | Before redisplaying, synchronise all Follow windows. | ||
| 1621 | |||
| 1622 | SECONDS may be a floating-point value. | ||
| 1623 | \(On operating systems that do not support waiting for fractions of a | ||
| 1624 | second, floating-point values are rounded down to the nearest integer.) | ||
| 1625 | |||
| 1626 | Redisplay does not happen if input is available before it starts. | ||
| 1627 | If optional arg NODISP is t, don't synchronise or redisplay, just | ||
| 1628 | wait for input. | ||
| 1629 | |||
| 1630 | Value is t if waited the full time with no input arriving, and nil | ||
| 1631 | otherwise. | ||
| 1632 | |||
| 1633 | The functionality is intended to be the same as `sit-for''s." | ||
| 1634 | (when (and (not (input-pending-p t)) | ||
| 1635 | (not nodisp)) | ||
| 1636 | (follow-adjust-window (selected-window))) | ||
| 1637 | (sit-for seconds nodisp)) | ||
| 1638 | |||
| 1639 | ;;; Profile support | 1618 | ;;; Profile support |
| 1640 | 1619 | ||
| 1641 | ;; The following (non-evaluated) section can be used to | 1620 | ;; The following (non-evaluated) section can be used to |