From: Alex Kost <alezost@gmail.com>
To: John Mastro <john.b.mastro@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>,
Hong Xu <hong@topbug.net>
Subject: Re: Annoying "Parsing...done" message when editing C++ files
Date: Thu, 03 Nov 2016 20:48:24 +0300 [thread overview]
Message-ID: <87fun8ihef.fsf@gmail.com> (raw)
In-Reply-To: <CAOj2CQSFby+3Uma8eW35DxPGxKHM5WNDhiAV6RoD5jHpDBBO9Q@mail.gmail.com> (John Mastro's message of "Wed, 2 Nov 2016 10:19:28 -0700")
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
prev parent reply other threads:[~2016-11-03 17:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 1:41 Annoying "Parsing...done" message when editing C++ files Hong Xu
2016-11-02 8:16 ` Alex Kost
2016-11-02 17:19 ` John Mastro
2016-11-02 17:25 ` Stefan Monnier
2016-11-02 17:31 ` Stefan Monnier
2016-11-02 23:36 ` Hong Xu
2016-11-03 17:48 ` Alex Kost [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fun8ihef.fsf@gmail.com \
--to=alezost@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=hong@topbug.net \
--cc=john.b.mastro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.