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

10633 commits

Author SHA1 Message Date
Karl Heuer
6a044d8689 (xcar, xcdr): Use correct shift and mask values. 1995-01-04 21:31:58 +00:00
Karl Heuer
dcda44ddbb (xint): Use correct mask. 1995-01-04 21:28:53 +00:00
Richard M. Stallman
ee7a2de471 (term_init): Fatal error if screen is too small. 1995-01-04 19:09:36 +00:00
Richard M. Stallman
6a14015905 Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.
1995-01-04 19:08:56 +00:00
Richard M. Stallman
e343d389ac (store_function_docstring): Arg is now EMACS_INT. 1995-01-04 07:19:10 +00:00
Karl Heuer
303a5c9357 Use consistent spelling in comments. 1995-01-03 01:45:36 +00:00
Karl Heuer
e2ba196c2a (enum Lisp_Type): Don't use trailing comma.
(VALBITS, GCTYPEBITS): Define these regardless of NO_UNION_TYPE.
[!NO_UNION_TYPE] (union Lisp_Object): Use symbolic constants.
1995-01-03 01:35:49 +00:00
Karl Heuer
04ff97564e (mark_object): Make `else' visible outside MULTI_FRAME. 1995-01-03 01:20:47 +00:00
Richard M. Stallman
99a3d506c1 (enum Lisp_Type): Delete Lisp_Buffer.
(enum Lisp_Misc_Type): Add Lisp_Misc_Float (not yet used).

(XSETBUFFER, BUFFERP, GC_BUFFERP): Rewrite to use pseudovectors.

(PVEC_BUFFER, PVEC_PROCESS, PVEC_FRAME, PVEC_COMPILED)
(PVEC_WINDOW, PVEC_WINDOW_CONFIGURATION, PVEC_SUBR):
Now enumeration constants, not macros.
(PVEC_FLAG): Enumeration alias for PSEUDOVECTOR_FLAG.
1995-01-02 21:58:40 +00:00
Richard M. Stallman
d281a86afb Use BUF_MARKERS throughout. 1995-01-02 21:54:50 +00:00
Richard M. Stallman
336cd05669 (Fmake_indirect_buffer): New function.
(Fbuffer_base_buffer): New function.
(syms_of_buffer): defsubr them.

(reset_buffer): Don't alter intervals here.
(Fget_buffer_create): Use BUF_MARKERS.  Init BUF_INTERVALS here.
(Fkill_buffer): Use BUF_MARKERS; but don't touch it in indir buf.
Likewise BUF_INTERVALS.
(init_buffer_once): Set up .text and BUF_INTERVALS
in buffer_local_symbols and buffer_defaults.

(Fkill_buffer): Don't free the text in indirect buffer.
When killing a base buffer, kill its indirect buffers first.

(set_buffer_temp): New function.

(reset_buffer_local_variables): Initialize buffer_file_type field.

(Fget_buffer_create): Initialize pt_marker, begv/zv_marker.
(set_buffer_internal): Use and update these markers.
Copy undo_list in and out of the base buffer.

(Fget_buffer_create): Init save_modiff field here.
(reset_buffer): Not here.
(Fbuffer_modified_p): Use BUF_SAVE_MODIFF.
(Fset_buffer_modified_p): Use SAVE_MODIFF.
(Fkill_buffer, list_buffers_1): Use BUF_SAVE_MODIFF.

(Fget_buffer_create): Initialize the size and text fields.
1995-01-02 21:50:28 +00:00
Richard M. Stallman
e5d967c90e Use BUF_INTERVALS throughout.
(temp_set_point, set_point): Use BUF_PT.
(get_local_map): Get keymap from specified buffer, not current one.
1995-01-02 21:38:22 +00:00
Richard M. Stallman
866bf24677 (validate_interval_range): Use BUF_INTERVALS. 1995-01-02 21:32:10 +00:00
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