From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: prin1 / princ vs message ? Date: Sun, 2 Jul 2017 21:41:12 +0900 Message-ID: <355036D7-67EE-4452-8367-564606E73112@gmail.com> References: <061782A1-0A51-49A1-9AA4-706AF8927D01@gmail.com> <94EF128F-6A3D-41DD-B92D-0C165A4A8EB9@gmail.com> <87bmp3c93g.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498999293 30024 195.159.176.226 (2 Jul 2017 12:41:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 12:41:33 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 14:41:24 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 1dReBm-0007FF-Ku for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 14:41:22 +0200 Original-Received: from localhost ([::1]:57942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dReBs-00064t-0c for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 08:41:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dReBj-00064c-KM for emacs-devel@gnu.org; Sun, 02 Jul 2017 08:41:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dReBg-0002XA-Ha for emacs-devel@gnu.org; Sun, 02 Jul 2017 08:41:19 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:34380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dReBg-0002Wp-BQ for emacs-devel@gnu.org; Sun, 02 Jul 2017 08:41:16 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id s66so87493031pfs.1 for ; Sun, 02 Jul 2017 05:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=IxxK9XwfGi13gYOe3N9wrWEPSgJUaHu2D+gvv0Pw+DE=; b=oPhXj9a1ZfOVeTQd3qS5JFSct7Va60MUz52CUgW5ceYZqZtdu45yb/mXXvkxL3ola8 9uQdiSeDmHz3nnEwo3BiSme8zSfejFTQdXbn9j30N9+o1kII1Q6aAzyQyledhpKf+3CW wo09S55LrLiinUkrxcb0Qh9VUyz3ii1888MsJRnoo+PAJqQCvj/j0+Sg76zWHE563WJj 8aSNl23VUNN67FFliVJBWOoPMfA3TPpy74qKlLVsB/b6Co4Ksh+ins51t0uby9SsWHDc pWn7eD+nPMvjgtSMWytWhOhlQIfyNcScHKNTvs1V0uPIwt14vMuQLJ83bL7HgAPgGYzF UA+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=IxxK9XwfGi13gYOe3N9wrWEPSgJUaHu2D+gvv0Pw+DE=; b=bWssyUdQBiz5HQEaJYLUlbArqohra07gXMy+g2lZI1OYnMEFupBsg09Ac9F/na+pBg 7TYGMP96OD499jVMeZcXAP3YWgWCQOfX6rjmQZ0pRF/9ISKvBgBGZyHWMuMUiq0i5Up1 K+iUduWJfbQ406q9WS3oI3fiyNY4w0nTzxfQm7tqRQ3AiGDEByyA6V9SGbVduNeTGv1n u5O/qx2k1locm6kIwMaEJHsnco7gIRcN/s123MBt5qkyKAxuoRFrSLqA2hDC4WeuXKUn ZT7azLNQ0633kAK4rMQwRJD6/KB7hqEtBykPNtySd3DpJj4vxo6k9VlVNytpzrw5ICS+ u1VQ== X-Gm-Message-State: AIVw112tJa1HkXc+/TalaGZqEX48mEDj1Ob8BGN8kOvLEy5vZWm5jBjp GGZ6T+Q+U2Ta5s6jgAI= X-Received: by 10.84.217.137 with SMTP id p9mr5278597pli.80.1498999275248; Sun, 02 Jul 2017 05:41:15 -0700 (PDT) Original-Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id m79sm29924529pfk.117.2017.07.02.05.41.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jul 2017 05:41:14 -0700 (PDT) In-Reply-To: <87bmp3c93g.fsf@linux-m68k.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22a 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:216091 Archived-At: > On Jul 2, 2017, at 21:32, Andreas Schwab = wrote: >=20 > print etc are standard lisp functions, intended for noninteractive = use. Thank you. So what would be the practical reason why a developer would = prefer: (let ((name "JC")) (prin1 "My name ") (princ " is ") (princ name) (princ ".\n\n")) over: (message "My name is %s.\n\n" "JC") when standard-input is not set to anything special? (I'm almost copying the above code verbatim from a package in emacs.) Jean-Christophe