aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorGlenn Morris2012-05-31 00:22:33 -0700
committerGlenn Morris2012-05-31 00:22:33 -0700
commit32d72c2f5d7554ee2f1d37bb8aa210ee07165f25 (patch)
tree062e0193098ce370be6f7cfb59cb247b89e9088a /src/image.c
parentca34e0be92d5e715c5d65b990917d2ecd15da318 (diff)
downloademacs-32d72c2f5d7554ee2f1d37bb8aa210ee07165f25.tar.gz
emacs-32d72c2f5d7554ee2f1d37bb8aa210ee07165f25.zip
Add option imagemagick-types-enable
* lisp/image.el: For clarity, call imagemagick-register-types at top-level, rather than relying on a custom :initialize. (imagemagick-types-enable): New option. (imagemagick-register-types): Respect imagemagick-types-inhibit. If disabling support, remove elements altogether rather than using an impossible regexp. (imagemagick-types-inhibit): Give it the default init function. * src/image.c (Fimagemagick_types): Doc fix. * etc/NEWS: Mention this. Fixes: debbugs:11557
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c
index a3b64b74997..b6cdb6c8290 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1,5 +1,6 @@
1/* Functions for image support on window system. 1/* Functions for image support on window system.
2 Copyright (C) 1989, 1992-2012 Free Software Foundation, Inc. 2
3Copyright (C) 1989, 1992-2012 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -7987,7 +7988,8 @@ their descriptions (http://www.imagemagick.org/script/formats.php).
7987You can also try the shell command: `identify -list format'. 7988You can also try the shell command: `identify -list format'.
7988 7989
7989Note that ImageMagick recognizes many file-types that Emacs does not 7990Note that ImageMagick recognizes many file-types that Emacs does not
7990recognize as images, such as C. See `imagemagick-types-inhibit'. */) 7991recognize as images, such as C. See `imagemagick-types-enable'
7992and `imagemagick-types-inhibit'. */)
7991 (void) 7993 (void)
7992{ 7994{
7993 Lisp_Object typelist = Qnil; 7995 Lisp_Object typelist = Qnil;