@@ -1102,7 +1102,7 @@ This uses function `locate-dominating-file' to look up directory tree."
11021102 (if (eask-file-try-load " ./" )
11031103 (eask-msg " ✓ Loading Eask file in %s... done!" eask-file)
11041104 (eask-msg " ✗ Loading Eask file... missing!" ))
1105- (message " " ))
1105+ (eask-msg " " ))
11061106 (if (not eask-file)
11071107 (eask-help " core/init" )
11081108 (package-activate-all )
@@ -1539,20 +1539,40 @@ character."
15391539 (string (eask--msg-displayable-kwds string)))
15401540 string))
15411541
1542+ (defun eask-princ (object &optional stderr )
1543+ " Like function `princ' ; with flag STDERR.
1544+
1545+ For argument OBJECT, please see function `princ' for the detials.
1546+
1547+ If optional argument STDERR is non-nil; use stderr instead."
1548+ (unless inhibit-message
1549+ (princ object (when stderr #'external-debugging-output ))))
1550+
1551+ (defun eask-print (msg &rest args )
1552+ " Standard output printing without newline.
1553+
1554+ For arguments MSG and ARGS, please see function `eask--format-paint-kwds' for
1555+ the detials."
1556+ (eask-princ (apply #'eask--format-paint-kwds msg args)))
1557+
1558+ (defun eask-println (msg &rest args )
1559+ " Like the function `eask-print' but contains the newline at the end.
1560+
1561+ For arguments MSG and ARGS, please see function `eask-print' for the detials."
1562+ (apply #'eask-print (concat msg " \n " ) args))
1563+
15421564(defun eask-msg (msg &rest args )
1543- " Like function `message' but replace unicodes with color.
1565+ " Like the function `message' but replace unicode with color.
15441566
15451567For arguments MSG and ARGS, please see function `eask--format-paint-kwds' for
15461568the detials."
15471569 (message (apply #'eask--format-paint-kwds msg args)))
15481570
15491571(defun eask-write (msg &rest args )
1550- " Like function `eask-msg' but without newline at the end.
1572+ " Like the function `eask-msg' but without newline at the end.
15511573
1552- For arguments MSG and ARGS, please see function `eask--format-paint-kwds' for
1553- the detials."
1554- (unless inhibit-message
1555- (princ (apply #'eask--format-paint-kwds msg args) 'external-debugging-output )))
1574+ For arguments MSG and ARGS, please see function `eask-msg' for the detials."
1575+ (eask-princ (apply #'eask--format-paint-kwds msg args) t ))
15561576
15571577(defun eask-report (&rest args )
15581578 " Report error/warning depends on strict flag.
0 commit comments