From xemacs-m  Tue Jan 21 13:11:17 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
          by xemacs.org (8.8.4/8.8.4) with SMTP
	  id NAA00117 for <xemacs-beta@xemacs.org>; Tue, 21 Jan 1997 13:11:15 -0600 (CST)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa18180;
          21 Jan 97 14:11 EST
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id OAA08658; Tue, 21 Jan 1997 14:11:16 -0500
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id OAA25918; Tue, 21 Jan 1997 14:11:16 -0500
Date: Tue, 21 Jan 1997 14:11:16 -0500
Message-Id: <199701211911.OAA25918@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@anthem.cnri.reston.va.us>
To: xemacs-beta@xemacs.org
Subject: Small patch 19.15b90, files.el
Reply-To: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
X-Attribution: BAW
X-WWW-Homepage: http://www.python.org/~bwarsaw


Finally pulled down 19.15b90 to start taking a look.  The first
problem I encountered had to do with visiting a file when
enable-local-variables is 'query.  Even if the file does not have -*-
on it's first line, you'll still get queried to set local variables.

Seems bogus.  XEmacs should not query to set local variables in the
-*- line if there aren't any to set!  This may not be the ideal
patch, but it does fix the problem.

-Barry

-------------------- snip snip --------------------
*** files.el	1997/01/21 19:05:13	1.1
--- files.el	1997/01/21 19:06:03
***************
*** 1251,1255 ****
  	(cond ((not (search-forward "-*-" end t))
  	       ;; doesn't have one.
! 	       nil)
  	      ((looking-at "[ \t]*\\([^ \t\n\r:;]+\\)\\([ \t]*-\\*-\\)")
  	       ;; Antiquated form: "-*- ModeName -*-".
--- 1251,1255 ----
  	(cond ((not (search-forward "-*-" end t))
  	       ;; doesn't have one.
! 	       (setq force t))
  	      ((looking-at "[ \t]*\\([^ \t\n\r:;]+\\)\\([ \t]*-\\*-\\)")
  	       ;; Antiquated form: "-*- ModeName -*-".

