]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix broken call to string-match.
authorTassilo Horn <tassilo@member.fsf.org>
Tue, 27 Jan 2009 18:34:02 +0000 (18:34 +0000)
committerTassilo Horn <tassilo@member.fsf.org>
Tue, 27 Jan 2009 18:34:02 +0000 (18:34 +0000)
lisp/ChangeLog
lisp/doc-view.el

index 33076abb2f4a288a165ca374656b015c77af926e..a8a7ac85a8df413a1e6014808b39da120b84c8a3 100644 (file)
@@ -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
index 2507b8644702c9ee2f53979082a5ddf242992991..8817db739e14259287a926b65abf53ef755adbc8 100644 (file)
@@ -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?