help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Messages - Avoiding newlines


From: Michael Heerdegen
Subject: Re: Messages - Avoiding newlines
Date: Tue, 08 Dec 2020 16:32:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

pietru@caramail.com writes:

> I would like to print some values but I am getting a new-line
> after (pp bounds).  Haw may I avoid it?
>
> (message "Bounds: %s [%s, %s]" (pp bounds) $ma $mb)

`pp' prints the output by itself.  You want `pp-to-string' when you want
to use the result(s) in `message'.  But yes: for simple values using
`pp' doesn't make a difference.  All it does is more or less adding some
newlines to make large structures more readable.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]