aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/doc-view.el
diff options
context:
space:
mode:
authorTassilo Horn <[email protected]>2008-04-15 06:46:11 +0000
committerTassilo Horn <[email protected]>2008-04-15 06:46:11 +0000
commit1ecc9da7bd39d0b1c6a697b1525ab3a30ce9c761 (patch)
tree14e3ee2b10feb8998bf2f8f44a8020f162d84f5d /lisp/doc-view.el
parentbd5c2732aa2d2dacb43fe047caf7fc45dc18d342 (diff)
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.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r--lisp/doc-view.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 4e095c0e67..834c661af4 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -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 @@ If BACKWARD is non-nil, jump to the previous match."
(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