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 15:23:21 +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="14594"; 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 15:31:08 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 1kme1E-0003iH-Io for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 15:31:08 +0100 Original-Received: from localhost ([::1]:43548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kme1D-0007Wm-8i for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 09:31:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmdtm-00041g-FP for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 09:23:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:48629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmdtk-0005fe-GI for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 09:23:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607437401; bh=k3vrMSaQ1A19v19zQUTUDep74vQhnTyfXHqOqN7W9yY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Rq8iD4Uq5yPoTRv18qsBwcFRsOEfDfQbTIoJMGC4WqAA++0XpfcFQPMPTou7Q3ztD TEyLPdcRhc8QC/hF2fuRCPdSBneV+x6PAcgffS4o24/BNXfOwDrDH/LD9aPiNqoCeH foziGvtUC8fLBwA0W0irY4ud1DLFHkvr8U+L3A1Q= 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 15:23:21 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:86GsJkdyME1W0J6xqqwQv81pbOpIfMbEX+pGcnvYjgoraBI5Rq7TYdQQl3QcJQgUjZpiV PunJcrSyn0T3afBlRlhRcrYWwxkhaBNCXZedI4nNgPUTaRPjNK8xOwu2aVO6AVF75yeJWduhQmjn p8cQ5JnGA/mqh+E715bMLhMuGMdnFvuQZ0d6nF4UJigaCrJiWrj7HvWQ8s7ju9fGPRQQ/qdD3FCs 2LgGVRv6GML22cr6SDnrI5obUuY5fHx7J3GtMqbRx2otoID8H3Bb3yhsGIxneqV58k2EIaNIqfED K4= X-UI-Out-Filterresults: notjunk:1;V03:K0:ej/Ayp0GLMA=:1W47PgTLSzE7DoLnxzt9c1 h8N+5RH3HqR89l7PneuhXssvGPFLP8SwJvvlcnofzImB8BnfqApLlpK7kf6DI6SzLly+OKiBt ZaAmpu8qJXxlaCb13UnkQxDwhurPuXO9FicCRL5uvMX5ffLaexKczJfRcTp4sZu6d1o0Umfg/ LQ1VStV+tff6TlV4TPl6Jff2MviiEVkKRyoU2udvNf+0LsU8nOryPiiG99ew8GKgqQ7pxuV4y ZTrnlJILWzwTCrTZm+uGI4FLcxH0xCR+YIZBtXtGiKk8CscQOtjQDYqyhDblmPPmrMNK5Fb6P Fqaj0R5fxUvyKJ8ZxDaLohjzhDSv/YOQhKiUXKNYCDJfIy04xQ5iR2sSYjtBOYr7SIdKydFvl FcQuZyGPlTN6vq7Quc6nMuAoQYsU/PAl6DqtcN3RIawEMIWNoUMrPDzH1flxEJc4Uph4uzCvT Rd4MI3gGCKHu5bzLHleqwpFyVcQsMJaIvNHM9NMS4KqVGW6B28/RXHZju4t4PwlUVAlJ/mGeJ aYzx3b8CWrX4a1GxTDv00DDer4e4tSmrtZK0G3lK2mNL1t7PP+1/GoUpwBsm2ItSML/+he6Bj GHrxO343sAQK0= Received-SPF: pass client-ip=212.227.17.22; 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:126180 Archived-At: When using=20 (message "\nBounds: %s | $ma $mb [%s,%s] |" (replace-regexp-in-string "\n+$" "" (pp bounds)) $ma $mb) I get -------- result -------- (78 =2E 84) Bounds: (78 =2E 84) | $ma $mb [78,84] | ------ result -------- > 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 >=20 > --=20 > Stefan >=20 >