diff options
| author | Glenn Morris | 2007-10-31 03:10:32 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-31 03:10:32 +0000 |
| commit | 1f75e53dd2ca645a423e477d168fcc4c0cacf06e (patch) | |
| tree | bf9d8b82baa4a3e5c088f6f7ad82179d0720f129 | |
| parent | 0bbaf7b4497c4c826e286ef657b3a3eb465d03ae (diff) | |
| download | emacs-1f75e53dd2ca645a423e477d168fcc4c0cacf06e.tar.gz emacs-1f75e53dd2ca645a423e477d168fcc4c0cacf06e.zip | |
(doc-view-conversion-refresh-interval)
(doc-view-dvi->pdf, doc-view-pdf/ps->png, doc-view-pdf->txt)
(doc-view-reset-slice): Doc fixes.
(doc-view-menu): Remove deleted function doc-view-edit-doc.
| -rw-r--r-- | lisp/doc-view.el | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 7f31f842e0e..db5dd931c50 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -42,8 +42,7 @@ | |||
| 42 | ;; | 42 | ;; |
| 43 | ;; and the document will be converted and displayed, if your emacs supports png | 43 | ;; and the document will be converted and displayed, if your emacs supports png |
| 44 | ;; images. With `C-c C-c' you can toggle between the rendered images | 44 | ;; images. With `C-c C-c' you can toggle between the rendered images |
| 45 | ;; representation and the source text representation of the document. With | 45 | ;; representation and the source text representation of the document. |
| 46 | ;; `C-c C-e' you can switch to an appropriate editing mode for the document. | ||
| 47 | ;; | 46 | ;; |
| 48 | ;; Since conversion may take some time all the PNG images are cached in a | 47 | ;; Since conversion may take some time all the PNG images are cached in a |
| 49 | ;; subdirectory of `doc-view-cache-directory' and reused when you want to view | 48 | ;; subdirectory of `doc-view-cache-directory' and reused when you want to view |
| @@ -169,8 +168,8 @@ Needed for searching." | |||
| 169 | :group 'doc-view) | 168 | :group 'doc-view) |
| 170 | 169 | ||
| 171 | (defcustom doc-view-conversion-refresh-interval 3 | 170 | (defcustom doc-view-conversion-refresh-interval 3 |
| 172 | "Every how much seconds the DocView buffer gets refreshed while conversion. | 171 | "Interval in seconds between refreshes of the DocView buffer while converting. |
| 173 | After such an refresh newly converted pages will be available for | 172 | After such a refresh newly converted pages will be available for |
| 174 | viewing. If set to nil there won't be any refreshes and the | 173 | viewing. If set to nil there won't be any refreshes and the |
| 175 | pages won't be displayed before conversion of the whole document | 174 | pages won't be displayed before conversion of the whole document |
| 176 | has finished." | 175 | has finished." |
| @@ -264,7 +263,6 @@ has finished." | |||
| 264 | "---" | 263 | "---" |
| 265 | ["Search" doc-view-search] | 264 | ["Search" doc-view-search] |
| 266 | ["Toggle display" doc-view-toggle-display] | 265 | ["Toggle display" doc-view-toggle-display] |
| 267 | ["Leave DocView" doc-view-edit-doc] | ||
| 268 | )) | 266 | )) |
| 269 | 267 | ||
| 270 | (defvar doc-view-minor-mode-map | 268 | (defvar doc-view-minor-mode-map |
| @@ -447,7 +445,7 @@ Should be invoked when the cached images aren't up-to-date." | |||
| 447 | (doc-view-pdf/ps->png pdf png)))) | 445 | (doc-view-pdf/ps->png pdf png)))) |
| 448 | 446 | ||
| 449 | (defun doc-view-dvi->pdf (dvi pdf) | 447 | (defun doc-view-dvi->pdf (dvi pdf) |
| 450 | "Convert DVI to PDF asynchrounously." | 448 | "Convert DVI to PDF asynchronously." |
| 451 | (setq doc-view-current-converter-process | 449 | (setq doc-view-current-converter-process |
| 452 | (start-process "dvi->pdf" doc-view-conversion-buffer | 450 | (start-process "dvi->pdf" doc-view-conversion-buffer |
| 453 | doc-view-dvipdfm-program | 451 | doc-view-dvipdfm-program |
| @@ -472,7 +470,7 @@ Should be invoked when the cached images aren't up-to-date." | |||
| 472 | (doc-view-display buffer-file-name))) | 470 | (doc-view-display buffer-file-name))) |
| 473 | 471 | ||
| 474 | (defun doc-view-pdf/ps->png (pdf-ps png) | 472 | (defun doc-view-pdf/ps->png (pdf-ps png) |
| 475 | "Convert PDF-PS to PNG asynchrounously." | 473 | "Convert PDF-PS to PNG asynchronously." |
| 476 | (setq doc-view-current-converter-process | 474 | (setq doc-view-current-converter-process |
| 477 | (apply 'start-process | 475 | (apply 'start-process |
| 478 | (append (list "pdf/ps->png" doc-view-conversion-buffer | 476 | (append (list "pdf/ps->png" doc-view-conversion-buffer |
| @@ -505,7 +503,7 @@ Should be invoked when the cached images aren't up-to-date." | |||
| 505 | (doc-view-search))))) | 503 | (doc-view-search))))) |
| 506 | 504 | ||
| 507 | (defun doc-view-pdf->txt (pdf txt) | 505 | (defun doc-view-pdf->txt (pdf txt) |
| 508 | "Convert PDF to TXT asynchrounously." | 506 | "Convert PDF to TXT asynchronously." |
| 509 | (setq doc-view-current-converter-process | 507 | (setq doc-view-current-converter-process |
| 510 | (start-process "pdf->txt" doc-view-conversion-buffer | 508 | (start-process "pdf->txt" doc-view-conversion-buffer |
| 511 | doc-view-pdftotext-program "-raw" | 509 | doc-view-pdftotext-program "-raw" |
| @@ -606,8 +604,7 @@ dragging it to its bottom-right corner. See also | |||
| 606 | 604 | ||
| 607 | (defun doc-view-reset-slice () | 605 | (defun doc-view-reset-slice () |
| 608 | "Reset the current slice. | 606 | "Reset the current slice. |
| 609 | After calling this function the whole pages will be visible | 607 | After calling this function whole pages will be visible again." |
| 610 | again." | ||
| 611 | (interactive) | 608 | (interactive) |
| 612 | (setq doc-view-current-slice nil) | 609 | (setq doc-view-current-slice nil) |
| 613 | ;; Redisplay | 610 | ;; Redisplay |
| @@ -655,7 +652,7 @@ Predicate for sorting `doc-view-current-files'." | |||
| 655 | (concat (propertize "Welcome to DocView!" 'face 'bold) | 652 | (concat (propertize "Welcome to DocView!" 'face 'bold) |
| 656 | "\n" | 653 | "\n" |
| 657 | " | 654 | " |
| 658 | If you see this buffer it means that the document you want to view is being | 655 | If you see this buffer it means that the document you want to view is being |
| 659 | converted to PNG and the conversion of the first page hasn't finished yet or | 656 | converted to PNG and the conversion of the first page hasn't finished yet or |
| 660 | `doc-view-conversion-refresh-interval' is set to nil. | 657 | `doc-view-conversion-refresh-interval' is set to nil. |
| 661 | 658 | ||