aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-08-27 10:50:57 +0300
committerEli Zaretskii2022-08-27 10:50:57 +0300
commit3fb69fad492dd40279cf29c4d417cc86a8018cc7 (patch)
tree530e06a8140acfc6239f556f1509b88de4b71d27 /src
parente3b85775252adbe3135580df321cbd69eb2f2bf1 (diff)
downloademacs-3fb69fad492dd40279cf29c4d417cc86a8018cc7.tar.gz
emacs-3fb69fad492dd40279cf29c4d417cc86a8018cc7.zip
Fix documentation of 'glyphless-char-display'
* src/xdisp.c (syms_of_xdisp)<glyphless-char-display>: Doc fix. (gui_produce_glyphs, lookup_glyphless_char_display): Fix indentation.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 9740e6b590e..a4881c48350 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7408,8 +7408,8 @@ lookup_glyphless_char_display (int c, struct it *it)
7408 if (c >= 0) 7408 if (c >= 0)
7409 { 7409 {
7410 glyphless_method = CHAR_TABLE_REF (Vglyphless_char_display, c); 7410 glyphless_method = CHAR_TABLE_REF (Vglyphless_char_display, c);
7411 if (CONSP (glyphless_method)) 7411 if (CONSP (glyphless_method))
7412 glyphless_method = FRAME_WINDOW_P (it->f) 7412 glyphless_method = FRAME_WINDOW_P (it->f)
7413 ? XCAR (glyphless_method) 7413 ? XCAR (glyphless_method)
7414 : XCDR (glyphless_method); 7414 : XCDR (glyphless_method);
7415 } 7415 }
@@ -30546,9 +30546,9 @@ gui_produce_glyphs (struct it *it)
30546 /* When no suitable font is found, display this character by 30546 /* When no suitable font is found, display this character by
30547 the method specified in the first extra slot of 30547 the method specified in the first extra slot of
30548 Vglyphless_char_display. */ 30548 Vglyphless_char_display. */
30549 Lisp_Object acronym = lookup_glyphless_char_display (-1, it); 30549 Lisp_Object acronym = lookup_glyphless_char_display (-1, it);
30550 30550
30551 eassert (it->what == IT_GLYPHLESS); 30551 eassert (it->what == IT_GLYPHLESS);
30552 produce_glyphless_glyph (it, true, 30552 produce_glyphless_glyph (it, true,
30553 STRINGP (acronym) ? acronym : Qnil); 30553 STRINGP (acronym) ? acronym : Qnil);
30554 goto done; 30554 goto done;
@@ -35821,14 +35821,15 @@ Each element, if non-nil, should be one of the following:
35821 `empty-box': display as an empty box 35821 `empty-box': display as an empty box
35822 `thin-space': display as 1-pixel width space 35822 `thin-space': display as 1-pixel width space
35823 `zero-width': don't display 35823 `zero-width': don't display
35824Any other value is interpreted as `empty-box'.
35824An element may also be a cons cell (GRAPHICAL . TEXT), which specifies the 35825An element may also be a cons cell (GRAPHICAL . TEXT), which specifies the
35825display method for graphical terminals and text terminals respectively. 35826display method for graphical terminals and text terminals respectively.
35826GRAPHICAL and TEXT should each have one of the values listed above. 35827GRAPHICAL and TEXT should each have one of the values listed above.
35827 35828
35828The char-table has one extra slot to control the display of a character for 35829The char-table has one extra slot to control the display of characters for
35829which no font is found. This slot only takes effect on graphical terminals. 35830which no font is found on graphical terminals, and characters that cannot
35830Its value should be an ASCII acronym string, `hex-code', `empty-box', or 35831be displayed by text-mode terminals. Its value should be an ASCII acronym
35831`thin-space'. The default is `empty-box'. 35832string, `hex-code', `empty-box', or `thin-space'. The default is `hex-code'.
35832 35833
35833If a character has a non-nil entry in an active display table, the 35834If a character has a non-nil entry in an active display table, the
35834display table takes effect; in this case, Emacs does not consult 35835display table takes effect; in this case, Emacs does not consult