1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 06:50:39 -08:00
Commit graph

54 commits

Author SHA1 Message Date
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Thien-Thi Nguyen
5b9c0a1d12 Remove reference to defunct vms-pwd.h.
For pwd.h, use HAVE_PWD_H, not !VMS.
2005-04-20 15:07:03 +00:00
Jan Djärv
6ca30ba48f * xrdb.c (x_load_resources): Undo previous change (2005-03-18). 2005-03-22 21:42:44 +00:00
Jan Djärv
c7f6afd598 * xrdb.c (x_load_resources): Use different char *helv when I18N
is present.
2005-03-18 20:39:32 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
aa7e46604a (file_p): Rename arg path' to filename'. 2002-03-03 20:09:47 +00:00
Gerd Moellmann
cca1b1d7ca (SYSV): Don't define on Solaris 2.
From Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>.
2001-08-16 12:55:40 +00:00
Gerd Moellmann
b6a15240ff (x_load_resources) [USE_MOTIF]: Remove extraneous arg
to sprintf.
2001-03-12 12:49:02 +00:00
Stefan Monnier
cf9b4b0b2c (x_load_resources): Use the class name in the defaults. 2000-10-30 21:56:17 +00:00
Gerd Moellmann
6bbd7a2959 Avoid some more compiler warnings. 2000-09-21 20:54:57 +00:00
Gerd Moellmann
06bbf61869 (x_load_resources): Add default resource for scroll bar's
trough color and main window's background color.
2000-06-22 22:05:37 +00:00
Sam Steingold
427ec0820c Don't declare xmalloc, xrealloc. 2000-06-20 18:17:05 +00:00
Dave Love
11cb8c532d Remove redundant unistd.h inclusion. 2000-06-19 22:14:24 +00:00
Dave Love
fc6c5dfed8 (x_load_resources): Set default resources for resource
classes instead of for the specific Emacs.
2000-06-19 22:09:06 +00:00
Gerd Moellmann
8d56e206a2 (get_fallback): Remove unused variable.
(x_load_resources): Ditto.  Put local variable used for Motif only
in #ifdef USE_MOTIF.
1999-09-16 20:20:10 +00:00
Gerd Moellmann
4da4f20133 (x_load_resources): Set double-click time defaults
for Motif list boxes from double-click-time.
(x_load_resources): Add default resoures for file
selection dialog.
(x_load_resources): Add grey background colors as
defaults for menus, scroll bars, and dialogs.
(x_load_resources): Add font defaults for menus and
dialogs.
1999-07-21 21:43:52 +00:00
Richard M. Stallman
57bda87a94 Use epaths.h istead of paths.h. 1999-02-26 11:41:17 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Richard M. Stallman
012c3e713f Include paths.h. 1997-08-16 21:47:25 +00:00
Richard M. Stallman
58c7da0cdd (get_system_app): Use PATH_X_DEFAULTS. 1997-08-16 18:31:23 +00:00
Richard M. Stallman
0e55297e4c (X_DEFAULT_SEARCH_PATH): Add /usr/X11R6/lib alternatives. 1997-08-12 16:11:03 +00:00
Richard M. Stallman
3fa18fb28a (get_user_app): Free the gethomedir value. 1997-04-27 03:18:20 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman
2dc25e2af5 Don't include sys/param.h.
(MAXPATHLEN): Definition deleted.
1995-01-18 23:23:58 +00:00
Richard M. Stallman
2d487ae57b (getpwuid, getpwnam): Test just DECLARE_GETPWUID_WITH_UID_T, not __bsdi__. 1994-09-16 07:51:10 +00:00
Richard M. Stallman
8f510a7131 [USG5] (SYSV): Don't define if already defined. 1994-07-20 07:19:35 +00:00
Richard M. Stallman
082dc21123 (x_load_resources) [USE_X_TOOLKIT]: Don't call XrmInitialize. 1994-05-05 20:30:32 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Karl Heuer
1cac1f6f2f (gethomedir): Look at LOGNAME before USER. 1994-02-12 00:12:15 +00:00
Karl Heuer
e29ad34213 (x_get_customization_string): Use get_system_name instead of gethostname. 1994-02-02 06:26:21 +00:00
Richard M. Stallman
0f2cd61fa5 (S_ISDIR): Define if not defined.
(file_p): Use S_ISDIR.

(search_magic_path): Fix logic testing for empty path element.
1994-01-21 06:34:16 +00:00
Richard M. Stallman
05be3f1a8a (search_magic_path): Fix colon-colon case. 1993-11-23 03:23:05 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
abfc2e5fd2 (x_get_customization_string): Don't use value of strcpy. 1993-08-10 21:16:01 +00:00
Jim Blandy
d8717d1508 * config.h.in (HAVE_XSCREENRESOURCESTRING): New #undef for
configure to edit.
* xrdb.c (get_user_db): Test it to decide whether or not to try to
retrieve the screen-dependent resources.
1993-07-31 01:31:46 +00:00
Richard M. Stallman
73fc0935f0 (getpwuid): Test DECLARE_GETPWUID_WITH_UID_T. 1993-07-22 22:03:11 +00:00
Jim Blandy
837255fb49 Implement search for app-defaults directory and
localized default databases, along with some other functionality
provided by Xt.
#include <stdio.h>, since we call sprintf.
[emacs] (malloc, realloc, free): #define these to xmalloc,
xrealloc, and xfree.
(x_get_string_resource, file_p): Add forward declarations for these.
(x_customization_string): New variable.
(x_get_customization_string): New function.
(gethomedir): Return malloc'ed space of the right size, instead of
writing into a fixed-size buffer; this means that our callers do
not impose an arbitrary limit on file name length.
(magic_file_p): Rewrite of decode_magic; actually do the
substitutions, instead of expanding all %-escapes to "".  Support
the customization string.  Return 0 or the expanded file name,
instead of just zero or one.  Allocate the space for the expanded
file name ourselves, instead of writing into a fixed-size buffer
passed to us; this removes an arbitrary limit.
(search_magic_path): Rewrite of magic_searchpath_decoder.  Return
0 or the expanded file name, instead of just zero or one.
Allocate the space for the expanded file name ourselves, instead
of writing into a fixed-size buffer passed to us; this means that
our callers do not impose an arbitrary limit on file name length.
(get_system_app): Changed to work with search_magic_path.
(get_user_app): Rewritten to work with search_magic_path, and not
to assume that the values of XAPPLRESDIR is a single directory.
(get_user_db): Properly use the new version of gethomedir.
(get_environ_db): Remove arbitrary limit on length of host name.
(x_load_resources): Take a new argument, myname.
Call get_user_db early to obtain the customization string.
Changes to stand-alone testing code.
1993-07-22 22:00:48 +00:00
Jim Blandy
fdce0b3948 * xrdb.c (get_user_db): Remember to free the screen-local resource
string after we've merged its data into db.
1993-06-22 03:44:28 +00:00
Jim Blandy
9b37b1c26c * xrdb.c (get_user_db): Get the screen-specific database too. 1993-06-11 16:20:38 +00:00
Richard M. Stallman
3e0be4d0f2 [__bsdi__]: Alternate decls of getpwuid and getpwnam. 1993-05-31 23:50:17 +00:00
Richard M. Stallman
44bbb3e05b (magic_searchpath_decoder): Fix typos. 1993-05-26 22:12:18 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Jim Blandy
2c8d1900af * xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h,
we can't test HAVE_X11R4 to see how we should get the resource
	manager string; cheat.
1993-03-11 07:18:48 +00:00
Jim Blandy
3d5d61aef4 * xrdb.c (getuid): Remove declaration. 1993-02-22 15:10:16 +00:00
Jim Blandy
54c908b57c * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.
1992-10-11 06:44:42 +00:00
Jim Blandy
41ab0754d3 * xrdb.c (x_get_resource): Cast the value being assigned to
ret_value->addr, rather than ret_value->addr itself; only GCC
	allows you to cast lvalues.
1992-09-22 06:43:04 +00:00
Jim Blandy
dfc35f5fca * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly
insists on defining SIGCHLD, even if it already has a definition.
	(file_p): Use the constant 4 instead of R_OK; empirically, the
	number is more portable than the symbol if you count the #include
	hair you have to go through to get R_OK defined.  Ffile_readable_p
	does this too.

	* xrdb.c (getuid): Declare this to return short.
1992-09-13 12:48:38 +00:00
Jim Blandy
b631f17789 * xrdb.c (get_user_db): Use XResourceManagerString when available
[HAVE_X11R4].
1992-08-29 03:28:52 +00:00
Jim Blandy
a2a4d43e4c * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>. I
wish I knew why.
	Don't include <sys/types.h>; just declare getuid to return an
    	int.  Big deal.
	(MAXPATHLEN): If this is not defined by the system's include
    	files, give it a value of 256.
	(get_user_db): Fetch the defaults directly from the display
    	structure, rather than using XResourceManagerString; that
    	function doesn't exist in the older versions of X.
1992-08-19 06:51:17 +00:00