help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Annoying "Parsing...done" message when editing C++ files


From: Alex Kost
Subject: Re: Annoying "Parsing...done" message when editing C++ files
Date: Thu, 03 Nov 2016 20:48:24 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux)

John Mastro (2016-11-02 10:19 -0700) wrote:

> 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)))

Wow, this is great, I didn't know about 'inhibit-message', thanks!

> (with-eval-after-load 'cpp
>   (advice-add 'cpp-highlight-buffer :around
>               #'my-cpp-highlight-buffer-advice))
>
> Hope that helps
>
>         John
>
>

-- 
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]