mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Don't bug out on improper lists in pp-emacs-lisp-code
* lisp/emacs-lisp/pp.el (pp--format-list): Don't bug out on improper lists (bug#52917).
This commit is contained in:
parent
ad3971f885
commit
f43b8f3831
@ -273,7 +273,10 @@ Use the `pp-max-width' variable to control the desired line length."
|
||||
(insert "(")
|
||||
(pp--insert start (pop sexp))
|
||||
(while sexp
|
||||
(pp--insert " " (pop sexp)))
|
||||
(if (consp sexp)
|
||||
(pp--insert " " (pop sexp))
|
||||
(pp--insert " . " sexp)
|
||||
(setq sexp nil)))
|
||||
(insert ")")))
|
||||
|
||||
(defun pp--format-function (sexp)
|
||||
|
Loading…
Reference in New Issue
Block a user