From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Annoying "Parsing...done" message when editing C++ files Date: Wed, 2 Nov 2016 10:19:28 -0700 Message-ID: References: <87mvhiwte6.fsf@topbug.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1478107270 16763 195.159.176.226 (2 Nov 2016 17:21:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 17:21:10 +0000 (UTC) Cc: Hong Xu To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 18:21:07 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 1c1zDO-0000cS-AO for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 18:20:42 +0100 Original-Received: from localhost ([::1]:56581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1zDR-00034E-0p for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 13:20:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1zCY-0002f7-9p for help-gnu-emacs@gnu.org; Wed, 02 Nov 2016 13:19:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1zCX-0002Ar-IO for help-gnu-emacs@gnu.org; Wed, 02 Nov 2016 13:19:50 -0400 Original-Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:34078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1zCX-0002A7-EQ for help-gnu-emacs@gnu.org; Wed, 02 Nov 2016 13:19:49 -0400 Original-Received: by mail-yw0-x229.google.com with SMTP id t125so14934997ywc.1 for ; Wed, 02 Nov 2016 10:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TS6vAkIh3oVudIyewmyu6Y4c0Xb+wyIYOOIbV4YtMBk=; b=eii65XK8KrA5HEW2GGvfdgDmEhHaz+f3ceRKfnZ76coXgtO5NbGdvD9uIupOH3RP4X YwwXWNjoWNmUnhYRNG93b5VxPz/0DqpEHFBaHUq/YaCRn3B3WBZiffe4si7zKhbMZWht WA6yvNr2Ztd83FY6ILa/tNhE11ynjk1SyEyP50BoWob/zEMOeqzVcBjt0yPtw+wke0xv kcVXlcppr+mlGuAP5mw2JxwdgB1itBAHEkVCvRtgGRirGQM6yoLkkpsd8hJxVNm5zKxn fCBixUD2HfTA6p0KW+7GSsSv9Gn5CWYSYtLf4rv6Nnb2VNRdRmBaZT5w4Xr2AVjZ4xDP I2/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TS6vAkIh3oVudIyewmyu6Y4c0Xb+wyIYOOIbV4YtMBk=; b=LAcCTReYXBooMrl632kC+pik07wZsuaCxIRcQaoZ/KnmgMlWEOPz+Zq0kI5ihyGy5d 9SRlbz+ViUUFRzsOedT/2QxlAU34cJJZxjWJCg3ADJM0VSn1dlNjmcFCdLTdtfgwmZDG m5NnzNclKA7n4Xb9F2h9zosOVfMAwXrtBJ/up0m0EviXyWSsDRuasqs9g7StpLmm8P6V rZu+fe5SmaGxG6W9u7Dw9+5CBQ2c9BmZnD/BgCIKID/nlFEceO7rPf6soHBYBTY8Y37d sROivshBwIGATQthoquxewlBo7aqE2IrWzur/mKUvER6dzfhAHGTI8RRbb4NJbPYs9Pe 9iVQ== X-Gm-Message-State: ABUngveYkQdlcZFpaVglrBKXVQFlwq7ocoqXJcTs3KzEwShcTeXbUG2GcLUi+EkrWt9mO4b5g6GjtwH831oGWw== X-Received: by 10.129.168.132 with SMTP id f126mr3605620ywh.56.1478107188526; Wed, 02 Nov 2016 10:19:48 -0700 (PDT) Original-Received: by 10.37.163.4 with HTTP; Wed, 2 Nov 2016 10:19:28 -0700 (PDT) In-Reply-To: <87mvhiwte6.fsf@topbug.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::229 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:111653 Archived-At: 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))) (with-eval-after-load 'cpp (advice-add 'cpp-highlight-buffer :around #'my-cpp-highlight-buffer-advice)) Hope that helps John