summaryrefslogtreecommitdiff
path: root/lisp/image.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix regexp for recognizing PBM imagesDavid Ponce2023-09-061-1/+1
| | | | | | * lisp/image.el (image-type-header-regexps): Don't use [:space:], as its meaning depends on the current buffer's syntax tables. (Bug#65496)
* Fix detection of WebP images by their signatureVisuwesh2023-04-121-1/+1
| | | | | | * lisp/image.el (image-type-header-regexps): The 4 characters between "RIFF" and "WEBP" in WebP images can also be newlines. (Bug#62790)
* Improve documentation of image-related commandsEli Zaretskii2023-04-081-16/+8
| | | | | | | | | | | | | | * lisp/image.el (image-map): Make it inherit from 'image-slice-map' instead of repeating the bindings. * doc/emacs/files.texi (Image Mode): Document the key bindings set by 'insert-image'. Add indexing. * doc/lispref/display.texi (Showing Images): Make the description of user commands more concise. Add index entries and cross-reference to the Emacs manual. * etc/NEWS: Rearrange entries relevant to image commands.
* Fix handling of sliced imagesEli Zaretskii2023-04-081-3/+18
| | | | | | | | | | | | | * lisp/image.el (image-slice-map): New keymap, without some bindings that make no sense with sliced images. (insert-image, insert-sliced-image): Use it. (insert-sliced-image): Make the 'keymap' property rear-nonsticky, to prevent calling image commands when point is to the right of the slice. (Bug#62679) * lisp/image/image-crop.el (image-cut, image-crop): Doc fixes. (image-crop): Don't try using stock MS-Widows convert.exe program. Use 'image--get-image' to support sliced images.
* Fix transforming sliced imagesEli Zaretskii2023-04-061-13/+33
| | | | | | | * lisp/image.el (image--get-image): Support sliced images (bug#62679). Doc fix. (image-mouse-decrease-size, image-mouse-increase-size) (image-decrease-size, image-increase-size): Doc fixes.
* ; * lisp/image.el (put-image): Doc fix.Eli Zaretskii2023-04-031-2/+2
|
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Move image commands to the 'i' sub mapLars Ingebrigtsen2022-10-041-27/+32
| | | | | | | | | * doc/lispref/display.texi (Showing Images): Adjust. * lisp/image.el (image-map): Move all keys under the "i" prefix. (image--repeat-map): New map. (image-increase-size, image-rotate, image-decrease-size): Make repeatable. (image--delayed-change-size): New function.
* Merge from origin/emacs-28Stefan Kangas2022-09-301-5/+1
|\ | | | | | | | | 64e8cc14b5 ; * lisp/image.el (create-image): Fix last change in doc s... f3e3632394 Update some Gnus documentation in the Emacs manual
| * ; * lisp/image.el (create-image): Fix last change in doc string.Eli Zaretskii2022-09-291-5/+1
| |
* | Merge from origin/emacs-28Stefan Kangas2022-09-291-2/+3
|\| | | | | | | | | cf38e1c393 Clarify image file search fc212364ce ; Fix typo.
| * Clarify image file searchEli Zaretskii2022-09-281-2/+3
| | | | | | | | | | | | * doc/lispref/display.texi (Defining Images, Image Descriptors): * lisp/image.el (create-image): Clarify that non-absolute image files are searched along 'image-load-path'. (Bug#52931)
* | Rename `image-elide' to `image-cut' and add more bindingsLars Ingebrigtsen2022-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Showing Images): Update. * lisp/image.el (image-map): Move binding to mirror Gimp bindings. * lisp/image/image-crop.el (image-crop-cut-command): Rename. (image-cut-color): New user option. (image-cut): Rename and remove prefix. (image-crop): Remove prefix. (image-crop--crop-image-update): Add commands to switch to move/square modes.
* | Add new commands 'image-crop' and 'image-elide'Lars Ingebrigtsen2022-09-131-0/+2
| | | | | | | | | | | | | | | | * doc/lispref/display.texi (Showing Images): Document it. * lisp/image.el (image-map): Bind commands. * lisp/image/image-crop.el: New file (bug#51331).
* | Fix some no-X build warningsLars Ingebrigtsen2022-08-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cus-edit.el (fringe-bitmap-p): Autoload. * lisp/image.el (clear-image-cache): Declare. * lisp/mouse.el (dnd-begin-file-dram): Autoload. * lisp/thumbs.el (image-supported-file-p): Declare (bug#57342). * lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): * lisp/emacs-lisp/icons.el (icons--create): Avoid warnings on no-X builds.
* | Make compat alias image-refresh obsoleteStefan Kangas2022-08-091-1/+2
| | | | | | | | | | * lisp/image.el (image-refresh): Make compat alias obsolete. Update callers.
* | * lisp/image.el (put-image): Fix typo.Visuwesh2022-07-141-1/+1
| | | | | | | | | | * lisp/image.el (put-image): Actually use the image-map keymap (bug#56554).
* | Prune animation cache when images are no longer reachableLars Ingebrigtsen2022-07-141-4/+11
| | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-animate-timeout): Eject cached animated images that are no longer reachable (bug#56546). * src/image.c (Fclear_image_cache): Allow specifying a cached animated image to eject. (gif_load, webp_load): Adjust what to use as the caching key -- the identity of the list itself is apparently changed by some callers.
* | Remove many items obsolete since 24.1Stefan Kangas2022-07-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout.el (allout-abbreviate-flattened-numbering) (allout-mode-deactivate-hook): * lisp/ansi-color.el (ansi-color-unfontify-region): * lisp/auth-source.el (auth-source-hide-passwords) (auth-source-user-or-password) (auth-source-forget-user-or-password): * lisp/cedet/data-debug.el (data-debug-map): * lisp/cedet/semantic/grammar.el (semantic-grammar-syntax-table) (semantic-grammar-map): * lisp/chistory.el (command-history-map): * lisp/comint.el (comint-dynamic-complete) (comint-dynamic-complete-as-filename) (comint-dynamic-simple-complete): * lisp/dired-x.el (read-filename-at-point) (dired-x-submit-report): * lisp/dos-fns.el (register-name-alist, make-register) (register-value, set-register-value, intdos, mode25, mode4350): * lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): * lisp/emacs-lisp/chart.el (chart-map): * lisp/emacs-lisp/package.el (package-menu-view-commentary): * lisp/emacs-lock.el (toggle-emacs-lock, emacs-lock-from-exiting): * lisp/erc/erc.el (erc-complete-word): * lisp/eshell/em-cmpl.el (eshell-cmpl-suffix-list): * lisp/eshell/esh-util.el (eshell-for): * lisp/files.el (inhibit-first-line-modes-regexps) (inhibit-first-line-modes-suffixes): * lisp/gnus/gnus-msg.el (gnus-outgoing-message-group) (gnus-debug-files, gnus-debug-exclude-variables): * lisp/gnus/gnus-registry.el (gnus-registry-user-format-function-M): * lisp/gnus/gnus.el (gnus-local-domain, gnus-carpal): * lisp/gnus/nnimap.el (nnimap-split-rule): * lisp/iimage.el (turn-on-iimage-mode): * lisp/image.el (image-extension-data, image-library-alist): * lisp/mail/emacsbug.el (report-emacs-bug-pretest-address): * lisp/mail/mail-utils.el (rmail-dont-reply-to): * lisp/mail/mailalias.el (mail-complete-function) (mail-completion-at-point-function): * lisp/mail/rmail.el (rmail-dont-reply-to-names) (rmail-default-dont-reply-to-names): * lisp/mail/sendmail.el (mail-mailer-swallows-blank-line) (mail-sent-via): * lisp/menu-bar.el (menu-bar-kill-ring-save): * lisp/minibuffer.el (completion-annotate-function) (minibuffer-local-filename-must-match-map): * lisp/msb.el (msb-after-load-hooks): * lisp/obsolete/eieio-compat.el (eieio-defmethod) (eieio-defgeneric): * lisp/obsolete/info-edit.el (Info-edit-map): * lisp/obsolete/starttls.el (starttls-any-program-available): * lisp/progmodes/cfengine.el (cfengine-mode-abbrevs): * lisp/progmodes/cwarn.el (turn-on-cwarn-mode): * lisp/progmodes/make-mode.el (makefile-complete): * lisp/progmodes/meta-mode.el (meta-complete-symbol) (meta-mode-map): * lisp/progmodes/pascal.el (pascal-toggle-completions) (pascal-last-completions, pascal-show-completions): * lisp/progmodes/prolog.el (prolog-char-quote-workaround): * lisp/progmodes/which-func.el (which-func-mode): [FUNCTION] * lisp/simple.el (count-lines-region, minibuffer-completing-symbol): * lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map): * lisp/strokes.el (strokes-report-bug): * lisp/subr.el (condition-case-no-debug): * lisp/term/ns-win.el (ns-alternatives-map) (ns-store-cut-buffer-internal): * lisp/term/w32-win.el (w32-default-color-map): * lisp/term/x-win.el (x-cut-buffer-or-selection-value): * lisp/textmodes/bibtex.el (bibtex-complete) (bibtex-entry-field-alist): * lisp/textmodes/reftex-index.el (reftex-index-map) (reftex-index-phrases-map): * lisp/textmodes/reftex-sel.el (reftex-select-label-map) (reftex-select-bib-map): * lisp/textmodes/reftex-toc.el (reftex-toc-map): * lisp/textmodes/rst.el (rst-block-face, rst-external-face) (rst-definition-face, rst-directive-face, rst-comment-face) (rst-emphasis1-face, rst-emphasis2-face, rst-literal-face) (rst-reference-face): * lisp/vc/vc-hooks.el (vc-toggle-read-only): * lisp/view.el (view-return-to-alist) (view-return-to-alist-update): Remove many functions and variables obsolete since 24.1. * lisp/textmodes/bibtex.el (bibtex-entry-alist): Don't use above removed variable 'bibtex-entry-field-alist'. * lisp/cedet/data-debug.el (data-debug-edebug-expr) (data-debug-eval-expression): * lisp/emacs-lisp/trace.el (trace--read-args): * lisp/files-x.el (read-file-local-variable-value): * lisp/simple.el (read--expression): Don't use above removed variable 'minibuffer-completing-symbol'. * lisp/textmodes/rst.el (rst-font-lock-keywords): Don't use above removed variables. * src/w32fns.c (Fw32_default_color_map): Delete obsolete function. (syms_of_w32fns): Delete defsubr for above defun. * src/keyboard.c (syms_of_keyboard) <Vdeferred_action_list> <Vdeferred_action_function>: Delete DEFVARs. <Qdeferred_action_function>: Delete DEFSYM. (syms_of_keyboard_for_pdumper): Adjust for above change. (command_loop_1): Don't run deferred-action-function hook. * lisp/subr.el (deferred-action-list, deferred-action-function): Delete obsoletion statements. * lisp/emacs-lisp/ert-x.el (ert-simulate-command): Don't run 'deferred-action-list' hook. * doc/lispref/hooks.texi (Standard Hooks): Delete 'deferred-action-function'. * lisp/emacs-lisp/lisp.el (field-complete): * lisp/eshell/em-cmpl.el (eshell-cmpl-initialize): * lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): * lisp/gnus/nnmail.el (nnmail-fancy-expiry-target): * lisp/mail/mail-utils.el (mail-dont-reply-to): * lisp/mail/sendmail.el (sendmail-send-it): * lisp/mail/smtpmail.el (smtpmail-send-it): * lisp/minibuffer.el (minibuffer-completion-help): * lisp/progmodes/python.el: Don't use above removed items. * lisp/emacs-lisp/eieio-core.el: * lisp/mail/mailalias.el (mail-complete-alist): Doc fixes; don't refer to above removed items. ; * etc/NEWS: List removed items.
* | Add support for image flippingTimo Taipalus2022-06-241-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-map): Keybindings for flipping functions. (image-flip-horizontally): New function that toggles image flipping property. (image-flip-vertically): New function that toggles image flipping property and rotates image 180 degrees. * src/image.c (syms_of_image): Add property. (image_set_transform): Modify image rotation code to also horizontally flip the image when the property is set. * etc/NEWS: Add description. * doc/lispref/display.texi (Image Descriptors): Document :flip (bug#47095).
* | ; * lisp/image.el (find-image): Fix typos.Eli Zaretskii2022-06-201-4/+4
| |
* | Make images found through `find-image' be handled like `create-image'David Ponce2022-06-201-18/+42
| | | | | | | | | | * lisp/image.el (find-image): Use `create-image' so that we get auto-scaling of images (bug#40978).
* | Add new function image-supported-file-pLars Ingebrigtsen2022-03-221-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-type-from-file-name): Make obsolete. (image-supported-file-p): New function that has a more sensible value. (image-type): Adjust caller. * lisp/thumbs.el (thumbs-file-size, thumbs-show-image-num): Adjust callers. * lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Adjust caller and logic.
* | Revert "Allow using image-convert to view .bmp images"Lars Ingebrigtsen2022-03-221-9/+9
| | | | | | | | | | | | | | This reverts commit ede8ad507d06a336ce8202927f214aecbaf15d6b. This leads to failures for usages of the function where Emacs doesn't have support for the formats.
* | Allow specifying the intermediate formatLars Ingebrigtsen2022-03-211-1/+2
| | | | | | | | | | | | | | * lisp/image/image-converter.el (image-convert-to-format): New user format (bug#54494). (image-convert, image-converter--convert-magick) (image-converter--convert): Use it.
* | Allow using image-convert to view .bmp imagesLars Ingebrigtsen2022-03-211-9/+9
| | | | | | | | | | * lisp/image.el (image-type-from-file-name): Allow Emacs to fall back on image-convert to display .bmp images (bug#54492).
* | * lisp/image.el (image-map): Use defvar-keymap.Stefan Kangas2022-01-311-12/+10
| |
* | Merge from origin/emacs-28Stefan Kangas2022-01-251-2/+3
|\| | | | | | | | | c34d06e3d7 * configure.ac (LIBSECCOMP): Bump minimum version for facc... 335a5a9e0f Make the `f' command work in image-mode again
| * Make the `f' command work in image-mode againLars Ingebrigtsen2022-01-241-2/+3
| | | | | | | | | | * lisp/image.el (image-show-frame): Protect against not having computed the animation data yed (bug#53489).
* | Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Add native HEIC support on macOS (bug#51381)Alan Third2021-12-221-3/+4
| | | | | | | | | | | | | | | | | | * lisp/image.el (image-type-header-regexps): (image-type-file-name-regexps): (image-type-auto-detectable): Add auto-detect code for heic. * src/image.c (syms_of_image): Add heic as an image type under NS. * src/nsimage.m (ns_can_use_native_image_api): Add heic to list of possible image types in the native image support lookup.
* | Fix image load timekeeping bugPaul Eggert2021-12-051-3/+3
| | | | | | | | | | | | | | * lisp/image.el (image-animate-timeout): Fix bug that caused the local variable time-to-load-image to be practically zero, instead of the time it actually took to load the image. I think this bug was introduced in 2013-02-16T03:29:30Z!rgm@gnu.org.
* | * lisp/image.el (image): Add :prefix and :link.Stefan Kangas2021-12-031-0/+2
| |
* | Allow stopping animations automatically when the image disappearsLars Ingebrigtsen2021-11-121-37/+57
| | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-animate): Allow the animation to be stopped automatically when the image is removed from the buffer. (image-animate-timeout): Stop the animation if the image is removed (and that has been requested). * lisp/net/shr.el (shr-put-image): Stop animations if the image is removed.
* | Make image-compute-scaling-factor argument optionalLars Ingebrigtsen2021-11-091-1/+6
| | | | | | | | | | * lisp/image.el (image-compute-scaling-factor): Make the argument optional.
* | Allow 'insert-image' to inhibit isearches or notLars Ingebrigtsen2021-11-061-3/+7
| | | | | | | | | | | | * doc/lispref/display.texi (Showing Images): Mention it. * lisp/image.el (insert-image): Take an optional parameter to inhibit isearch of the STRING argument.
* | Introduce a new 'inhibit-isearch' text propertyLars Ingebrigtsen2021-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Special Properties): Mention it. * lisp/image.el (insert-image): Make `C-s' skip over the image data. * lisp/isearch.el (isearch--search-skip-inhibited): New function. (isearch-search-string): Use it. (isearch--invisible-p): New function. (isearch-range-invisible): Use it.
* | Add new function image-at-point-pStefan Kangas2021-10-271-0/+7
| | | | | | | | | | * lisp/image.el (image-at-point-p): New defun. * doc/lispref/display.texi (Showing Images): Document above new defun.
* | Add WebP image format support (Bug#51296)Stefan Kangas2021-10-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (--with-webp): New option. (HAVE_WEBP): New variable. (emacs_config_features): Add webp. * src/image.c (enum webp_keyword_index) [HAVE_WEBP]: New enum. (webp_format) [HAVE_WEBP]: New variable. (webp_image_p, init_webp_functions, webp_load) [HAVE_WEBP]: New functions for WebP support. (image_types) [HAVE_WEBP]: Define WebP format. (syms_of_image) <Qwebp> [HAVE_WEBP]: New DEFSYM. Add image type Qwebp. * src/Makefile.in (LIBIMAGE): Add WEBP_LIBS. * lisp/files.el (auto-mode-alist): * lisp/image-file.el (image-file-name-extensions): * lisp/image.el (image-type-header-regexps) (image-type-file-name-regexps, image-type-auto-detectable): Add WebP support. * lisp/term/w32-win.el (dynamic-library-alist): Add the libwebp DLL. * INSTALL: * admin/CPP-DEFINES: * doc/lispref/display.texi (Image Formats, Other Image Types): * nt/INSTALL: Document WebP support. * test/lisp/image-tests.el (image-find-image) (image-type-from-file-name): Expand tests. * test/src/image-tests.el (image-tests--files): Add WebP. (image-tests-image-size/webp, image-tests-image-mask-p/webp) (image-tests-image-metadata/webp): New tests. * test/data/image/black.webp: New file.
* | Mark def* macros for indentationLars Ingebrigtsen2021-10-131-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/widget.el (define-widget-keywords): * lisp/vc/pcvs.el (defun-cvs-mode): * lisp/subr.el (defvar-local): (defvar-keymap): * lisp/skeleton.el (define-skeleton): * lisp/simple.el (define-alternatives): * lisp/progmodes/gud.el (gdb-script-mode): * lisp/progmodes/gdb-mi.el (def-gdb-preempt-display-buffer): (def-gdb-auto-update-trigger): (def-gdb-auto-update-handler): (def-gdb-trigger-and-handler): (def-gdb-thread-buffer-command): (def-gdb-thread-buffer-simple-command): (def-gdb-thread-buffer-gud-command): (def-gdb-set-positive-number): (def-gdb-memory-format): (def-gdb-memory-unit): (def-gdb-memory-show-page): * lisp/progmodes/compile.el (define-compilation-mode): * lisp/progmodes/cc-vars.el (defcustom-c-stylevar): * lisp/obsolete/cl.el (define-setf-expander): (defsetf): (define-modify-macro): * lisp/obsolete/cl-compat.el (defkeyword): * lisp/net/hmac-def.el (define-hmac-function): * lisp/international/mule-conf.el (define-iso-single-byte-charset): * lisp/international/ccl.el (define-ccl-program): * lisp/image.el (defimage): * lisp/gnus/gmm-utils.el (defun-gmm): * lisp/ezimage.el (defezimage): * lisp/erc/erc.el (define-erc-module): * lisp/emacs-lisp/shortdoc.el (define-short-documentation-group): * lisp/emacs-lisp/eieio.el (defclass): * lisp/emacs-lisp/eieio-compat.el (defgeneric): (defmethod): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): (define-globalized-minor-mode): * lisp/emacs-lisp/derived.el (define-derived-mode): * lisp/emacs-lisp/byte-run.el (defsubst): (define-obsolete-function-alias): (define-obsolete-variable-alias): * lisp/custom.el (defcustom): (defface): (defgroup): (deftheme): * lisp/cedet/semantic/wisent.el (define-wisent-lexer): * lisp/cedet/semantic/lex.el (define-lex): (define-lex-analyzer): (define-lex-regex-analyzer): (define-lex-simple-regex-analyzer): (define-lex-block-analyzer): (define-lex-keyword-type-analyzer): (define-lex-sexp-type-analyzer): (define-lex-regex-type-analyzer): (define-lex-string-type-analyzer): (define-lex-block-type-analyzer): * lisp/cedet/semantic/lex-spp.el (define-lex-spp-macro-declaration-analyzer): (define-lex-spp-macro-undeclaration-analyzer): (define-lex-spp-include-analyzer): * lisp/cedet/semantic/dep.el (defcustom-mode-local-semantic-dependency-system-include-path): * lisp/cedet/semantic/decorate/mode.el (define-semantic-decoration-style): * lisp/cedet/mode-local.el (define-child-mode): (define-overloadable-function): (define-mode-local-override): * lisp/calc/calc.el (defcalcmodevar): (defmath): Explicitly mark all macros that have names that start with "def" that should indent defunly-like (bug#43329).
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-1/+1
|
* `image-save' doc string clarificationLars Ingebrigtsen2021-07-051-1/+3
| | | | | * lisp/image.el (image-save): Clarify what's being saved (bug#49347).
* Ensure updating the animated image in all windowsLars Ingebrigtsen2021-05-041-3/+1
| | | | | * lisp/image.el (image-show-frame): Simplify the window update -- pass in the buffer, which is a noop if the buffer isn't displayed.
* Speed up animation of non-displayed buffersLars Ingebrigtsen2021-05-031-1/+3
| | | | | | * lisp/image.el (image-show-frame): Don't force an update if the buffer with the animation isn't in a window (bug#47895). Also just update the window in question.
* Speed up animation of non-displayed imagesLars Ingebrigtsen2021-05-031-5/+9
| | | | | | * lisp/image.el (image-animate): Only compute the animation data once -- this avoids recomputing the image on every iteration when the image is not displayed (bug#47895).
* Clarify the doc string of insert-imageLars Ingebrigtsen2021-04-041-2/+6
| | | | | * lisp/image.el (insert-image): Mention the effect of a whitespace image (bug#47240).
* Address some --without-x byte-compilation warningsBasil L. Contovounesios2021-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | These came to light in the contexts of bug#29713 and bug#47234. * lisp/emulation/edt-mapper.el (edt-xserver): * lisp/emulation/edt.el (edt-xserver): * lisp/gnus/gnus-util.el (gnus-rescale-image): * lisp/gnus/nnimap.el (nnimap-map-port): * lisp/term/w32-win.el: * lisp/image.el (image--get-imagemagick-and-warn): * lisp/frame.el (frame-notice-user-settings): Declare functions that are known to be present at runtime in GUI builds. (make-frame-on-display): Signal more informative error when called interactively in a non-GUI build (bug#29713). * lisp/international/mule-diag.el (describe-font): * lisp/org/org-macs.el (org--string-from-props): Pacify warnings about unknown functions in non-GUI bilds. * lisp/mh-e/mh-mime.el (mh-small-image-p): Avoid eliminating fboundp check in non-GUI builds, to pacify unused lexical variable warning. * lisp/net/newst-plainview.el (newsticker--plainview-tool-bar-map): * lisp/net/newst-treeview.el (newsticker-treeview-tool-bar-map): Declare tool-bar-map as a special variable in non-GUI builds.
* Add a new `image-transform-smoothing' user optionLars Ingebrigtsen2021-03-121-5/+46
| | | | | | | * doc/lispref/display.texi (Image Descriptors): Document it. * lisp/image.el (image-transform-smoothing): New user option. (create-image): Use it. (image--default-smoothing): New function.
* Move the ‘declare’ form before the interactive spec in 10 functions.Juri Linkov2021-01-201-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-hide-package): * lisp/font-lock.el (font-lock-debug-fontify): * lisp/image.el (image-jpeg-p): * lisp/mail/flow-fill.el (fill-flowed-test): * lisp/mh-e/mh-speed.el (mh-speed-toggle, mh-speed-view): * lisp/progmodes/project.el (project-async-shell-command) (project-shell-command, project-compile): * lisp/progmodes/sh-script.el (sh-assignment): Fix special forms to follow in this order: docstring, declare, interactive.