GNU bug report logs -
#16828
24.3.50; eval-expression, character representation of integer results time-consuming
Previous Next
Reported by: Anders Lindgren <andlind <at> gmail.com>
Date: Fri, 21 Feb 2014 10:02:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 19023,
21131,
23930
Found in versions 24.3.50, 24.4, 25.0.95
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> I would suggest to also mention eval-expression here.
Right, I also noticed eval-expression-print-format's docstring refers to
`prin1' which seems to be wrong.
(defcustom eval-expression-print-maximum-character 127
"The largest integer that will be displayed as a character.
-This affects printing by `eval-expression-print-format'."
+This affects printing by `eval-expression' (via
+`eval-expression-print-format')."
:group 'lisp
:type 'integer
:version "26.1")
(defun eval-expression-print-format (value)
"If VALUE in an integer, return a specially formatted string.
This string will typically look like \" (#o1, #x1, ?\\C-a)\".
If VALUE is not an integer, nil is returned.
-This function is used by functions like `prin1' that display the
-result of expression evaluation."
+This function is used by commands like `eval-expression' that
+display the result of expression evaluation."
>> +(octal, hexadecimal, and character if
>> +@code{eval-expression-print-maximum-character} allows it).
>
> Please add a "see below" here, as the description of the variable is
> several dozens of lines farther.
Right. Is it okay to have nested parentheses? I use this quite often
when I write emails and such, but I have the idea it might be frowned
upon in more formal contexts.
+@code{eval-expression-print-maximum-character} (see below) allows it).
>
> This is too terse, IMO; please state explicitly that values larger
> than this will not be displayed as characters.
Yeah, I have a tendency to be overly terse.
+@code{eval-expression-print-maximum-character} prevents integers which
+are larger than it from being displayed as characters.
[v3-0002-Limit-integers-printed-as-characters-Bug-16828.patch (text/plain, attachment)]
This bug report was last modified 8 years and 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.