From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Messages - Avoiding newlines Date: Tue, 8 Dec 2020 14:47:40 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: =?UTF-8?Q?Stefan_M=C3=B6ding?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 14:53:46 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmdR3-000AX7-Jc for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 14:53:45 +0100 Original-Received: from localhost ([::1]:43026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmdR2-00080z-G3 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 08:53:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmdLG-0006Ug-Kf for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 08:47:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:50949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmdLE-0001m4-Lz for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 08:47:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607435261; bh=JeeHwpWpF2tQxzR8YRBg418Z7reHf63Sb7RvI6dVJb4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZZnfSlYyEO8TqeEJqR4Xur4zoFyQ1U1C2Z0fTkQeB4h2jSv5p4mAyKBCVgxvGkxsW hlsD2onq6n+bNHRkEMYXMMcXJ6FGGjzdyN+Xw76qNKimvqlzfqAqpeCYpfhx84amPT l6tqcjVuW8Xd2o2zQS6iS3K4Yz2pOqR2flCpDFJ8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Tue, 8 Dec 2020 14:47:40 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hCIU/LrwoP35sFvNiyn3YHXmoGL5jNz03JKZJIfJnwUCCQJZO3mCSrtBJx4W+gtW6GQTQ F3O6fLVCLWqJr3VtuX/BIoQfefNKktZNwj7f67ifbKyBBd66yzGBO9kC17GzZhgFhQC17i2BOg/1 tOaC+xfb5XCct6KYDh1iqK4h7qgxVsObBs2TgRwdDjNNN+z5lI5T/dLNfJtXtC++ldJcJqbO8ddd X9iKacvKnbYkiLFH/jxDCJrKrhkoPWZcXU60ZBamo9qwOJHfzYKIfs+G/caeHhKfEZWYpCRUMKM4 hg= X-UI-Out-Filterresults: notjunk:1;V03:K0:N1P1vr4NaCM=:3s7olMM7MJjwppReizC/Xw I0aF0Nu5lXUvW2X/NvBgYrhL2JqXlPjtnMM0ilkcOd6wjnHS1KBwzNHkW6wO8ryzvxP7zM61l s+u2frpwX2p9q767Ee3xOaB6cPWJ2uP70RoUcdcmqFYvVIWezPC1Xz2Q+1Jjo5XsS9rJttt9w sPDeI3nCfCLYynNQo+vt+u+9uFteWbbwUCMpcVqG+H8JcWT3K+7LlZiOB8XbPZ+jmDy/zQyrd dKWlqdCfR6+gk9iWyXONEpujaVom2cpTmJ3poHtLcXzJwK7WKuPch8aTLul4cGzVVRuXPCQ4r uM9Xwmcbv6o8OHPx+37mT0qyjXafx7mxLY+B7RtaOi1gUf65wrzYdsblTD1VxyJFgXsq1CDIy j2vJE1bO2szdt8VgDeJ8wu3Xxl5cxTp3SEcRfcOJwhgzoTTSZYYw63C7mgytIGXm8MEPPFXzt v/yS/f0tQr+yd4/F0yfX7cld5z01bSxft/h7GNjWwluXL9/z8aGo5vq8NhdehUugRWGLtAxtT jJV6+r/mHR+AlU9iEW5oCvDh0jT/oL6XDqKbVVjn54DyoEXXfcBKKC42EjtePJci+DjOIgi7Z JA+9bZTyuVN/8= Received-SPF: pass client-ip=212.227.15.18; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126179 Archived-At: > Sent: Tuesday, December 08, 2020 at 2:29 PM > From: "Stefan M=C3=B6ding" > To: help-gnu-emacs@gnu=2Eorg > Subject: Re: Messages - Avoiding newlines > > pietru@caramail=2Ecom writes: >=20 > > I would like to print some values but I am getting a new-line > > after (pp bounds)=2E Haw may I avoid it? >=20 > You could remove the trailing newlines returned by pp: >=20 > (message "Bounds: %s [%s, %s]" > (replace-regexp-in-string "\n+$" "" (pp bounds)) $ma $mb) >=20 > pp (Pretty Print) is meant to be used interactively so the newline make > sense when showing the output on a terminal=2E Thusly I can simply use=20 (message "Bounds: %s %s %s" bounds $ma $mb) =20 > --=20 > Stefan >=20 >