diff options
| author | Glenn Morris | 2019-04-10 09:07:16 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-04-10 09:07:16 -0700 |
| commit | 7f88eecd7cd0054a83f5cad61ddde1830f3539a3 (patch) | |
| tree | d7d0853b1619ac284ae14538dda1499864f0ebe9 /src | |
| parent | 0cef057b02b088ded8b46e3453ac0d891888423a (diff) | |
| parent | a5da653319a3018074debfc7b4fdd90ac7ea838c (diff) | |
| download | emacs-7f88eecd7cd0054a83f5cad61ddde1830f3539a3.tar.gz emacs-7f88eecd7cd0054a83f5cad61ddde1830f3539a3.zip | |
Merge from origin/emacs-26
a5da653 * src/editfns.c (Fnarrow_to_region): Doc fix. (Bug#35163)
646d33d Fix doc strings of 'vc-version-diff' and 'vc-version-ediff'
a30a6c3 Improve documentation of set-window-start
92ce2dd Improve documentation of window parameters
6dc42c5 Improve commentary in frame.el
a8cffcf Fix typo in a doc string
9e79f19 (emacs-26) ; * src/fontset.c (set-fontset-font): Use uppercas...
# Conflicts:
# lisp/vc/vc.el
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 5 | ||||
| -rw-r--r-- | src/fontset.c | 2 | ||||
| -rw-r--r-- | src/window.c | 7 |
3 files changed, 10 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index bfffadc733d..6fb43af4e9c 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2686,8 +2686,9 @@ but is not deleted; if you save the buffer in a file, the invisible | |||
| 2686 | text is included in the file. \\[widen] makes all visible again. | 2686 | text is included in the file. \\[widen] makes all visible again. |
| 2687 | See also `save-restriction'. | 2687 | See also `save-restriction'. |
| 2688 | 2688 | ||
| 2689 | When calling from a program, pass two arguments; positions (integers | 2689 | When calling from Lisp, pass two arguments START and END: |
| 2690 | or markers) bounding the text that should remain visible. */) | 2690 | positions (integers or markers) bounding the text that should |
| 2691 | remain visible. */) | ||
| 2691 | (register Lisp_Object start, Lisp_Object end) | 2692 | (register Lisp_Object start, Lisp_Object end) |
| 2692 | { | 2693 | { |
| 2693 | CHECK_FIXNUM_COERCE_MARKER (start); | 2694 | CHECK_FIXNUM_COERCE_MARKER (start); |
diff --git a/src/fontset.c b/src/fontset.c index 2729fae6ee9..eec1e0da4cc 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1444,7 +1444,7 @@ or t for the default fontset. | |||
| 1444 | 1444 | ||
| 1445 | TARGET may be a single character to use FONT-SPEC for. | 1445 | TARGET may be a single character to use FONT-SPEC for. |
| 1446 | 1446 | ||
| 1447 | Target may be a cons (FROM . TO), where FROM and TO are characters. | 1447 | TARGET may be a cons (FROM . TO), where FROM and TO are characters. |
| 1448 | In that case, use FONT-SPEC for all the characters in the range | 1448 | In that case, use FONT-SPEC for all the characters in the range |
| 1449 | between FROM and TO (inclusive). | 1449 | between FROM and TO (inclusive). |
| 1450 | 1450 | ||
diff --git a/src/window.c b/src/window.c index f911c0c7d44..ef2ed638508 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1796,7 +1796,12 @@ DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0, | |||
| 1796 | doc: /* Make display in WINDOW start at position POS in WINDOW's buffer. | 1796 | doc: /* Make display in WINDOW start at position POS in WINDOW's buffer. |
| 1797 | WINDOW must be a live window and defaults to the selected one. Return | 1797 | WINDOW must be a live window and defaults to the selected one. Return |
| 1798 | POS. Optional third arg NOFORCE non-nil inhibits next redisplay from | 1798 | POS. Optional third arg NOFORCE non-nil inhibits next redisplay from |
| 1799 | overriding motion of point in order to display at this exact start. */) | 1799 | overriding motion of point in order to display at this exact start. |
| 1800 | |||
| 1801 | For reliable setting of WINDOW start position, make sure point is | ||
| 1802 | at a position that will be visible when that start is in effect, | ||
| 1803 | otherwise there's a chance POS will be disregarded, e.g., if point | ||
| 1804 | winds up in a partially-visible line. */) | ||
| 1800 | (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce) | 1805 | (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce) |
| 1801 | { | 1806 | { |
| 1802 | register struct window *w = decode_live_window (window); | 1807 | register struct window *w = decode_live_window (window); |