aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJimmy Aguilar Mena2019-09-21 23:34:40 +0200
committerJimmy Aguilar Mena2019-10-14 14:18:42 +0200
commit424e6f54e5c3592f32016267179171b40dafbb99 (patch)
tree1159d5075e6cac06f938a0a59006e7d2cc67543e /src
parent38ee12d5a2df150e6ba9023d968d1c49c85ca6e1 (diff)
downloademacs-424e6f54e5c3592f32016267179171b40dafbb99.tar.gz
emacs-424e6f54e5c3592f32016267179171b40dafbb99.zip
Document new :extend face attribute in manuals.
Some stylistic corrections in src/xdisp.c and src/xfaces.c.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
-rw-r--r--src/xfaces.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 2c69a1f04f1..45462c5ac59 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21400,7 +21400,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
21400 const int local_default_face_id = 21400 const int local_default_face_id =
21401 lookup_basic_face (it->w, it->f, DEFAULT_FACE_ID); 21401 lookup_basic_face (it->w, it->f, DEFAULT_FACE_ID);
21402 struct face* default_face = 21402 struct face* default_face =
21403 FACE_FROM_ID (it->f, local_default_face_id); 21403 FACE_FROM_ID_OR_NULL (it->f, local_default_face_id);
21404 21404
21405#ifdef HAVE_WINDOW_SYSTEM 21405#ifdef HAVE_WINDOW_SYSTEM
21406 if (FRAME_WINDOW_P (it->f)) 21406 if (FRAME_WINDOW_P (it->f))
@@ -21534,7 +21534,7 @@ append_space_for_newline (struct it *it, bool default_face_p)
21534 g->ascent = it->max_ascent; 21534 g->ascent = it->max_ascent;
21535 g->descent = it->max_descent; 21535 g->descent = it->max_descent;
21536 } 21536 }
21537#endif // HAVE_WINDOW_SYSTEM 21537#endif /* HAVE_WINDOW_SYSTEM */
21538 it->override_ascent = -1; 21538 it->override_ascent = -1;
21539 it->constrain_row_ascent_descent_p = false; 21539 it->constrain_row_ascent_descent_p = false;
21540 it->current_x = saved_x; 21540 it->current_x = saved_x;
@@ -21722,8 +21722,6 @@ extend_face_to_end_of_line (struct it *it)
21722 } 21722 }
21723 } 21723 }
21724 21724
21725 /* Restore the face after the indicator was generated. */
21726
21727 /* If there is space after the indicator generate an 21725 /* If there is space after the indicator generate an
21728 extra empty glyph to restore the face. Issue was 21726 extra empty glyph to restore the face. Issue was
21729 observed in X systems. */ 21727 observed in X systems. */
diff --git a/src/xfaces.c b/src/xfaces.c
index 5577640325d..cc65527fe61 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2282,7 +2282,7 @@ filter_face_ref (Lisp_Object face_ref,
2282 of ERR_MSGS). Use NAMED_MERGE_POINTS to detect loops in face 2282 of ERR_MSGS). Use NAMED_MERGE_POINTS to detect loops in face
2283 inheritance or list structure; it may be 0 for most callers. 2283 inheritance or list structure; it may be 0 for most callers.
2284 2284
2285 attr_filter is the index of a parameter that conditions the merging 2285 ATTR_FILTER is the index of a parameter that conditions the merging
2286 for named faces (case 1) to only the face_ref where 2286 for named faces (case 1) to only the face_ref where
2287 lface[merge_face_ref] is non-nil. To merge unconditionally set this 2287 lface[merge_face_ref] is non-nil. To merge unconditionally set this
2288 value to 0. 2288 value to 0.
@@ -6043,7 +6043,7 @@ compute_char_face (struct frame *f, int ch, Lisp_Object prop)
6043 which a different face is needed, as far as text properties and 6043 which a different face is needed, as far as text properties and
6044 overlays are concerned. W is a window displaying current_buffer. 6044 overlays are concerned. W is a window displaying current_buffer.
6045 6045
6046 attr_filter is passed merge_face_ref. 6046 ATTR_FILTER is passed merge_face_ref.
6047 6047
6048 REGION_BEG, REGION_END delimit the region, so it can be 6048 REGION_BEG, REGION_END delimit the region, so it can be
6049 highlighted. 6049 highlighted.
@@ -6126,7 +6126,8 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos,
6126 } 6126 }
6127 6127
6128 /* Optimize common cases where we can use the default face. */ 6128 /* Optimize common cases where we can use the default face. */
6129 if (noverlays == 0 && NILP (prop)) 6129 if (noverlays == 0
6130 && NILP (prop))
6130 { 6131 {
6131 SAFE_FREE (); 6132 SAFE_FREE ();
6132 return default_face->id; 6133 return default_face->id;