unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31984: 26.1.50; IELM doesn't indent results printed with #
@ 2018-06-26 19:42 Gemini Lasswell
  2018-06-28  2:01 ` Noam Postavsky
  2018-07-26 11:49 ` Davor Rotim
  0 siblings, 2 replies; 7+ messages in thread
From: Gemini Lasswell @ 2018-06-26 19:42 UTC (permalink / raw)
  To: 31984

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)





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-28  0:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-26 19:42 bug#31984: 26.1.50; IELM doesn't indent results printed with # Gemini Lasswell
2018-06-28  2:01 ` Noam Postavsky
2018-07-19 11:16   ` Noam Postavsky
2018-07-19 19:01     ` Gemini Lasswell
2018-07-22  1:30       ` Noam Postavsky
2018-07-26 11:49 ` Davor Rotim
2018-07-28  0:15   ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).