From xemacs-m  Thu Jul 17 15:18:36 1997
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA17069
	for <xemacs-beta@xemacs.org>; Thu, 17 Jul 1997 15:18:35 -0500 (CDT)
Received: from SUNDIAL.MIT.EDU by MIT.EDU with SMTP
	id AA28251; Thu, 17 Jul 97 16:15:36 EDT
Received: by sundial.MIT.EDU (8.8.5/4.7) id QAA22382; Thu, 17 Jul 1997 16:16:50 -0400 (EDT)
Date: Thu, 17 Jul 1997 16:16:50 -0400 (EDT)
Message-Id: <199707172016.QAA22382@sundial.MIT.EDU>
From: David Bakhash <cadet@MIT.EDU>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="x9obAfaY3u"
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: fix for `Info'
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid


--x9obAfaY3u
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This was send to xemacs@xemacs.org, but I don't know if that was the
right place to send the bug/patch.  so here it is.

--dave


--x9obAfaY3u
Content-Type: multipart/digest; boundary="Tcy11ICGng"
Content-Transfer-Encoding: 7bit

This is a digest, 2 messages, MIME encapsulation.

--Tcy11ICGng

From: David Bakhash <cadet@MIT.EDU>
To: xemacs@xemacs.org, remek@npac.syr.edu
Subject: Info bug re: frame deletion solved...
Date: Thu, 17 Jul 1997 14:19:37 -0400 (EDT)
Message-Id: <199707171819.OAA05174@sundial.MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Okay,
	I've solved the frame bug.  Here's how to reproduce the bug...

% xemacs -q -no-site-init &

then, inside XEmacs...

(let's call the current frame frame1)
mouse select the toolbar `Info' button.

now you have a new frame (`frame2').

Now, delete frame1, because you figure you don't want it for some
reason. (perfectly valid to do IMHO).

now, you're done with Info.  So invoke Info-exit, however you choose,
either w/ the toolbar button, or with "q".

now you get the error:

Attempt to delete only frame.

that's b/c of this stuff in info.el:

(defun Info-exit ()
  "Exit Info by selecting some other buffer."
  (interactive)
  (if Info-standalone
      (save-buffers-kill-emacs)
    (bury-buffer (current-buffer))
    (if (and (featurep 'toolbar)
	     (eq toolbar-info-frame (selected-frame)))
	(delete-frame toolbar-info-frame) ;; ### this should be handled
					  ;; ### with a condition-case
					  ;; ### and then a `bury-buffer'
      (switch-to-buffer (other-buffer (current-buffer))))))

--dave


--Tcy11ICGng

From: David Bakhash <cadet@MIT.EDU>
To: xemacs@xemacs.org
Subject: Info bug: patch
Date: Thu, 17 Jul 1997 14:48:50 -0400 (EDT)
Message-Id: <199707171848.OAA09874@sundial.MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

I'm still no good at using the patch utility, so here's a new
`Info-exit'.  It works okay...

(defun Info-exit ()
  "Exit Info by selecting some other buffer."
  (interactive)
  (if Info-standalone
      (save-buffers-kill-emacs)
    (bury-buffer (current-buffer))
    (if (and (featurep 'toolbar)
	     (eq toolbar-info-frame (selected-frame)))
	(condition-case ()
	    (delete-frame toolbar-info-frame)
	  (error (bury-buffer)))
      (switch-to-buffer (other-buffer (current-buffer))))))

--dave

--Tcy11ICGng--

--x9obAfaY3u--

