[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/extend_face_id b268830 04/14: Fixed extend face fi
From: |
Jimmy Aguilar Mena |
Subject: |
[Emacs-diffs] feature/extend_face_id b268830 04/14: Fixed extend face filtered for prop. |
Date: |
Wed, 2 Oct 2019 18:01:38 -0400 (EDT) |
branch: feature/extend_face_id
commit b26883065a26e2db058df36a28a2729467f86097
Author: Jimmy Aguilar Mena <address@hidden>
Commit: Jimmy Aguilar Mena <address@hidden>
Fixed extend face filtered for prop.
---
src/xdisp.c | 13 ++++---------
src/xfaces.c | 4 ++--
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index a3f64d3..e705c85 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4149,17 +4149,12 @@ handle_fontified_prop (struct it *it)
***********************************************************************/
static enum prop_handled
-handle_face_prop_general (struct it *it,
+handle_face_prop_general (struct it *it, int *face_id_ptr,
enum lface_attribute_index attr_filter)
{
- int new_face_id, *face_id_ptr;
+ int new_face_id;
ptrdiff_t next_stop;
- if (attr_filter == LFACE_EXTEND_INDEX)
- face_id_ptr = &(it->extend_face_id);
- else
- face_id_ptr = &(it->face_id);
-
if (!STRINGP (it->string))
{
new_face_id
@@ -4313,7 +4308,7 @@ handle_face_prop_general (struct it *it,
static enum prop_handled
handle_face_prop (struct it *it)
{
- return handle_face_prop_general (it, 0);
+ return handle_face_prop_general (it, &(it->face_id), 0);
}
@@ -21497,7 +21492,7 @@ extend_face_to_end_of_line (struct it *it)
|| WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0))
return;
- handle_face_prop_general (it, LFACE_EXTEND_INDEX);
+ handle_face_prop_general (it, &(it->extend_face_id), LFACE_EXTEND_INDEX);
/* Face extension extends the background and box of IT->extend_face_id
to the end of the line. If the background equals the background
diff --git a/src/xfaces.c b/src/xfaces.c
index 189ba1e..d3851d0 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6133,11 +6133,11 @@ face_at_buffer_position (struct window *w, ptrdiff_t
pos,
}
/* Begin with attributes from the default face. */
- memcpy (attrs, default_face->lface, sizeof attrs);
+ memcpy (attrs, default_face->lface, sizeof(attrs));
/* Merge in attributes specified via text properties. */
if (!NILP (prop))
- merge_face_ref (w, f, prop, attrs, true, NULL, 0);
+ merge_face_ref (w, f, prop, attrs, true, NULL, attr_filter);
/* Now merge the overlay data. */
noverlays = sort_overlays (overlay_vec, noverlays, w);
- [Emacs-diffs] branch feature/extend_face_id created (now 567b53c), Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id dd9d569 02/14: Added face parameter :extend., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id ee66bc2 01/14: Simplify struct face to use only underline., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id f6d3055 08/14: Make hl-line face to extend all the line.., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id b795eca 07/14: Fix last change in append_space_for_newline., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id b268830 04/14: Fixed extend face filtered for prop.,
Jimmy Aguilar Mena <=
- [Emacs-diffs] feature/extend_face_id da942db 05/14: Changed handle_face_prop_general prototype., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id 825a5eb 03/14: Conditional merged face to extend after eol., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id e09586a 09/14: Added parameter attr_filter to face_at_string_position., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id d3ffc4c 12/14: Fixed merge_face_ref recursive calls., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id aa0a14d 06/14: Add space for cursor to work also in terminal., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id 29f8728 11/14: Optimization in extend_face, Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id 98278db 13/14: Document new :extend face attribute in manuals., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id fe14633 10/14: Extend_face simplify., Jimmy Aguilar Mena, 2019/10/02
- [Emacs-diffs] feature/extend_face_id 567b53c 14/14: * etc/NEWS : Added comment about :extend face attribute in NEWS., Jimmy Aguilar Mena, 2019/10/02