From xemacs-m  Tue Jun 17 15:12:28 1997
Received: from cerise.sensei.co.uk (glynn@muvies.demon.co.uk [158.152.66.14])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA25834
	for <xemacs-beta@xemacs.org>; Tue, 17 Jun 1997 15:12:24 -0500 (CDT)
Received: (from glynn@localhost) by cerise.sensei.co.uk (8.8.5/8.8.2) id OAA00804; Tue, 17 Jun 1997 14:46:44 +0100
Message-Id: <199706171346.OAA00804@cerise.sensei.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Glynn Clements <glynn@sensei.co.uk>
Subject: [Patch] man.el
Date: Wed, 28 May 97 23:24:58 BST
To: xemacs-beta@xemacs.org


I posted the following patch a while back, but it may have gone
unnoticed. It stops empty buffers being left lying around when
manual-entry fails to find a match.

As the previous patch (killing stderr output from the man command) has
made its way into the beta releases, there doesn't seem much point in
trying to get the error message out of the buffer, as it's not there
any more.

-- 
Glynn Clements <glynn@sensei.co.uk>


--- /usr/src/xemacs-20.2/lisp/packages/man.el.orig	Wed May 28 23:15:35 1997
+++ /usr/src/xemacs-20.2/lisp/packages/man.el	Wed May 28 23:18:06 1997
@@ -247,10 +247,8 @@
 
 		   (if (< (buffer-size) 200)
 		       (progn
-			 (goto-char (point-min))
-			 (error (buffer-substring (point)
-						  (progn (end-of-line)
-							 (point))))))
+			 (kill-buffer (current-buffer))
+			 (error "%s not found" args-string)))
 
 		   (message "%s (cleaning...)" args-string)
 		   (Manual-nuke-nroff-bs apropos-mode)

