unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Paul Wallington <jpw@shootybangbang.com>
Subject: `fancy-splash-frame' query
Date: Wed, 31 Jul 2002 01:45:47 +0100	[thread overview]
Message-ID: <E17ZhcZ-000471-00@bundalo.shootybangbang.com> (raw)

Hi!

Presently, picking "About Emacs" from the Help menu when I have
multiple frames puts the splash screen in a different frame from the
selected one.

Here is a `fancy-splash-frame' that checks the selected frame first
and returns the first suitable frame rather than the last.

Is the present behaviour problematic?  Is this version okay (I have
only tested it lightly) ?


2002-07-31  John Paul Wallington  <jpw@shootybangbang.com>

	* startup.el (fancy-splash-frame): Check selected frame first.
	Use `visible-frame-list' instead of `frame-list'.  Return first
	suitable frame instead of last.

Index: startup.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v
retrieving revision 1.302
diff -u -r1.302 startup.el
*** startup.el	14 Jul 2002 15:29:56 -0000	1.302
--- startup.el	31 Jul 2002 00:15:55 -0000
***************
*** 1305,1315 ****
  Returning non-nil does not mean we should necessarily
  use the fancy splash screen, but if we do use it,
  we put it on this frame."
!   (let (chosen-frame)
!     (dolist (frame (frame-list))
!       (if (and (frame-visible-p frame)
! 	       (not (window-minibuffer-p (frame-selected-window frame))))
! 	  (setq chosen-frame frame)))
      chosen-frame))
  
  (defun use-fancy-splash-screens-p ()
--- 1305,1317 ----
  Returning non-nil does not mean we should necessarily
  use the fancy splash screen, but if we do use it,
  we put it on this frame."
!   (let ((frames (cons (selected-frame) (visible-frame-list)))
! 	chosen-frame)
!     (while (not chosen-frame)
!       (let ((frame (pop frames)))
! 	(if (and (frame-visible-p frame)
! 		 (not (window-minibuffer-p (frame-selected-window frame))))
! 	    (setq chosen-frame frame))))
      chosen-frame))
  
  (defun use-fancy-splash-screens-p ()


-- 
John Paul Wallington

             reply	other threads:[~2002-07-31  0:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31  0:45 John Paul Wallington [this message]
2002-07-31 21:58 ` `fancy-splash-frame' query Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31  1:36 John Paul Wallington

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=E17ZhcZ-000471-00@bundalo.shootybangbang.com \
    --to=jpw@shootybangbang.com \
    /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).