%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/image-dired.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314\315\316& \210\317\320\321\322\323DD\324\325\326\315\306&\210\317\327\321\322\330DD\331\325\332\315\306&\210\317\333\321\322\334DD\335\325\336\315\306&\210\317\337\321\322\340DD\341\325\336\315\306&\210\317\342\321\322\343DD\344\325\326\315\306&\210\317\345\321\322\346DD\347\325\350\315\306&\210\317\351\321\322\352DD\353\325\350\315\306&\210\317\354\321\322\355DD\356\325\336\315\306&\210\317\357\321\322\360DD\361\362\363\325\364\315\306& \210\317\365\321\322\366DD\367\325\336\315\306&\210\317\370\321\322\371DD\372\362\363\325\373\315\306& \210\317\374\321\322\375DD\376\362\363\325\377\315\306& \210\317\201@ \321\322\201A DD\201B \362\363\325\201C \315\306& \210\317\201D \321\322\201E DD\201F \325\201G \315\306&\210\317\201H \321\322\201I DD\201J \362\363\325\201K \315\306& \210\317\201L \321\322\201M DD\201N \362\363\325\201O \315\306& \210\317\201P \321\322\201Q DD\201R \362\363\325\201S \313\201T \315\306&\210\317\201U \321\322\201V DD\201W \362\363\325\201X \315\306& \210\317\201Y \321\322\201Z DD\201[ \325\336\315\306&\210\317\201\\ \321\322\201] DD\201^ \362\363\325\201_ \315\306& \210\317\201` \321\322\201a DD\201b \325\336\315\306&\210\317\201c \321\322\201d DD\201e \362\363\325\201f \315\306& \210\317\201g \321\322\201h DD\201i \325\336\315\306&\210\317\201j \321\322\201k DD\201l \325\201m \315\306&\210\317\201n \321\322\201o DD\201p \325\336\315\306&\210\317\201q \321\322\201r DD\201s \362\363\325\201t \315\306& \210\317\201u \321\322\201v DD\201w \325\336\315\306&\210\317\201x \321\322\201y DD\201z \362\363\325\201{ \315\306& \210\317\201| \321\322\201} DD\201~ \325\201 \315\306&\210\317\201\200 \321\322\201\201 DD\201\202 \325\201\203 \315\306&\210\317\201\204 \321\322\201\205 DD\201\206 \325\201\203 \315\306&\210\317\201\207 \321\322\201\210 DD\201\211 \325\201\203 \315\306&\210\317\201\212 \321\322\201\213 DD\201\214 \325\201\203 \315\306&\210\317\201\215 \321\322\201\216 DD\201\217 \325\201\203 \315\306&\210\317\201\220 \321\322\201\221 DD\201\222 \325\201\223 \315\306&\210\317\201\224 \321\322\201\225 DD\201\226 \325\201\203 \315\306&\210\317\201\227 \321\322\201\230 DD\201\231 \325\201\203 \315\306&\210\317\201\232 \321\322\201\233 DD\201\234 \325\201\203 \315\306&\210\317\201\235 \321\322\201\236 DD\201\237 \325\201m \315\306&\210\317\201\240 \321\322\201\241 DD\201\242 \325\201m \315\306&\210\317\201\243 \321\322\201\244 DD\201\245 \325\201m \315\306&\210\317\201\246 \321\322\201\247 DD\201\250 \325\350\315\306&\210\317\201\251 \321\322\201\252 DD\201\253 \362\201\254 \325\201\255 \315\306& \210\317\201\256 \321\322\201\257 DD\201\260 \325\350\315\306&\210\317\201\261 \321\322\201\262 DD\201\263 \325\201\203 \315\306&\207" [require dired format-spec image-mode widget custom-declare-group image-dired nil "Use dired to browse your images as thumbnails, and more." :prefix "image-dired-" :link (info-link "(emacs) Image-Dired") :group multimedia custom-declare-variable image-dired-dir funcall function #[0 "\300\301!\207" [locate-user-emacs-file "image-dired/"] 2] "Directory where thumbnail images are stored." :type directory image-dired-thumbnail-storage #[0 "\300\207" [use-image-dired-dir] 1] "How to store image-dired's thumbnail files.\nImage-Dired can store thumbnail files in one of two ways and this is\ncontrolled by this variable. \"Use image-dired dir\" means that the\nthumbnails are stored in a central directory. \"Per directory\"\nmeans that each thumbnail is stored in a subdirectory called\n\".image-dired\" in the same directory where the image file is.\n\"Thumbnail Managing Standard\" means that the thumbnails are\nstored and generated according to the Thumbnail Managing Standard\nthat allows sharing of thumbnails across different programs." (choice :tag "How to store thumbnail files" (const :tag "Use image-dired-dir" use-image-dired-dir) (const :tag "Thumbnail Managing Standard (normal 128x128)" standard) (const :tag "Thumbnail Managing Standard (large 256x256)" standard-large) (const :tag "Per-directory" per-directory)) image-dired-db-file #[0 "\301\302\"\207" [image-dired-dir expand-file-name ".image-dired_db"] 3] "Database file where file names and their associated tags are stored." file image-dired-temp-image-file #[0 "\301\302\"\207" [image-dired-dir expand-file-name ".image-dired_temp"] 3] "Name of temporary image file used by various commands." image-dired-gallery-dir #[0 "\301\302\"\207" [image-dired-dir expand-file-name ".image-dired_gallery"] 3] "Directory to store generated gallery html pages.\nThis path needs to be \"shared\" to the public so that it can access\nthe index.html page that image-dired creates." image-dired-gallery-image-root-url #[0 "\300\207" [#1="http://your.own.server/image-diredpics"] 1 #1#] "URL where the full size images are to be found.\nNote that this path has to be configured in your web server. Image-Dired\nexpects to find pictures in this directory." string image-dired-gallery-thumb-image-root-url #[0 "\300\207" [#2="http://your.own.server/image-diredthumbs"] 1 #2#] "URL where the thumbnail images are to be found.\nNote that this path has to be configured in your web server. Image-Dired\nexpects to find pictures in this directory." image-dired-cmd-create-thumbnail-program #[0 "\300\207" [#3="convert"] 1 #3#] "Executable used to create thumbnail.\nUsed together with `image-dired-cmd-create-thumbnail-options'." image-dired-cmd-create-thumbnail-options #[0 "\300\207" [("-size" "%wx%h" "%f[0]" "-resize" "%wx%h>" "-strip" "jpeg:%t")] 1] "Options of command used to create thumbnail image.\nUsed with `image-dired-cmd-create-thumbnail-program'.\nAvailable format specifiers are: %w which is replaced by\n`image-dired-thumb-width', %h which is replaced by `image-dired-thumb-height',\n%f which is replaced by the file name of the original image and %t\nwhich is replaced by the file name of the thumbnail file." :version "26.1" (repeat (string :tag "Argument")) image-dired-cmd-create-temp-image-program #[0 "\300\207" [#4="convert"] 1 #4#] "Executable used to create temporary image.\nUsed together with `image-dired-cmd-create-temp-image-options'." image-dired-cmd-create-temp-image-options #[0 "\300\207" [("-size" "%wx%h" "%f[0]" "-resize" "%wx%h>" "-strip" "jpeg:%t")] 1] "Options of command used to create temporary image for display window.\nUsed together with `image-dired-cmd-create-temp-image-program',\nAvailable format specifiers are: %w and %h which are replaced by\nthe calculated max size for width and height in the image display window,\n%f which is replaced by the file name of the original image and %t which\nis replaced by the file name of the temporary file." (repeat (string :tag "Argument")) image-dired-cmd-pngnq-program #[0 "\300\301!\206 \300\302!\207" [executable-find "pngnq" "pngnq-s9"] 2] "The file name of the `pngnq' program.\nIt quantizes colors of PNG images down to 256 colors or fewer\nusing the NeuQuant algorithm." (choice (const :tag "Not Set" nil) file) image-dired-cmd-pngnq-options #[0 "\300\207" [("-f" "%t")] 1] "Arguments to pass `image-dired-cmd-pngnq-program'.\nAvailable format specifiers are the same as in\n`image-dired-cmd-create-thumbnail-options'." (repeat (string :tag "Argument")) image-dired-cmd-pngcrush-program #[0 "\300\301!\207" [executable-find "pngcrush"] 2] "The file name of the `pngcrush' program.\nIt optimizes the compression of PNG images. Also it adds PNG textual chunks\nwith the information required by the Thumbnail Managing Standard." (choice (const :tag "Not Set" nil) file) image-dired-cmd-pngcrush-options #[0 "\300\301\302\303\304\301\302\305\306 \307BBBBBBBBB\207" ["-q" "-text" "b" "Description" "Thumbnail of file://%f" "Software" emacs-version ("-text" "b" "Thumb::MTime" "%m" "-text" "b" "Thumb::URI" "file://%f" "%q" "%t")] 10] "Arguments for `image-dired-cmd-pngcrush-program'.\nAvailable format specifiers are the same as in\n`image-dired-cmd-create-thumbnail-options', with %q for a\ntemporary file name (typically generated by pnqnq)." (repeat (string :tag "Argument")) image-dired-cmd-optipng-program #[0 "\300\301!\207" [executable-find "optipng"] 2] "The file name of the `optipng' program." (choice (const :tag "Not Set" nil) file) image-dired-cmd-optipng-options #[0 "\300\207" [("-o5" "%t")] 1] "Arguments passed to `image-dired-cmd-optipng-program'.\nAvailable format specifiers are described in\n`image-dired-cmd-create-thumbnail-options'." (repeat (string :tag "Argument")) (url-link "man:optipng(1)") image-dired-cmd-create-standard-thumbnail-options #[0 "\302\303\206 ?\205 \304\305\306\304\307\310\304\311\312\304\313\314 \257\f\315#\207" [image-dired-cmd-pngcrush-program image-dired-cmd-pngnq-program append ("-size" "%wx%h" "%f[0]") "-set" "Thumb::MTime" "%m" "Thumb::URI" "file://%f" "Description" "Thumbnail of file://%f" "Software" emacs-version ("-thumbnail" "%wx%h>" "png:%t")] 14] "Options for creating thumbnails according to the Thumbnail Managing Standard.\nAvailable format specifiers are the same as in\n`image-dired-cmd-create-thumbnail-options', with %m for file modification time." (repeat (string :tag "Argument")) image-dired-cmd-rotate-thumbnail-program #[0 "\300\207" [#5="mogrify"] 1 #5#] "Executable used to rotate thumbnail.\nUsed together with `image-dired-cmd-rotate-thumbnail-options'." image-dired-cmd-rotate-thumbnail-options #[0 "\300\207" [("-rotate" "%d" "%t")] 1] "Arguments of command used to rotate thumbnail image.\nUsed with `image-dired-cmd-rotate-thumbnail-program'.\nAvailable format specifiers are: %d which is replaced by the\nnumber of (positive) degrees to rotate the image, normally 90 or 270\n(for 90 degrees right and left), %t which is replaced by the file name\nof the thumbnail file." (repeat (string :tag "Argument")) image-dired-cmd-rotate-original-program #[0 "\300\207" [#6="jpegtran"] 1 #6#] "Executable used to rotate original image.\nUsed together with `image-dired-cmd-rotate-original-options'." image-dired-cmd-rotate-original-options #[0 "\300\207" [("-rotate" "%d" "-copy" "all" "-outfile" "%t" "%o")] 1] "Arguments of command used to rotate original image.\nUsed with `image-dired-cmd-rotate-original-program'.\nAvailable format specifiers are: %d which is replaced by the\nnumber of (positive) degrees to rotate the image, normally 90 or\n270 (for 90 degrees right and left), %o which is replaced by the\noriginal image file name and %t which is replaced by\n`image-dired-temp-image-file'." (repeat (string :tag "Argument")) image-dired-temp-rotate-image-file #[0 "\301\302\"\207" [image-dired-dir expand-file-name ".image-dired_rotate_temp"] 3] "Temporary file for rotate operations." image-dired-rotate-original-ask-before-overwrite #[0 "\300\207" [t] 1] "Confirm overwrite of original file after rotate operation.\nIf non-nil, ask user for confirmation before overwriting the\noriginal file with `image-dired-temp-rotate-image-file'." boolean image-dired-cmd-write-exif-data-program #[0 "\300\207" [#7="exiftool"] 1 #7#] "Program used to write EXIF data to image.\nUsed together with `image-dired-cmd-write-exif-data-options'." image-dired-cmd-write-exif-data-options #[0 "\300\207" [("-%t=%v" "%f")] 1] "Arguments of command used to write EXIF data.\nUsed with `image-dired-cmd-write-exif-data-program'.\nAvailable format specifiers are: %f which is replaced by\nthe image file name, %t which is replaced by the tag name and %v\nwhich is replaced by the tag value." (repeat (string :tag "Argument")) image-dired-cmd-read-exif-data-program #[0 "\300\207" [#8="exiftool"] 1 #8#] "Program used to read EXIF data to image.\nUsed together with `image-dired-cmd-read-exif-data-options'." image-dired-cmd-read-exif-data-options #[0 "\300\207" [("-s" "-s" "-s" "-%t" "%f")] 1] "Arguments of command used to read EXIF data.\nUsed with `image-dired-cmd-read-exif-data-program'.\nAvailable format specifiers are: %f which is replaced\nby the image file name and %t which is replaced by the tag name." (repeat (string :tag "Argument")) image-dired-gallery-hidden-tags #[0 "\300\301\302E\207" ["private" "hidden" "pending"] 3] "List of \"hidden\" tags.\nUsed by `image-dired-gallery-generate' to leave out \"hidden\" images." (repeat string) image-dired-thumb-size #[0 "\301\267\202\n \302\207\303\207\304\207" [image-dired-thumbnail-storage #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (standard 6 standard-large 8)) 128 256 100] 2] "Size of thumbnails, in pixels.\nThis is the default size for both `image-dired-thumb-width'\nand `image-dired-thumb-height'." integer image-dired-thumb-width #[0 "\207" [image-dired-thumb-size] 1] "Width of thumbnails, in pixels." image-dired-thumb-height #[0 "\207" [image-dired-thumb-size] 1] "Height of thumbnails, in pixels." image-dired-thumb-relief #[0 "\300\207" [2] 1] "Size of button-like border around thumbnails." image-dired-thumb-margin #[0 "\300\207" [2] 1] "Size of the margin around thumbnails.\nThis is where you see the cursor." image-dired-line-up-method #[0 "\300\207" [dynamic] 1] "Default method for line-up of thumbnails in thumbnail buffer.\nUsed by `image-dired-display-thumbs' and other functions that needs\nto line-up thumbnails. Dynamic means to use the available width of\nthe window containing the thumbnail buffer, Fixed means to use\n`image-dired-thumbs-per-row', Interactive is for asking the user,\nand No line-up means that no automatic line-up will be done." (choice :tag "Default line-up method" (const :tag "Dynamic" dynamic) (const :tag "Fixed" fixed) (const :tag "Interactive" interactive) (const :tag "No line-up" none)) image-dired-thumbs-per-row #[0 "\300\207" [3] 1] "Number of thumbnails to display per row in thumb buffer." image-dired-display-window-width-correction #[0 "\300\207" [1] 1] "Number to be used to correct image display window width.\nChange if the default (1) does not work (i.e. if the image does not\ncompletely fit)." image-dired-display-window-height-correction #[0 "\300\207" [0] 1] "Number to be used to correct image display window height.\nChange if the default (0) does not work (i.e. if the image does not\ncompletely fit)." image-dired-track-movement #[0 "\300\207" [t] 1] "The current state of the tracking and mirroring.\nFor more information, see the documentation for\n`image-dired-toggle-movement-tracking'." image-dired-append-when-browsing #[0 "\300\207" [nil] 1] "Append thumbnails in thumbnail buffer when browsing.\nIf non-nil, using `image-dired-next-line-and-display' and\n`image-dired-previous-line-and-display' will leave a trail of thumbnail\nimages in the thumbnail buffer. If you enable this and want to clean\nthe thumbnail buffer because it is filled with too many thumbnails,\njust call `image-dired-display-thumb' to display only the image at point.\nThis value can be toggled using `image-dired-toggle-append-browsing'." image-dired-dired-disp-props #[0 "\300\207" [t] 1] "If non-nil, display properties for dired file when browsing.\nUsed by `image-dired-next-line-and-display',\n`image-dired-previous-line-and-display' and `image-dired-mark-and-display-next'.\nIf the database file is large, this can slow down image browsing in\ndired and you might want to turn it off." image-dired-display-properties-format #[0 "\300\207" [#9="%b: %f (%t): %c"] 1 #9#] "Display format for thumbnail properties.\n%b is replaced with associated dired buffer name, %f with file name\n(without path) of original image file, %t with the list of tags and %c\nwith the comment." image-dired-external-viewer #[0 "\300\301!\206 \300\302!\206 \300\303!\205 \304\207" [executable-find "display" "xli" "qiv" "qiv -t"] 2] "Name of external viewer.\nIncluding parameters. Used when displaying original image from\n`image-dired-thumbnail-mode'." "27.1" (choice string (const :tag "Not Set" nil)) image-dired-main-image-directory #[0 "\300\207" [#10="~/pics/"] 1 #10#] "Name of main image directory, if any.\nUsed by `image-dired-copy-with-exif-file-name'." image-dired-show-all-from-dir-max-files #[0 "\300\207" [50] 1] "Maximum number of files to show using `image-dired-show-all-from-dir'\nbefore warning the user."] 12) #@108 Run BODY in a temp buffer containing `image-dired-db-file'. Return the last form in BODY. (fn &rest BODY) (defalias 'image-dired--with-db-file '(macro . #[128 "\300\301BB\207" [with-temp-buffer (if (file-exists-p image-dired-db-file) (insert-file-contents image-dired-db-file))] 4 (#$ . 16638)])) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put image-dired--with-db-file lisp-indent-function 0 put edebug-form-spec t] 5) #@130 Return the current thumbnails directory (from variable `image-dired-dir'). Create the thumbnails directory if it does not exist. (defalias 'image-dired-dir #[0 "\301\302!!\303!\204 \304\305\"\210\306\307!\210)\207" [image-dired-dir file-name-as-directory expand-file-name file-directory-p make-directory t message "Creating thumbnails directory"] 3 (#$ . 17086)]) #@99 Insert image FILE of image TYPE, using RELIEF and MARGIN, at point. (fn FILE TYPE RELIEF MARGIN) (defalias 'image-dired-insert-image #[1028 "\300\301\302\303\304\257 \305!\207" [image :type :file :relief :margin insert-image] 13 (#$ . 17462)]) #@76 Return the image descriptor for a thumbnail of image file FILE. (fn FILE) (defalias 'image-dired-get-thumbnail-image #[257 "\300\301 \"\204 \302\303\"\210\304!\305!\211\203* \306\3078\262\305!\3078\262\"\203/ \310\"\210\311!\207" [string-match image-file-name-regexp error "%s is not a valid image file" image-dired-thumb-name file-attributes time-less-p 5 image-dired-create-thumb create-image] 8 (#$ . 17721)]) #@152 Insert thumbnail image FILE. Add text properties ORIGINAL-FILE-NAME and ASSOCIATED-DIRED-BUFFER. (fn FILE ORIGINAL-FILE-NAME ASSOCIATED-DIRED-BUFFER) (defalias 'image-dired-insert-thumbnail #[771 "\303\211`\262\304\305>\203 \306\202 \307 \n$\210`\262\310\311\312\313 \314\n\315\316!\317\320\321\322!\257\f#\207" [image-dired-thumbnail-storage image-dired-thumb-relief image-dired-thumb-margin nil image-dired-insert-image (standard standard-large) png jpeg add-text-properties image-dired-thumbnail t original-file-name associated-dired-buffer tags image-dired-list-tags mouse-face highlight comment image-dired-get-comment] 21 (#$ . 18156)]) #@418 Return thumbnail file name for FILE. Depending on the value of `image-dired-thumbnail-storage', the file name will vary. For central thumbnail file storage, make a MD5-hash of the image file's directory name and add that to make the thumbnail file name unique. For per-directory storage, just add a subdirectory. For standard storage, produce the file name according to the Thumbnail Managing Standard. (fn FILE) (defalias 'image-dired-thumb-name #[257 "\301\267\202n \302\303!\211\203 \304!\203 \211\202 \305\306\267\202&