Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
17d6c69d
Commit
17d6c69d
authored
Nov 03, 2007
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(handle_face_prop): Use face_at_buffer_position_no_overlays
to get the base face for an overlay string.
parent
490943fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
8 deletions
+30
-8
src/ChangeLog
src/ChangeLog
+7
-0
src/xdisp.c
src/xdisp.c
+23
-8
No files found.
src/ChangeLog
View file @
17d6c69d
2007-11-03 Richard Stallman <rms@gnu.org>
* xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
to get the base face for an overlay string.
* dispextern.h (face_at_buffer_position_no_overlays): Add decl.
* xfaces.c (face_at_buffer_position_no_overlays): New function.
* xdisp.c (handle_stop): Move some code out of loop.
2007-11-01 Johan Bockg,Ae(Brd <bojohan@gnu.org>
...
...
src/xdisp.c
View file @
17d6c69d
...
...
@@ -3367,16 +3367,31 @@ handle_face_prop (it)
int base_face_id, bufpos;
if (it->current.overlay_string_index >= 0)
bufpos = IT_CHARPOS (*it);
{
bufpos = IT_CHARPOS (*it);
/* For an overlay face, the base face depends
only on text properties and ignores overlays. */
base_face_id
= face_at_buffer_position_no_overlays (it->w,
IT_CHARPOS (*it),
it->region_beg_charpos,
it->region_end_charpos,
&next_stop,
(IT_CHARPOS (*it)
+ TEXT_PROP_DISTANCE_LIMIT),
0);
}
else
bufpos = 0;
{
bufpos = 0;
/* For strings from a buffer, i.e. overlay strings or strings
from a `display' property, use the face at IT's current
buffer position as the base face to merge with, so that
overlay strings appear in the same face as surrounding
text, unless they specify their own faces. */
base_face_id = underlying_face_id (it);
/* For strings from a `display' property, use the face at
IT's current buffer position as the base face to merge
with, so that overlay strings appear in the same face as
surrounding text, unless they specify their own
faces. */
base_face_id = underlying_face_id (it);
}
new_face_id = face_at_string_position (it->w,
it->string,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment