From: Tassilo Horn Date: Tue, 27 Jan 2009 18:34:02 +0000 (+0000) Subject: Fix broken call to string-match. X-Git-Tag: emacs-pretest-23.0.90~147 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ff0def0e8f1a233c48d05399e1ef632426b10d23;p=emacs.git Fix broken call to string-match. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 33076abb2f4..a8a7ac85a8d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-01-27 Tassilo Horn + + (doc-view-mode): Fix broken call to string-match. + 2009-01-27 Tassilo Horn * doc-view.el (doc-view-mode): Enhance docstring and fallback to diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 2507b864470..8817db739e1 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1095,7 +1095,7 @@ toggle between displaying the document or editing it as text. (= (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?