diff options
| author | Dmitry Antipov | 2012-08-06 12:32:49 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-06 12:32:49 +0400 |
| commit | f99bac932bf883dbd4b91dc5ba21c77a23840be7 (patch) | |
| tree | 30d12297bf0429949f63836e7f2ab7f8e96e841a /src | |
| parent | 8c2a0f2dbf2a5022cd1641e87a3036f258e30a70 (diff) | |
| download | emacs-f99bac932bf883dbd4b91dc5ba21c77a23840be7.tar.gz emacs-f99bac932bf883dbd4b91dc5ba21c77a23840be7.zip | |
Fix replacement typo.
* window.c (replace_window): Set root_window instead of
selected_window. This fixes a total window subsystem
malfunction reported by Bastien Guerry <bzg@gnu.org>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 58bc7de8d08..497ba67f106 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | Fix replacement typo. | ||
| 4 | * window.c (replace_window): Set root_window instead of | ||
| 5 | selected_window. This fixes a total window subsystem | ||
| 6 | malfunction reported by Bastien Guerry <bzg@gnu.org>. | ||
| 7 | |||
| 1 | 2012-08-06 Glenn Morris <rgm@gnu.org> | 8 | 2012-08-06 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * lisp.mk (lisp): Add language/persian.elc. | 10 | * lisp.mk (lisp): Add language/persian.elc. |
diff --git a/src/window.c b/src/window.c index fcd9c666553..1c62e6f00a7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1841,7 +1841,7 @@ replace_window (Lisp_Object old, Lisp_Object new, int setflag) | |||
| 1841 | /* If OLD is its frame's root window, then NEW is the new | 1841 | /* If OLD is its frame's root window, then NEW is the new |
| 1842 | root window for that frame. */ | 1842 | root window for that frame. */ |
| 1843 | if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) | 1843 | if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) |
| 1844 | FSET (XFRAME (WVAR (o, frame)), selected_window, new); | 1844 | FSET (XFRAME (WVAR (o, frame)), root_window, new); |
| 1845 | 1845 | ||
| 1846 | if (setflag) | 1846 | if (setflag) |
| 1847 | { | 1847 | { |