unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Paul Wallington <jpw@shootybangbang.com>
Cc: emacs-devel@gnu.org
Subject: Re: fancy-splash-screens bug?
Date: 02 Sep 2002 22:00:00 +0100	[thread overview]
Message-ID: <874rd8w1in.fsf@bundalo.shootybangbang.com> (raw)
In-Reply-To: <m2bs7ishjo.fsf@primate.xs4all.nl>

huug <huug.at.gmane=qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org> wrote:

> Maybe there's something with my machine (Mandrake Linux Cooker past
> 9.0 beta4) but for a while I've been getting this error on launch.
> 
> emacs-version is GNU Emacs 21.3.50.3 (i686-pc-linux-gnu, X toolkit) of
> 2002-08-31 on primate.xs4all.nl (checked out just after 17:00)
[...]
> fancy-splash-screens: Wrong type argument: framep, nil

Presently, `fancy-splash-screens-p' may return t when
`fancy-splash-frame' returns nil, because its `frame-selected-window'
call with a nil optional FRAME argument will default to the currently
selected frame.  We could fix that like so:

*** /build-emacs/emacs/lisp/startup.el~	Sun Sep  1 04:14:28 2002
--- /build-emacs/emacs/lisp/startup.el	Mon Sep  2 21:42:44 2002
***************
*** 1322,1335 ****
    (when (or (and (display-color-p)
  		 (image-type-available-p 'xpm))
  	    (image-type-available-p 'pbm))
!     (let* ((frame (fancy-splash-frame))
! 	   (img (create-image (or fancy-splash-image
! 				  (if (and (display-color-p)
! 					   (image-type-available-p 'xpm))
! 				      "splash.xpm" "splash.pbm"))))
! 	   (image-height (and img (cdr (image-size img))))
! 	   (window-height (1- (window-height (frame-selected-window frame)))))
!       (> window-height (+ image-height 19)))))
  
  
  (defun normal-splash-screen ()
--- 1323,1337 ----
    (when (or (and (display-color-p)
  		 (image-type-available-p 'xpm))
  	    (image-type-available-p 'pbm))
!     (let ((frame (fancy-splash-frame)))
!       (when frame
! 	(let* ((img (create-image (or fancy-splash-image
! 				      (if (and (display-color-p)
! 					       (image-type-available-p 'xpm))
! 					  "splash.xpm" "splash.pbm"))))
! 	       (image-height (and img (cdr (image-size img))))
! 	       (window-height (1- (window-height (frame-selected-window frame)))))
! 	  (> window-height (+ image-height 19)))))))
  
  
  (defun normal-splash-screen ()


Incidentally, if you try the following change to 'fancy-splash-screens' 
does that avoid the error?  Do you get a sane fancy splash screen?

*** /build-emacs/emacs/lisp/startup.el~	Sun Sep  1 04:14:28 2002
--- /build-emacs/emacs/lisp/startup.el	Mon Sep  2 21:23:46 2002
***************
*** 1276,1282 ****
  	(frame (fancy-splash-frame))
  	timer)
      (save-selected-window
!       (select-frame frame)
        (switch-to-buffer "GNU Emacs")
        (setq tab-width 20)
        (setq splash-buffer (current-buffer))
--- 1276,1283 ----
  	(frame (fancy-splash-frame))
  	timer)
      (save-selected-window
!       (if frame
! 	  (select-frame frame))
        (switch-to-buffer "GNU Emacs")
        (setq tab-width 20)
        (setq splash-buffer (current-buffer))

-- 
John Paul Wallington

  parent reply	other threads:[~2002-09-02 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2bs7ishjo.fsf@primate.xs4all.nl>
2002-09-02  0:01 ` fancy-splash-screens bug? Richard Stallman
2002-09-02 21:00 ` John Paul Wallington [this message]
2002-09-04 14:20   ` Richard Stallman

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=874rd8w1in.fsf@bundalo.shootybangbang.com \
    --to=jpw@shootybangbang.com \
    --cc=emacs-devel@gnu.org \
    /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).