comparison src/device-x.c @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents a25c824ed558
children 141c2920ea48
comparison
equal deleted inserted replaced
3024:b7f26b2f78bd 3025:facf3239ba30
1390 DEFUN ("x-get-resource", Fx_get_resource, 3, 6, 0, /* 1390 DEFUN ("x-get-resource", Fx_get_resource, 3, 6, 0, /*
1391 Retrieve an X resource from the resource manager. 1391 Retrieve an X resource from the resource manager.
1392 1392
1393 The first arg is the name of the resource to retrieve, such as "font". 1393 The first arg is the name of the resource to retrieve, such as "font".
1394 The second arg is the class of the resource to retrieve, such as "Font". 1394 The second arg is the class of the resource to retrieve, such as "Font".
1395 The third arg must be one of the symbols 'string, 'integer, 'natnum, or 1395 The third arg must be one of the symbols `string', `integer', `natnum', or
1396 'boolean, specifying the type of object that the database is searched for. 1396 `boolean', specifying the type of object that the database is searched for.
1397 The fourth arg is the locale to search for the resources on, and can 1397 The fourth arg is the locale to search for the resources on, and can
1398 currently be a buffer, a frame, a device, or 'global. If omitted, it 1398 currently be a buffer, a frame, a device, or `global'. If omitted, it
1399 defaults to 'global. 1399 defaults to `global'.
1400 The fifth arg is the device to search for the resources on. (The resource 1400 The fifth arg is the device to search for the resources on. (The resource
1401 database for a particular device is constructed by combining non-device- 1401 database for a particular device is constructed by combining non-device-
1402 specific resources such as any command-line resources specified and any 1402 specific resources such as any command-line resources specified and any
1403 app-defaults files found [or the fallback resources supplied by XEmacs, 1403 app-defaults files found [or the fallback resources supplied by XEmacs,
1404 if no app-defaults file is found] with device-specific resources such as 1404 if no app-defaults file is found] with device-specific resources such as
1447 1447
1448 XrmGetResource (db, "xemacs.device.DEVICE-NAME.foreground", 1448 XrmGetResource (db, "xemacs.device.DEVICE-NAME.foreground",
1449 "Emacs.EmacsLocaleType.EmacsDevice.Foreground", 1449 "Emacs.EmacsLocaleType.EmacsDevice.Foreground",
1450 "String"); 1450 "String");
1451 1451
1452 4) If LOCALE is 'global, a call 1452 4) If LOCALE is `global', a call
1453 1453
1454 (x-get-resource "foreground" "Foreground" 'string 'global) 1454 (x-get-resource "foreground" "Foreground" 'string 'global)
1455 1455
1456 is an interface to a C call something like 1456 is an interface to a C call something like
1457 1457
1458 XrmGetResource (db, "xemacs.foreground", 1458 XrmGetResource (db, "xemacs.foreground",
1459 "Emacs.Foreground", 1459 "Emacs.Foreground",
1460 "String"); 1460 "String");
1461 1461
1462 Note that for 'global, no prefix is added other than that of the 1462 Note that for `global', no prefix is added other than that of the
1463 application itself; thus, you can use this locale to retrieve 1463 application itself; thus, you can use this locale to retrieve
1464 arbitrary application resources, if you really want to. 1464 arbitrary application resources, if you really want to.
1465 1465
1466 The returned value of this function is nil if the queried resource is not 1466 The returned value of this function is nil if the queried resource is not
1467 found. If the third arg is `string', a string is returned, and if it is 1467 found. If the third arg is `string', a string is returned, and if it is