diff options
| author | Stefan Monnier | 2008-06-20 01:53:32 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-20 01:53:32 +0000 |
| commit | 770e2e6ed85e3c3fdf1f770ccbcb7f3120370c05 (patch) | |
| tree | 66a9c8e4873bd1c6455cca1558529877ce2753d2 /src/frame.c | |
| parent | 22e64f7c64f1e79062eb1f4925ffe54af33d9de5 (diff) | |
| download | emacs-770e2e6ed85e3c3fdf1f770ccbcb7f3120370c05.tar.gz emacs-770e2e6ed85e3c3fdf1f770ccbcb7f3120370c05.zip | |
* w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
for explicit `font' parameters.
* frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 761e6cc9a77..6320d0ca1ff 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3400,7 +3400,13 @@ x_set_font (f, arg, oldval) | |||
| 3400 | if (FRAME_FACE_CACHE (f)) | 3400 | if (FRAME_FACE_CACHE (f)) |
| 3401 | { | 3401 | { |
| 3402 | XSETFRAME (frame, f); | 3402 | XSETFRAME (frame, f); |
| 3403 | call1 (Qface_set_after_frame_default, frame); | 3403 | /* We used to call face-set-after-frame-default here, but it leads to |
| 3404 | recursive calls (since that function can set the `default' face's | ||
| 3405 | font which in turns changes the frame's `font' parameter). | ||
| 3406 | Also I don't know what this call is meant to do, but it seems the | ||
| 3407 | wrong way to do it anyway (it does a lot more work than what seems | ||
| 3408 | reasonable in response to a change to `font'). */ | ||
| 3409 | /* call1 (Qface_set_after_frame_default, frame); */ | ||
| 3404 | } | 3410 | } |
| 3405 | } | 3411 | } |
| 3406 | 3412 | ||