Is it possible to send the output from a process-filter to the *Messages*
buffer and suppress that message output from appearing in the echo area, such that I am able to simultaneously use interactive commands without having the minibuffer-prompt
being erased by the ongoing subpress filter output?
(defun rsync-process-filter (proc string)
(when (not (or
(string-match "files...\r" string)
(string-match "files to consider\n" string)))
(message "%s" string)))
EDIT (January 3, 2015): The following is a link to a similar question, however, I have not yet been able to make it work with a process string where the exact string is unkown -- the title of the thread is: Emacs - Disable Some Minibuffer Messages:
https://superuser.com/questions/669701/emacs-disable-some-minibuffer-messages
*Messages*
buffer -- synchronization related projects is one of them. There are still a couple of things I haven't tried (because I thought there may have been a built-in solution), such as making the*Messages*
buffer temporarily writableinhibit-read-only
and usinginsert
atpoint-max
-- I don't know if that will show up in the echo area as well. I'll work on it again this evening . . .M-x report-emacs-bug
and request this as a feature?(let ((inhibit-read-only t)) (with-current-buffer (get-buffer-create "*Messages*") (goto-char (point-max)) (insert string)))
and I posted a draft answer, which will be eligable for acceptance after the mandatory waiting period on a user's own question has lapsed. I filed a feature request withreport-emacs-bug
: debbugs.gnu.org/cgi/bugreport.cgi?bug=19495(messages-buffer)
to obtain the buffer, if you stick with this method, and note that(point-max)
won't always be the beginning of a new line (e.g. useC-g
).