Is there a function for logging to Messages buffer without displaying in the echo-area? Or maybe another build in log mechanism?
I'm after a kind of console.log("string") kind of functionality.
Is there a function for logging to Messages buffer without displaying in the echo-area? Or maybe another build in log mechanism?
I'm after a kind of console.log("string") kind of functionality.
With emacs-snapshot, you can let-bind inhibit-message
to t:
Non-nil means calls to `message' are not displayed. They are still logged to the Messages buffer.
One way to do it is to call (message "")
immediately after. This will, however, wipe out any existing content in the echo area.
(message "foo")
(message "")