From ff0def0e8f1a233c48d05399e1ef632426b10d23 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 27 Jan 2009 18:34:02 +0000 Subject: [PATCH] Fix broken call to string-match. --- lisp/ChangeLog | 4 ++++ lisp/doc-view.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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? -- 2.39.5