* lisp/emacs-lisp/pp.el (pp--format-function): Fix up multi-line
expressions.
;; Get the first entries on the first line.
(if indent
(pp--format-definition sexp indent edebug)
- (while sexp
- (pp--insert " " (pop sexp))))
+ (let ((prev 0))
+ (while sexp
+ (let ((start (point)))
+ ;; Don't put sexps on the same line as a multi-line sexp
+ ;; preceding it.
+ (pp--insert (if (> prev 1) "\n" " ")
+ (pop sexp))
+ (setq prev (count-lines start (point)))))))
(insert ")")))
(defun pp--format-definition (sexp indent edebug)
(let ((a 1)
(b 2))
(zot-zot-zot-zot-zot-zot 1 2 (funcall
- bar-bar-bar-bar-bar-bar-bar-bar-bar-bar 2))))
+ bar-bar-bar-bar-bar-bar-bar-bar-bar-bar
+ 2))))
=-=-=
(interactive)
1)
=-=-=
+
+
+Name: code-formats10
+
+=-=
+(funcall foo (concat "zot" (if (length> site 0) site
+ "bar")
+ "+"
+ (string-replace " " "+" query)))
+=-=-=