Fork me on GitHub
#emacs
<
2019-10-12
>
tianshu22:10:41

@bozhidar thanks! I finally found a solution by using advice, get the answer from reddit.

(defun user/make-silent (func &rest args)
  (cl-letf (((symbol-function 'message)
             (lambda (&rest args) nil)))
    (apply func args)))