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

4501 commits

Author SHA1 Message Date
Karl Heuer
2f787aa33c (Fscroll_other_window): On small windows, scroll by 1 line. 1995-01-10 00:06:50 +00:00
Richard M. Stallman
dce4372a8e (store_in_keymap): Copy a cons only if car is a string. 1995-01-08 20:24:36 +00:00
Richard M. Stallman
a0a7635faa Don't include param.h. 1995-01-08 20:19:47 +00:00
Richard M. Stallman
6c0df54af6 (syms_of_buffer): Doc fix. 1995-01-08 19:22:20 +00:00
Roland McGrath
df3dd7d63d Include config.h first. 1995-01-07 16:57:36 +00:00
Karl Heuer
09b3d66283 (VALBITS, GCTYPEBITS): Deleted; default is better. 1995-01-07 00:23:16 +00:00
Karl Heuer
308c7a07a2 (VALBITS): Adjust for new bit layout. 1995-01-07 00:22:49 +00:00
Karl Heuer
5df0669f04 [XENIX|SOLARIS2] (VALBITS, GCTYPEBITS): Deleted; default is better. 1995-01-07 00:19:51 +00:00
Karl Heuer
9b8e820120 (VALBITS, XTYPE): Adjust for new bit layout. 1995-01-07 00:18:38 +00:00
Karl Heuer
aa24c41b1d Fix comment. 1995-01-07 00:14:11 +00:00
Karl Heuer
155add3557 Delete obsolete comment. 1995-01-06 23:23:38 +00:00
Richard M. Stallman
6e18b6c220 [!MULTI_FRAME] (window_frame): New function.
[!MULTI_FRAME] (syms_of_frame): defsubr it.
1995-01-05 22:19:54 +00:00
Roland McGrath
f9b4aacf1b Fix typo in last change. 1995-01-05 07:45:50 +00:00
Roland McGrath
610f41b751 (store_function_docstring, Fdocumentation): Use & PSEUDOVECTOR_SIZE_MASK on
`size' field of compiled byte-code object.
1995-01-05 07:11:54 +00:00
Roland McGrath
4e87700b1e (Fcall_interactively): Use & PSEUDOVECTOR_SIZE_MASK on `size' field of
compiled byte-code object.
1995-01-05 07:06:19 +00:00
Roland McGrath
96277b2df9 (Fcommandp): Use & PSEUDOVECTOR_SIZE_MASK on `size' field of compiled
byte-code object.
1995-01-05 07:05:16 +00:00
Karl Heuer
6b552283ca (mark_object, mark_buffer): Don't mark buffer twice. 1995-01-04 22:43:47 +00:00
Karl Heuer
177efd1563 [EXPLICIT_SIGN_EXTEND] (XINT): Use symbolic constants. 1995-01-04 22:41:16 +00:00
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