# HG changeset patch # User Tassilo Horn # Date 1208241943 0 # Node ID 41edf72809eb15b34a2bd21ec9f849d79bf101f2 # Parent 14fafab62797627338a091de7a95e149d91550c7 Changed requirements section to tell that only one of dvipdf or dvipdfm is needed. (doc-view-already-converted-p): Fix bug that forced reconversion if doc was already converted. diff -r 14fafab62797 -r 41edf72809eb lisp/doc-view.el --- a/lisp/doc-view.el Mon Apr 14 22:04:38 2008 +0000 +++ b/lisp/doc-view.el Tue Apr 15 06:45:43 2008 +0000 @@ -26,8 +26,9 @@ ;;; Requirements: ;; doc-view.el requires GNU Emacs 22.1 or newer. You also need Ghostscript, -;; `dvipdfm' which comes with teTeX and `pdftotext', which comes with xpdf -;; (http://www.foolabs.com/xpdf/) or poppler (http://poppler.freedesktop.org/). +;; `dvipdf' (comes with Ghostscript) or `dvipdfm' (comes with teTeX or TeXLive) +;; and `pdftotext', which comes with xpdf (http://www.foolabs.com/xpdf/) or +;; poppler (http://poppler.freedesktop.org/). ;;; Commentary: @@ -1026,7 +1027,7 @@ (defun doc-view-already-converted-p () "Return non-nil if the current doc was already converted." (and (file-exists-p (doc-view-current-cache-dir)) - (> 0 (length (directory-files (doc-view-current-cache-dir) nil "\\.png$"))))) + (> (length (directory-files (doc-view-current-cache-dir) nil "\\.png$")) 0))) (defun doc-view-initiate-display () ;; Switch to image display if possible