[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Messages - Avoiding newlines
From: |
Stefan Möding |
Subject: |
Re: Messages - Avoiding newlines |
Date: |
Tue, 08 Dec 2020 14:29:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
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?
You could remove the trailing newlines returned by pp:
(message "Bounds: %s [%s, %s]"
(replace-regexp-in-string "\n+$" "" (pp bounds)) $ma $mb)
pp (Pretty Print) is meant to be used interactively so the newline make
sense when showing the output on a terminal.
--
Stefan