From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15861: 24.3.50; lots of byte-compiler code written to *Messages* at runtime Date: Thu, 14 Nov 2013 20:15:35 +0200 Message-ID: <83eh6izw6w.fsf@gnu.org> References: <701df652-aa30-4607-97dc-d02075f9094c@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384453033 4456 80.91.229.3 (14 Nov 2013 18:17:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2013 18:17:13 +0000 (UTC) Cc: 15861@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 14 19:17:17 2013 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 1Vh1Tg-0004Hv-Br for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 19:17:16 +0100 Original-Received: from localhost ([::1]:56784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh1Tf-0004BK-Mb for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 13:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh1TX-0004B1-R6 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 13:17:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh1TS-0004pz-F4 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 13:17:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh1TS-0004pv-BI for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 13:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vh1TS-00055F-19 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 13:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2013 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15861-submit@debbugs.gnu.org id=B15861.138445296119443 (code B ref 15861); Thu, 14 Nov 2013 18:17:01 +0000 Original-Received: (at 15861) by debbugs.gnu.org; 14 Nov 2013 18:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:52481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh1ST-00053S-3f for submit@debbugs.gnu.org; Thu, 14 Nov 2013 13:16:01 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56370) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vh1SP-00053C-97 for 15861@debbugs.gnu.org; Thu, 14 Nov 2013 13:15:59 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MW900B00MNP0B00@a-mtaout21.012.net.il> for 15861@debbugs.gnu.org; Thu, 14 Nov 2013 20:15:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MW900A46MQEPCC0@a-mtaout21.012.net.il>; Thu, 14 Nov 2013 20:15:50 +0200 (IST) In-reply-to: <701df652-aa30-4607-97dc-d02075f9094c@default> X-012-Sender: halo1@inter.net.il 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:80443 Archived-At: > Date: Mon, 11 Nov 2013 11:30:02 -0800 (PST) > From: Drew Adams > > The subject line might not be the best description. And you might not > see that this is a bug. In that case, please let me know how to work > around the behavior I see, as it is quite annoying. > > In a Lisp file that I byte-compile and load, I have a redefinition of > `ls-lisp--insert-directory'. (I do not see another, better way to > accomplish the behavior change I need.) I added this when vanilla Emacs > was changed recently to use this function. The bug does not appear for > older Emacs code (e.g. older Emacs 24 Dev snapshots, which do not have > `ls-lisp--insert-directory'). > > It is true that I byte-compile this library using Emacs 20, because the > library is used with multiple Emacs versions. I don't know whether > byte-compiling it in Emacs 24 would make a difference wrt this annoying > behavior. > > If doing that is the answer then I guess I'll have to split the file > (the redefinition of this function is only done for Emacs 24.4+, i.e., > when that function is `fboundp'). > > The symptom is that each time this function is called (at runtime, i.e., > using Dired), a boatload of binary byte-compile stuff is printed in > *Messages*, and the entire doc string is printed there as well. > > What's more: when I start Emacs with a directory as the target, so it > opens in Dired, the entire doc string is shown in the echo area (for > which my standalone minibuffer frame is expanded automatically). So a > user has to see that whole, irrelevant doc string for a few seconds. > > Please advise, whether or not you feel this is a bug. What can I do to > prevent this noise. To me it seems like a bug: byte-compiled code has > no business being logged to *Messages* or shown in the echo area during > runtime. But you might not see it that way. It's some snafu, but it's hard to say what is at work exactly. I tried to reproduce this, but couldn't, because some function this code calls is not defined. So I don't even know if compiling this in Emacs 24 would prevent the problem (but I guess you can check this yourself). IOW, there's not enough information here to dig into the problem.