Mercurial > hg > xemacs-beta
view man/external-widget.texi @ 558:ed498ef2108b
[xemacs-hg @ 2001-05-23 09:59:33 by ben]
xemacs.mak: call `ver' to get the exact os version and put it in the
installation; suggestion from adrian.
behavior-defs.el: Add scroll-in-place, jka-compr, efs, fix up some things.
pop.c: Remove BROKEN_CYGWIN.
etc\sample.init.el: Rewrite to be much more careful about loading features --
now it decays gracefully even in the complete absence of packages.
Also avoid doing obnoxious things when loading efs.
configure.in: add some support for eventually turning on file coding by
default. Fix numerous places where AC_MSG_WARN had quotes
around its arg, which is bad. Replace with []. Same for
AC_MSG_ERROR.
s\cygwin32.h, s\mingw32.h: remove support for way old beta versions of cygwin.
don't put -Wno-sign-compare in the system switches; this
isn't a system issue. define BROKEN_SIGIO for cygwin to
get C-g support.
device-msw.c: signal an error rather than crash with an unavailable network
printer (from Mike Alexander).
event-msw.c: cleanup headers. fix (hopefully) an error with data corruption
when sending to a network connection.
fileio.c: Fix evil code that attempts
to handle the ~user prefix by (a) always assuming we're referencing
ourselves and not even verifying the user -- hence any file with
a tilde as its first char is invalid! (b) if there wasn't a slash
following the filename, the pointer was set *past* the end of
file and we started reading from uninitialized memory. Now we
simply treat these as files, always.
optionally for 21.4 (doc fix):
lread.c: cambia de pas_de_lache_ici -- al minimo usa la palabra certa.
frame.c: fix warnings.
emacs.c, nt.c, ntproc.c, process-nt.c, realpath.c, unexnt.c: rename MAX_PATH
to standard PATH_MAX.
process-nt.c, realpath.c: cleanup headers.
process-unix.c, sysdep.c, systime.h, syswindows.h: kill BROKEN_CYGWIN and
support for way old beta versions of cygwin.
sysfile.h: use _MAX_PATH (Windows) preferentially for PATH_MAX if defined.
include io.h on Cygwin (we need get_osfhandle()). include
sys/fcntl.h always, since we were including it in various
header files anyway.
unexcw.c: fix up style to conform to standard. remove duplicate definition
of PERROR.
buffer.c: comment change.
database.c, debug.h, device-tty.c, dired-msw.c, glyphs-msw.c: header
cleanups (remove places that directly include a system
header file, because we have our own layer to do this more cleanly
and portably); indentation fixes.
author | ben |
---|---|
date | Wed, 23 May 2001 09:59:48 +0000 |
parents | 3ecd8885ac67 |
children | bb2ecf4a4a16 |
line wrap: on
line source
\input texinfo @c -*-texinfo-*- @setfilename ../info/external-widget.info @ifinfo @dircategory XEmacs Editor @direntry * External Widget: (external-widget) External Client Widget. @end direntry @end ifinfo @node Top, Using an External Client Widget,, (dir) An @dfn{external client widget} is a widget that is part of another program but functions as an Emacs frame. This is intended to be a more powerful replacement for standard text widgets. @menu * Using an External Client Widget:: * External Client Widget Resource Settings:: * Motif-Specific Info About the External Client Widget:: @end menu @node Using an External Client Widget, External Client Widget Resource Settings, Top, Top @chapter Using an External Client Widget There are three different implementations of the external client widget. One is designed for use in Motif applications and is linked with the option @code{-lextcli_Xm}. Another is designed for non-Motif applications that still use the X toolkit; it is linked with the option @code{-lextcli_Xt}. The third is designed for applications that do not use the X toolkit; it is linked with the option @code{-lextcli_Xlib}. In order to use an external client widget in a client program that uses the X toolkit (i.e. either of the first two options described above), simply create an instance of widget type ExternalClient and link your program with the appropriate library. The corresponding header file is called @file{ExternalClient.h}. Documentation still needs to be provided for using the raw Xlib version of the external client widget. The external client widget will not do anything until an instance of Emacs is told about this particular widget. To do that, call the function @code{make-frame}, specifying a value for the frame parameter @code{window-id}. This value should be a string containing the decimal representation of the widget's X window ID number (this can be obtained by the Xt function @code{XtWindow()}). In order for the client program to communicate this information to Emacs, a method such as sending a ToolTalk message needs to be used. Once @code{make-frame} has been called, Emacs will create a frame that occupies the client widget's window. This frame can be used just like any other frame in Emacs. @node External Client Widget Resource Settings, Motif-Specific Info About the External Client Widget, Using an External Client Widget, Top @chapter External Client Widget Resource Settings The external client widget is a subclass of the Motif widget XmPrimitive and thus inherits all its resources. In addition, the following new resources are defined: @table @samp @item deadShell (class DeadShell) A boolean resource indicating whether the last request to the ExternalShell widget that contains the frame corresponding to this widget timed out. If true, no further requests will be made (all requests will automatically fail) until a response to the last request is received. This resource should normally not be set by the user. @item shellTimeout (class ShellTimeout) A value specifying how long (in milliseconds) the client should wait for a response when making a request to the corresponding ExternalShell widget. If this timeout is exceeded, the client will assume that the shell is dead and will fail the request and all subsequent requests until a response to the request is received. Default value is 5000, or 5 seconds. @end table The shell that contains the frame corresponding to an external client widget is of type ExternalShell, as opposed to standard frames, whose shell is of type TopLevelShell. The ExternalShell widget is a direct subclass of Shell and thus inherits its resources. In addition, the following new resources are defined: @table @samp @item window (class Window) The X window ID of the widget to use for this Emacs frame. This is normally set by the call to @code{x-create-frame} and should not be modified by the user. @item deadClient (class DeadClient) A boolean resource indicating whether the last request to the corresponding ExternalClient widget timed out. If true, no further requests will be made (all requests will automatically fail) until a response to the last request is received. This resource should normally not be set by the user. @item ClientTimeout (class ClientTimeout) A value specifying how long (in milliseconds) the shell should wait for a response when making a request to the corresponding ExternalClient widget. If this timeout is exceeded, the shell will assume that the client is dead and will fail the request and all subsequent requests until a response to the request is received. Default value is 5000, or 5 seconds. @end table Note that the requests that are made between the client and the shell are primarily for handling query-geometry and geometry-manager requests made by parent or child widgets. @node Motif-Specific Info About the External Client Widget, , External Client Widget Resource Settings, Top @chapter Motif-Specific Info About the External Client Widget By default, the external client widget has navigation type @samp{XmTAB_GROUP}. The widget traversal keystrokes are modified slightly from the standard XmPrimitive keystrokes. In particular, @kbd{@key{TAB}} alone does not traverse to the next widget (@kbd{Ctrl-@key{TAB}} must be used instead), but functions like a normal @key{TAB} in Emacs. This follows the semantics of the Motif text widget. The traversal keystrokes @kbd{Ctrl-@key{TAB}} and @kbd{Shift-@key{TAB}} are silently filtered by the external client widget and are not seen by Emacs. @summarycontents @contents @bye