Mercurial > emacs
changeset 101575:4372a2194e53
Fix broken call to string-match.
author | Tassilo Horn <tassilo@member.fsf.org> |
---|---|
date | Tue, 27 Jan 2009 18:34:02 +0000 |
parents | 9ef994c968b4 |
children | a46c34d5b31d |
files | lisp/ChangeLog lisp/doc-view.el |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Jan 27 18:19:36 2009 +0000 +++ b/lisp/ChangeLog Tue Jan 27 18:34:02 2009 +0000 @@ -1,3 +1,7 @@ +2009-01-27 Tassilo Horn <tassilo@member.fsf.org> + + (doc-view-mode): Fix broken call to string-match. + 2009-01-27 Tassilo Horn <tassilo@member.fsf.org> * doc-view.el (doc-view-mode): Enhance docstring and fallback to
--- a/lisp/doc-view.el Tue Jan 27 18:19:36 2009 +0000 +++ b/lisp/doc-view.el Tue Jan 27 18:34:02 2009 +0000 @@ -1095,7 +1095,7 @@ (= (point-min) (point-max))) ;; The doc is empty or doesn't exist at all, so fallback to an ;; editing mode. - (if (string-match "[eE]?[pP][sS]" (file-name-extension buffer-file-name) "") + (if (string-match "[eE]?[pP][sS]" (file-name-extension buffer-file-name)) (ps-mode) (fundamental-mode)) ;;Should we activate d-v-minor-mode here?