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
6df99033
Commit
6df99033
authored
Dec 21, 2004
by
Richard M. Stallman
Browse files
(get_next_display_element): Display codes 8a0 and 8ad
specially as `\ ' and `\-'.
parent
85e7f477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
src/xdisp.c
src/xdisp.c
+18
-1
No files found.
src/xdisp.c
View file @
6df99033
...
...
@@ -4915,7 +4915,9 @@ get_next_display_element (it)
|| (it->multibyte_p
? ((it->c >= 127
&& it->len == 1)
|| !CHAR_PRINTABLE_P (it->c))
|| !CHAR_PRINTABLE_P (it->c)
|| it->c == 0x8ad
|| it->c == 0x8a0)
: (it->c >= 127
&& (!unibyte_display_via_language_environment
|| it->c == unibyte_char_to_multibyte (it->c)))))
...
...
@@ -4958,6 +4960,21 @@ get_next_display_element (it)
XSETINT (it->ctl_chars[1], g);
ctl_len = 2;
}
else if (it->c == 0x8a0 || it->c == 0x8ad)
{
/* Set IT->ctl_chars[0] to the glyph for `\\'. */
if (it->dp
&& INTEGERP (DISP_ESCAPE_GLYPH (it->dp))
&& GLYPH_CHAR_VALID_P (XINT (DISP_ESCAPE_GLYPH (it->dp))))
g = XINT (DISP_ESCAPE_GLYPH (it->dp));
else
g = FAST_MAKE_GLYPH ('\\', face_id);
XSETINT (it->ctl_chars[0], g);
g = FAST_MAKE_GLYPH (it->c == 0x8ad ? '-' : ' ', face_id);
XSETINT (it->ctl_chars[1], g);
ctl_len = 2;
}
else
{
unsigned char str[MAX_MULTIBYTE_LENGTH];
...
...
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