From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: markusffm@fn.de, 33602@debbugs.gnu.org, m43cap@yandex.com
Subject: bug#33602: 27.0.50; Compiling no file at
Date: Sat, 8 Dec 2018 20:07:05 +0000 [thread overview]
Message-ID: <20181208200705.GB17410@ACM> (raw)
In-Reply-To: <83va4447mb.fsf@gnu.org>
Hello, Eli.
On Sat, Dec 08, 2018 at 12:48:12 +0200, Eli Zaretskii wrote:
> > Date: Fri, 7 Dec 2018 20:06:59 +0000
> > Cc: rgm@gnu.org, markusffm@fn.de, 33602@debbugs.gnu.org, m43cap@yandex.com
> > From: Alan Mackenzie <acm@muc.de>
> > > I'd ask a different question altogether: now that we know this comes
> > > from loading generics, why is that entry in compilation log a problem?
> > > Who cares what the byte compiler says as part of its normal operation,
> > > and why should we consider that "a bug"?
> > I still think it's a problem. It irritates people.
> They are free not to look ;-)
No comment. ;-)
> > The actual wording of the message "Compiling no file at <time>" is
> > unclear.
> If we want to change the text, it's fine. But removing the log
> altogether sounds like too much to me.
Why? The log doesn't appear in Emacs-26. It does appear in recent
versions of master. The creation of this buffer is an unintended
consequence of the amendments I made to the byte compiler's warning
message mechanism around a week and a half ago.
In a call of byte-compile, both byte-compile-current-file and
byte-compile-last-logged-file tend to be nil.
Whereas the condition at the top of byte-compile-log-file used to be
(not (equal byte-compile-current-file byte-compile-last-logged-file))
, now it additionally checks
(get-buffer byte-compile-log-buffer)
, and "re"creates that buffer if it doesn't exist.
So previously, *Compile-Log* didn't get created. Now it does. I think
I should revert that part of the change. What do you say?
Changing the wording is a separate issue, but I think it should also be
done. I would suggest instead of "Compiling no file at <time>" we say
"Compiling, not from a file, at <time>".
In other words:
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index d6986cb786..58c55f7a2e 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1179,9 +1179,7 @@ byte-compile-warning-series
;; Return the position of the start of the page in the log buffer.
;; But do nothing in batch mode.
(defun byte-compile-log-file ()
- (and (not
- (and (get-buffer byte-compile-log-buffer)
- (equal byte-compile-current-file byte-compile-last-logged-file)))
+ (and (not (equal byte-compile-current-file byte-compile-last-logged-file))
(not noninteractive)
(with-current-buffer (get-buffer-create byte-compile-log-buffer)
(goto-char (point-max))
@@ -1204,7 +1202,7 @@ byte-compile-log-file
(concat "in buffer "
(buffer-name byte-compile-current-file)))
" at " (current-time-string) "\n")
- (insert "\f\nCompiling no file at " (current-time-string) "\n"))
+ (insert "\f\nCompiling, not from a file, at " (current-time-string) "\n"))
(when dir
(setq default-directory dir)
(unless was-same
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2018-12-08 20:07 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-03 19:20 bug#33602: 27.0.50; Compiling no file at Markus FFM
2018-12-03 19:40 ` Glenn Morris
2018-12-04 6:52 ` Colin Baxter
[not found] ` <mailman.5104.1543865051.1284.bug-gnu-emacs@gnu.org>
2018-12-06 13:33 ` Alan Mackenzie
[not found] ` <20181206215832.GA23102@INDRA>
2018-12-07 13:43 ` Alan Mackenzie
2018-12-07 13:52 ` martin rudalics
2018-12-07 14:59 ` Alan Mackenzie
2018-12-07 17:49 ` martin rudalics
2018-12-07 18:11 ` Alan Mackenzie
2018-12-07 18:42 ` martin rudalics
2018-12-07 19:02 ` Alan Mackenzie
2018-12-07 18:43 ` Eli Zaretskii
2018-12-07 18:59 ` Alan Mackenzie
2018-12-07 19:01 ` Glenn Morris
2018-12-07 19:17 ` Eli Zaretskii
2018-12-07 19:27 ` Alan Mackenzie
2018-12-07 19:52 ` Eli Zaretskii
2018-12-07 20:06 ` Alan Mackenzie
2018-12-08 10:48 ` Eli Zaretskii
2018-12-08 20:07 ` Alan Mackenzie [this message]
2018-12-08 20:36 ` Eli Zaretskii
2018-12-09 11:30 ` Alan Mackenzie
2018-12-09 12:43 ` Eli Zaretskii
2018-12-09 13:19 ` Alan Mackenzie
2018-12-07 15:04 ` Colin Baxter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181208200705.GB17410@ACM \
--to=acm@muc.de \
--cc=33602@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=m43cap@yandex.com \
--cc=markusffm@fn.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.