1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00
No description
Find a file
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
etc *** empty log message *** 1993-07-20 18:26:59 +00:00
lib-src (etags): Depend on ../src/config.h. 1993-07-21 03:29:43 +00:00
lisp > (vc-backend-revert): Use `co -f' instead of deleting the 1993-07-22 10:57:46 +00:00
lispref Initial revision 1993-07-20 06:07:58 +00:00
src Implement search for app-defaults directory and 1993-07-22 22:00:48 +00:00
build-ins.in entered into RCS 1992-05-01 06:20:52 +00:00
config.guess *** empty log message *** 1993-06-10 20:28:32 +00:00
config.sub (lynx): Recognize as vendor. 1993-07-21 21:00:37 +00:00
configure1.in Fix up previous change. 1993-07-21 22:12:08 +00:00
GETTING.GNU.SOFTWARE Mention that gzip files end in ".gz", not ".z". 1993-06-14 15:12:07 +00:00
INSTALL Initial revision 1993-05-28 04:47:23 +00:00
make-dist Include src/gnu-hp300 in the dist. 1993-07-19 22:46:54 +00:00
Makefile.in * Makefile.in (src/Makefile): Propagate C_SWITCH_SYSTEM to the src 1993-07-18 06:10:46 +00:00
PROBLEMS Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00