diff options
| author | Chong Yidong | 2012-10-13 09:18:52 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-10-13 09:18:52 +0800 |
| commit | 73f2b4abf53a5391f995edacf39c6de89fdc8f45 (patch) | |
| tree | 6d553a325cf7b6df97c8a8fed351fbb77d626f61 | |
| parent | d6453ce49724b0a3bd24922ff0ad02f391d6e517 (diff) | |
| download | emacs-73f2b4abf53a5391f995edacf39c6de89fdc8f45.tar.gz emacs-73f2b4abf53a5391f995edacf39c6de89fdc8f45.zip | |
Document 24.3 ImageMagick changes.
* doc/emacs/files.texi (File Conveniences): ImageMagick enabled by default.
* doc/lispref/display.texi (ImageMagick Images): ImageMagick enabled by default.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 25 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 62 | ||||
| -rw-r--r-- | etc/NEWS | 6 |
5 files changed, 47 insertions, 54 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 3aad65f7bed..47a4c8da522 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-13 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (File Conveniences): ImageMagick enabled by default. | ||
| 4 | |||
| 1 | 2012-10-10 Dani Moncayo <dmoncayo@gmail.com> | 5 | 2012-10-10 Dani Moncayo <dmoncayo@gmail.com> |
| 2 | 6 | ||
| 3 | * basic.texi (Arguments): Fix typos. | 7 | * basic.texi (Arguments): Fix typos. |
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index c1cebc424ca..e12bb385653 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -1931,15 +1931,22 @@ non-@code{nil}. Currently, Emacs only supports animation in GIF | |||
| 1931 | files. | 1931 | files. |
| 1932 | 1932 | ||
| 1933 | @cindex ImageMagick support | 1933 | @cindex ImageMagick support |
| 1934 | If your Emacs was compiled with ImageMagick support, it is possible | 1934 | @vindex imagemagick-enabled-types |
| 1935 | to view a much wider variety of image types in Image mode, by | 1935 | @vindex imagemagick-types-inhibit |
| 1936 | rendering the images via ImageMagick. However, this feature is | 1936 | If Emacs was compiled with support for the ImageMagick library, it |
| 1937 | currently disabled by default. To enable it, add the following line | 1937 | can use ImageMagick to render a wide variety of images. The variable |
| 1938 | to your init file: | 1938 | @code{imagemagick-enabled-types} lists the image types that Emacs may |
| 1939 | 1939 | render using ImageMagick; each element in the list should be an | |
| 1940 | @example | 1940 | internal ImageMagick name for an image type, as a symbol or an |
| 1941 | (imagemagick-register-types) | 1941 | equivalent string (e.g.@: @code{BMP} for @file{.bmp} images). To |
| 1942 | @end example | 1942 | enable ImageMagick for all possible image types, change |
| 1943 | @code{imagemagick-enabled-types} to @code{t}. The variable | ||
| 1944 | @code{imagemagick-types-inhibit} lists the image types which should | ||
| 1945 | never be rendered using ImageMagick, regardless of the value of | ||
| 1946 | @code{imagemagick-enabled-types} (the default list includes types like | ||
| 1947 | @code{C} and @code{HTML}, which ImageMagick can render as an ``image'' | ||
| 1948 | but Emacs should not). To disable ImageMagick entirely, change | ||
| 1949 | @code{imagemagick-types-inhibit} to @code{t}. | ||
| 1943 | 1950 | ||
| 1944 | @findex thumbs-mode | 1951 | @findex thumbs-mode |
| 1945 | @findex mode, thumbs | 1952 | @findex mode, thumbs |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 974a0d67192..40c457ffe07 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-13 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (ImageMagick Images): ImageMagick enabled by default. | ||
| 4 | |||
| 1 | 2012-10-05 Chong Yidong <cyd@gnu.org> | 5 | 2012-10-05 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * minibuf.texi (Basic Completion): Clarify list form of completion | 7 | * minibuf.texi (Basic Completion): Clarify list form of completion |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 11a86f3c1c5..3f92c50e2bc 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -4579,57 +4579,35 @@ specifying the bounding box of the PostScript image, analogous to the | |||
| 4579 | @cindex images, support for more formats | 4579 | @cindex images, support for more formats |
| 4580 | 4580 | ||
| 4581 | If you build Emacs with ImageMagick support, you can use the | 4581 | If you build Emacs with ImageMagick support, you can use the |
| 4582 | ImageMagick library to load many image formats. The image type symbol | 4582 | ImageMagick library to load many image formats (@pxref{File |
| 4583 | Conveniences,,, emacs, The GNU Emacs Manual}). The image type symbol | ||
| 4583 | for images loaded via ImageMagick is @code{imagemagick}, regardless of | 4584 | for images loaded via ImageMagick is @code{imagemagick}, regardless of |
| 4584 | the actual underlying image format. | 4585 | the actual underlying image format. |
| 4585 | 4586 | ||
| 4586 | @defun imagemagick-types | 4587 | @defun imagemagick-types |
| 4587 | This function returns a list of image file extensions supported by the | 4588 | This function returns a list of image file extensions supported by the |
| 4588 | current ImageMagick installation. | 4589 | current ImageMagick installation. Each list element is a symbol |
| 4589 | @end defun | 4590 | representing an internal ImageMagick name for an image type, such as |
| 4590 | 4591 | @code{BMP} for @file{.bmp} images. | |
| 4591 | By default, Emacs does not use ImageMagick to display images in | 4592 | @end defun |
| 4592 | Image mode, e.g.@: when visiting such files with @kbd{C-x C-f}. This | 4593 | |
| 4593 | feature is enabled by calling @code{imagemagick-register-types}. | 4594 | @defopt imagemagick-enabled-types |
| 4594 | 4595 | The value of this variable is a list of ImageMagick image types which | |
| 4595 | @defun imagemagick-register-types | 4596 | Emacs may attempt to render using ImageMagick. Each list element |
| 4596 | This function enables using Image mode to visit image files supported | 4597 | should be one of the symbols in the list returned by |
| 4597 | by ImageMagick. @xref{File Conveniences,,, emacs, The GNU Emacs | 4598 | @code{imagemagick-types}, or an equivalent string. Alternatively, a |
| 4598 | Manual}. It also causes @code{create-image} and other helper | 4599 | value of @code{t} enables ImageMagick for all possible image types. |
| 4599 | functions to associate such file names with the @code{imagemagick} | 4600 | Regardless of the value of this variable, |
| 4600 | image type (@pxref{Defining Images}). | 4601 | @code{imagemagick-types-inhibit} (see below) takes precedence. |
| 4601 | 4602 | @end defopt | |
| 4602 | All image file extensions supported by ImageMagick are registered, | ||
| 4603 | except those specified in @code{imagemagick-types-inhibit}. If Emacs | ||
| 4604 | was not compiled with ImageMagick support, this function does nothing. | ||
| 4605 | @end defun | ||
| 4606 | 4603 | ||
| 4607 | @defopt imagemagick-types-inhibit | 4604 | @defopt imagemagick-types-inhibit |
| 4608 | This variable specifies a list of image types that should @emph{not} | 4605 | The value of this variable lists the ImageMagick image types which |
| 4609 | be registered by @code{imagemagick-register-types}. Each entry in | 4606 | should never be rendered using ImageMagick, regardless of the value of |
| 4610 | this list should be one of the symbols returned by | 4607 | @code{imagemagick-enabled-types}. A value of @code{t} disables |
| 4611 | @code{imagemagick-types}. The default value lists several file types | 4608 | ImageMagick entirely. |
| 4612 | that are considered ``images'' by ImageMagick, but which should not be | ||
| 4613 | considered as images by Emacs, including C files and HTML files. | ||
| 4614 | @end defopt | 4609 | @end defopt |
| 4615 | 4610 | ||
| 4616 | @ignore | ||
| 4617 | @c I don't know what this means. I suspect it means eg loading jpg | ||
| 4618 | @c images via libjpeg or ImageMagick. But it doesn't work. | ||
| 4619 | @c If you don't have libjpeg support compiled in, you cannot | ||
| 4620 | @c view jpeg images, even if you have imagemagick support: | ||
| 4621 | @c http://debbugs.gnu.org/9045 | ||
| 4622 | @c And if you have both compiled in, then you always get | ||
| 4623 | @c the libjpeg version: | ||
| 4624 | @c http://debbugs.gnu.org/10746 | ||
| 4625 | There may be overlap between image loaders in your Emacs installation, | ||
| 4626 | and you may prefer to use a different one for a given image type | ||
| 4627 | (which loader will be used in practice depends on the priority of the | ||
| 4628 | loaders). | ||
| 4629 | For example, if you never want to use the ImageMagick loader to view | ||
| 4630 | JPEG files, add @code{JPG} to this list. | ||
| 4631 | @end ignore | ||
| 4632 | |||
| 4633 | Images loaded with ImageMagick support the following additional | 4611 | Images loaded with ImageMagick support the following additional |
| 4634 | image descriptor properties: | 4612 | image descriptor properties: |
| 4635 | 4613 | ||
| @@ -137,16 +137,16 @@ It is no longer necessary to call `imagemagick-register-types' | |||
| 137 | explicitly to install ImageMagick image types; that function is called | 137 | explicitly to install ImageMagick image types; that function is called |
| 138 | automatically at startup, or when customizing a relevant imagemagick- | 138 | automatically at startup, or when customizing a relevant imagemagick- |
| 139 | option. | 139 | option. |
| 140 | 140 | +++ | |
| 141 | *** Setting `imagemagick-types-inhibit' to t now disables the use of | 141 | *** Setting `imagemagick-types-inhibit' to t now disables the use of |
| 142 | ImageMagick to view images. You must call imagemagick-register-types | 142 | ImageMagick to view images. You must call imagemagick-register-types |
| 143 | afterwards if you do not use customize to change this. | 143 | afterwards if you do not use customize to change this. |
| 144 | 144 | +++ | |
| 145 | *** The new variable `imagemagick-enabled-types' also affects which | 145 | *** The new variable `imagemagick-enabled-types' also affects which |
| 146 | ImageMagick types are treated as images. The function | 146 | ImageMagick types are treated as images. The function |
| 147 | `imagemagick-filter-types' returns the list of types that will be | 147 | `imagemagick-filter-types' returns the list of types that will be |
| 148 | treated as images. | 148 | treated as images. |
| 149 | 149 | --- | |
| 150 | *** Images displayed via ImageMagick now support transparency and the | 150 | *** Images displayed via ImageMagick now support transparency and the |
| 151 | :background image spec property. | 151 | :background image spec property. |
| 152 | 152 | ||