emacs-devel
[Top][All Lists]
Advanced

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

Re: prin1 / princ vs message ?


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

> On Jul 2, 2017, at 21:32, Andreas Schwab <address@hidden> wrote:
> 
> 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



reply via email to

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