From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#20445: excessive redisplay / echo area resizing during byte-compilation Date: Wed, 29 Apr 2015 08:37:03 +0100 Message-ID: References: <7cfv7lxnpr.fsf@fencepost.gnu.org> <83sibkuvze.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11346db090e7aa0514d80b13 X-Trace: ger.gmane.org 1430293098 27076 80.91.229.3 (29 Apr 2015 07:38:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 07:38:18 +0000 (UTC) Cc: 20445@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 09:38:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YnMZN-0007N8-K8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 09:38:09 +0200 Original-Received: from localhost ([::1]:37410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnMZM-0000Cs-W3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 03:38:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnMZJ-00009u-Oq for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnMZG-0003EV-J8 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:38:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnMZG-0003ER-G4 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YnMZG-0001lL-45 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 03:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2015 07:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20445-submit@debbugs.gnu.org id=B20445.14302930306717 (code B ref 20445); Wed, 29 Apr 2015 07:38:01 +0000 Original-Received: (at 20445) by debbugs.gnu.org; 29 Apr 2015 07:37:10 +0000 Original-Received: from localhost ([127.0.0.1]:55554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnMYQ-0001kG-B7 for submit@debbugs.gnu.org; Wed, 29 Apr 2015 03:37:10 -0400 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:34591) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnMYP-0001k4-2o for 20445@debbugs.gnu.org; Wed, 29 Apr 2015 03:37:09 -0400 Original-Received: by lbcga7 with SMTP id ga7so13826081lbc.1 for <20445@debbugs.gnu.org>; Wed, 29 Apr 2015 00:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=KvZq9oF/0X78gTV5MDSg4wPs+HlwhBC/qGojPkWX/ko=; b=s/h6sN6NutkB7MsQZ6taUgXCPI0BANVbULg6WftS+husWJHF2LFSb/ajNUYEZ/1kwR 23qGZfkCAyJ5UQfX8/GlPR3qO0f5EV9EkMB1S6Wk1xhddTHCLt/TXgIYo4iA47ljyLiy I2Lcl62nu5QiSjpcjLRvRz7p6lk2EC+cpAoJLae/y+c6yXR6YUuQ7Mml77usDciss3E6 tIaQc3mG/TxqJUzP7Q2gvWeeyaI23EpS1kjHiplvEMaZkVXQc1AFGEPzjCs8BEB8Qv6o GU/39vZMJTY6XaUP3yk/iw+kFicC7r2QUc6VoGWOsDRZ5pNsc2NhIlgYGh7ySiugZtbO gsAQ== X-Received: by 10.112.222.133 with SMTP id qm5mr17857773lbc.86.1430293023088; Wed, 29 Apr 2015 00:37:03 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Wed, 29 Apr 2015 00:37:03 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Wed, 29 Apr 2015 00:37:03 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: FWnfbAFr1lxVN6vfNz9wVAkHFys X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102209 Archived-At: --001a11346db090e7aa0514d80b13 Content-Type: text/plain; charset=UTF-8 > > (apply #'message format args) > > (unless byte-compile--interactive > > (message nil))) > > This is the problem: in order to "not emit a message" this code emits > the message and then immediately hides it by emitting "the empty > message" on top of it. > > Why not just do: > > (when byte-compile--interactive > (apply #'message format args)) Don't we have a new inhibit-messages variable? Why not use it? (let ((inhibit-messages (not byte-compile--interactive))) (apply #'message format args)) --001a11346db090e7aa0514d80b13 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> >=C2=A0 =C2=A0 =C2=A0(apply #'message format arg= s)
> >=C2=A0 =C2=A0 =C2=A0(unless byte-compile--interactive
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0(message nil)))
>
> This is the problem: in order to "not emit a message" this c= ode emits
> the message and then immediately hides it by emitting "the empty<= br> > message" on top of it.
>
> Why not just do:
>
> =C2=A0 =C2=A0 =C2=A0(when byte-compile--interactive
> =C2=A0 =C2=A0 =C2=A0 =C2=A0(apply #'message format args))

Don't we have a new inhibit-messages variable? Why not u= se it?

(let ((inhibit-messages (not byte-compile--interactive))) =C2=A0 (apply #'message format args))

--001a11346db090e7aa0514d80b13--