Files
emacs/doc/misc
Jacob S. Gordon 5bd9fa084d calc: Allow strings with character codes above Latin-1
The current behavior of the functions 'calc-display-strings',
'strings', and 'bstrings' is to skip any vector containing
integers outside the Latin-1 range (0x00-0xFF).  We introduce a
custom variable 'calc-string-maximum-character' to replace this
hard-coded maximum, and to allow vectors containing higher
character codes to be displayed as strings.  The default value
of 0xFF preserves the existing behavior.

* lisp/calc/calc.el (calc-string-maximum-character): Add custom
variable 'calc-string-maximum-character'.
* lisp/calc/calccomp.el (math-vector-is-string): Replace hard-coded
maximum with 'calc-string-maximum-character', and the 'natnump'
assertion with 'characterp'.  The latter guards against the
maximum being larger than '(max-char)', but not on invalid types of
the maximum such as strings.

* test/lisp/calc/calc-tests.el (calc-math-vector-is-string): Add
tests for 'math-vector-is-string' using different values of
'calc-string-maximum-character'.

* doc/misc/calc.texi (Quick Calculator, Strings, Customizing Calc):
Add variable definition for 'calc-string-maximum-character' and
reference thereof when discussing 'calc-display-strings'.
Generalize a comment about string display and availability of 8-bit
fonts.
(Bug#78528)
2025-06-14 17:07:19 +03:00
..
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-29 08:54:30 -04:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-21 20:56:12 -04:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-05-03 06:26:31 -04:00
2025-01-25 10:06:19 -05:00
2025-04-28 03:05:41 +03:00
2025-01-02 18:39:42 +01:00
2025-01-25 10:06:19 -05:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-15 10:52:45 +02:00
2025-01-02 18:39:42 +01:00
2025-04-05 07:07:29 -04:00
2025-01-02 18:39:42 +01:00
2025-05-24 06:55:24 -04:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-25 10:06:19 -05:00