From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: prin1 / princ vs message ? Date: Sun, 2 Jul 2017 09:17:35 -0400 Message-ID: References: <061782A1-0A51-49A1-9AA4-706AF8927D01@gmail.com> <94EF128F-6A3D-41DD-B92D-0C165A4A8EB9@gmail.com> <617557F2-0316-4504-BE80-E7F29E4EE347@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1499001511 22906 195.159.176.226 (2 Jul 2017 13:18:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 13:18:31 +0000 (UTC) Cc: Emacs developers To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 15:18:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRelV-0005Fp-1H for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 15:18:17 +0200 Original-Received: from localhost ([::1]:58044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRela-0006ot-Bi for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 09:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRekr-0006nV-AH for emacs-devel@gnu.org; Sun, 02 Jul 2017 09:17:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRekq-0008S2-IU for emacs-devel@gnu.org; Sun, 02 Jul 2017 09:17:37 -0400 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:33308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRekq-0008RR-Bn for emacs-devel@gnu.org; Sun, 02 Jul 2017 09:17:36 -0400 Original-Received: by mail-oi0-x22d.google.com with SMTP id p188so65617458oia.0 for ; Sun, 02 Jul 2017 06:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eUGoMRl6XFBRCmEaBmjbhMaAskdd8A6X2kcdhJNBGYY=; b=laXWlxNKLekpe/BIDwNSQkl4v/3YdXEJ/v4UgM6IFlGmk4BVvEB4Hzih+NYJ8u/nW3 NE9A5Rln1DkFgHKcK6rui3Fb6ump3SD6MviG5evw9LWWX8fer1eiu5pa6pbBq8g4CAW4 yAfezHSEiThrBylZb1/ctOQqtZS74gaKhdOsSYCts0lN3NJXSfHlVks2dFAbF/DZQS9Y dcZcV/odvPRgZXxBYz8kR7FtNabv3zXlN1oblrlOugHAD9wKJHW8un0GAQTcTZGPaIX9 9XG/UE7b9Y2Iw2iOVdEjBI7NgpPfXbtAb4eX8aCeHPgCw/lom1bJCrvdcJGi3sM1DrF2 QkOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eUGoMRl6XFBRCmEaBmjbhMaAskdd8A6X2kcdhJNBGYY=; b=G2kQUKE89tIJZ3fDdik9xyEHTAxCFylqzfvSYSYmmZ4OV1J3/2eFAI1mzWqymAeYg+ bZ/FJOU1NuW6GTlNkDfaVcviAa8lBzJNmqtx2IAk5GyRAPKcajHFg07Qpr5IdTGsmyQ5 mI13sSfoB+SyUQBH2rxj/y+yrmTM0UevJK4Rft/vAtMtp2qN2bNkas9nfibubBoj1gj4 t+diViOUI9n/0Wom0zk2zm9sknzmJjFuIpPERbE5H7PSmFza9ETO58UdFL+em84GaQb0 JdJ2dHjAKg6XIxAtLt1WEbSw0OxlhOlIg9zHt0igupLgmTBatGc/q+LxbkyHG3z9HQzk qu+Q== X-Gm-Message-State: AIVw11125wPQuTFto4POYpKt6kPLBb/CCIEIZObSjmXZcFKRPJI4sa7s hS0Hb4u+U0SNxOnkUGGp70ENC0fkuw== X-Received: by 10.202.92.139 with SMTP id q133mr3575935oib.206.1499001455641; Sun, 02 Jul 2017 06:17:35 -0700 (PDT) Original-Received: by 10.74.113.91 with HTTP; Sun, 2 Jul 2017 06:17:35 -0700 (PDT) In-Reply-To: <617557F2-0316-4504-BE80-E7F29E4EE347@gmail.com> X-Google-Sender-Auth: E4D1T1-1JEGO7ojYSidiWr6mkXM X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216096 Archived-At: On Sun, Jul 2, 2017 at 9:09 AM, Jean-Christophe Helary wrote: > (let ((sentence (format "My name is %s.\n\n))) > (prin1 sentence)) That looks nicer yes, but your example mixes between prin1 and princ (so the output of each piece of code is slightly different), is that on purpose? `princ' output is like the %s format, whereas `prin1' output is like the %S format.