X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3c3b34d2dbbf7d8e334611172cd58ff5d2e765b4..937640a621a4ce2e5e56eaecca37a2a28a584318:/lisp/image.el diff --git a/lisp/image.el b/lisp/image.el index 88e38186d7..13fdf2f6e4 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -54,10 +54,12 @@ a non-nil value, TYPE is the image's type.") Each element is a list (IMAGE-TYPE LIBRARY...), where the car is a symbol representing a supported image type, and the rest are strings giving -alternate filenames for the corresponding external libraries to load. -They are tried in the order they appear on the list; if none of them can -be loaded, the running session of Emacs won't display the image type. -No entries are needed for pbm and xbm images; they're always supported.") +alternate filenames for the corresponding external libraries. + +Emacs tries to load the libraries in the order they appear on the +list; if none is loaded, the running session of Emacs won't +support the image type. Types 'pbm and 'xbm don't need to be +listed; they're always supported.") ;;;###autoload (put 'image-library-alist 'risky-local-variable t) (defun image-jpeg-p (data) @@ -226,6 +228,15 @@ height of the image; integer values are taken as pixel values." (defun insert-sliced-image (image &optional string area rows cols) + "Insert IMAGE into current buffer at point. +IMAGE is displayed by inserting STRING into the current buffer +with a `display' property whose value is the image. STRING is +defaulted if you omit it. +AREA is where to display the image. AREA nil or omitted means +display it in the text area, a value of `left-margin' means +display it in the left marginal area, a value of `right-margin' +means display it in the right marginal area. +The image is automatically split into ROW x COLS slices." (unless string (setq string " ")) (unless (eq (car-safe image) 'image) (error "Not an image: %s" image))