Variable: calc-string-maximum-character

calc-string-maximum-character is a customizable variable defined in calc.el.gz.

Value

255

Documentation

Maximum value of vector contents to be displayed as a string.

If a vector consists of characters up to this maximum value, the function calc-display-strings(var)/calc-display-strings(fun) will toggle displaying the vector as a string. This maximum value must represent a character (see characterp). Some natural choices (and their resulting ranges) are:

- 0x7F (ASCII),
- 0xFF (Latin-1, the default),
- 0x10FFFF (Unicode),
- 0x3FFFFF (Emacs).

Characters for low control codes are either caret or backslash escaped, while others without a glyph are displayed in backslash-octal notation. The display of strings containing higher character codes will depend on your display settings and system font coverage.

See the following for further information:

- info node (calc)Strings,
- info node (elisp)Text Representations,
- info node (emacs)Text Display.

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

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc.el.gz
(defcustom calc-string-maximum-character #xFF
  "Maximum value of vector contents to be displayed as a string.

If a vector consists of characters up to this maximum value, the
function `calc-display-strings' will toggle displaying the vector as a
string.  This maximum value must represent a character (see `characterp').
Some natural choices (and their resulting ranges) are:

- `0x7F'     (`ASCII'),
- `0xFF'     (`Latin-1', the default),
- `0x10FFFF' (`Unicode'),
- `0x3FFFFF' (`Emacs').

Characters for low control codes are either caret or backslash escaped,
while others without a glyph are displayed in backslash-octal notation.
The display of strings containing higher character codes will depend on
your display settings and system font coverage.

See the following for further information:

- info node `(calc)Strings',
- info node `(elisp)Text Representations',
- info node `(emacs)Text Display'."
  :version "31.1"
  :type '(choice (restricted-sexp :tag "Character Code"
                                  :match-alternatives (characterp))
                 (const :tag "ASCII"   #x7F)
                 (const :tag "Latin-1" #xFF)
                 (const :tag "Unicode" #x10FFFF)
                 (const :tag "Emacs"   #x3FFFFF)))