From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation Date: Sat, 26 Oct 2019 10:14:07 +0000 Message-ID: <20191026101407.GA17424@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128017"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 26 12:14:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iOJ5c-000XB2-FK for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2019 12:14:32 +0200 Original-Received: from localhost ([::1]:39548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJ5a-0006pL-UQ for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2019 06:14:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58626) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJ5I-0006OA-7e for emacs-devel@gnu.org; Sat, 26 Oct 2019 06:14:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOJ5H-00079J-4d for emacs-devel@gnu.org; Sat, 26 Oct 2019 06:14:12 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:16075 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1iOJ5G-000778-QF for emacs-devel@gnu.org; Sat, 26 Oct 2019 06:14:11 -0400 Original-Received: (qmail 32303 invoked by uid 3782); 26 Oct 2019 10:14:08 -0000 Original-Received: from acm.muc.de (p2E5D5144.dip0.t-ipconnect.de [46.93.81.68]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Oct 2019 12:14:07 +0200 Original-Received: (qmail 17469 invoked by uid 1000); 26 Oct 2019 10:14:07 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241437 Archived-At: Hello, Emacs. In do-after-load-evaluation, we have the following, near the end: (run-with-timer 0 nil (lambda (msg) (message "%s" msg)) msg) . run-with-timer is being used to run message once, immediately. Why not just call message? The reason I ask is that whilst loading my desktop, the prompt Please type y, n, or !, or C-v to scroll: , asking me whether I want dangerous local variables to be loaded, is getting obscured by the less important Package cl is deprecated , and I have to know that I'm expected to respond to this obscured prompt. This has been happening to me only for a short time, at least a week, but probably less than a month. This last message about cl being deprecated is being output by the strange run-with-timer. If I replace the run-with-timer form with a straight message call, I see the prompt from hack-local-variables. What is going on, here? Is the run-with-timer mechanism being used deliberately to make the "deprecated" message prevail over other messages? If so, perhaps it shouldn't be. I've searched the git log, and found that cl was moved into lisp/obsolete on 2019-08-06. At the same time, some change was made to output the "deprecated" message in do-after-load-evaluation. The current situation seems unsatisfactory; the prompt from hack-local-variables is more important than the deprecation message, and shouldn't be obscured by it. -- Alan Mackenzie (Nuremberg, Germany).