Variable: word-wrap-whitespace-characters

word-wrap-whitespace-characters is a customizable variable defined in word-wrap-mode.el.gz.

Value

(5760 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8287 12288 8203)

Documentation

Characters that word-wrap-whitespace-mode(var)/word-wrap-whitespace-mode(fun) should add to word-wrap.

This variable was added, or its default value changed, in Emacs 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/word-wrap-mode.el.gz
;;; word-wrap-mode.el --- minor mode for `word-wrap' tweaks  -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Free Software Foundation, Inc.

;; Maintainer: emacs-devel@gnu.org

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;;; Code:

;; The list below lists all characters that have a general-category of
;; Zs, but with the ones we don't want to add here commented out.
(defcustom word-wrap-whitespace-characters
  '(;;?\N{SPACE}
    ;;?\N{NO-BREAK SPACE}
    ?\N{OGHAM SPACE MARK}
    ?\N{EN QUAD}
    ?\N{EM QUAD}
    ?\N{EN SPACE}
    ?\N{EM SPACE}
    ?\N{THREE-PER-EM SPACE}
    ?\N{FOUR-PER-EM SPACE}
    ?\N{SIX-PER-EM SPACE}
    ?\N{FIGURE SPACE}
    ?\N{PUNCTUATION SPACE}
    ?\N{THIN SPACE}
    ?\N{HAIR SPACE}
    ;;?\N{NARROW NO-BREAK SPACE}
    ?\N{MEDIUM MATHEMATICAL SPACE}
    ?\N{IDEOGRAPHIC SPACE}
    ;; Not in the Zs category:
    ?\N{ZERO WIDTH SPACE})
  "Characters that `word-wrap-whitespace-mode' should add to `word-wrap'."
  :version "29.1"
  :type '(repeat character)
  :group 'display)