1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00
Commit graph

1843 commits

Author SHA1 Message Date
Richard M. Stallman
e5e548e338 (Fx_create_frame): Don't look for default font
if the caller has specified a valid font.  Try several
alternative font patterns.
1993-07-24 07:23:16 +00:00
Richard M. Stallman
82411f65a3 (face_name_id_number): Use assq_no_quit, not Fassq. 1993-07-24 05:49:51 +00:00
Richard M. Stallman
eb4686e4a3 (Fprocess_status): Use Fget_process, to avoid error
if unknown process name.
1993-07-24 05:47:16 +00:00
Richard M. Stallman
a612e298a4 (command_loop_1): Run post-command-hook first thing.
(Fread_key_sequence): Doc fix.
(read_key_sequence): Handle Vkey_translation_map.

(kbd_buffer_get_event): Discard an event whose kind is no_event.
1993-07-23 23:23:57 +00:00
Roland McGrath
ab8fb1933c [_LIBC]: Define BSD4_2. 1993-07-23 20:38:15 +00:00
Richard M. Stallman
fea0b06d62 (HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS 1993-07-23 19:53:44 +00:00
Richard M. Stallman
0fd6b74ee5 Comment fixes. 1993-07-23 19:17:12 +00:00
Richard M. Stallman
7719aa0601 (XTread_socket) [! HAVE_X11R5]:
Check for XK_Mode_switch and XK_Num_Lock, if defined.
1993-07-23 08:04:52 +00:00
Richard M. Stallman
ddd931ff51 (set_point): Test Vinhibit_point_motion_hooks. 1993-07-23 07:59:08 +00:00
Richard M. Stallman
688a5a0f3e (syms_of_textprop): Set up Lisp var Vinhibit_point_motion_hooks. 1993-07-23 07:58:22 +00:00
Richard M. Stallman
b81de1f7e7 (Vinhibit_point_motion_hooks): Declared. 1993-07-23 07:57:57 +00:00
Richard M. Stallman
0aaa80cc17 (TEXT_START) [__GNUC__]: Define as 0. 1993-07-23 07:48:11 +00:00
Richard M. Stallman
6e27eb5e02 (PTY_OPEN): Use sigaction, not sigsetmask. 1993-07-23 04:16:38 +00:00
Richard M. Stallman
ce8f144d55 (DECLARE_GETPWUID_WITH_UID_T): Declared. 1993-07-22 22:03:25 +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
Richard M. Stallman
312c996467 (Fget_buffer_process): Delete doc string from
second alternative definition.
1993-07-22 19:38:51 +00:00
Roland McGrath
f7a009a5c4 (ALIGNED, ROUNDUP): Use unsigned long int' instead of unsigned int' for
casting addresses and sizes.  It matters on the 64-bit Alpha.
1993-07-22 18:59:43 +00:00
Roland McGrath
b1814de250 [_LIBC]: Just include <sys/resource.h>, and skip hairy #ifdef mess. 1993-07-22 18:55:19 +00:00
Richard M. Stallman
c08c95c7af (Fdelete_frame): Allow deletion if there is some other
visible (perhaps iconified) frame.  Also allow deleting terminal frame
if there are X frames.
1993-07-22 09:01:22 +00:00
Richard M. Stallman
54939090dc (syms_of_buffer): Lisp var doc fixes. 1993-07-22 08:53:43 +00:00
Richard M. Stallman
c901003d61 (NO_MODE_T): Defined. 1993-07-22 08:36:39 +00:00
Richard M. Stallman
322890c475 (float_to_string): Don't use uninitialized pointer `cp'.
Set width to -1 at lose: and other places.
Default to .17g, not .20g.
1993-07-22 08:34:30 +00:00
Richard M. Stallman
b8e4857c81 (graft_intervals_into_buffer): When TREE is null,
pass buffer as 2nd arg to reproduce_tree.
1993-07-22 08:06:55 +00:00
Richard M. Stallman
1110dff341 (Qmodification_hooks, Qinsert_in_front_hooks)
(Qinsert_behind_hooks): Moved to buffer.c.
(syms_of_textprop): Lisp vars setup deleted.
1993-07-21 22:33:37 +00:00
Richard M. Stallman
294d215f89 (Qmodification_hooks, Qinsert_in_front_hooks)
(Qinsert_behind_hooks): Moved here.
(syms_of_buffer): Lisp vars set up here.
1993-07-21 22:33:00 +00:00
Richard M. Stallman
5f60ed47d9 (compact_strings): Add USE_TEXT_PROPERTIES conditional. 1993-07-21 22:29:26 +00:00
Richard M. Stallman
edc28db1ae (Ftext_property_not_all): Fix typo in decl. 1993-07-21 22:25:42 +00:00
Richard M. Stallman
011f432b1a (SUNOS_LOCALTIME_BUG): Defined. 1993-07-21 22:23:24 +00:00
Richard M. Stallman
9e6e0fe245 (memmove): Defined. 1993-07-21 21:31:31 +00:00
Richard M. Stallman
b6e1c607fc (memmove): Defined as macro. 1993-07-21 04:37:46 +00:00
Richard M. Stallman
b2327b2077 (xmakefile): Use CFLAGS after C_SWITCH_SYSTEM. 1993-07-20 22:16:59 +00:00
Richard M. Stallman
1a47fa1367 (validate_x_resource_name): Call make_string properly. 1993-07-20 21:54:57 +00:00
Richard M. Stallman
c455d34d63 (X_NOT_POSIX): Defined. 1993-07-20 19:14:05 +00:00
Richard M. Stallman
5e5586769b (BROKEN_TIOCGETC, BROKEN_TIOCGWINSZ): Add #undefs. 1993-07-20 18:15:38 +00:00
Richard M. Stallman
73ba415ae2 (memmove): Delete extra parens in the safe_bcopy call. 1993-07-20 05:24:34 +00:00
Richard M. Stallman
8258ca538e Comment change. 1993-07-20 05:10:02 +00:00
Richard M. Stallman
301b4551f6 (LD_SWITCH_MACHINE): Add -bI:/usr/lpp/X11/bin/smt.exp. 1993-07-20 05:09:02 +00:00
Richard M. Stallman
e3c24a741e (Fwhile): If mocklisp, test for nonzeroness. 1993-07-19 22:09:41 +00:00
Richard M. Stallman
562378c0c0 (SYSTEM_MALLOC): Add #undef.
(GNU_MALLOC, REL_ALLOC): Defined.
1993-07-19 21:16:07 +00:00
Jim Blandy
6817eab405 * xfns.c (Fx_create_frame): Block input around call to
x_new_font.  Test if the return value is a string, not if it's
	nil; x_new_font can return things besides nil and strings, to
	indicate error conditions.
1993-07-18 08:07:18 +00:00
Jim Blandy
041b69acff * xterm.c (x_term_init): Adjust message printed when we can't
connect to the X server.

	* xterm.c (XTread_socket, UnmapNotify case): Add missing comment
	terminator.

	* xterm.c, sysdep.c (F_SETOWN_BUG): Defined.
	* m/dpx2.h: New file.
1993-07-18 06:29:55 +00:00
Jim Blandy
d387c9605b * xfns.c (Fx_open_connection): Don't trust HAVE_XRMSETDATABASE;
use XrmSetDatabase only when HAVE_X11R5 is defined.

	* xfns.c (Vx_resource_name): Renamed from Vxrdb_name, and made a
	lisp-visible variable, so lisp/term/x-win.el can set it.  Doc it
	for "internal use only"; no need for NEWS entry.
	(validate_x_resource_name): New function.
	(Fx_get_resource): Doc fix.  References to Vxrdb_name renamed.  Call
	validate_x_resource_name.
	(x_window): References to Vxrdb_name renamed.  Call
	validate_x_resource_name.
	(Fx_open_connection): References to Vxrdb_name renamed.  Instead
	of setting and validating its value here, just call
	validate_x_resource_name.
	(syms_of_xfns): Add DEFVAR_LISP for Vx_resource_name.

	* xfns.c (x_set_frame_parameters): Don't set the frame's size and
	position unless those parameters are actually specified in ALIST.

	* xrdb.c: 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.
	* xfns.c (Fx_open_connection): Set Vxrdb_name early, and pass it
	to x_load_resources.
1993-07-18 06:29:19 +00:00
Jim Blandy
26f6279de1 * window.c [not MULTI_FRAME] (Fdelete_windows_on): Set FRAME
argument to Qt, instead of trying to typecheck it.

	* window.c (Fdelete_windows_on): New optional argument FRAME; if
	nil, delete windows on all frames.  If t, delete windows on the
	selected frame only.  If a frame, delete windows on that frame
	only.

	* window.c (Fnext_window, Fprevious_window): Put these docstrings
	in comments; the strings are too long for some C compilers.
1993-07-18 06:28:40 +00:00
Jim Blandy
ad9c19400f * intervals.c (split_interval_left, split_interval_right): Change
OFFSET argument of these functions to be origin 0, not origin 1.
	This is what all the callers currently want.
	* intervals.c, textprop.c: All callers changed.

	* textprop.c (Ftext_property_not_all): Renamed from
	Ftext_property_all, and changed sense of return value, so that it
	returns useful information if not all characters have properties
	EQ to value.  Now all the existential and universal questions can
	be asked.

	* textprop.c (syms_of_textprop): Don't forget defsubr for
	Stext_property_all.

	* textprop.c (Ftext_property_any, Ftext_property_all): Use EQ to
	compare property values, not Fequal.

	* textprop.c (Ftext_property_any, Ftext_property_all): New
	functions, from David Gillespie.
	* intervals.h (Ftext_property_any, Ftext_property_all): Declare them.
1993-07-18 06:28:12 +00:00
Jim Blandy
23c6349cdd * termhooks.h: In order to avoid declaring struct input_event
(which contains Lisp_Objects) in those .c files which need access
	to the terminal hooks but don't #include lisp.h (like cm.c), test
	to see if the macro CONSP is #defined.  We used to test XINT, but
	config.h will #define that everywhere on systems that use tailored
	tagging schemes.
1993-07-18 06:27:38 +00:00
Jim Blandy
46f2fdac02 * xterm.c, sysdep.c (F_SETOWN_BUG): Defined.
* m/dpx2.h: New file.
1993-07-18 06:27:15 +00:00
Jim Blandy
2fcea188d6 * syntax.c (Fmodify_syntax_entry): Doc fix. 1993-07-18 06:26:51 +00:00
Jim Blandy
c7b1427704 * print.c (float_to_string): Distinguish between a precision of
zero and an omitted precision.  Do allow %.0f to produce strings
	containing no decimal point or exponent.
	(syms_of_print): Doc fix for float-output-format.
1993-07-18 06:26:28 +00:00
Jim Blandy
e872064401 Consistently use the mark bit of the root interval's parent field
to say whether or not the interval tree has been visited (and skip
	it when revisited), and the mark bit of the plist field to say
	whether or not that interval has been visited (and abort if
	revisited); don't try to use the plist mark bit for both
	meanings.
	* alloc.c (mark_interval_tree): Don't test if the interval tree
	has already been visited here; let the MARK_INTERVAL_TREE macro do
	that; avoid function call overhead.  Mark the interval tree as
	having been visited by setting TREE->parent's mark bit.
	(MARK_INTERVAL_TREE): If the tree has been visited (according to
	I->parent's mark bit), don't call mark_interval_tree.
	(gc_sweep): Rebalance the interval trees of those large strings
	which are still alive.  This also clears the mark bits of those
	trees' root intervals' parent fields.
	(compact_strings): Rebalance the interval tree of each small
	strings which is still alive.  This also clears the mark bits of
	that tree's root interval's parent field.  Since the string has
	moved, update the root interval's parent pointer to contain the
	new address.
	* lisp.h (struct interval): Doc fix; explain the roles of the mark
	bits of the parent and plist members.
1993-07-18 06:26:10 +00:00