GNU bug report logs - #12965
24.3.50; Suppress *Compile-log* buffer during init

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Fri, 23 Nov 2012 07:40:02 UTC

Severity: minor

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12965 in the body.
You can then email your comments to 12965 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12965; Package emacs. (Fri, 23 Nov 2012 07:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Nov 2012 07:40:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Suppress *Compile-log* buffer during init
Date: Fri, 23 Nov 2012 13:09:46 +0530
When I am starting up my Emacs, I am getting a split window with top
half containing `initial-buffer-choice' and bottom half showing
"*Compile-Log*" contents.

,----
| elisp/bbdb-2.35/lisp/bbdb-com.elc:Warning: Use `with-current-buffer' rather
|     than save-excursion+set-buffer
| .emacs.elc:Warning: reference to free variable `Info-current-file'
`----

Should snippet below /really/ produce a "*Compile-Log*" when /loading/
my .emacs.elc.

Anyways, I need a way to have this "*Compile-Log*" suppressed or buried.
AFAIK, this "split-window-with-compile-log-in-foreground" is a fairly
recent behaviour with the trunk.


Annexure:

--8<---------------cut here---------------start------------->8---
;; (require 'info)
(defadvice info-display-manual
  (after my-info-display-manual activate)
  (rename-buffer
   (format "*info* (%s)"
	   (capitalize (file-name-directory Info-current-file)))))

(global-set-key "i" (quote info-display-manual))
--8<---------------cut here---------------end--------------->8---

In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-11-21 on debian-6.05
Bzr revision: 110967 rgm <at> gnu.org-20121121044755-u0jd8639omz57us3
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LANG: en_IN
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12965; Package emacs. (Fri, 23 Nov 2012 15:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 12965 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 12965 <at> debbugs.gnu.org
Subject: Re: bug#12965: 24.3.50; Suppress *Compile-log* buffer during init
Date: Fri, 23 Nov 2012 10:46:47 -0500
> When I am starting up my Emacs, I am getting a split window with top
> half containing `initial-buffer-choice' and bottom half showing
> "*Compile-Log*" contents.
> ,----
> | elisp/bbdb-2.35/lisp/bbdb-com.elc:Warning: Use `with-current-buffer' rather
> |     than save-excursion+set-buffer
> | .emacs.elc:Warning: reference to free variable `Info-current-file'
> `----
> Should snippet below /really/ produce a "*Compile-Log*" when /loading/
> my .emacs.elc.

This is not a new problem, actually.  Even if it didn't happen earlier,
it's not because byte-compiler's warnings have changed, but because
some change either causes a code to be byte-compiled which wasn't before.

My guess is that the changes in advice.el have as a side consequence
that your advice now gets compiled even before info.el is loaded.

> Anyways, I need a way to have this "*Compile-Log*" suppressed or buried.

Yes, I think we should change bytecomp.el so that those warnings get
output via `message' when we're not byte-compiling a whole file.

> AFAIK, this "split-window-with-compile-log-in-foreground" is a fairly
> recent behaviour with the trunk.

Actually, no, it's been there for quite a while.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12965; Package emacs. (Mon, 26 Nov 2012 20:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 12965 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 12965 <at> debbugs.gnu.org
Subject: Re: bug#12965: 24.3.50; Suppress *Compile-log* buffer during init
Date: Mon, 26 Nov 2012 15:01:03 -0500
Actually, while the general problem is old, its appearance in your case
is indeed due to a recent change in advice.el which I think was a bug.
I've installed a patch on trunk which should fix the problem.
Please confirm,


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12965; Package emacs. (Tue, 27 Nov 2012 04:11:02 GMT) Full text and rfc822 format available.

Message #14 received at 12965 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12965 <at> debbugs.gnu.org
Subject: Re: bug#12965: 24.3.50; Suppress *Compile-log* buffer during init
Date: Tue, 27 Nov 2012 09:41:14 +0530
> Actually, while the general problem is old, its appearance in your case
> is indeed due to a recent change in advice.el which I think was a bug.
> I've installed a patch on trunk which should fix the problem.
> Please confirm,

Fixed.  The bug can be closed.

Some book-keeping info,

    1. *Compile-Log* no longer comes to the fore.
    2. It contains a sole warning 

        ,----
        | elisp/bbdb-2.35/lisp/bbdb-com.elc:Warning: Use `with-current-buffer' rather
        |     than save-excursion+set-buffer
        `----

    3. The warning pertaining to defadvice has disappeared.

>         Stefan




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Tue, 27 Nov 2012 05:17:02 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Tue, 27 Nov 2012 05:17:02 GMT) Full text and rfc822 format available.

Message #19 received at 12965-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 12965-done <at> debbugs.gnu.org
Subject: Re: bug#12965: 24.3.50; Suppress *Compile-log* buffer during init
Date: Tue, 27 Nov 2012 00:15:11 -0500
> Fixed.  The bug can be closed.

Thanks, done.

>     2. It contains a sole warning 

>         ,----
>         | elisp/bbdb-2.35/lisp/bbdb-com.elc:Warning: Use `with-current-buffer' rather
>         |     than save-excursion+set-buffer
>         `----

Until someone changes bytecomp.el to use `message' when compiling
a single function, you'll either have to live it or fix it on
BBDB's side.
BTW, you might like to upgrade to bbdb-3.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.