aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuanma Barranquero2010-10-15 12:49:07 +0200
committerEli Zaretskii2010-10-15 12:49:07 +0200
commit00f113eb562a8f0c1b38592bf8346d4ecf942b2c (patch)
treeeef5419b5eb5e59a94b457351b724a12a8050a73 /doc
parent68f6bd17e5ecd16961702fc8c66639d589baadee (diff)
downloademacs-00f113eb562a8f0c1b38592bf8346d4ecf942b2c.tar.gz
emacs-00f113eb562a8f0c1b38592bf8346d4ecf942b2c.zip
Document changes made in 2010-10-13T14:50:06Z!lekktu@gmail.com.
os.texi (Dynamic Libraries): New node, with slightly modified text deleted from "Image Formats". (System Interface): Add @menu entry for "Dynamic Libraries". display.texi (Image Formats): Remove description of image-library-alist. (Renamed in 2010-10-13T14:50:06Z!lekktu@gmail.com.)
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog9
-rw-r--r--doc/lispref/display.texi28
-rw-r--r--doc/lispref/os.texi52
3 files changed, 67 insertions, 22 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index a5f3ce34371..f5878dfed74 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,12 @@
12010-10-15 Eli Zaretskii <eliz@gnu.org>
2
3 * os.texi (Dynamic Libraries): New node, with slightly modified
4 text deleted from "Image Formats".
5 (System Interface): Add @menu entry for "Dynamic Libraries".
6
7 * display.texi (Image Formats): Remove description of
8 image-library-alist. (Renamed in 2010-10-13T14:50:06Z!lekktu@gmail.com.)
9
12010-10-12 Glenn Morris <rgm@gnu.org> 102010-10-12 Glenn Morris <rgm@gnu.org>
2 11
3 * book-spine.texinfo: Rename to book-spine.texi. 12 * book-spine.texinfo: Rename to book-spine.texi.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 037c334ab88..f4092cfa7ea 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4055,10 +4055,12 @@ displayed (@pxref{Display Feature Testing}).
4055 4055
4056 Emacs can display a number of different image formats; some of them 4056 Emacs can display a number of different image formats; some of them
4057are supported only if particular support libraries are installed on 4057are supported only if particular support libraries are installed on
4058your machine. In some environments, Emacs can load image 4058your machine. In some environments, Emacs can load support libraries
4059libraries on demand; if so, the variable @code{image-library-alist} 4059on demand; if so, the variable @code{dynamic-library-alist}
4060can be used to modify the set of known names for these dynamic 4060(@pxref{Dynamic Libraries}) can be used to modify the set of known
4061libraries (though it is not possible to add new image formats). 4061names for these dynamic libraries (though it is not possible to add
4062new image formats). Note that image types @code{pbm} and @code{xbm}
4063do not depend on external libraries and are always available in Emacs.
4062 4064
4063 The supported image formats include XBM, XPM (this requires the 4065 The supported image formats include XBM, XPM (this requires the
4064libraries @code{libXpm} version 3.4k and @code{libz}), GIF (requiring 4066libraries @code{libXpm} version 3.4k and @code{libz}), GIF (requiring
@@ -4082,24 +4084,6 @@ To know which image types are really available, use
4082@code{image-type-available-p}. 4084@code{image-type-available-p}.
4083@end defvar 4085@end defvar
4084 4086
4085@defvar image-library-alist
4086This in an alist of image types vs external libraries needed to
4087display them.
4088
4089Each element is a list @code{(@var{image-type} @var{library}...)},
4090where the car is a supported image format from @code{image-types}, and
4091the rest are strings giving alternate filenames for the corresponding
4092external libraries to load.
4093
4094Emacs tries to load the libraries in the order they appear on the
4095list; if none is loaded, the running session of Emacs won't support
4096the image type. @code{pbm} and @code{xbm} don't need to be listed;
4097they're always supported.
4098
4099This variable is ignored if the image libraries are statically linked
4100into Emacs.
4101@end defvar
4102
4103@defun image-type-available-p type 4087@defun image-type-available-p type
4104This function returns non-@code{nil} if image type @var{type} is 4088This function returns non-@code{nil} if image type @var{type} is
4105available, i.e., if images of this type can be loaded and displayed in 4089available, i.e., if images of this type can be loaded and displayed in
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 8548ce05047..e99e3fe89d8 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -37,6 +37,7 @@ terminal and the screen.
37* X11 Keysyms:: Operating on key symbols for X Windows. 37* X11 Keysyms:: Operating on key symbols for X Windows.
38* Batch Mode:: Running Emacs without terminal interaction. 38* Batch Mode:: Running Emacs without terminal interaction.
39* Session Management:: Saving and restoring state with X Session Management. 39* Session Management:: Saving and restoring state with X Session Management.
40* Dynamic Libraries:: On-demand loading of support libraries.
40@end menu 41@end menu
41 42
42@node Starting Up 43@node Starting Up
@@ -2186,6 +2187,57 @@ Emacs is restarted by the session manager.
2186@end group 2187@end group
2187@end example 2188@end example
2188 2189
2190@node Dynamic Libraries
2191@section Dynamically Loaded Libraries
2192@cindex dynamic libraries
2193
2194 A @dfn{dynamically loaded library} is a library that is loaded on
2195demand, when its facilities are first needed. Emacs supports such
2196on-demand loading of support libraries for some of its features.
2197
2198@defvar dynamic-library-alist
2199This is an alist of dynamic libraries and external library files
2200implementing them.
2201
2202Each element is a list of the form
2203@w{@code{(@var{library} @var{files}@dots{})}}, where the @code{car} is
2204a symbol representing a supported external library, and the rest are
2205strings giving alternate filenames for that library.
2206
2207Emacs tries to load the library from the files in the order they
2208appear in the list; if none is found, the running session of Emacs
2209won't have access to that library, and the features that depend on the
2210library will be unavailable.
2211
2212Image support on some platforms uses this facility. Here's an example
2213of setting this variable for supporting images on MS-Windows:
2214
2215@lisp
2216(setq dynamic-library-alist
2217 '((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
2218 (png "libpng12d.dll" "libpng12.dll" "libpng.dll"
2219 "libpng13d.dll" "libpng13.dll")
2220 (jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll")
2221 (tiff "libtiff3.dll" "libtiff.dll")
2222 (gif "giflib4.dll" "libungif4.dll" "libungif.dll")
2223 (svg "librsvg-2-2.dll")
2224 (gdk-pixbuf "libgdk_pixbuf-2.0-0.dll")
2225 (glib "libglib-2.0-0.dll")
2226 (gobject "libgobject-2.0-0.dll")))
2227@end lisp
2228
2229Note that image types @code{pbm} and @code{xbm} do not need entries in
2230this variable because they do not depend on external libraries and are
2231always available in Emacs.
2232
2233Also note that this variable is not meant to be a generic facility for
2234accessing external libraries; only those already known by Emacs can
2235be loaded through it.
2236
2237This variable is ignored if the given @var{library} is statically
2238linked into Emacs.
2239@end defvar
2240
2189@ignore 2241@ignore
2190 arch-tag: 8378814a-30d7-467c-9615-74a80b9988a7 2242 arch-tag: 8378814a-30d7-467c-9615-74a80b9988a7
2191@end ignore 2243@end ignore