diff options
| author | Jimmy Aguilar Mena | 2019-09-21 20:33:38 +0200 |
|---|---|---|
| committer | Jimmy Aguilar Mena | 2019-10-14 14:18:41 +0200 |
| commit | 38ee12d5a2df150e6ba9023d968d1c49c85ca6e1 (patch) | |
| tree | a7d22d94d7e78709fbcd1d0f9a270a5bcd5ca2db | |
| parent | 92445de0a41bd138cc5a81cd1038720e20896535 (diff) | |
| download | emacs-38ee12d5a2df150e6ba9023d968d1c49c85ca6e1.tar.gz emacs-38ee12d5a2df150e6ba9023d968d1c49c85ca6e1.zip | |
Fixed merge_face_ref recursive calls.
* src/xfaces.c (merge_face_ref): Fixed recursive calls to consider
filter when CONSP (face_ref).
| -rw-r--r-- | src/xdisp.c | 7 | ||||
| -rw-r--r-- | src/xfaces.c | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d99bc4323df..2c69a1f04f1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21563,7 +21563,6 @@ append_space_for_newline (struct it *it, bool default_face_p) | |||
| 21563 | static void | 21563 | static void |
| 21564 | extend_face_to_end_of_line (struct it *it) | 21564 | extend_face_to_end_of_line (struct it *it) |
| 21565 | { | 21565 | { |
| 21566 | struct face *face; | ||
| 21567 | struct frame *f = it->f; | 21566 | struct frame *f = it->f; |
| 21568 | 21567 | ||
| 21569 | /* If line is already filled, do nothing. Non window-system frames | 21568 | /* If line is already filled, do nothing. Non window-system frames |
| @@ -21588,9 +21587,9 @@ extend_face_to_end_of_line (struct it *it) | |||
| 21588 | /* Face extension extends the background and box of IT->extend_face_id | 21587 | /* Face extension extends the background and box of IT->extend_face_id |
| 21589 | to the end of the line. If the background equals the background | 21588 | to the end of the line. If the background equals the background |
| 21590 | of the frame, we don't have to do anything. */ | 21589 | of the frame, we don't have to do anything. */ |
| 21591 | face = FACE_FROM_ID (f, (it->face_before_selective_p | 21590 | struct face *face = FACE_FROM_ID (f, (it->face_before_selective_p |
| 21592 | ? it->saved_face_id | 21591 | ? it->saved_face_id |
| 21593 | : extend_face_id)); | 21592 | : extend_face_id)); |
| 21594 | 21593 | ||
| 21595 | if (FRAME_WINDOW_P (f) | 21594 | if (FRAME_WINDOW_P (f) |
| 21596 | && MATRIX_ROW_DISPLAYS_TEXT_P (it->glyph_row) | 21595 | && MATRIX_ROW_DISPLAYS_TEXT_P (it->glyph_row) |
diff --git a/src/xfaces.c b/src/xfaces.c index 082019d74e6..5577640325d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -2529,7 +2529,7 @@ merge_face_ref (struct window *w, | |||
| 2529 | normal face reference. */ | 2529 | normal face reference. */ |
| 2530 | if (! merge_face_ref (w, f, value, to, | 2530 | if (! merge_face_ref (w, f, value, to, |
| 2531 | err_msgs, named_merge_points, | 2531 | err_msgs, named_merge_points, |
| 2532 | 0)) | 2532 | attr_filter)) |
| 2533 | err = true; | 2533 | err = true; |
| 2534 | } | 2534 | } |
| 2535 | else if (EQ (keyword, QCextend)) | 2535 | else if (EQ (keyword, QCextend)) |
| @@ -2560,10 +2560,10 @@ merge_face_ref (struct window *w, | |||
| 2560 | 2560 | ||
| 2561 | if (! NILP (next)) | 2561 | if (! NILP (next)) |
| 2562 | ok = merge_face_ref (w, f, next, to, err_msgs, | 2562 | ok = merge_face_ref (w, f, next, to, err_msgs, |
| 2563 | named_merge_points, 0); | 2563 | named_merge_points, attr_filter); |
| 2564 | 2564 | ||
| 2565 | if (! merge_face_ref (w, f, first, to, err_msgs, | 2565 | if (! merge_face_ref (w, f, first, to, err_msgs, |
| 2566 | named_merge_points, 0)) | 2566 | named_merge_points, attr_filter)) |
| 2567 | ok = false; | 2567 | ok = false; |
| 2568 | } | 2568 | } |
| 2569 | } | 2569 | } |