[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prin1 / princ vs message ?

From: Tino Calancha
Subject: Re: prin1 / princ vs message ?
Date: Sun, 2 Jul 2017 20:57:10 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

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"))


(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")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]