Commit graph

895 commits

Author SHA1 Message Date
Richard M. Stallman
a354518d21 (check_protected_fields): Variable deleted.
(syms_of_buffer): Delete vars buffer-field-list and check-protected-fields.
1993-03-06 02:59:13 +00:00
Richard M. Stallman
78d7ac46c7 (check_protected_fields): Delete decl. 1993-03-06 02:58:49 +00:00
Richard M. Stallman
f405a5850c (read_escape): Handle M-, C- and S- for new convention.
(read1): Move the meta bit to the right place for a string.
1993-03-05 23:57:00 +00:00
Richard M. Stallman
dea4d2e671 (current_column, Fmove_to_column, compute_motion):
Expect display table elts to be vectors.
1993-03-05 23:56:43 +00:00
Richard M. Stallman
80ec1ba2eb (XTread_socket): Set bufp->modifiers for all kinds of keys. 1993-03-05 23:56:13 +00:00
Richard M. Stallman
ba8810f92a (Fend_kbd_macro): Fix call to make_event_array. 1993-03-05 23:55:44 +00:00
Richard M. Stallman
88dbfee590 (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros. 1993-03-05 23:55:20 +00:00
Richard M. Stallman
736471d10e (Fmake_rope, Frope_elt): Fns deleted. 1993-03-05 23:52:49 +00:00
Richard M. Stallman
82c515115d (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.
(DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE.
All callers changed.
1993-03-05 23:52:24 +00:00
Richard M. Stallman
e2f4b44c39 (ELF): Handle this parameter.
[! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions.
(_BSD_TTY_FLAVOR): Don't define if already defined.
(C_COMPILER, LINKER, MAKE_COMMAND): New definitions.
1993-03-04 19:50:30 +00:00
Jim Blandy
20f0f7a66f * Makefile.in (xmakefile): Add missing quote. 1993-03-04 15:16:11 +00:00
Richard M. Stallman
e40c4104bb (unexec): Move data2 section header up so all section
headers will be in ascending order.  This will prevent the unexeced
emacs that being processed by other applications (such as strip)
to fail.

Handle rounding of section boundaries.
(round_up): New function.
1993-03-03 09:03:06 +00:00
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