lrs@indetech.com (Lynn Slater) (08/31/89)
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 ===============================================================