From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: prin1 / princ vs message ? Date: Sun, 2 Jul 2017 20:57:10 +0900 (JST) Message-ID: References: <061782A1-0A51-49A1-9AA4-706AF8927D01@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-110558819-1498996634=:13347" X-Trace: blaine.gmane.org 1498996660 26546 195.159.176.226 (2 Jul 2017 11:57:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 11:57:40 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Emacs developers To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 13:57:31 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 1dRdVI-0006JM-1m for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 13:57:28 +0200 Original-Received: from localhost ([::1]:57608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRdVN-0004di-4U for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2017 07:57:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRdVC-0004dc-Bq for emacs-devel@gnu.org; Sun, 02 Jul 2017 07:57:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRdV7-0005is-If for emacs-devel@gnu.org; Sun, 02 Jul 2017 07:57:22 -0400 Original-Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]:33643) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRdV7-0005iG-BX for emacs-devel@gnu.org; Sun, 02 Jul 2017 07:57:17 -0400 Original-Received: by mail-pf0-x230.google.com with SMTP id e7so87374102pfk.0 for ; Sun, 02 Jul 2017 04:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=x03ehZbW7j/cZEjSTCtzCLuYy8ESP5ekFQN1FStk4vU=; b=HKIuTOmnGSR52Cddn4vgaKR01aPoaSLR5spkjkJ8NpmX4Z/orh3Nj/dHaq24IVRN4t Y3S/ZWU+TAIneoXHkFcYCjrWRco6cyvy+gifZdLFOFsQLxpY0t2Qav+ASk9GIUDZwjU5 utAcmbWovIAXuRsvqJD7kPEVrhHv0m6puaIWd8vsdxhDWisTe3ZlbBP/lT66EGoiK6T7 sJAGp0Be70mH94L9JFt63bJSf/NRQCS8njtt1F88RWbNKUtvRPeNEJL9YtPd5Mfi1yf5 HS8ClOw3O4JqcSRUYA/St+pO1iL2rh7Ld6huYry5zg3asDTR26lrNLN+1N65w5E1hdcN 182Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=x03ehZbW7j/cZEjSTCtzCLuYy8ESP5ekFQN1FStk4vU=; b=lbQSpnOs5oodIakxu5GB60aOBv5lnqXj5oTcDrydFdjKQigkQ4hQiLfJAJtBdMG2zw pfwbAeGYdh8fJ2MvU911mCKAxOa767eVZ7qxRMaQ8ujamFDu/LyN+A3O75LRfwDoyJlw aGPESNjpVGBeZvDenvKbASV/329oZdem0VArPwB/l4vZeYjYWCOzhmFwyU51Xt0mKIYf 5Z1DELM3eQ7AQ6XjcMHCYCDnMKTotmY5Xj5h1C2+vi0bAyTi/V7jeYycKs5N6oI19Ser +qkR2swwacZ66EW6Y4nksGgy3gp1sDWtNuaofeGPCl05apb8ovo+rHzHttqG6AEfsHOi hBAw== X-Gm-Message-State: AIVw111VVCSGWboAr06o/Jq9r9ehkMxl4Od8fZTehw0uazUiWuxOuhzv Q1eXFYDcFsy6KA== X-Received: by 10.98.92.3 with SMTP id q3mr4705940pfb.65.1498996634770; Sun, 02 Jul 2017 04:57:14 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id y66sm27803217pfa.54.2017.07.02.04.57.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jul 2017 04:57:14 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <061782A1-0A51-49A1-9AA4-706AF8927D01@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::230 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:216088 Archived-At: --8323329-110558819-1498996634=:13347 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 2 Jul 2017, Jean-Christophe Helary wrote: > What's the difference between: > > (let ((name "JC")) > (prin1 "My name ") > (princ " is ") > (princ name) > (princ ".\n\n")) > > and > > (message "My name is %s.\n\n" "JC") > > ? > > Unless we have a non default value for standard-output both send the value to the echo area, right ? > > Besides for the possibility prin1 and princ have of printing to standard-output and not specifically to the echo area, what is the actual difference between the two and message ? * Documentation about prin? family: (info "(elisp) Output Functions") * "The recommended way to show a message in the echo area is with the `message' function, not `princ¢". Extracted from: (info "(elisp) Programming Tips") * `message' and the echo area: (info "(elisp) The Echo Area") --8323329-110558819-1498996634=:13347--