[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/doc-view.el,v
From: |
Michael Cadilhac |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/doc-view.el,v |
Date: |
Wed, 03 Oct 2007 23:27:48 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Cadilhac <cadilhac> 07/10/03 23:27:48
Index: doc-view.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/doc-view.el,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- doc-view.el 10 Sep 2007 11:53:00 -0000 1.2
+++ doc-view.el 3 Oct 2007 23:27:48 -0000 1.3
@@ -5,7 +5,7 @@
;; Author: Tassilo Horn <address@hidden>
;; Maintainer: Tassilo Horn <address@hidden>
;; Keywords: files, pdf, ps, dvi
-;; Version: <2007-09-07 Fri 15:28>
+;; Version: <2007-10-02 Tue 18:21>
;; This file is part of GNU Emacs.
@@ -344,7 +344,7 @@
(defun doc-view-dvi->pdf-sentinel (proc event)
"If DVI->PDF conversion was successful, convert the PDF to PNG
-now."
+ now."
(if (not (string-match "finished" event))
(message "DocView: dvi->pdf process changed status to %s." event)
(set-buffer (process-get proc 'buffer))
@@ -579,8 +579,8 @@
For now these keys are useful:
- `q' : Bury this buffer. Conversion will go on in background.
- `k' : Kill the conversion process and this buffer.\n")
+`q' : Bury this buffer. Conversion will go on in background.
+`k' : Kill the conversion process and this buffer.\n")
(setq inhibit-read-only nil))
(defun doc-view-show-tooltip ()
@@ -591,12 +591,8 @@
(defun doc-view-search-internal (regexp file)
"Return a list of FILE's pages that contain text matching REGEXP.
-The value is an alist of the form
-
- (PAGE CONTEXTS)
-
-where PAGE is the pagenumber and CONTEXTS are the lines
-containing the match."
+The value is an alist of the form (PAGE CONTEXTS) where PAGE is
+the pagenumber and CONTEXTS are all lines of text containing a match."
(with-temp-buffer
(insert-file-contents file)
(let ((page 1)
@@ -705,6 +701,7 @@
;;;; User Interface Commands
+;;;###autoload
(defun doc-view (no-cache &optional file)
"Convert FILE to png and start viewing it.
If no FILE is given, query for on.
@@ -716,7 +713,14 @@
(display-images-p)))
(message "DocView: your emacs or display doesn't support png images.")
(let* ((doc (or file
- (expand-file-name (read-file-name "File: " nil nil t))))
+ (expand-file-name
+ (let ((completion-ignored-extensions
+ ;; Don't hide files doc-view can display
+ (remove-if (lambda (str)
+ (string-match
"\\.\\(ps\\|pdf\\|dvi\\)$"
+ str))
+ completion-ignored-extensions)))
+ (read-file-name "File: " nil nil t)))))
(buffer (get-buffer-create (format "*DocView: %s*" doc)))
(dir (doc-view-file-name-to-directory-name doc)))
(switch-to-buffer buffer)
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v,
Michael Cadilhac <=
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Michael Cadilhac, 2007/10/03
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/17
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/17
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Reiner Steib, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Stefan Monnier, 2007/10/19
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Glenn Morris, 2007/10/30
- [Emacs-diffs] Changes to emacs/lisp/doc-view.el,v, Stefan Monnier, 2007/10/30