diff options
| author | Glenn Morris | 2018-05-07 07:50:49 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-05-07 07:50:49 -0700 |
| commit | 766b057e41df7316808ec7658836fda75facda75 (patch) | |
| tree | 9f35f8fdc99192a66c01c10b8a6b3cae1fb6ebd4 /src | |
| parent | 6e362a32bc9d21f73a0f29ca6f45481edeea6f29 (diff) | |
| parent | 1d732d699d63b5dbfa7d0a0f44e6119d58f852bc (diff) | |
| download | emacs-766b057e41df7316808ec7658836fda75facda75.tar.gz emacs-766b057e41df7316808ec7658836fda75facda75.zip | |
Merge from origin/emacs-26
1d732d6 (origin/emacs-26) Fix gud-statement for pdb
91a68b5 ; * msdos/INSTALL: Add info about GCC versions.
7ddcc9a Document 'custom-group'
58f9e15 A minor addition to etc/DEBUG
4590414 Avoid errors in ispell.el when Enchant returns empty extra chars
d0d75f9 Make 'ispell-initialize-spellchecker-hook' work again
b90ce66 Handle selected_window change in prepare_menu_bars (Bug#31312)
79ad0b3 ; * INSTALL: Fix Emacs version number. (Bug#31358)
91de88b Fix report-emacs-bug via mailclient on MS-Windows
f4b5ff2 Port collation tests to glibc 2.27
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 50fd6857784..1299ba38e3d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14027,11 +14027,6 @@ redisplay_internal (void) | |||
| 14027 | /* Notice any pending interrupt request to change frame size. */ | 14027 | /* Notice any pending interrupt request to change frame size. */ |
| 14028 | do_pending_window_change (true); | 14028 | do_pending_window_change (true); |
| 14029 | 14029 | ||
| 14030 | /* do_pending_window_change could change the selected_window due to | ||
| 14031 | frame resizing which makes the selected window too small. */ | ||
| 14032 | if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) | ||
| 14033 | sw = w; | ||
| 14034 | |||
| 14035 | /* Clear frames marked as garbaged. */ | 14030 | /* Clear frames marked as garbaged. */ |
| 14036 | clear_garbaged_frames (); | 14031 | clear_garbaged_frames (); |
| 14037 | 14032 | ||
| @@ -14039,6 +14034,13 @@ redisplay_internal (void) | |||
| 14039 | if (NILP (Vmemory_full)) | 14034 | if (NILP (Vmemory_full)) |
| 14040 | prepare_menu_bars (); | 14035 | prepare_menu_bars (); |
| 14041 | 14036 | ||
| 14037 | /* do_pending_window_change could change the selected_window due to | ||
| 14038 | frame resizing which makes the selected window too small. | ||
| 14039 | prepare_menu_bars may call lisp hooks and hence also change the | ||
| 14040 | selected_window. */ | ||
| 14041 | if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) | ||
| 14042 | sw = w; | ||
| 14043 | |||
| 14042 | reconsider_clip_changes (w); | 14044 | reconsider_clip_changes (w); |
| 14043 | 14045 | ||
| 14044 | /* In most cases selected window displays current buffer. */ | 14046 | /* In most cases selected window displays current buffer. */ |