mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
* files.el (set-auto-mode-1): Check second line for -*- if file
starts with '\" (which is used by man pages to identify needed troff preprocessors).
This commit is contained in:
parent
5fd98b2151
commit
dddb4597e1
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-11-16 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* files.el (set-auto-mode-1): Check second line for -*- if file
|
||||
starts with '\" (which is used by man pages to identify needed
|
||||
troff preprocessors).
|
||||
|
||||
2007-11-16 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* mail/mail-extr.el (mail-extr-all-top-level-domains): Update domains.
|
||||
|
|
|
|||
|
|
@ -2428,7 +2428,11 @@ Otherwise, return nil; point may be changed."
|
|||
;; put them in the first line of
|
||||
;; such a file without screwing up
|
||||
;; the interpreter invocation.
|
||||
(and (looking-at "^#!") 2)) t)
|
||||
;; The same holds for
|
||||
;; '\"
|
||||
;; in man pages (preprocessor
|
||||
;; magic for the `man' program).
|
||||
(and (looking-at "^\\(#!\\|'\\\\\"\\)") 2)) t)
|
||||
(progn
|
||||
(skip-chars-forward " \t")
|
||||
(setq beg (point))
|
||||
|
|
|
|||
Loading…
Reference in a new issue