Variable: nobreak-char-ascii-display

nobreak-char-ascii-display is a variable defined in xdisp.c.

Value

nil

Documentation

Control display of non-ASCII space and hyphen chars.

If the value of this variable is nil, the default, Emacs displays non-ASCII chars which have the same appearance as an ASCII space or hyphen as themselves, with the nobreak-space or nobreak-hyphen face, respectively.

If the value is t, these characters are displayed as their ASCII counterparts: whitespace characters as ASCII space, hyphen characters as ASCII hyphen (a.k.a. "dash"), using the nobreak-space or the nobreak-hyphen face.

This variable has effect only if nobreak-char-display is t; otherwise it is ignored.

All of the non-ASCII characters in the Unicode horizontal whitespace character class, as well as U+00AD (soft hyphen), U+2010 (hyphen), and U+2011 (non-breaking hyphen) are affected.

Probably introduced at or before Emacs version 28.1.

Source Code

// Defined in /usr/src/emacs/src/xdisp.c
  DEFVAR_BOOL ("nobreak-char-ascii-display", nobreak_char_ascii_display,
    doc: /* Control display of non-ASCII space and hyphen chars.
If the value of this variable is nil, the default, Emacs displays
non-ASCII chars which have the same appearance as an ASCII space
or hyphen as themselves, with the `nobreak-space' or `nobreak-hyphen'
face, respectively.

If the value is t, these characters are displayed as their ASCII
counterparts: whitespace characters as ASCII space, hyphen characters
as ASCII hyphen (a.k.a. \"dash\"), using the `nobreak-space' or
the `nobreak-hyphen' face.

This variable has effect only if `nobreak-char-display' is t;
otherwise it is ignored.

All of the non-ASCII characters in the Unicode horizontal whitespace
character class, as well as U+00AD (soft hyphen), U+2010 (hyphen), and
U+2011 (non-breaking hyphen) are affected.  */);