]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove version keyword.
authorReiner Steib <Reiner.Steib@gmx.de>
Thu, 18 Oct 2007 19:46:39 +0000 (19:46 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Thu, 18 Oct 2007 19:46:39 +0000 (19:46 +0000)
(doc-view-ghostscript-program, doc-view-dvipdfm-program)
(doc-view-ps2pdf-program): Use executable-find.  Simplify custom type.
(doc-view-ghostscript-options): Improve custom type.
(doc-view-cache-directory, doc-view-conversion-buffer)
(doc-view-conversion-refresh-interval): Simplify custom type.

lisp/ChangeLog
lisp/doc-view.el

index b1a674aa3634be0b925c23e74cf1598d3d058675..fb0f80907bcbad00b7fe4a7afd4b97202ecd9ee9 100644 (file)
@@ -1,3 +1,12 @@
+2007-10-18  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * doc-view.el: Remove version keyword.
+       (doc-view-ghostscript-program, doc-view-dvipdfm-program)
+       (doc-view-ps2pdf-program): Use executable-find.  Simplify custom type.
+       (doc-view-ghostscript-options): Improve custom type.
+       (doc-view-cache-directory, doc-view-conversion-buffer)
+       (doc-view-conversion-refresh-interval): Simplify custom type.
+
 2007-10-18  Tassilo Horn  <tassilo@member.fsf.org>
 
        * doc-view.el (doc-view-dvi->pdf-sentinel, doc-view-dvi->pdf)
@@ -8,7 +17,6 @@
        (doc-view-mode-map): Use the image-mode scrolling commands.  Don't
        rebind C-x k.
 
-
 2007-10-18  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * doc-view.el (doc-view-ghostscript-options, doc-view-ps->pdf):
index dd7565ced87266c98e2cfbde1f632d5c15353f28..d93a8ca316d5d59e64275642bc5379f33f999ed2 100644 (file)
@@ -5,7 +5,6 @@
 ;; Author: Tassilo Horn <tassilo@member.fsf.org>
 ;; Maintainer: Tassilo Horn <tassilo@member.fsf.org>
 ;; Keywords: files, pdf, ps, dvi
-;; Version: <2007-10-17 Wed 22:15>
 
 ;; This file is part of GNU Emacs.
 
   :group 'multimedia
   :prefix "doc-view-")
 
-(defcustom doc-view-ghostscript-program "gs"
+(defcustom doc-view-ghostscript-program (executable-find "gs")
   "Program to convert PS and PDF files to PNG."
-  :type '(file)
+  :type 'file
   :group 'doc-view)
 
 (defcustom doc-view-ghostscript-options
     "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4"
     "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-r100")
   "A list of options to give to ghostscript."
-  :type '(sexp)
+  :type '(repeat string)
   :group 'doc-view)
 
-(defcustom doc-view-dvipdfm-program "dvipdfm"
+(defcustom doc-view-dvipdfm-program (executable-find "dvipdfm")
   "Program to convert DVI files to PDF.
 
 DVI file will be converted to PDF before the resulting PDF is
 converted to PNG."
-  :type '(file)
+  :type 'file
   :group 'doc-view)
 
-(defcustom doc-view-ps2pdf-program "ps2pdf"
+(defcustom doc-view-ps2pdf-program (executable-find "ps2pdf")
   "Program to convert PS files to PDF.
 
 PS files will be converted to PDF before searching is possible."
-  :type '(file)
+  :type 'file
   :group 'doc-view)
 
-(defcustom doc-view-pdftotext-program "pdftotext"
+(defcustom doc-view-pdftotext-program (executable-find "pdftotext")
   "Program to convert PDF files to plain text.
 
 Needed for searching."
-  :type '(file)
+  :type 'file
   :group 'doc-view)
 
 (defcustom doc-view-cache-directory (concat temporary-file-directory
                                            "doc-view")
   "The base directory, where the PNG images will be saved."
-  :type '(directory)
+  :type 'directory
   :group 'doc-view)
 
 (defcustom doc-view-conversion-buffer "*doc-view conversion output*"
   "The buffer where messages from the converter programs go to."
-  :type '(string)
+  :type 'string
   :group 'doc-view)
 
 (defcustom doc-view-conversion-refresh-interval 3
@@ -168,7 +167,7 @@ After such an refresh newly converted pages will be available for
 viewing.  If set to nil there won't be any refreshes and the
 pages won't be displayed before conversion of the whole document
 has finished."
-  :type '(string)
+  :type 'integer
   :group 'doc-view)
 
 ;;;; Internal Variables