?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/image-mode.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:23 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/image-mode.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'image) (defvar image-mode-winprops-alist t nil) (make-variable-buffer-local 'image-mode-winprops-alist) #@118 Special hook run when image data is requested in a new window. It is called with one argument, the initial WINPROPS. (defvar image-mode-new-window-functions nil (#$ . 668)) #@262 Return winprops of WINDOW. A winprops object has the shape (WINDOW . ALIST). WINDOW defaults to `selected-window' if it displays the current buffer, and otherwise it defaults to t, used for times when the buffer is not displayed. (fn &optional WINDOW CLEANUP) (defalias 'image-mode-winprops #[512 "\204 p\302 =\203 \303 \202 \304\262\202' \304=\204' \305!\204' \306\307\"\210\211\2033 \310\311\312\313\"\"\236\211\204K \314\211@A)!B\262\315\316\"\210\211\310\"B\211\207" [image-mode-winprops-alist x window-buffer selected-window t windowp error "Not a window: %s" delq nil mapcar #[257 "\211\242\300!\203 \301!\205 \207" [windowp window-live-p] 4 "\n\n(fn WINPROP)"] copy-alist run-hook-with-args image-mode-new-window-functions] 8 (#$ . 848)]) (defalias 'image-mode-window-get #[513 "\211:\204\n \300!\262A\236A\207" [image-mode-winprops] 4 "\n\n(fn PROP &optional WINPROPS)"]) (put 'image-mode-window-get 'gv-expander #[385 "\300\301\302$\207" [gv--defsetter image-mode-window-get #[770 "\300F\207" [image-mode-window-put] 7 "\n\n(fn VAL PROP &optional WINPROPS)"]] 7 "\n\n(fn DO &rest ARGS)"]) (defalias 'image-mode-window-put #[770 "\211:\204\n \300!\262\211B\301A\236A\"B\241\207" [image-mode-winprops delq] 8 "\n\n(fn PROP VAL &optional WINPROPS)"]) (defalias 'image-set-window-vscroll #[257 "\300\301\302#\210\303\304 \"\207" [image-mode-window-put vscroll nil set-window-vscroll selected-window] 5 "\n\n(fn VSCROLL)"]) (defalias 'image-set-window-hscroll #[257 "\300\301\302#\210\303\304 \"\207" [image-mode-window-put hscroll nil set-window-hscroll selected-window] 5 "\n\n(fn NCOL)"]) (defalias 'image-mode-reapply-winprops #[0 "\301 \205+ <\205+ \302\303\304\"\305\306\"\305\307\"\203 \310\311 \"\210\211\205) \312\311 \"\266\203\207" [image-mode-winprops-alist image-get-display-property image-mode-winprops nil t image-mode-window-get hscroll vscroll set-window-hscroll selected-window set-window-vscroll] 6 "\n\n(fn)"]) (defalias 'image-mode-setup-winprops #[0 "<\204 \301\302\303\304\301\305$\207" [image-mode-winprops-alist nil add-hook window-configuration-change-hook image-mode-reapply-winprops t] 5 "\n\n(fn)"]) (defalias 'image-get-display-property #[0 "\300e\301\302 p=\205\f \303 #\207" [get-char-property display window-buffer selected-window] 5 "\n\n(fn)"]) #@584 Wrapper around `image-size', handling slice display properties. Like `image-size', the return value is (WIDTH . HEIGHT). WIDTH and HEIGHT are in canonical character units if PIXELS is nil, and in pixel units if PIXELS is non-nil. If SPEC is an image display property, this function is equivalent to `image-size'. If SPEC is a list of properties containing `image' and `slice' properties, return the display size taking the slice property into account. If the list contains `image' but not `slice', return the `image-size' of the specified image. (fn SPEC &optional PIXELS FRAME) (defalias 'image-display-size #[769 "@\300=\203 \301#\207\302\300\"\302\303\"\203A \211\203A \203+ \3048\3058B\202R \306\3048!\307!\245\306\3058!\310!\245B\202R \203M \301#\202R \311\312\"\207" [image image-size assoc slice 3 4 float frame-char-width frame-char-height error "Invalid image specification: %s"] 9 (#$ . 3195)]) #@133 Scroll image in current window to the left by N character widths. Stop if the right edge of the image is reached. (fn &optional N) (defalias 'image-forward-hscroll #[256 "\211\300U\203 \301\207\211\300W\203 \302\300\303 \\]!\207\304 \305 \3068@Z\307\310!@!\302\300Z]\303 \\^!\207" [0 nil image-set-window-hscroll window-hscroll image-get-display-property window-inside-edges 2 ceiling image-display-size] 9 (#$ . 4132) "p"]) #@133 Scroll image in current window to the right by N character widths. Stop if the left edge of the image is reached. (fn &optional N) (defalias 'image-backward-hscroll #[256 "\300[!\207" [image-forward-hscroll] 3 (#$ . 4575) "p"]) #@108 Scroll image in current window upward by N lines. Stop if the bottom edge of the image is reached. (fn N) (defalias 'image-next-line #[257 "\211\300U\203 \301\207\211\300W\203 \302\300\303 \\]!\207\304 \305 \3068A@Z\307\310!A!\302\300Z]\303 \\^!\207" [0 nil image-set-window-vscroll window-vscroll image-get-display-property window-inside-edges 3 ceiling image-display-size] 9 (#$ . 4812) "p"]) #@117 Scroll image in current window downward by N lines. Stop if the top edge of the image is reached. (fn &optional N) (defalias 'image-previous-line #[256 "\300[!\207" [image-next-line] 3 (#$ . 5225) "p"]) #@426 Scroll image in current window upward by N lines. Stop if the bottom edge of the image is reached. If ARG is omitted or nil, scroll upward by a near full screen. A near full screen is `next-screen-context-lines' less than a full screen. Negative ARG means scroll downward. If ARG is the atom `-', scroll downward by nearly full screen. When calling from a program, supply as argument a number, nil, or `-'. (fn &optional N) (defalias 'image-scroll-up #[256 "\211\204 \301 \3028A@Z\303\304Z]!\207\211\305=\203, \301 \3028A@Z\303\304Z^!\207\303\306!!\207" [next-screen-context-lines window-inside-edges 3 image-next-line 0 - prefix-numeric-value] 7 (#$ . 5437) "P"]) #@423 Scroll image in current window downward by N lines. Stop if the top edge of the image is reached. If ARG is omitted or nil, scroll downward by a near full screen. A near full screen is `next-screen-context-lines' less than a full screen. Negative ARG means scroll upward. If ARG is the atom `-', scroll upward by nearly full screen. When calling from a program, supply as argument a number, nil, or `-'. (fn &optional N) (defalias 'image-scroll-down #[256 "\211\204 \301 \3028A@Z\303\304Z^!\207\211\305=\203, \301 \3028A@Z\303\304Z]!\207\303\306![!\207" [next-screen-context-lines window-inside-edges 3 image-next-line 0 - prefix-numeric-value] 7 (#$ . 6120) "P"]) #@210 Scroll horizontally to the left edge of the image in the current window. With argument ARG not nil or 1, move forward ARG - 1 lines first, stopping if the top or bottom edge of the image is reached. (fn ARG) (defalias 'image-bol #[257 "\211\203 \300!\211\262\301U\204 \302S!\210\303\304!\207" [prefix-numeric-value 1 image-next-line image-set-window-hscroll 0] 3 (#$ . 6803) "p"]) #@211 Scroll horizontally to the right edge of the image in the current window. With argument ARG not nil or 1, move forward ARG - 1 lines first, stopping if the top or bottom edge of the image is reached. (fn ARG) (defalias 'image-eol #[257 "\211\203 \300!\211\262\301U\204 \302S!\210\303 \304 \3058@Z\306\307!@!\310\311Z]!\207" [prefix-numeric-value 1 image-next-line image-get-display-property window-inside-edges 2 ceiling image-display-size image-set-window-hscroll 0] 9 (#$ . 7197) "p"]) #@73 Scroll to the top-left corner of the image in the current window. (fn) (defalias 'image-bob #[0 "\300\301!\210\302\301!\207" [image-set-window-hscroll 0 image-set-window-vscroll] 2 (#$ . 7702) nil]) #@77 Scroll to the bottom-right corner of the image in the current window. (fn) (defalias 'image-eob #[0 "\300 \301 \3028@Z\303\304!@!\3058A@Z\303\304!A!\306\307Z]!\210\310\307Z]!\207" [image-get-display-property window-inside-edges 2 ceiling image-display-size 3 image-set-window-hscroll 0 image-set-window-vscroll] 10 (#$ . 7908) nil]) #@122 Toggle whether to fit the frame to the current image. This function assumes the current frame has only one window. (fn) (defalias 'image-mode-fit-frame #[0 "\301\302\303\"\304 \305!\2032 \211@@)\306 =\2032 \211@A)\307 =\2032 \310\302\303\302#\210A\262\202L \211\311@!\240\210\211\311A!\241\210\310\302\303\306 \307 BB#\210\312\313 @\"\210\314\313 A\"\207" [x frame-parameter nil image-mode-saved-size image-get-display-property image-display-size frame-width frame-height set-frame-parameter ceiling set-frame-width selected-frame set-frame-height] 10 (#$ . 8261) nil]) #@51 The image type for the current Image mode buffer. (defvar image-type nil (#$ . 8851)) (make-variable-buffer-local 'image-type) #@62 Internal variable to keep the previous non-image major mode. (defvar image-mode-previous-major-mode nil (#$ . 8984)) #@31 Mode keymap for `image-mode'. (defvar image-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\315#\210\303\316\317#\210\303\320\315#\210\303\321\317#\210\303\322\323#\210\303\324\325#\210\303\326\307#\210\303\327\311#\210\303\330\307#\210\303\331\311#\210\303\332\333#\210\303\334\335#\210\303\336\337#\210\303\340\341#\210\211\207" [special-mode-map make-sparse-keymap set-keymap-parent define-key "" image-toggle-display " " image-scroll-up "" image-scroll-down " " image-toggle-animation [remap forward-char] image-forward-hscroll [remap backward-char] image-backward-hscroll [remap right-char] [remap left-char] [remap previous-line] image-previous-line [remap next-line] image-next-line [remap scroll-up] [remap scroll-down] [remap scroll-up-command] [remap scroll-down-command] [remap move-beginning-of-line] image-bol [remap move-end-of-line] image-eol [remap beginning-of-buffer] image-bob [remap end-of-buffer] image-eob] 5) (#$ . 9107)) #@37 Mode keymap for `image-minor-mode'. (defvar image-minor-mode-map (byte-code "\300 \301\302\303#\210\211\207" [make-sparse-keymap define-key "" image-toggle-display] 5) (#$ . 10146)) (put 'image-mode 'mode-class 'special) #@147 Major mode for image files. You can use \<image-mode-map>\[image-toggle-display] to toggle between display as an image and display as text. (fn) (defalias 'image-mode #[0 "\300\301\302D\303\301\304\300EDC\217\207" [#1=#:err funcall #[0 "\306 \204 \307\310!\210\311 \210\312\313 \204\"