Discussion:
bug#43169: Emacs Lisp function list
(too old to reply)
pejas
2020-09-02 14:40:51 UTC
Permalink
Goood day,
working in a file in Lisp Interaction Mode I found an unexpected
behavior.
Here is a section from that file:
;;; section from file in Lisp Interaction Mode ===========

(list 1 2 3 4 5 6 7 8 9 10 11 12)
(1 2 3 4 5 6 7 8 9 10 11 12)

(list 1 2 3 4 5 6 7 8 9 10 11 12 13)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)
e
(list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)

;;; another context n

(setq l1 (list 1 2 3 4 5 6 7 8 9 10))
(1 2 3 4 5 6 7 8 9 10)

(setq l2 (list 11 12))
(11 12)

(setq l3 (list 11 12 13))
(11 12 13)

(append l1 l2)
(1 2 3 4 5 6 7 8 9 10 11 12)

(append l1 l3)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)

;;; End of section =========================================
I supose that it is a bug ?
I would be happy if you could send me some information
on this!
Wolfgang Pejas, Bielefeld, Germany
Eli Zaretskii
2020-09-02 17:06:46 UTC
Permalink
Date: Wed, 02 Sep 2020 16:40:51 +0200
I supose that it is a bug ?
Which part(s) of what you have shown look like a bug to you?
Alan Mackenzie
2020-09-02 17:46:55 UTC
Permalink
Grüß aus Nürnberg!
Post by pejas
Goood day,
working in a file in Lisp Interaction Mode I found an unexpected
behavior.
;;; section from file in Lisp Interaction Mode ===========
(list 1 2 3 4 5 6 7 8 9 10 11 12)
(1 2 3 4 5 6 7 8 9 10 11 12)
(list 1 2 3 4 5 6 7 8 9 10 11 12 13)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)
e
(list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)
;;; another context n
(setq l1 (list 1 2 3 4 5 6 7 8 9 10))
(1 2 3 4 5 6 7 8 9 10)
(setq l2 (list 11 12))
(11 12)
(setq l3 (list 11 12 13))
(11 12 13)
(append l1 l2)
(1 2 3 4 5 6 7 8 9 10 11 12)
(append l1 l3)
(1 2 3 4 5 6 7 8 9 10 11 12 ...)
;;; End of section =========================================
I supose that it is a bug ?
I would be happy if you could send me some information
on this!
It's not a bug, but a deliberate strategy to abbreviate long and/or
deeply nested lists. It's annoying when you see what you have seen, but
it's also annoying when four screenfuls of output scroll rapidly past
you.

The pertinent variables are print-length and print-level, which you can
set in your .emacs. Use C-h v to find out exactly what each of these
does. I have both of these variables set to nil, but that's a matter of
taste.

You might also want to have a look at eval-expression-print-length and
eval-expression-print-level.

Happy hacking!
Post by pejas
Wolfgang Pejas, Bielefeld, Germany
--
Alan Mackenzie (Nuremberg, Germany).
Continue reading on narkive:
Search results for 'bug#43169: Emacs Lisp function list' (Questions and Answers)
4
replies
what is the hacking programs & how to use it?
started 2006-12-30 03:41:38 UTC
software
Loading...