From xemacs-m  Fri Jun  6 17:06:22 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id RAA17893
	for <xemacs-beta@xemacs.org>; Fri, 6 Jun 1997 17:06:21 -0500 (CDT)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa12533;
          6 Jun 97 18:10 EDT
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id SAA24342; Fri, 6 Jun 1997 18:10:05 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id SAA15556; Fri, 6 Jun 1997 18:09:22 -0400
Date: Fri, 6 Jun 1997 18:09:22 -0400
Message-Id: <199706062209.SAA15556@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Subject: Patch to prim/files.el
X-Mailer: VM 6.32 under 20.3 XEmacs Lucid (beta4)
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: Simply a matter of work
X-Url: http://www.python.org/~bwarsaw


Here's a patch to files.el 20.3b4 which partially restores some of the 
associations in auto-mode-alist from 19.14.  In particular, visiting
my ~/.bashrc file did not invoke sh-mode!

-Barry

-------------------- snip snip --------------------
*** files.el	1997/06/06 21:46:13	1.1
--- files.el	1997/06/06 21:47:29
***************
*** 1117,1120 ****
--- 1117,1124 ----
      ("\\.m\\([mes]\\|an\\)\\'" . nroff-mode)
      ("\\.icn\\'" . icon-mode)
+     ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)
+     ("/\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode)
+     ("/\\.\\(bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode)
+     ("/\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode)
  ;;; The following should come after the ChangeLog pattern
  ;;; for the sake of ChangeLog.1, etc.

