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
Open sidebar
emacs
emacs
Commits
376b0e59
Commit
376b0e59
authored
Feb 24, 1995
by
Richard M. Stallman
Browse files
(display_string, display_text_line):
Display table overrides ordinary display even for \t, \n, etc.
parent
fd46fd17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
src/xdisp.c
src/xdisp.c
+17
-18
No files found.
src/xdisp.c
View file @
376b0e59
...
...
@@ -2540,8 +2540,15 @@ display_text_line (w, start, vpos, hpos, taboffset)
p = &FETCH_CHAR (pos);
}
c = *p++;
if (c >= 040 && c < 0177
&& (dp == 0 || !VECTORP (DISP_CHAR_VECTOR (dp, c))))
/* Let a display table override all standard display methods. */
if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
{
p1 = copy_part_of_rope (f, p1, leftmargin,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->contents,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->size,
current_face);
}
else if (c >= 040 && c < 0177)
{
if (p1 >= leftmargin)
*p1 = MAKE_GLYPH (f, c, current_face);
...
...
@@ -2617,13 +2624,6 @@ display_text_line (w, start, vpos, hpos, taboffset)
#endif
break;
}
else if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
{
p1 = copy_part_of_rope (f, p1, leftmargin,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->contents,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->size,
current_face);
}
else if (c < 0200 && ctl_arrow)
{
if (p1 >= leftmargin)
...
...
@@ -3734,8 +3734,14 @@ display_string (w, vpos, string, length, hpos, truncate,
else if (c == 0)
break;
if (c >= 040 && c < 0177
&& (dp == 0 || !VECTORP (DISP_CHAR_VECTOR (dp, c))))
if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
{
p1 = copy_part_of_rope (f, p1, start,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->contents,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->size,
0);
}
else if (c >= 040 && c < 0177)
{
if (p1 >= start)
*p1 = c;
...
...
@@ -3751,13 +3757,6 @@ display_string (w, vpos, string, length, hpos, truncate,
}
while ((p1 - start + hscroll - (hscroll > 0)) % tab_width);
}
else if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
{
p1 = copy_part_of_rope (f, p1, start,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->contents,
XVECTOR (DISP_CHAR_VECTOR (dp, c))->size,
0);
}
else if (c < 0200 && ! NILP (buffer_defaults.ctl_arrow))
{
if (p1 >= start)
...
...
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