From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation Date: Sat, 26 Oct 2019 17:27:46 +0200 Message-ID: References: <20191026101407.GA17424@ACM> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d107ea0595d1eac7" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="45313"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Mackenzie , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 26 17:29:08 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 1iOO02-000Bbv-1d for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2019 17:29:06 +0200 Original-Received: from localhost ([::1]:40496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iONzz-0002ss-Tg for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2019 11:29:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54323) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iONzO-0002lK-AU for emacs-devel@gnu.org; Sat, 26 Oct 2019 11:28:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iONzN-0004H4-AU for emacs-devel@gnu.org; Sat, 26 Oct 2019 11:28:26 -0400 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:35175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iONzN-0004Gc-4l for emacs-devel@gnu.org; Sat, 26 Oct 2019 11:28:25 -0400 Original-Received: by mail-qt1-x82d.google.com with SMTP id m15so8036320qtq.2 for ; Sat, 26 Oct 2019 08:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0qjhEGTw+muycA/LOrIdIreVHcRN7sDCGXeS0YPkcYg=; b=s4XbCClyWDb4xdjqWYQ2WYEc9rJTtPFQYx88ApTXYeCTsEJk2C+UQyRg7z4kcBro4x 6cXqJ68r86fVDoAIgllDF56sCm5vhgEP6ogFV/J8Gn0f3UPxFHY5rtPID8xr+eAzIrOZ TXSCf3mLLo3TNRhV3AlFkmn6QkFfVejz4j3tTyBdQWAc9bw7UhxJwytfb6zjGfga6ApE mKBAOq+0fds6Jq5Rdq4azAIlkhn25OWcuDYg4t4x3EXb/wu4xw3VOUPtG8DWrZsornE8 U4GGkrKl6s6nvvRcnvVy58tUTEE4KfjAIjwAl/Zyq0KHtv4J3jfzKpm6oJ6CarrAdxuK Frhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0qjhEGTw+muycA/LOrIdIreVHcRN7sDCGXeS0YPkcYg=; b=Gb/E8gaEqs3GrwqB723+IMiCQf+PdTdfikVY8osD/LRwl9mHgv2MGX2FX/gNJjYCp/ MdjQTw4UG+fOsR2qTArK+Oj36PPyMtnlOvX7M0uI/H92mScStbYUzgfIbaclstAJC/Xs LBfVE5FxnHcgQPZI8K9DHcaX5yCwmPloOM0izIn+XRM47bgDp7IkTp/2hiSDWS0X71NH JoKcKb19yHxSuJJDAn1crGV0KwZnG13+OanEKhD7EwZmJ2OltATeWyy3rajmYtj+Jh4q fQSkkcRucxqfY7pTnvqzFF8bpSpTy6RMykDhcJU6oCYmfuJVBLL37Eoswjg2Wp868mNJ JTCA== X-Gm-Message-State: APjAAAVGZaTA/Hcpda+z6YL+ZfPMx55yf7rviqDXPLh/API1e1YBrcdf zn2ExogST1QQeOPULIZDzZ3LDuQUOZ7FfJMBxQw= X-Google-Smtp-Source: APXvYqxKGHUQme5C3r5rrBIf8xkCYwmqNbdVcdo78aY80lhOx7f80qr1QCQOMdxOBVp+EFMlMp6bx9eHqZ5M4nCvL2k= X-Received: by 2002:ac8:6c5c:: with SMTP id z28mr9109170qtu.17.1572103703823; Sat, 26 Oct 2019 08:28:23 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82d 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:241465 Archived-At: --000000000000d107ea0595d1eac7 Content-Type: text/plain; charset="UTF-8" On Sat, Oct 26, 2019 at 2:42 PM Stefan Monnier wrote: > > What is going on, here? Is the run-with-timer mechanism being used > > deliberately to make the "deprecated" message prevail over other > > messages? > > That's my best guess, yes. Wouldn't that kind of message be a perfect candidate for a warning instead? Warnings are underused in Emacs now, but they have advantages, like the ability to filter them by level/priority. The warnings are shown in its own buffer (and window), but by using fit-to-buffer and the new window machinery we could perhaps make them less jarring and still hard to miss. --000000000000d107ea0595d1eac7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sat, Oct 26, 2019 at 2:42 PM Stefan Monnier <monnier@iro.umontreal.ca> w= rote:
> > What is going on, here?=C2=A0 Is the run-with-timer mech= anism being used
> > deliberately to make the "deprecated&quo= t; message prevail over other
> > messages?
>
> That&#= 39;s my best guess, yes.

Wouldn't that kind of message be a= perfect=C2=A0candidate for a warning instead? Warnings are underused in Em= acs now, but they have advantages, like the ability to filter them by level= /priority.

The warnings are shown in its own buffer (and window), bu= t by using fit-to-buffer and the new window machinery we could perhaps make= them less jarring and still hard to miss.
--000000000000d107ea0595d1eac7--