diff options
| author | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
| commit | 14d64a8adcc866deecd758b898e8ef2d836b354a (patch) | |
| tree | 83cff9669e266f8e283ccb8cd7518e909240f1e1 /src/xfaces.c | |
| parent | bdd9b5b8a0d37dd09ee530c1dab3a44bee09e0f8 (diff) | |
| parent | ebe334cdc234de2897263aed4c05ac7088c11857 (diff) | |
| download | emacs-scratch/correct-warning-pos.tar.gz emacs-scratch/correct-warning-pos.zip | |
Merge branch 'master' into scratch/correct-warning-posscratch/correct-warning-pos
Diffstat (limited to 'src/xfaces.c')
| -rw-r--r-- | src/xfaces.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 8064d47c947..6a279f87192 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3165,14 +3165,15 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3165 | */ | 3165 | */ |
| 3166 | valid_p = true; | 3166 | valid_p = true; |
| 3167 | 3167 | ||
| 3168 | while (!NILP (CAR_SAFE(list))) | 3168 | while (!NILP (CAR_SAFE (list))) |
| 3169 | { | 3169 | { |
| 3170 | key = CAR_SAFE (list); | 3170 | key = CAR_SAFE (list); |
| 3171 | list = CDR_SAFE (list); | 3171 | list = CDR_SAFE (list); |
| 3172 | val = CAR_SAFE (list); | 3172 | val = CAR_SAFE (list); |
| 3173 | list = CDR_SAFE (list); | 3173 | list = CDR_SAFE (list); |
| 3174 | 3174 | ||
| 3175 | if (NILP (key) || NILP (val)) | 3175 | if (NILP (key) || (NILP (val) |
| 3176 | && !EQ (key, QCposition))) | ||
| 3176 | { | 3177 | { |
| 3177 | valid_p = false; | 3178 | valid_p = false; |
| 3178 | break; | 3179 | break; |
| @@ -6423,8 +6424,12 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos, | |||
| 6423 | cached faces since we've looked up these faces, we need to look | 6424 | cached faces since we've looked up these faces, we need to look |
| 6424 | them up again. */ | 6425 | them up again. */ |
| 6425 | if (!default_face) | 6426 | if (!default_face) |
| 6426 | default_face = FACE_FROM_ID (f, | 6427 | { |
| 6427 | lookup_basic_face (w, f, DEFAULT_FACE_ID)); | 6428 | if (FRAME_FACE_CACHE (f)->used == 0) |
| 6429 | recompute_basic_faces (f); | ||
| 6430 | default_face = FACE_FROM_ID (f, | ||
| 6431 | lookup_basic_face (w, f, DEFAULT_FACE_ID)); | ||
| 6432 | } | ||
| 6428 | } | 6433 | } |
| 6429 | 6434 | ||
| 6430 | /* Optimize common cases where we can use the default face. */ | 6435 | /* Optimize common cases where we can use the default face. */ |