Commit graph

4470 commits

Author SHA1 Message Date
Richard M. Stallman
9fbf87cd52 Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.

(insert_1, prepare_to_modify_buffer, insert_from_buffer_1): Use BUF_INTERVALS.
(adjust_markers): Use BUF_MARKERS.

(adjust_point): Use BUF_PT.
1995-01-02 09:21:30 +00:00
Richard M. Stallman
c1ea566e86 (struct buffer): Fields markers and intervals moved out.
(struct buffer_text): Fields markers and intervals moved here.
(BUF_MARKERS, BUF_INTERVALS): New macros.

(struct buffer): Make buffer_file_type field unconditional.

(struct buffer): New field pt_marker.
save_modiff field deleted.
(struct buffer_text): save_modiff field moved here.
(SAVE_MODIFF, BUF_SAVE_MODIFF): New macros.
Use them instead of direct access to save_modiff field.

(struct buffer): New fields begv_marker, zv_marker.

(struct buffer): Make text field be a pointer.
The struct buffer_text field renamed to own_text.
Add fields indirect_to_buffer and size.
Move pt, begv and zv fields here.
(struct buffer_text): Moved from here.
(BEGV, PT, ZV, BEGV_ADDR, PT_ADDR, ZV_ADDR): Corresponding changes.
(BUF_BEGV, BUF_PT, BUF_ZV): Corresponding changes.
(SET_BUF_ZV, SET_BUF_PT, point):
1995-01-02 09:19:34 +00:00
Richard M. Stallman
4c61f38e78 Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.
1995-01-02 09:18:07 +00:00
Richard M. Stallman
1e158d254d Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.

(Ftranspose_regions): Use BUF_INTERVALS.
(transpose_markers): Use BUF_MARKERS.
1995-01-02 09:16:42 +00:00
Richard M. Stallman
30e3190aac (mark_buffer, gc_sweep): Use BUF_INTERVALS.
(mark_buffer): In indirect buffer, mark the base buffer.

(mark_object): Make buffer case a branch of the Lisp_Vectorlike case.
1995-01-02 09:15:25 +00:00
Richard M. Stallman
32ce36ad51 (store_in_keymap): While dumping, copy DEF if a cons. 1995-01-02 06:42:56 +00:00
Richard M. Stallman
95385625ed Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.

(Finsert_file_contents, Fwrite_region): Error if buffer is indirect.
(Fdo_auto_save): Do nothing for an indirect buffer.
1995-01-02 06:36:56 +00:00
Richard M. Stallman
42640f8319 Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.

(redisplay_window): Call set_buffer_temp.

(redisplay_window): For buffer_shared count,
treat an indirect buffer as equivalent to its base.
1995-01-02 06:33:09 +00:00
Richard M. Stallman
c6367666ae (temp_output_buffer_show): Use BUF_SAVE_MODIFF. 1995-01-02 06:30:49 +00:00
Richard M. Stallman
908b0ae5e0 (print): Don't drop thru to error for markers and overlays.
(print): Make buffer case a branch of the Lisp_Vectorlike case.
1995-01-02 06:28:29 +00:00
Richard M. Stallman
ad9cdce411 (Fprimitive_undo): Use base buffer's modtime field.
Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.
1995-01-02 06:26:46 +00:00
Richard M. Stallman
3fe8bda56f Adapt to new Lisp_Object format.
(xvectype, xmisctype): New commands.
(xtype): Print the misc or vectorlike subtype too.
1995-01-02 05:04:34 +00:00
Richard M. Stallman
03414ea2b6 (regex_compile): Use putchar, not printchar. 1994-12-30 23:28:45 +00:00
Richard M. Stallman
ca0569ad39 (print): Get size of compiled function as pseudovector.
Use a switch statement again.
1994-12-30 06:50:01 +00:00
Richard M. Stallman
7c06ac2bfa (VALBITS): Default now 28.
(GCTYPEBITS): Default now 3.

(enum Lisp_Type): Lisp_Process, Lisp_Window, Lisp_Frame, Lisp_Subr deleted.
(PSEUDOVECTORP, GC_PSEUDOVECTORP):  Add paren for proper nesting.
(PROCESSP, GC_PROCESSP, XSETPROCESS): Rewrite to use pseudovectors.
(WINDOWP, GC_WINDOWP, XSETWINDOW): Likewise.
(FRAMEP, GC_FRAMEP): Likewise.
(SUBRP, GC_SUBRP, XSETSUBR): Likewise.
(PVEC_SUBR): New macro.
(struct Lisp_Subr): Add a size field.
(DEFUN (both definitions)): Store that size field.
1994-12-30 01:54:16 +00:00
Richard M. Stallman
169ee24357 (mark_object): Don't use Lisp_Process, Lisp_Window.
Handle frames, compileds and subrs as branch of Lisp_Vectorlike case.
(Fmake_byte_code): Use XSETCOMPILED.
1994-12-30 01:52:37 +00:00
Richard M. Stallman
7f358972bc (Faref): Handle compiled function as pseudovector. 1994-12-30 01:50:01 +00:00
Richard M. Stallman
086234937e (Flength): Handle compiled function as pseudovector. 1994-12-30 01:46:04 +00:00
Richard M. Stallman
aac03ccab4 (XSETFRAME): Use pseudovector. 1994-12-30 01:41:27 +00:00
Richard M. Stallman
0299d313b8 (x_scroll_bar_handle_click): Use GC_WINDOWP.
(XTframe_rehighlight, x_window_to_scroll_bar): Use GC_FRAMEP.
1994-12-30 01:37:53 +00:00
Richard M. Stallman
776332c4a2 Make size field an EMACS_INT. 1994-12-29 19:56:17 +00:00
Richard M. Stallman
ef2515c051 (Vmouse_leave_buffer_hook, Qmouse_leave_buffer_hook): New variables.
(syms_of_callint): Set them up.
(Fcall_interactively): Run the hook, for `@'.
1994-12-28 23:28:10 +00:00
Richard M. Stallman
9629ced85f [! sparc] (REL_INFO_TYPE): Use `struct relocation_info'. 1994-12-28 18:00:52 +00:00
Richard M. Stallman
eef045bf6b (make_lispy_event) [USE_X_TOOLKIT]: Turn off
special handling of menu bar mouse events.
(make_lispy_event): Tell pixel_to_glyph_coords not to clip.
1994-12-27 21:50:22 +00:00
Richard M. Stallman
9f67f20bf8 (XTupdate_begin): Fix backward test in previous change.
(x_display_box_cursor): Don't redraw old cursor spot in mouse face
if cursor was on a newline.

(XTread_socket): Handle button events from outside
the frame, received due to grabbing the mouse with a button.
1994-12-27 21:45:06 +00:00
Richard M. Stallman
c3724dc278 (x_figure_window_size): Treat missing user-position parm as nil. 1994-12-26 15:50:39 +00:00
Richard M. Stallman
1af1b1e840 (scrolling_1): When scroll_region_ok is set, use a
new scrolling method which scrolls groups of lines directly
to their final vertical positions.
(struct matrix_elt): New field writecount.
(calculate_direct_scrolling): New function.
(do_direct_scrolling): New function.
1994-12-26 15:38:56 +00:00
Richard M. Stallman
be7cd44fe1 (scroll_region_cost): New variable.
(calculate_costs): Put scroll region overhead in scroll_region_cost.
1994-12-26 15:37:22 +00:00
Richard M. Stallman
6d7b271809 (scroll_region_cost): Declared. 1994-12-26 15:36:56 +00:00
Richard M. Stallman
190bb91a07 (scrolling): Fewer restrictions if scroll_region_ok is
set.  New vector old_draw_cost for direct scrolling method.
1994-12-26 15:35:48 +00:00
Richard M. Stallman
006d3d3458 (syms_of_buffer): Doc fix for buffer-file-type. 1994-12-25 22:19:45 +00:00
Richard M. Stallman
2d4a771aad (set_search_regs): Really set search_regs.start and .end.
(save_search_regs): Set them to 0 here.
1994-12-25 21:15:07 +00:00
Richard M. Stallman
00a34088ee (read_minibuf): GCPRO things. 1994-12-25 21:14:46 +00:00
Richard M. Stallman
04be39934f (wrong_type_argument): Use Lisp_Type_Limit. 1994-12-25 17:49:39 +00:00
Richard M. Stallman
eeed793e62 (enum Lisp_Type): Rename Max_Lisp_Type to Lisp_Type_Limit. 1994-12-25 17:49:06 +00:00
Richard M. Stallman
4d1207f6f5 (enum Lisp_Type): Add Max_Lisp_Type. 1994-12-25 17:47:27 +00:00
Richard M. Stallman
e1351ff7c3 (wrong_type_argument): Abort if VALUE is invalid Lisp object. 1994-12-25 17:28:51 +00:00
Richard M. Stallman
eff52a4c6f (SET_REGS_MATCHED): Do nothing if set_regs_matched_done is 1.
Set set_regs_matched_done to 1.
(re_match_2_internal): New local var set_regs_matched_done.
Set it to 0 when appropriate.
(POP_FAILURE_POINT): Set set_regs_matched_done to 0.

(re_match_2_internal, case duplicate): Call SET_REGS_MATCHED.
1994-12-24 23:40:43 +00:00
Richard M. Stallman
e9fd42adae (BASE_PURESIZE): Incremented by 20k. 1994-12-24 16:42:33 +00:00
Richard M. Stallman
8ea231fcac (read_char): Don't echo keys when echo_keystrokes is 0. 1994-12-24 01:53:16 +00:00
Richard M. Stallman
53ece92895 entered into RCS 1994-12-23 15:06:14 +00:00
Richard M. Stallman
37c2c98b16 (XTupdate_begin): Discard records of prior mouse highlight
when frame must be redrawn.

(x_make_frame_visible, x_make_frame_invisible)
(x_iconify_frame): Give error if frame has explicit_parent.
(x_new_font): Don't set window height if frame has explicit_parent.

(x_mouse_leave): New function broken out of XTread_socket.
When x_focus_event_frame is nonzero, assume that frame gets focus.
(XTread_socket): Use x_mouse_leave for LeaveNotify.
1994-12-23 05:12:32 +00:00
Richard M. Stallman
a59e4f3d62 (x_set_frame_parameters): Handle icon-left, icon-top parms.
(Fx_color_values): Doc fix.

(Fx_create_frame): Check for parent-id parameter.
Set explicit_parent and parent fields.
Don't set visibility if explicit_parent.
[! USE_X_TOOLKIT] (x_window): Specify parent window.
1994-12-23 05:11:11 +00:00
Richard M. Stallman
ffd04ed01f *** empty log message *** 1994-12-22 00:01:19 +00:00
Richard M. Stallman
04ae1b489a (Fget_buffer_create): Copy the name, and clear text props.
(assoc_ignore_text_properties): New function.
(Fget_buffer): Use assoc_ignore_text_properties.

(Fother_buffer): Take account of frame's buffer predicate.
1994-12-21 22:50:22 +00:00
Richard M. Stallman
4ed715c128 (C_DEBUG_SWITCH): Define this only if __GNUC__. 1994-12-21 22:28:02 +00:00
Richard M. Stallman
21015f9c30 (struct frame): New field buffer_predicate.
Move all the Lisp_Object fields to the top.
1994-12-21 22:27:25 +00:00
Richard M. Stallman
329ca57419 (Fmodify_frame_parameters): For non-X frames,
call store_frame_param for each parameter set.
(store_frame_param): Handle buffer_predicate field.
(frame_buffer_predicate): New function.
(Qbuffer_predicate): New variable.
(syms_of_frame): Set it up.
1994-12-21 22:26:02 +00:00
Richard M. Stallman
d17f2a43fa (mark_object): In a frame, mark the buffer_predicate.
Don't mark the height and width fields.
1994-12-21 22:23:49 +00:00
Richard M. Stallman
700ea80976 (get_doc_string): Now static. Arg now Lisp_Object.
Allow (FILE . POS) as position argument.
(Fdocumentation, Fdocumentation_property): Fix calls to get_doc_string.
(Fdocumentation_property): Handle cons as value via get_doc_string.
(read_doc_string): New function.
1994-12-21 18:16:35 +00:00