From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#17272: 24.4.50; obsolete messages hides warning on startup Date: Thu, 07 Nov 2019 00:22:04 +0200 Message-ID: <87k18c7iib.fsf@mail.linkov.net> References: <21325.39352.164247.185693@capuchin.co.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59744"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 17272@debbugs.gnu.org To: Robert Marshall Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 23:32:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iSTqe-000FOh-1R for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 23:32:20 +0100 Original-Received: from localhost ([::1]:35790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSTqc-0005RH-AF for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2019 17:32:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34405) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSTqN-0005OG-Gx for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 17:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSTqM-0001uq-BL for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 17:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSTqM-0001uf-7b for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 17:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSTqM-0000NZ-1h for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2019 17:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2019 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 17272-submit@debbugs.gnu.org id=B17272.15730794891397 (code B ref 17272); Wed, 06 Nov 2019 22:32:01 +0000 Original-Received: (at 17272) by debbugs.gnu.org; 6 Nov 2019 22:31:29 +0000 Original-Received: from localhost ([127.0.0.1]:41364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSTpp-0000MT-Hz for submit@debbugs.gnu.org; Wed, 06 Nov 2019 17:31:29 -0500 Original-Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:43469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSTpn-0000MF-P2 for 17272@debbugs.gnu.org; Wed, 06 Nov 2019 17:31:28 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 754315E3559; Wed, 6 Nov 2019 22:31:26 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com (100-96-18-10.trex.outbound.svc.cluster.local [100.96.18.10]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 09D725E3672; Wed, 6 Nov 2019 22:31:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 06 Nov 2019 22:31:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Slimy-Duck: 433b148471025c8c_1573079486284_1626963357 X-MC-Loop-Signature: 1573079486283:1233170200 X-MC-Ingress-Time: 1573079486283 Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a79.g.dreamhost.com (Postfix) with ESMTP id 7A80CA3358; Wed, 6 Nov 2019 14:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=dWEjT/SOu9hkGK5u9/gQg/4531I=; b= HzgUP93efRY5pxVq1SiICLGgeQr4KpP3zz3p6/BSUuP/Mf++t+ziI7yOVymUldWR NnZhGlRhAHdZGDqUj4QY2sOqnTT8/ORuXbYXvJTwdBmigX9ObKITq6TvtlsvnO+M uM3rkGPKRrbECizPeDnWPt7ZtpBxc6KAZDOMX7Moov8= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a79.g.dreamhost.com (Postfix) with ESMTPSA id 748A4A33BB; Wed, 6 Nov 2019 14:31:18 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a79 In-Reply-To: <21325.39352.164247.185693@capuchin.co.uk> (Robert Marshall's message of "Tue, 15 Apr 2014 21:42:32 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:171046 Archived-At: > If you start emacs with the following loaded file (emacs -Q -l .emacs.test) > > ;;; .emacs.test > (require 'longlines) > (desktop-save-mode 1) > (desktop-read "/home/robert") ;; $HOME.... > > When it starts you see the message > > Package longlines is obsolete! > > But - if the .emacs.desktop is locked the message: > > Warning: desktop file appears to be in use by PID 6464. > Using it may cause conflicts. Use it anyway? (y or n) > > is hiding 'behind' the obsolete message and you don't see it until you > press a key - the emacs startup appears to have stopped but there's no > visual clue as to what it is waiting for. Here is the patch that fixes this (required changes from bug#38076): diff --git a/lisp/subr.el b/lisp/subr.el index 03cf3da278..33464d6032 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4517,7 +4556,9 @@ do-after-load-evaluation (byte-compile-warn "%s" msg)) (run-with-timer 0 nil (lambda (msg) - (message "%s" msg)) + (if (minibufferp) + (minibuffer-message "%s" msg) + (message "%s" msg))) msg))))) ;; Finally, run any other hook.