diff options
| author | Martin Rudalics | 2015-03-04 18:52:08 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-03-04 18:52:08 +0100 |
| commit | 53a3f3ab17abd97f305c93416095fecac2e3f2e1 (patch) | |
| tree | 49b6ebb55d42cef8e85cf9ef45b097d232f6d225 /src | |
| parent | 0ec2600a49a1794dff490266519dd6265a4a3cb7 (diff) | |
| download | emacs-53a3f3ab17abd97f305c93416095fecac2e3f2e1.tar.gz emacs-53a3f3ab17abd97f305c93416095fecac2e3f2e1.zip | |
Handle tool bar size changes after x_set_font.
* frame.c (x_set_font): Try to keep frame height and width
unchanged if tool bar size changes with new font.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/frame.c | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8acca6cca3f..e8fa72caea0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,9 +1,14 @@ | |||
| 1 | 2015-03-04 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * frame.c (x_set_font): Try to keep frame height and width | ||
| 4 | unchanged if tool bar size changes with new font. | ||
| 5 | |||
| 1 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 6 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * search.c (find_newline): Avoid assertion violations in | 8 | * search.c (find_newline): Avoid assertion violations in |
| 4 | CHAR_TO_BYTE when a portion of the buffer was deleted and we look | 9 | CHAR_TO_BYTE when a portion of the buffer was deleted and we look |
| 5 | for newlines near the end of the buffer. This happens in Rmail | 10 | for newlines near the end of the buffer. This happens in Rmail |
| 6 | hen JIT font-lock fontifies a newly displayed portion of the | 11 | when JIT font-lock fontifies a newly displayed portion of the |
| 7 | buffer. | 12 | buffer. |
| 8 | 13 | ||
| 9 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 14 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
diff --git a/src/frame.c b/src/frame.c index bac2b246ad9..aa07219d152 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3626,6 +3626,7 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 3626 | #endif | 3626 | #endif |
| 3627 | /* Recalculate toolbar height. */ | 3627 | /* Recalculate toolbar height. */ |
| 3628 | f->n_tool_bar_rows = 0; | 3628 | f->n_tool_bar_rows = 0; |
| 3629 | f->tool_bar_redisplayed_once = false; | ||
| 3629 | 3630 | ||
| 3630 | /* Ensure we redraw it. */ | 3631 | /* Ensure we redraw it. */ |
| 3631 | clear_current_matrices (f); | 3632 | clear_current_matrices (f); |