emacs-devel
[Top][All Lists]
Advanced

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

prin1 / princ vs message ?


From: Jean-Christophe Helary
Subject: prin1 / princ vs message ?
Date: Sun, 2 Jul 2017 19:12:09 +0900

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 ?

Jean-Christophe 


reply via email to

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