summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/doc-view.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 33076abb2f4..a8a7ac85a8d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
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
fundamental-mode or ps-mode if the file is empty or doesn't exist
at all.
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?