From xemacs-m  Mon Apr 21 21:22:39 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA03719
	for <xemacs-beta@xemacs.org>; Mon, 21 Apr 1997 21:22:38 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id TAA01246;
	Mon, 21 Apr 1997 19:35:45 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Internal emacs bug???
References: <199704211036.DAA26469@bittersweet.inetarena.com> <QQcmhp25573.199704220125@crystal.WonderWorks.COM>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Kyle Jones's message of Mon, 21 Apr 1997 21:25:14 -0400 (EDT)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 21 Apr 1997 19:35:40 -0700
Message-ID: <m24tczg4xv.fsf@altair.xemacs.org>
Lines: 61
X-Mailer: Gnus v5.4.45/XEmacs 20.2(beta2)

Kyle Jones <kyle_jones@wonderworks.com> writes:

> Karl M. Hegbloom writes:
>> 
>> What does this mean?  I was trying to add to my PATH, by using {C-:}, 
>> and in the minibuffer went: (I'm fairly certain I did not typo.)

A reasonable question.  I'm fairly certain you did typo, but you did
find a problem.

>> (setenv "PATH" (concat (getenv "PATH") ":/usr/sbin:/sbin"))
>> ... XEmacs blonked, and gave the error message in the photo.

> It says "INTERNAL EMACS BUG" but it isn't really.  ESC : " RET
> will generate the same message and all you did was leave off a
> closing ".  The message should be fixed.

One of the golden rules of the C code is that internal implementation
objects (like lstreams in this case) do not escape to the Lisp level,
so technically speaking, it is a bug.

This patch glosses over it:
Keyboard input error: "End of input before end of expression"

Mon Apr 21 15:15:12 1997  Steven L Baur  <steve@altair.xemacs.org>

	* prim/minibuf.el (input-error): New error type.
	(read-from-minibuffer): Use it.

Index: lisp/prim/minibuf.el
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/lisp/prim/minibuf.el,v
retrieving revision 1.4
diff -u -r1.4 minibuf.el
--- minibuf.el	1997/04/10 05:55:46	1.4
+++ minibuf.el	1997/04/22 02:19:00
@@ -284,6 +284,8 @@
 		 integer)
   :group 'minibuffer)
 
+(define-error 'input-error "Keyboard input error")
+
 (defun read-from-minibuffer (prompt &optional initial-contents
                                     keymap
                                     readp
@@ -436,7 +438,10 @@
                            ;; total total kludge
                            (if (stringp v) (setq v (list 'quote v)))
                            (setq val v))
-                       (error (setq err e))))
+                       (end-of-file
+			(setq err
+			      '(input-error "End of input before end of expression")))
+		       (error (setq err e))))
                  ;; Add the value to the appropriate history list unless
                  ;; it's already the most recent element, or it's only
                  ;; two characters long.

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

