unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Robert Marshall <robert@capuchin.co.uk>
Cc: 17272@debbugs.gnu.org
Subject: bug#17272: 24.4.50; obsolete messages hides warning on startup
Date: Thu, 07 Nov 2019 00:22:04 +0200	[thread overview]
Message-ID: <87k18c7iib.fsf@mail.linkov.net> (raw)
In-Reply-To: <21325.39352.164247.185693@capuchin.co.uk> (Robert Marshall's message of "Tue, 15 Apr 2014 21:42:32 +0100")

> 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.





  reply	other threads:[~2019-11-06 22:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 20:42 bug#17272: 24.4.50; obsolete messages hides warning on startup Robert Marshall
2019-11-06 22:22 ` Juri Linkov [this message]
2019-11-09 22:46 ` Juri Linkov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k18c7iib.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=17272@debbugs.gnu.org \
    --cc=robert@capuchin.co.uk \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).