Path: utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!indetech.com!lrs From: lrs@indetech.com (Lynn Slater) Newsgroups: gnu.emacs.bug Subject: Change so that the mode line can be in first or second line Message-ID: Date: 31 Aug 89 14:34:00 GMT Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Mode lines are not useful on certain unix shell scripts because the shell specification must be on the first line. The folowing very simple change causes the mode line to be recognized on the first or the second line. In the set-auto-mode function in files.el, change the two occurances of (search-forward "-*-" (save-excursion (end-of-line) (point)) t) to (search-forward "-*-" (save-excursion (forward-line 1)(end-of-line) (point)) t) Unless this messes something else up, I would like to propose that this be incorperated into standard distributions. =============================================================== Lynn Slater -- {sun, ames, pacbell}!indetech!lrs or lrs@indetech.uucp 42075 Lawrence Place, Fremont Ca 94538 Office (415) 438-2048; Home (415) 796-4149; Fax (415) 438-2034 ===============================================================