aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-10-13 09:18:52 +0800
committerChong Yidong2012-10-13 09:18:52 +0800
commit73f2b4abf53a5391f995edacf39c6de89fdc8f45 (patch)
tree6d553a325cf7b6df97c8a8fed351fbb77d626f61
parentd6453ce49724b0a3bd24922ff0ad02f391d6e517 (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/emacs/files.texi25
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/display.texi62
-rw-r--r--etc/NEWS6
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 @@
12012-10-13 Chong Yidong <cyd@gnu.org>
2
3 * files.texi (File Conveniences): ImageMagick enabled by default.
4
12012-10-10 Dani Moncayo <dmoncayo@gmail.com> 52012-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
1931files. 1931files.
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
1935to view a much wider variety of image types in Image mode, by 1935@vindex imagemagick-types-inhibit
1936rendering the images via ImageMagick. However, this feature is 1936 If Emacs was compiled with support for the ImageMagick library, it
1937currently disabled by default. To enable it, add the following line 1937can use ImageMagick to render a wide variety of images. The variable
1938to your init file: 1938@code{imagemagick-enabled-types} lists the image types that Emacs may
1939 1939render using ImageMagick; each element in the list should be an
1940@example 1940internal ImageMagick name for an image type, as a symbol or an
1941(imagemagick-register-types) 1941equivalent string (e.g.@: @code{BMP} for @file{.bmp} images). To
1942@end example 1942enable 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
1945never 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''
1948but 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 @@
12012-10-13 Chong Yidong <cyd@gnu.org>
2
3 * display.texi (ImageMagick Images): ImageMagick enabled by default.
4
12012-10-05 Chong Yidong <cyd@gnu.org> 52012-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
4582ImageMagick library to load many image formats. The image type symbol 4582ImageMagick library to load many image formats (@pxref{File
4583Conveniences,,, emacs, The GNU Emacs Manual}). The image type symbol
4583for images loaded via ImageMagick is @code{imagemagick}, regardless of 4584for images loaded via ImageMagick is @code{imagemagick}, regardless of
4584the actual underlying image format. 4585the actual underlying image format.
4585 4586
4586@defun imagemagick-types 4587@defun imagemagick-types
4587This function returns a list of image file extensions supported by the 4588This function returns a list of image file extensions supported by the
4588current ImageMagick installation. 4589current ImageMagick installation. Each list element is a symbol
4589@end defun 4590representing 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
4592Image mode, e.g.@: when visiting such files with @kbd{C-x C-f}. This 4593
4593feature is enabled by calling @code{imagemagick-register-types}. 4594@defopt imagemagick-enabled-types
4594 4595The value of this variable is a list of ImageMagick image types which
4595@defun imagemagick-register-types 4596Emacs may attempt to render using ImageMagick. Each list element
4596This function enables using Image mode to visit image files supported 4597should be one of the symbols in the list returned by
4597by ImageMagick. @xref{File Conveniences,,, emacs, The GNU Emacs 4598@code{imagemagick-types}, or an equivalent string. Alternatively, a
4598Manual}. It also causes @code{create-image} and other helper 4599value of @code{t} enables ImageMagick for all possible image types.
4599functions to associate such file names with the @code{imagemagick} 4600Regardless of the value of this variable,
4600image type (@pxref{Defining Images}). 4601@code{imagemagick-types-inhibit} (see below) takes precedence.
4601 4602@end defopt
4602All image file extensions supported by ImageMagick are registered,
4603except those specified in @code{imagemagick-types-inhibit}. If Emacs
4604was not compiled with ImageMagick support, this function does nothing.
4605@end defun
4606 4603
4607@defopt imagemagick-types-inhibit 4604@defopt imagemagick-types-inhibit
4608This variable specifies a list of image types that should @emph{not} 4605The value of this variable lists the ImageMagick image types which
4609be registered by @code{imagemagick-register-types}. Each entry in 4606should never be rendered using ImageMagick, regardless of the value of
4610this 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 4608ImageMagick entirely.
4612that are considered ``images'' by ImageMagick, but which should not be
4613considered 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
4625There may be overlap between image loaders in your Emacs installation,
4626and 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
4628loaders).
4629For example, if you never want to use the ImageMagick loader to view
4630JPEG 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
4634image descriptor properties: 4612image descriptor properties:
4635 4613
diff --git a/etc/NEWS b/etc/NEWS
index 2b934741c2c..5a310d8f82c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -137,16 +137,16 @@ It is no longer necessary to call `imagemagick-register-types'
137explicitly to install ImageMagick image types; that function is called 137explicitly to install ImageMagick image types; that function is called
138automatically at startup, or when customizing a relevant imagemagick- 138automatically at startup, or when customizing a relevant imagemagick-
139option. 139option.
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
142ImageMagick to view images. You must call imagemagick-register-types 142ImageMagick to view images. You must call imagemagick-register-types
143afterwards if you do not use customize to change this. 143afterwards 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
146ImageMagick types are treated as images. The function 146ImageMagick 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
148treated as images. 148treated 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