GNU bug report logs -
#31984
26.1; indent-sexp doesn't indent expressions starting with #
Previous Next
Reported by: Gemini Lasswell <gazally <at> runbox.com>
Date: Tue, 26 Jun 2018 19:44:01 UTC
Severity: minor
Tags: confirmed, fixed, patch
Found in versions 26.1, 26.1.50
Fixed in version 26.2
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
When the result of evaluation in IELM is something with a printed
representation beginning with #, such as a record or char-table,
it is pretty-printed without indentation.
To reproduce, M-x ielm RET and then evaluate this:
(require 'cl-lib)
(cl-defstruct (foo) a)
(make-foo :a (lambda (x) (- 1 x)))
Result:
#s(foo :a
(lambda
(x)
(- 1 x)))
If you do the same thing in Emacs 25, this is the result:
[cl-struct-foo
(lambda
(x)
(- 1 x))]
Here are two other examples which when evaluated in IELM print
results without indentation in Emacs 26 and with indentation in Emacs 25:
char-acronym-table
(let ((ht (make-hash-table)))
(puthash 1 '(a b c) ht)
ht)
Oddly, Emacs 26's IELM does indent the result of this one:
(symbol-function 'ielm-process)
This bug report was last modified 6 years and 296 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.