emacs-devel
[Top][All Lists]
Advanced

[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 23:23:52 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)



On Sun, 2 Jul 2017, Jean-Christophe Helary wrote:

Conclusion of that exchange (sorry for being a little slow to understand 
everything the 3 of you wrote):

This:
    (prin1 name)
    (princ " is ")
    (princ (if (memq (aref status 0) '(?a ?e ?i ?o ?u)) "an " "a "))
    (princ status)
    (princ " package.\n\n")

Can reasonably be replaced by this:
    (let (sentence (format "The status of package %1$S is `%2$s'.\n\n" name 
status)))
    (princ sentence))

Is that correct ? (I am using the numbered fields that Philipp Stephani 
implemented in June.) 
Yeah, it looks right.

reply via email to

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