diff options
| author | John Paul Wallington | 2004-10-28 10:29:50 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2004-10-28 10:29:50 +0000 |
| commit | 8a9cdb8db471a685a344e1b836fa9ab3dee2734f (patch) | |
| tree | 5247819cb13fa4da9e9900a3ef57cb8eae2263d3 | |
| parent | 02c9f5cd8af92935fa083a2f604be8f7edab03d0 (diff) | |
| download | emacs-8a9cdb8db471a685a344e1b836fa9ab3dee2734f.tar.gz emacs-8a9cdb8db471a685a344e1b836fa9ab3dee2734f.zip | |
(set-auto-mode): Call `throw' correctly.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/files.el | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83a01bdd2ed..aa83b78af1e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-10-28 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * files.el (set-auto-mode): Call `throw' correctly. | ||
| 4 | |||
| 1 | 2004-10-28 Juri Linkov <juri@jurta.org> | 5 | 2004-10-28 Juri Linkov <juri@jurta.org> |
| 2 | 6 | ||
| 3 | * info.el (Info-file-list-for-emacs): Add ("Info" . "info") | 7 | * info.el (Info-file-list-for-emacs): Add ("Info" . "info") |
diff --git a/lisp/files.el b/lisp/files.el index 83955d26fcc..a4f846fbdee 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1896,7 +1896,7 @@ only set the major mode, if that would change it." | |||
| 1896 | (message "Ignoring unknown mode `%s'" mode) | 1896 | (message "Ignoring unknown mode `%s'" mode) |
| 1897 | (setq done t) | 1897 | (setq done t) |
| 1898 | (or (set-auto-mode-0 mode) | 1898 | (or (set-auto-mode-0 mode) |
| 1899 | (throw 'nop))))) | 1899 | (throw 'nop nil))))) |
| 1900 | ;; If we didn't, look for an interpreter specified in the first line. | 1900 | ;; If we didn't, look for an interpreter specified in the first line. |
| 1901 | ;; As a special case, allow for things like "#!/bin/env perl", which | 1901 | ;; As a special case, allow for things like "#!/bin/env perl", which |
| 1902 | ;; finds the interpreter anywhere in $PATH. | 1902 | ;; finds the interpreter anywhere in $PATH. |