Mercurial > emacs
comparison lisp/doc-view.el @ 95841:b4e36ff621b3
Add some compiler declarations, for builds without X.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 12 Jun 2008 03:56:20 +0000 |
parents | 88781ac6a1be |
children | bfca3297fa0b |
comparison
equal
deleted
inserted
replaced
95840:0e3c2e18b9c3 | 95841:b4e36ff621b3 |
---|---|
626 (format "-dLastPage=%d" page) | 626 (format "-dLastPage=%d" page) |
627 (concat "-sOutputFile=" png) | 627 (concat "-sOutputFile=" png) |
628 pdf)) | 628 pdf)) |
629 callback)) | 629 callback)) |
630 | 630 |
631 (declare-function clear-image-cache "image.c" (&optional filter)) | |
632 | |
631 (defun doc-view-pdf->png (pdf png pages) | 633 (defun doc-view-pdf->png (pdf png pages) |
632 "Convert a PDF file to PNG asynchronously. | 634 "Convert a PDF file to PNG asynchronously. |
633 Start by converting PAGES, and then the rest." | 635 Start by converting PAGES, and then the rest." |
634 (if (null pages) | 636 (if (null pages) |
635 (doc-view-pdf/ps->png pdf png) | 637 (doc-view-pdf/ps->png pdf png) |
725 (t | 727 (t |
726 ;; Convert to PNG images. | 728 ;; Convert to PNG images. |
727 (doc-view-pdf/ps->png doc-view-buffer-file-name png-file))))) | 729 (doc-view-pdf/ps->png doc-view-buffer-file-name png-file))))) |
728 | 730 |
729 ;;;; Slicing | 731 ;;;; Slicing |
732 | |
733 (declare-function image-size "image.c" (spec &optional pixels frame)) | |
730 | 734 |
731 (defun doc-view-set-slice (x y width height) | 735 (defun doc-view-set-slice (x y width height) |
732 "Set the slice of the images that should be displayed. | 736 "Set the slice of the images that should be displayed. |
733 You can use this function to tell doc-view not to display the | 737 You can use this function to tell doc-view not to display the |
734 margins of the document. It prompts for the top-left corner (X | 738 margins of the document. It prompts for the top-left corner (X |
862 | 866 |
863 `q' : Bury this buffer. Conversion will go on in background. | 867 `q' : Bury this buffer. Conversion will go on in background. |
864 `k' : Kill the conversion process and this buffer. | 868 `k' : Kill the conversion process and this buffer. |
865 `K' : Kill the conversion process.\n")))) | 869 `K' : Kill the conversion process.\n")))) |
866 | 870 |
871 (declare-function tooltip-show "tooltip" (text &optional use-echo-area)) | |
872 | |
867 (defun doc-view-show-tooltip () | 873 (defun doc-view-show-tooltip () |
868 (interactive) | 874 (interactive) |
869 (tooltip-show (doc-view-current-info))) | 875 (tooltip-show (doc-view-current-info))) |
870 | 876 |
871 (defun doc-view-open-text () | 877 (defun doc-view-open-text () |