| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314\315\316\315\317\315\320\321\322&\210\323\324\325\326\327DD\330\331\332\313\333&\210\323\334\325\326\335DD\336\331\332\313\337&\210\323\340\325\326\341DD\342\313\333\331\343&\210\323\344\325\326\345DD\346\331\347\313\337&\210\323\350\325\326\351DD\352\331\353%\210\323\354\325\326\355DD\356\331\357\313\333&\210\323\360\325\326\361DD\362\331\363%\210\323\364\325\326\365DD\366\313\337\331\367&\210\323\370\325\326\371DD\372\313\373\331\363&\210\323\374\325\326\375DD\376\331\332%\210\323\377\325\326\201@ DD\201A \331\332%\210\201B \201C \201D \307#\210\201E \211\203\372 \211@\201C N\203\363 \201D N\204\363 \201F \201D \201C N#\210A\266\202\202\317 \210\201G \201C \201D \337#\210\323\201D \325\326\201H DD\201I \313\337\331\332&\210\323\201J \325\326\201K DD\201L \331\201M \313\337&\210\323\201N \325\326\201O DD\201P \331\332%\210\323\201Q \325\326\201R DD\201S \331\332%\210\323\201T \325\326\201U DD\201V \331\201W %\207" [require cl-lib dired image-mode jka-compr custom-declare-group doc-view nil "In-buffer viewer for PDF, PostScript, DVI, and DJVU files." :link (function-link doc-view) :version "22.2" :group applications data multimedia :prefix "doc-view-" custom-declare-variable doc-view-ghostscript-program funcall function #[0 "\301>\203. \302\303!\203 \303\207\302\304!\203 \304\207\302\305!\203 \305\207\302\306!\205- \307\310!\311U\205/ \306\207\312\207" [system-type (windows-nt ms-dos) executable-find "gswin64c" "gswin32c" "rungs" "mgs" shell-command "mgs -q -dNODISPLAY -c quit" 0 "gs"] 2 #1=""] "Program to convert PS and PDF files to PNG." :type file "27.1" doc-view-pdfdraw-program #[0 "\300\301!\203 \301\207\300\302!\203 \302\207\300\303!\203 \303\207\302\207" [executable-find "pdfdraw" "mudraw" "mutool"] 2 #1#] "Name of MuPDF's program to convert PDF files to PNG." "24.4" doc-view-pdftotext-program-args #[0 "\300\207" [("-raw")] 1 #1#] "Parameters to give to the pdftotext command." (repeat string) doc-view-pdf->png-converter-function #[0 "\301!\203 \302\207\303\207" [doc-view-pdfdraw-program executable-find doc-view-pdf->png-converter-mupdf doc-view-pdf->png-converter-ghostscript] 2 #1#] "Function to call to convert a PDF file into a PNG file." (radio (function-item doc-view-pdf->png-converter-ghostscript :doc "Use ghostscript") (function-item doc-view-pdf->png-converter-mupdf :doc "Use mupdf") function) doc-view-ghostscript-options #[0 "\300\207" [("-dSAFER" "-dNOPAUSE" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET")] 1 #1#] "A list of options to give to ghostscript." (repeat string) doc-view-ghostscript-device #[0 "\300\207" ["png16m"] 1 #1#] "Output device to give to ghostscript." string doc-view-resolution #[0 "\300\207" [100] 1 #1#] "Dots per inch resolution used to render the documents.\nHigher values result in larger images." number doc-view-scale-internally #[0 "\300\207" [t] 1 #1#] "Whether we should try to rescale images ourselves.\nIf nil, the document is re-rendered every time the scaling factor is modified.\nThis only has an effect if the image libraries linked with Emacs support\nscaling." boolean doc-view-image-width #[0 "\300\207" [850] 1 #1#] "Default image width.\nHas only an effect if `doc-view-scale-internally' is non-nil and support for\nscaling is compiled into Emacs." "24.1" doc-view-dvipdfm-program #[0 "\300\207" ["dvipdfm"] 1 #1#] "Program to convert DVI files to PDF.\n\nDVI file will be converted to PDF before the resulting PDF is\nconverted to PNG.\n\nIf this and `doc-view-dvipdf-program' are set,\n`doc-view-dvipdf-program' will be preferred." doc-view-dvipdf-program #[0 "\300\207" ["dvipdf"] 1 #1#] "Program to convert DVI files to PDF.\n\nDVI file will be converted to PDF before the resulting PDF is\nconverted to PNG.\n\nIf this and `doc-view-dvipdfm-program' are set,\n`doc-view-dvipdf-program' will be preferred." defvaralias doc-view-unoconv-program doc-view-odf->pdf-converter-program (saved-value saved-variable-comment) put make-obsolete-variable #[0 "\300\301!\203 \301\207\300\302!\203 \302\207\301\207" [executable-find "soffice" "unoconv"] 2 #1#] "Program to convert any file type readable by OpenOffice.org to PDF.\n\nNeeded for viewing OpenOffice.org (and MS Office) files." doc-view-odf->pdf-converter-function #[0 "\301\302\"\203 \303\207\301\304\"\205 \305\207" [doc-view-odf->pdf-converter-program string-match "unoconv\\'" doc-view-odf->pdf-converter-unoconv "soffice\\'" doc-view-odf->pdf-converter-soffice] 3 #1#] "Function to call to convert a ODF file into a PDF file." (radio (function-item doc-view-odf->pdf-converter-unoconv :doc "Use unoconv") (function-item doc-view-odf->pdf-converter-soffice :doc "Use LibreOffice") function) doc-view-ps2pdf-program #[0 "\300\207" ["ps2pdf"] 1 #1#] "Program to convert PS files to PDF.\n\nPS files will be converted to PDF before searching is possible." doc-view-pdftotext-program #[0 "\300\207" ["pdftotext"] 1 #1#] "Program to convert PDF files to plain text.\n\nNeeded for searching." doc-view-cache-directory #[0 "\301\302\303\304 \"\"\207" [temporary-file-directory expand-file-name format "docview%d" user-uid] 4 #1#] "The base directory, where the PNG images will be saved." directory] 16)
#@62 The buffer where messages from the converter programs go to.
(defvar doc-view-conversion-buffer " *doc-view conversion output*" (#$ . 5385))
(byte-code "\300\301\302\303\304DD\305\306\307%\210\300\310\302\303\311DD\312\306\313\314\315&\207" [custom-declare-variable doc-view-conversion-refresh-interval funcall function #[0 "\300\207" [1] 1 #1=""] "Interval in seconds between refreshes of the DocView buffer while converting.\nAfter such a refresh newly converted pages will be available for\nviewing. If set to nil there won't be any refreshes and the\npages won't be displayed before conversion of the whole document\nhas finished." :type integer doc-view-continuous #[0 "\300\207" [nil] 1 #1#] "In Continuous mode reaching the page edge advances to next/previous page.\nWhen non-nil, scrolling a line upward at the bottom edge of the page\nmoves to the next page, and scrolling a line downward at the top edge\nof the page moves to the previous page." boolean :version "23.2"] 8)
#@23 Only used internally.
(defvar doc-view--current-converter-processes nil (#$ . 6377))
(make-variable-buffer-local 'doc-view--current-converter-processes)
#@17
(fn WINPROPS)
(defalias 'doc-view-new-window-function #[257 "\211@\301=\204 \302@!p=\204 \303\304!\210\305\306\"\211\203* \307!\262\310ed#\210\2028 \311ed\312\301$\262\313\314\301#\210\313\315@#\210\316@!\204U @\301=\204Q \303\317!\210\320!\210\321\306#\210\316@!\205\210 \322\323\";\205\210 ?\205\210 \324@!r\325\326\"\216\327@\330\"\210\331\305\332\301\"!*\262\207" [doc-view--current-converter-processes t window-buffer cl--assertion-failed (or (eq t (car winprops)) (eq (window-buffer (car winprops)) (current-buffer))) image-mode-window-get overlay copy-overlay move-overlay make-overlay nil overlay-put doc-view window windowp (eq t (car winprops)) delete-overlay image-mode-window-put overlay-get display internal--before-with-selected-window make-closure #[0 "\301\300!\207" [V0 internal--after-with-selected-window] 2] select-window norecord doc-view-goto-page page] 7 (#$ . 6536)])
#@23 Only used internally.
(defvar doc-view--current-files nil (#$ . 7459))
(make-variable-buffer-local 'doc-view--current-files)
#@23 Only used internally.
(defvar doc-view--current-timer nil (#$ . 7590))
(make-variable-buffer-local 'doc-view--current-timer)
#@23 Only used internally.
(defvar doc-view--current-cache-dir nil (#$ . 7721))
(make-variable-buffer-local 'doc-view--current-cache-dir)
#@23 Only used internally.
(defvar doc-view--current-search-matches nil (#$ . 7860))
(make-variable-buffer-local 'doc-view--current-search-matches)
#@23 Only used internally.
(defvar doc-view--pending-cache-flush nil (#$ . 8009))
#@273 Only used internally.
The file name used for conversion. Normally it's the same as
`buffer-file-name', but for remote files, compressed files and
files inside an archive it is a temporary copy of
the (uncompressed, extracted) file residing in
`doc-view-cache-directory'.
(defvar doc-view--buffer-file-name nil (#$ . 8093))
#@89 The type of document in the current buffer.
Can be `dvi', `pdf', `ps', `djvu' or `odf'.
(defvar doc-view-doc-type nil (#$ . 8423))
#@170 Function to call to convert a single page of the document to a bitmap file.
May operate on the source document or on some intermediate (typically PDF)
conversion of it.
(defvar doc-view-single-page-converter-function nil (#$ . 8561))
#@66 The type of image in the current buffer.
Can be `png' or `tiff'.
(defvar doc-view--image-type nil (#$ . 8801))
(make-variable-buffer-local 'doc-view--image-type)
#@68 The `format' pattern of image file names.
Typically "page-%s.png".
(defvar doc-view--image-file-pattern nil (#$ . 8969))
(make-variable-buffer-local 'doc-view--image-file-pattern)
#@74 Keymap used by `doc-view-mode' when displaying a doc as a set of images.
(defvar doc-view-mode-map (byte-code "\301 \302\"\210\303\304\305#\210\303\306\307#\210\303\310\311#\210\303\312\313#\210\303\314\305#\210\303\315\307#\210\303\316\317#\210\303\320\321#\210\303\322\321#\210\303\323\324#\210\303\325\324#\210\303\326\327#\210\303\330\327#\210\303\331\332#\210\303\333\334#\210\303\335\336#\210\303\337\340#\210\303\341\342#\210\303\343\342#\210\303\344\345#\210\303\346\347#\210\303\350\351#\210\303\352\353#\210\303\354\355#\210\303\356\357#\210\303\360\361#\210\303\362\363#\210\303\364\365#\210\303\366\367#\210\303\370\371#\210\303\372\373#\210\303\374\375#\210\303\376\377#\210\303\201@ \201A #\210\303\201B \201C #\210\303\201D \201C #\210\303\201E \201F #\210\303\201G \201H #\210\303\201I \201J #\210\303\201K \201L #\210\303\201M \201N #\210\207" [image-mode-map make-sparse-keymap set-keymap-parent define-key "n" doc-view-next-page "p" doc-view-previous-page [next] forward-page [prior] backward-page [remap forward-page] [remap backward-page] " " doc-view-scroll-up-or-next-page [33554464] doc-view-scroll-down-or-previous-page "" "" doc-view-next-line-or-next-page [down] "" doc-view-previous-line-or-previous-page [up] [134217788] doc-view-first-page [134217790] doc-view-last-page [remap goto-line] doc-view-goto-page "
" image-next-line "+" doc-view-enlarge "=" "-" doc-view-shrink "0" doc-view-scale-reset [remap text-scale-adjust] doc-view-scale-adjust "W" doc-view-fit-width-to-window "H" doc-view-fit-height-to-window "P" doc-view-fit-page-to-window "F" doc-view-fit-window-to-page "k" image-kill-buffer "K" doc-view-kill-proc "cs" doc-view-set-slice "cm" doc-view-set-slice-using-mouse "cb" doc-view-set-slice-from-bounding-box "cr" doc-view-reset-slice "ch" doc-view-center-page-horizontally "cv" doc-view-center-page-vertically "" doc-view-search [find] "" doc-view-search-backward "" doc-view-show-tooltip "" doc-view-toggle-display "" doc-view-open-text "r" revert-buffer] 5) (#$ . 9155))
(byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias doc-view-revert-buffer revert-buffer nil make-obsolete "27.1"] 4)
#@84 Preserve the buffer's current mode and check PDF sanity.
(fn ORIG-FUN &rest ARGS)
(defalias 'doc-view--revert-buffer #[385 "\303\304 _W\203 \305\300!\210\303\304 _\306 \307=\203: \310\311!\203: \312\311\313\211\211\n%\314U\2030 \211\"\207\315\316!\205>