unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17272: 24.4.50; obsolete messages hides warning on startup
@ 2014-04-15 20:42 Robert Marshall
  2019-11-06 22:22 ` Juri Linkov
  2019-11-09 22:46 ` Juri Linkov
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Marshall @ 2014-04-15 20:42 UTC (permalink / raw)
  To: 17272

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. 


In GNU Emacs 24.4.50.4 (i686-pc-linux-gnu, GTK+ Version 3.8.6)
 of 2014-04-09 on poulenc
Repository revision: 116959 dancol@dancol.org-20140409081641-wcask11smm10bk3f
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
System Description:	Ubuntu 13.10

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Robert
-- 
Robert Marshall





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#17272: 24.4.50; obsolete messages hides warning on startup
  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
  2019-11-09 22:46 ` Juri Linkov
  1 sibling, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2019-11-06 22:22 UTC (permalink / raw)
  To: Robert Marshall; +Cc: 17272

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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#17272: 24.4.50; obsolete messages hides warning on startup
  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
@ 2019-11-09 22:46 ` Juri Linkov
  1 sibling, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2019-11-09 22:46 UTC (permalink / raw)
  To: Robert Marshall; +Cc: 17272

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

This is fixed now.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-09 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-11-09 22:46 ` Juri Linkov

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