Article View: gnu.emacs.bug
Article #87216emacs xxx.tar.~1~ and inhibit-first-line-modes-regexps
From: Joerg-Martin Schwarz
Date: Tue, 04 Oct 1994 14:35
Date: Tue, 04 Oct 1994 14:35
25 lines
1786 bytes
1786 bytes
In GNU Emacs 19.25.1 of Fri Jun 10 1994 on hal1 (rs6000-ibm-aix3.2)
In the function set-auto-mode (files.el),
the inhibit-first-line-modes-regexps should be tested
against the file name without version, just as it is done with the
auto-mode-alist.
diff -u /software/emacs-19.25/lisp/files.el /var/tmp/files.el
--- /software/emacs-19.25/lisp/files.el Sat Sep 17 00:22:54 1994
+++ /var/tmp/files.el Sat Sep 17 00:22:54 1994
@@ -888,10 +888,11 @@
(and enable-local-variables
;; Don't look for -*- if this file name matches any
;; of the regexps in inhibit-first-line-modes-regexps.
- (let ((temp inhibit-first-line-modes-regexps))
+ (let ((temp inhibit-first-line-modes-regexps)
+ (name (file-name-sans-versions buffer-file-name)))
(while (and temp
(not (string-match (car temp)
- buffer-file-name)))
+ name)))
(setq temp (cdr temp)))
(not temp))
(search-forward "-*-" (save-excursion
Technical Details
Message-ID:
<9410031914.AA15814@hal1.physik.uni-dortmund.de>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hal1.physik.uni-dortmund.de!schwarzShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,51eb618469da097a,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-04 07:43:05 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hal1.physik.uni-dortmund.de!schwarz From: schwarz@hal1.physik.uni-dortmund.de (Joerg-Martin Schwarz) Newsgroups: gnu.emacs.bug Subject: emacs xxx.tar.~1~ and inhibit-first-line-modes-regexps Date: 4 Oct 1994 10:35:40 -0400 Organization: GNUs Not Usenet Lines: 25 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9410031914.AA15814@hal1.physik.uni-dortmund.de>