[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Annoying "Parsing...done" message when editing C++ files
From: |
John Mastro |
Subject: |
Re: Annoying "Parsing...done" message when editing C++ files |
Date: |
Wed, 2 Nov 2016 10:19:28 -0700 |
Hong Xu <hong@topbug.net> wrote:
>
> Is it possible to remove the annoying "Parsing...done" message in C++
> mode? It often competes with other useful information I've set up.
>
> I saw this line in progmodes/cpp.el, but don't know how to diminish it:
>
> (message "Parsing...done"))
Something like this should do the trick:
(defun my-cpp-highlight-buffer-advice (orig &rest args)
(let ((inhibit-message t))
(apply orig args)))
(with-eval-after-load 'cpp
(advice-add 'cpp-highlight-buffer :around
#'my-cpp-highlight-buffer-advice))
Hope that helps
John