diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gmalloc.c | 11 | ||||
| -rw-r--r-- | src/gnutls.c | 2 | ||||
| -rw-r--r-- | src/window.c | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 19 |
4 files changed, 28 insertions, 10 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c index 2bda95ebd3d..a17d39c1eeb 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -1502,17 +1502,18 @@ extern void *__sbrk (ptrdiff_t increment); | |||
| 1502 | static void * | 1502 | static void * |
| 1503 | gdefault_morecore (ptrdiff_t increment) | 1503 | gdefault_morecore (ptrdiff_t increment) |
| 1504 | { | 1504 | { |
| 1505 | void *result; | ||
| 1506 | #ifdef HYBRID_MALLOC | 1505 | #ifdef HYBRID_MALLOC |
| 1507 | if (!DUMPED) | 1506 | if (!DUMPED) |
| 1508 | { | 1507 | { |
| 1509 | return bss_sbrk (increment); | 1508 | return bss_sbrk (increment); |
| 1510 | } | 1509 | } |
| 1511 | #endif | 1510 | #endif |
| 1512 | result = (void *) __sbrk (increment); | 1511 | #ifdef HAVE_SBRK |
| 1513 | if (result == (void *) -1) | 1512 | void *result = (void *) __sbrk (increment); |
| 1514 | return NULL; | 1513 | if (result != (void *) -1) |
| 1515 | return result; | 1514 | return result; |
| 1515 | #endif | ||
| 1516 | return NULL; | ||
| 1516 | } | 1517 | } |
| 1517 | 1518 | ||
| 1518 | void *(*__morecore) (ptrdiff_t) = gdefault_morecore; | 1519 | void *(*__morecore) (ptrdiff_t) = gdefault_morecore; |
diff --git a/src/gnutls.c b/src/gnutls.c index 36f65c4acb3..85cebd0e1c6 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -2422,6 +2422,8 @@ GnuTLS AEAD ciphers : the list will contain `AEAD-ciphers'. */) | |||
| 2422 | 2422 | ||
| 2423 | #ifdef HAVE_GNUTLS | 2423 | #ifdef HAVE_GNUTLS |
| 2424 | 2424 | ||
| 2425 | capabilities = Fcons (intern("gnutls"), capabilities); | ||
| 2426 | |||
| 2425 | # ifdef HAVE_GNUTLS3 | 2427 | # ifdef HAVE_GNUTLS3 |
| 2426 | capabilities = Fcons (intern("gnutls3"), capabilities); | 2428 | capabilities = Fcons (intern("gnutls3"), capabilities); |
| 2427 | capabilities = Fcons (intern("digests"), capabilities); | 2429 | capabilities = Fcons (intern("digests"), capabilities); |
diff --git a/src/window.c b/src/window.c index 9bb2c43a698..cc1d2a7b36e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -6661,7 +6661,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6661 | 6661 | ||
| 6662 | We have to do this in order to capture the following | 6662 | We have to do this in order to capture the following |
| 6663 | scenario: Suppose our frame contains two live windows W1 and | 6663 | scenario: Suppose our frame contains two live windows W1 and |
| 6664 | W2 and ‘set-window-configuration’ replaces them by two | 6664 | W2 and 'set-window-configuration' replaces them by two |
| 6665 | windows W3 and W4 that were dead the last time | 6665 | windows W3 and W4 that were dead the last time |
| 6666 | run_window_size_change_functions was run. If W3 and W4 have | 6666 | run_window_size_change_functions was run. If W3 and W4 have |
| 6667 | the same values for their old and new pixel sizes but these | 6667 | the same values for their old and new pixel sizes but these |
| @@ -7617,8 +7617,8 @@ on their symbols to be controlled by this variable. */); | |||
| 7617 | DEFVAR_LISP ("window-configuration-change-hook", | 7617 | DEFVAR_LISP ("window-configuration-change-hook", |
| 7618 | Vwindow_configuration_change_hook, | 7618 | Vwindow_configuration_change_hook, |
| 7619 | doc: /* Functions to call when window configuration changes. | 7619 | doc: /* Functions to call when window configuration changes. |
| 7620 | The buffer-local part is run once per window, with the relevant window | 7620 | The buffer-local value is run once per window, with the relevant window |
| 7621 | selected; while the global part is run only once for the modified frame, | 7621 | selected; while the global value is run only once for the modified frame, |
| 7622 | with the relevant frame selected. */); | 7622 | with the relevant frame selected. */); |
| 7623 | Vwindow_configuration_change_hook = Qnil; | 7623 | Vwindow_configuration_change_hook = Qnil; |
| 7624 | 7624 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 900a8dc1637..f1a6c622d09 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13174,8 +13174,20 @@ hscroll_window_tree (Lisp_Object window) | |||
| 13174 | 13174 | ||
| 13175 | /* If the position of this window's point has explicitly | 13175 | /* If the position of this window's point has explicitly |
| 13176 | changed, no more suspend auto hscrolling. */ | 13176 | changed, no more suspend auto hscrolling. */ |
| 13177 | if (NILP (Fequal (Fwindow_point (window), Fwindow_old_point (window)))) | 13177 | if (w->suspend_auto_hscroll |
| 13178 | w->suspend_auto_hscroll = false; | 13178 | && NILP (Fequal (Fwindow_point (window), |
| 13179 | Fwindow_old_point (window)))) | ||
| 13180 | { | ||
| 13181 | w->suspend_auto_hscroll = false; | ||
| 13182 | /* When hscrolling just the current line, and the rest | ||
| 13183 | of lines were temporarily hscrolled, but no longer | ||
| 13184 | are, force thorough redisplay of this window, to show | ||
| 13185 | the effect of disabling hscroll suspension immediately. */ | ||
| 13186 | if (w->min_hscroll == 0 && w->hscroll > 0 | ||
| 13187 | && EQ (Fbuffer_local_value (Qauto_hscroll_mode, w->contents), | ||
| 13188 | Qcurrent_line)) | ||
| 13189 | SET_FRAME_GARBAGED (XFRAME (w->frame)); | ||
| 13190 | } | ||
| 13179 | 13191 | ||
| 13180 | /* Remember window point. */ | 13192 | /* Remember window point. */ |
| 13181 | Fset_marker (w->old_pointm, | 13193 | Fset_marker (w->old_pointm, |
| @@ -32563,6 +32575,9 @@ display-start position. | |||
| 32563 | These functions are called whenever the `window-start' marker is modified, | 32575 | These functions are called whenever the `window-start' marker is modified, |
| 32564 | either to point into another buffer (e.g. via `set-window-buffer') or another | 32576 | either to point into another buffer (e.g. via `set-window-buffer') or another |
| 32565 | place in the same buffer. | 32577 | place in the same buffer. |
| 32578 | When each function is called, the `window-start' marker of its window | ||
| 32579 | argument has been already set to the new value, and the buffer which that | ||
| 32580 | window will display is set to be the current buffer. | ||
| 32566 | Note that the value of `window-end' is not valid when these functions are | 32581 | Note that the value of `window-end' is not valid when these functions are |
| 32567 | called. | 32582 | called. |
| 32568 | 32583 | ||