1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
Commit graph

883 commits

Author SHA1 Message Date
Richard M. Stallman
c751ebb6a3 (S_IFLNK): Add #undef.
(C_SWITCH_SYSTEM): Add conditional definition.
(NO_ASM, USE_UTIME, NO_X_DESTROY_DATABASE): Defined.
(LIB_STANDARD): Alternate definition if __GNUC__.
(SIGTSTP): #undef deleted.
(LIBS_SYSTEM): Define only if HAVE_X_WINDOWS.

(USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD): Define.
(HAVE_TIMEVAL): Do not define.
(NO_ASM): Only define once.
1993-03-02 22:25:16 +00:00
Richard M. Stallman
45cd7208bb entered into RCS 1993-03-02 22:22:13 +00:00
Richard M. Stallman
b3cfe0c85a (describe_syntax_1): Delete excess arg to describe_vector.
(check_syntax_table): Delete excess arg to wrong_type_argument.

(Fforward_comment): New function.
1993-03-02 17:21:05 +00:00
Jim Blandy
a3c87d4e63 Use the term scroll bar', instead of scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.
1993-03-02 08:22:42 +00:00
Jim Blandy
ab6482702d Use the term scroll bar', instead of scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

	* xterm.c (x_window_to_scrollbar, x_scrollbar_expose,
	x_scrollbar_handle_click, x_scrollbar_note_movement): Remember
	that these can be called during GC; we have to ignore mark bits.
	* lisp.h (GC_NILP, GC_EQ): New macros to help with that.
1993-03-02 08:21:49 +00:00
Jim Blandy
88f22aff6a * xdisp.c (redisplay): Protect calls to request_sigio and
unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined

	Use the term `scroll bar', instead of `scrollbar'.
	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.
1993-03-02 08:20:23 +00:00
Jim Blandy
8b24d146ec * print.c (float_to_string): Define buf to be an unsigned char, to
match the data field of strings.
1993-03-02 08:16:49 +00:00
Jim Blandy
f498e3b2ed Use the term scroll bar', instead of scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

	* xterm.c (x_window_to_scrollbar, x_scrollbar_expose,
	x_scrollbar_handle_click, x_scrollbar_note_movement): Remember
	that these can be called during GC; we have to ignore mark bits.
	* lisp.h (GC_NILP, GC_EQ): New macros to help with that.

	* lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper
	around macro.
1993-03-02 08:16:00 +00:00
Jim Blandy
fd2777e08f Use the term scroll bar', instead of scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

        Don't generate switch-frame events by checking Vlast_event_frame;
	use a separate variable for that bookkeeping.  In order to
	generate them properly, we may need to fiddle with it.
	* keyboard.c (internal_last_event_frame): New variable.
	(command_loop_1): Check internal_last_event_frame, not
	Vlast_event_frame.
	(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
	internal_last_event_frame.
	(kbd_buffer_get_event): Check internal_last_event_frame to decide
	whether to generate a switch-frame event.  Set Vlast_event_frame
	after each event.
	(init_keyboard): Initialize both Vlast_event_frame and
	internal_last_event_frame.
	* keyboard.h (internal_last_event_frame): Add extern declaration
	for this.
	* frame.c (Vlast_event_frame): Remove external declaration for
	this.
	(Fselect_frame): Set internal_last_event_frame to Qnil to force a
	switch-frame event, not Vlast_event_frame; the latter is supposed
	to convey information to the user.
1993-03-02 08:14:57 +00:00
Jim Blandy
3c37094348 * keyboard.c (kbd_buffer_get_event): Protect assignment to
Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.

	Use the term `scroll bar', instead of `scrollbar'.
	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
	xterm.c, xterm.h: Terminology changed.

        Don't generate switch-frame events by checking Vlast_event_frame;
	use a separate variable for that bookkeeping.  In order to
	generate them properly, we may need to fiddle with it.
	* keyboard.c (internal_last_event_frame): New variable.
	(command_loop_1): Check internal_last_event_frame, not
	Vlast_event_frame.
	(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
	internal_last_event_frame.
	(kbd_buffer_get_event): Check internal_last_event_frame to decide
	whether to generate a switch-frame event.  Set Vlast_event_frame
	after each event.
	(init_keyboard): Initialize both Vlast_event_frame and
	internal_last_event_frame.
	* keyboard.h (internal_last_event_frame): Add extern declaration
	for this.
	* frame.c (Vlast_event_frame): Remove external declaration for
	this.
	(Fselect_frame): Set internal_last_event_frame to Qnil to force a
	switch-frame event, not Vlast_event_frame; the latter is supposed
	to convey information to the user.

	* keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
1993-03-02 08:14:15 +00:00
Jim Blandy
0a3e4d653c * data.c (Fstring_to_number): Declare p to be an unsigned char, to
match the data field of strings.

	* data.c (Fstring_to_number): Just skip tabs and spaces; don't use
	the <ctype.h> macros.  The <ctype.h> stuff apparently varies from
	locale to locale more than we'd like.  Don't include <ctype.h>.
1993-03-02 08:11:01 +00:00
Jim Blandy
c39e6cc261 * cmds.c (Fnewline): Doc fix. 1993-03-02 08:10:24 +00:00
Jim Blandy
bec44fd6f6 * buffer.c (buffer-undo-list): Doc fix.
* buffer.c (syms_of_buffer): Add the extra argument to the
	commented-out DEFVAR_PER_BUFFER for `mode-line-format', so
	make-docfile will find the docstring properly.
1993-03-02 08:09:42 +00:00
Richard M. Stallman
a994e16134 Don't include dispextern.h more than once.
(INTERVAL_VISIBLE_P): NILP test was backwards.
1993-03-01 09:13:26 +00:00
Richard M. Stallman
a7b19b15b3 (syms_of_cmds): Typo in last change. 1993-03-01 09:02:07 +00:00
Richard M. Stallman
da9319d540 (record_property_change): Typo in last change.
(Fprimitive_undo): Handle property-change undo entry.
(record_property_change): New function.
1993-03-01 09:01:13 +00:00
Richard M. Stallman
7651e1f53f (print--string case):
Any non-null interval means print intervals.
Get rid of var obj1; just use obj.

(print): Never declare OBJ arg as `register'.
Special handling for strings with intervals.
(print_intervals): New function.
1993-03-01 08:59:36 +00:00
Richard M. Stallman
748ef62fff (read1--strings with properties case):
Detect end of list, and invalid syntax, using recursive read1 calls.

(read1): Handle reading strings with properties.
1993-03-01 08:58:52 +00:00
Richard M. Stallman
d4b530ad2d (Fadd_text_properties, Fremove_text_properties):
Add len>0 as condition for main loop.
Abort if reach a null interval.
(Fset_text_properties): Abort if reach a null interval.
(Ftext_properties_at, Fget_text_property):
Return nil if POS is end of OBJECT.
(add_properties): Use NILP to test result of Fequal.
No longer inline.
(remove_properties): No longer inline.
(set_properties): Total rewrite as function.
(validate_interval_range): Don't alter *begin at end of buffer.
But do search for a position just before the end.
Return null for an empty string.

(validate_interval_range): Allow 0 as position in string.
Add 1 to specified string positions.
(Fprevious_single_property_change): Subtract 1 if object is string.
(Fnext_single_property_change): Likewise.
(Fprevious_property_change, Fnext_property_change): Likewise.

(remove_properties): Call modify_buffer.
(add_properties): Likewise.

(Fadd_text_properties): Pass new arg to add_properties.
(Fremove_text_properties): Likewise.
(add_properties, remove_properties): New arg OBJECT.  Record undo info.
(Fput_text_property): New function.
1993-03-01 08:57:31 +00:00
Richard M. Stallman
323a7ad4fd (intervals_equal): Handle one arg null and other not.
(set_point): Considerable rewrite.  Handle intervals both
before and after the old and new point values.
Redo handling of invisible intervals, and of motion hooks.
(textget): New function.

(graft_intervals_into_buffer):
create_root_interval needs Lisp object arg.
Set tree to new root interval.
Don't test TREE_LENGTH if buffer has no intervals.
Rearrange code to copy properties so that it really
does merge the inserted ones into the inherited ones.
(traverse_intervals): Pass `arg' on recursive calls.
(split_interval_left): Use new_length as basis for length of new.

(traverse_intervals): New arg ARG.
1993-03-01 08:56:22 +00:00
Richard M. Stallman
16032db687 (del_range): Update point before offset_intervals. 1993-03-01 08:55:35 +00:00
Richard M. Stallman
75cf385a42 (emacs, temacs): Add @true to prevent Make confusion. 1993-02-28 22:29:46 +00:00
Richard M. Stallman
1c07d0a634 (syms_of_keyboard): Doc fix. 1993-02-26 21:09:25 +00:00
Richard M. Stallman
4a93c90596 (traverse_intervals): New arg ARG. 1993-02-25 20:24:43 +00:00
Richard M. Stallman
d393c06819 (mark_interval): Add ignored arg.
(mark_interval_tree): Pass new arg to traverse_intervals.
1993-02-25 20:24:25 +00:00
Roland McGrath
c922bc5514 (Ferase_buffer): Added interactive spec. 1993-02-24 23:37:46 +00:00
Richard M. Stallman
483c1fd3e2 (syms_of_buffer): Doc fix. 1993-02-24 23:20:51 +00:00
Richard M. Stallman
e686c647fd (syms_of_cmds): New var `overwrite-binary-mode'.
(internal_self_insert): Handle that var.
1993-02-24 08:59:25 +00:00
Richard M. Stallman
e453528878 (read_avail_input): Args to `kill' were backwards. 1993-02-23 18:49:33 +00:00
Jim Blandy
8090eb098e * emacs.c (fatal_error_signal): Unblock the signal before we try
to deliver it to ourselves. #include "syssignal.h" to get the
	right definitions.
1993-02-23 14:18:00 +00:00
Jim Blandy
2471a2815b * abbrev.c (Fexpand_abbrev): Only copy the text we're going to
expand - from wordstart to wordend, not from wordstart to point -
	into the buffer.  There might be non-word text between wordend and
	point.
1993-02-23 14:17:11 +00:00
Jim Blandy
8dd926cab5 * .gdbinit (xprocess): New command. 1993-02-23 14:14:19 +00:00
Jim Blandy
6d19f28ad1 * alloc.c (make_pure_float): Assure that PUREBEG + pureptr is
aligned, not pureptr itself.
1993-02-23 11:49:39 +00:00
Richard M. Stallman
1ba3de0010 (Fforward_comment): New function.
(adjust_lnnoptrs): Handle symentry.n_type == 0x2400.
(make_hdr) [USG_SHARED_LIBRARIES]: Set bias using bss_start.
1993-02-23 05:49:12 +00:00
Jim Blandy
fe90ad9766 * alloc.c (make_pure_float): Align pureptr according to __alignof,
if it's available, or sizeof (struct Lisp_Float) if it's not.
1993-02-22 16:21:17 +00:00
Jim Blandy
b10fd412fc * xterm.c (XTread_socket): Pass the proper number of arguments to
construct_mouse_click.
1993-02-22 15:10:46 +00:00
Jim Blandy
3d5d61aef4 * xrdb.c (getuid): Remove declaration. 1993-02-22 15:10:16 +00:00
Jim Blandy
f1b2821874 * minibuf.c (Fdisplay_completion_list): Pass the proper number of
arguments to Flength.
	* xmenu.c (list_of_items): Same.
1993-02-22 15:09:33 +00:00
Jim Blandy
f111a131b4 * xfns.c (x_set_icon_type): Pass the proper number of arguments to
x_bitmap_icon.
1993-02-22 15:08:57 +00:00
Jim Blandy
f4e7b2c2ea * keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
	* lread.c (Feval_buffer): Same.
	* window.c (Fscroll_other_window): Same.

	* window.c (Fset_window_configuration): Pass the proper number of
	arguments to Fselect_frame.
1993-02-22 14:53:13 +00:00
Jim Blandy
0df58c91cf * textprop.c (Fget_text_property): Fix typo in function's declaration.
* keyboard.c (Fread_key_sequence): Backslash the newlines in this
	docstring.
	* textprop.c (Fget_text_property): Same.
1993-02-22 14:52:32 +00:00
Jim Blandy
1aaaff21ef * systty.h [HAVE_TERMIOS]: Include fcntl.h. 1993-02-22 14:51:39 +00:00
Jim Blandy
98f7775387 * systime.h [_AIX]: Move test outside of previous #if.
(EMACS_GET_TZ_OFFSET) [USG]: Don't declare twice.  Prefer tzset.
1993-02-22 14:51:13 +00:00
Jim Blandy
31be8d2467 * sysdep.c (child_setup_tty): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.
1993-02-22 14:50:42 +00:00
Jim Blandy
b37902c85c * callint.c (Fcall_interactively): Pass the correct number of
arguments to wrong_type_argument.
	* casefiddle.c (caseify_object): Same.
	* casetab.c (check_case_table): Same.
	* search.c (Fstore_match_data): Same.
	* syntax.c (check_syntax_table): Same.
1993-02-22 14:48:45 +00:00
Jim Blandy
6be429b169 * process.c: Make sure we don't miss processes exiting, by having
the sigchld handler clear *input_available_clear_time.
	(wait_reading_process_input): Check for process activity after
	setting the timeout and calling set_waiting_for_input.
	(sigchld_handler): If the process which has exited is one we care
	about, clear *input_available_clear_time.

	* process.c (process_send_signal): Use TERMIOS functions in
	preference to BSD ioctls.  Some systems attempt to provide the BSD
	functions for backward compatibility, and get it wrong.
1993-02-22 14:47:53 +00:00
Jim Blandy
cb09ab7ae1 * keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
	* lread.c (Feval_buffer): Same.
	* window.c (Fscroll_other_window): Same.
1993-02-22 14:46:31 +00:00
Jim Blandy
c6cd5420d3 * data.c (Fstring_to_int): Rename this to Fstring_to_number, since
it parses floats as well as integers.  Fix docstring.
	(syms_of_data): Fix defsubr.
	(wrong_type_argument): Change use.
	(Fint_to_string): Doc fix.
	* lisp.h (Fstring_to_int): Change extern declaration.
1993-02-22 14:45:23 +00:00
Jim Blandy
92cc37e8ce * keymap.c (Fdescribe_vector): Pass the proper number of arguments
to describe_vector.
	* syntax.c (describe_syntax_1): Same.
1993-02-22 14:44:52 +00:00
Jim Blandy
cb5df6ae17 * keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.

	* keyboard.c (echo_char): Apply XINT to c before passing it to
	push_key_description.

	* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
	number of arguments to unbind_to.
	* lread.c (Feval_buffer): Same.
	* window.c (Fscroll_other_window): Same.

	* keyboard.c (command_loop_1): Apply XINT to c before passing it
	to internal_self_insert and direct_output_for_insert.

	* keyboard.c (make_lispy_movement): Rename the variable `part'
	declared in the block handling scrollbar movement to `part_sym',
	to avoid potential conflicts with the argument named `part'.
	Apparently the semantics of expressions like this are unclear.

	* keyboard.c (Fread_key_sequence): Backslash the newlines in this
	docstring.
	* textprop.c (Fget_text_property): Same.
1993-02-22 14:43:44 +00:00