From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: Annoying "Parsing...done" message when editing C++ files Date: Thu, 03 Nov 2016 20:48:24 +0300 Message-ID: <87fun8ihef.fsf@gmail.com> References: <87mvhiwte6.fsf@topbug.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1478195433 457 195.159.176.226 (3 Nov 2016 17:50:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2016 17:50:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" , Hong Xu To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 03 18:50:26 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2M9V-0006Ob-0J for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Nov 2016 18:50:13 +0100 Original-Received: from localhost ([::1]:34334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2M9X-0001u2-EE for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Nov 2016 13:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2M7q-0001Nw-84 for help-gnu-emacs@gnu.org; Thu, 03 Nov 2016 13:48:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2M7n-0000li-6L for help-gnu-emacs@gnu.org; Thu, 03 Nov 2016 13:48:30 -0400 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:36794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2M7m-0000lM-VB for help-gnu-emacs@gnu.org; Thu, 03 Nov 2016 13:48:27 -0400 Original-Received: by mail-lf0-x235.google.com with SMTP id t196so45710238lff.3 for ; Thu, 03 Nov 2016 10:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IEJ25yHyJY/EqkI8bq6I1EcuZRBI9BgjDmaLlLtShSs=; b=SzKyB3cnHJIGFTrx/Ur14puac3MxZS0OKhgRqCkpD8T9+3EKKYAwlgZbDgvV2Okmez lfZu4l+57ysf+hw+yOl8gdTWuvXDYU8Rnv3A2Y60KfoEKlC78n13MdNYb5lZsi/vee5Y 8PbDPOb2/IQIxBGlqHrUlK2EJUQUoeheFj5LhB5xat6NLqEKR6OrtzEKGj40RnQVySf+ Q5R4P5LyQRUPW6y4y7v37lrlfFEXICFty+WTa3vpXdVBBCJ4bc4Cn9fQl1OqnzHlk9ZI yxMvo+qy4witQMPKszJtzI/hMO+2vSyO+dgFym+6AA0erUDdfNVvbuJMfbD3yKjeptgm Eg/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=IEJ25yHyJY/EqkI8bq6I1EcuZRBI9BgjDmaLlLtShSs=; b=RgwEG6zUX0URFYoaQniqwQiI+ndogro7UuxdV3YhqDTNRfHTS/4EK1lJhFtdhh26Vc oYFdSTUvMSOXSyA+tBbLeFEXRDsqIEZ/8V3PvKAFtqHPJ3bFbullvIjF6izurYRv/AeJ yhAhDmUN+/y+dDIamxPVy7i22l63fsH58xiiVY/Ifj0yI1efrU8RBOtR7KDlS5XEDw3h lLvEz88UuAXXQav4tsFRNzlDj94ekgZScmYYXzcAzcDgNuW9+A/qDkK2bi6tvVMMeret b2blS08Ku+7aJMAtaJb0U+e4AJJe+bZrxYdpODk/1Y+s14lnXJ5hOt+rd4pPFsF5WLhq M8cA== X-Gm-Message-State: ABUngvewUWSxMR1V9Dx7wybNscNMbDf2XH/ZVtzzYDNVuIqntsEImb4n6oNEglb+VdEjyA== X-Received: by 10.25.44.143 with SMTP id s137mr6266074lfs.103.1478195305236; Thu, 03 Nov 2016 10:48:25 -0700 (PDT) Original-Received: from leviafan ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id a9sm412483ljb.9.2016.11.03.10.48.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 10:48:24 -0700 (PDT) In-Reply-To: (John Mastro's message of "Wed, 2 Nov 2016 10:19:28 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111665 Archived-At: John Mastro (2016-11-02 10:19 -0700) wrote: > Hong Xu 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