From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Stefan_M=C3=B6ding?= Newsgroups: gmane.emacs.help Subject: Re: Messages - Avoiding newlines Date: Tue, 08 Dec 2020 14:29:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15087"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 14:30:17 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 1kmd4L-0003q4-M2 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 14:30:17 +0100 Original-Received: from localhost ([::1]:54350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmd4K-00005s-KO for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 08:30:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmd3Z-00005h-O7 for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 08:29:29 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:36660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmd3U-0003Wo-Gn for help-gnu-emacs@gnu.org; Tue, 08 Dec 2020 08:29:29 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id t16so936733wra.3 for ; Tue, 08 Dec 2020 05:29:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version; bh=r+CesTXRF+gd31ivZFowCgdWUjzyo5FUYN8NoEt7Itk=; b=mvgRXTGCESSr55Bu8g5te9s4mGzQR+9JkqxtPZ2dwW+fnU2sBQ+RC0F5wSnEikxOBp ezjpQOAy+ioJb+AiemUDMUH1fbhdIlUzsfiuo7OOnA4YSXBA/03REXome9O8c7UFcBZt HPkGPZSm7hdp150hG7LqPSBG08CrtmMOPbVNpseXRzDq+Zx4Sljnlmn8wrTmbDiOOq6P XFMHgCB6galAfM5Fi/hy5WZmgdNIe2BMiAbv4n/UhijpR/BxUQnhCI9XKZUvqjxsNbys KzRaKRuyeubiWB5+r/6rV78bD/I/jkdnvxPWEcn2RA9DvmFXExOavur0wkSPxi+CSHAu 0V7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=r+CesTXRF+gd31ivZFowCgdWUjzyo5FUYN8NoEt7Itk=; b=i2VSxX3Zwss6oe/mQFdIzOj3/5HWFuyuWACkrGbqf6TLGGHrkApm5+L7JDIt3vU/mP gWDOViye3A4j7QpSkUQjeBULuZxMn5YFhvGSoUIcBqk158a8TVQiKp8d+dUSc4MUwdbD 1uDleIVE/fd3ly5CGHZnwt+djSK/gij6lFQnLb5BDfGN7vOedq4NIY+vWis1vdQqVYbB zqkaK/zAVmQvet3sawKlC7OIGfszbm5Gnwo0HxwsgJxsm0jvXUlX4u9gxKF5Zil+kQtB E0wr2NuxBe9Afl9yL11sDQ9QLQ+LvyAcOuLowUxiGwYloP+7+jvoSVjbhGe6vTLfpBWY ftZg== X-Gm-Message-State: AOAM530xfk8qsTAina8fWwG1oltK/hJy386l4hI5A/VG4svtLUE23lNw 4vAbd042vnPtcWXwmsnKaxJkUV54T0o= X-Google-Smtp-Source: ABdhPJyU+Tq4NCjxySJpLI3AY0RF9oAMhOa1A8B6eUaI1zs8m24SSH/16BA5hyiElH/XwTRfIvMWGg== X-Received: by 2002:a5d:5710:: with SMTP id a16mr25582322wrv.229.1607434162284; Tue, 08 Dec 2020 05:29:22 -0800 (PST) Original-Received: from athena.moeding.net (ip-176-199-80-138.hsi06.unitymediagroup.de. [176.199.80.138]) by smtp.gmail.com with ESMTPSA id k18sm8085109wrd.45.2020.12.08.05.29.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 05:29:21 -0800 (PST) In-Reply-To: (pietru@caramail.com's message of "Tue, 8 Dec 2020 13:51:51 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=s.moeding@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:126177 Archived-At: 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