Richard M. Stallman
624bbdc475
(Fprevious_overlay_change): Check for overlays that end at POS.
1995-06-14 14:09:53 +00:00
Karl Heuer
316784fbf8
(Fbuffer_disable_undo): Make this function interactive.
1995-06-07 21:00:01 +00:00
Karl Heuer
630f401831
Doc fix.
1995-06-07 18:38:02 +00:00
Karl Heuer
4a4a9db5ef
(Fkill_buffer): When killing indirect buffer,
...
unchain that buffer's markers (only) from the common chain.
Don't rekill this buffer's indirect buffers that are dead.
Do nothing if this buffer is already dead.
1995-06-05 17:32:51 +00:00
Karl Heuer
c7aa500584
(set_buffer_internal_1): New subroutine.
...
(Fmove_overlay): Don't set windows_or_buffers_changed.
1995-05-24 00:43:27 +00:00
Karl Heuer
193c3837a1
(Fmake_indirect_buffer): Fix interactive spec.
1995-05-17 20:41:36 +00:00
Richard M. Stallman
b1c03e6462
(syms_of_buffer): Doc fix.
1995-05-15 23:24:45 +00:00
Karl Heuer
bbbe9545dd
(Qbefore_string, Qafter_string): New vars.
...
(syms_of_buffer): Initialize and staticpro them.
(cmp_for_strings, overlay_strings): New functions.
1995-05-05 00:34:00 +00:00
Richard M. Stallman
60f4dd23c3
(Fset_buffer_modified_p): Use the truename for locking.
1995-05-02 18:16:30 +00:00
Karl Heuer
423cdb4617
(adjust_overlays_for_insert): New function.
...
(adjust_overlays_for_delete): New function.
1995-04-17 23:13:56 +00:00
Richard M. Stallman
2a77a7d712
(Foverlays_at, Fnext_overlay_change): Don't use NULL.
...
(Fprevious_overlay_change): Don't use NULL.
1995-04-13 16:54:41 +00:00
Richard M. Stallman
c3935f9df3
(evaporate_overlays): Fix type error.
1995-04-13 16:09:46 +00:00
Richard M. Stallman
89ca3e1b91
(Fmake_overlay): Use XMISCTYPE.
1995-04-07 05:32:09 +00:00
Richard M. Stallman
2f3f993bdf
(Fkill_buffer): Call reset_buffer_local_variables
...
and swap_out_buffer_local_variables.
(swap_out_buffer_local_variables): New subroutine.
(Fkill_all_local_variables): Use that subroutine.
1995-04-06 06:58:50 +00:00
Karl Heuer
554216ad38
(syms_of_buffer): Doc fix.
1995-03-24 03:19:16 +00:00
Karl Heuer
fc04fa47a4
(overlay_touches_p): New function.
1995-03-22 21:23:10 +00:00
Boris Goldowsky
be9aafddc1
(reset_buffer): Reset file_format element too.(init_buffer_once): Define file_format flag; reset file_format.
...
(syms_of_buffer): New vbl buffer-file-format.
1995-03-17 18:12:02 +00:00
Richard M. Stallman
9e552710cf
(Fmake_indirect_buffer): Invert the arguments.
1995-03-14 05:54:51 +00:00
Richard M. Stallman
3cb719bd3b
(reset_buffer_local_variables): Init invisibility.
...
(init_buffer_once): Set up buffer_local_flags for it.
(syms_of_buffer): New variable `buffer-invisibility-spec'.
1995-03-11 22:36:29 +00:00
Richard M. Stallman
7c2087eea5
(Fpop_to_buffer): Call Fset_buffer_major_mode if we create a buffer.
1995-03-06 04:15:23 +00:00
Richard M. Stallman
f6ed2e848d
(syms_of_buffer): Set up Lisp var buffer-file-truename.
...
(init_buffer_once): Set up flag and default value for file_truename.
(reset_buffer): Init file_truename slot.
1995-02-14 16:33:19 +00:00
Richard M. Stallman
81841847d1
(Fget_buffer_create): Call buffer_memory_full.
1995-02-05 08:58:27 +00:00
Richard M. Stallman
5e05d0a567
(syms_of_buffer): overwrite-mode doc fix.
1995-01-31 04:55:29 +00:00
Richard M. Stallman
943e065b3c
(init_buffer_once, syms_of_buffer):
...
Set up buffer-local var point_before_scroll.
(reset_buffer): Init point_before_scroll.
1995-01-27 07:17:39 +00:00
Richard M. Stallman
e0585c647b
(syms_of_buffer) [DOS_NT]: Add missing ';'.
1995-01-20 23:40:45 +00:00
Richard M. Stallman
01c386ba5e
(list_buffers_1, Flist_buffers): Functions deleted.
1995-01-17 02:33:24 +00:00
Richard M. Stallman
6c0df54af6
(syms_of_buffer): Doc fix.
1995-01-08 19:22:20 +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
006d3d3458
(syms_of_buffer): Doc fix for buffer-file-type.
1994-12-25 22:19:45 +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
930a91400a
(report_overlay_modification): Renamed from verify_overlay_modification.
...
(call_overlay_mod_hooks): New args AFTER, ARG1, ARG2, ARG3.
Args START, END deleted. Pass each function AFTER, ARG1 and ARG2,
and ARG3 if ARG3 is not nil.
(verify_overlay_modification): New args AFTER, ARG1, ARG2, ARG3.
Pass them to call_overlay_mod_hooks.
1994-12-11 11:30:43 +00:00
Richard M. Stallman
5296fd1855
(list_buffers_1): Right-align the size values.
1994-12-11 09:48:25 +00:00
Richard M. Stallman
cbb6a418dc
(Fkill_buffer): Use internal_delete_file.
1994-11-28 19:27:27 +00:00
Karl Heuer
8fc0589a7e
(overlays_at): Use the new type-test macros.
1994-11-15 23:54:26 +00:00
Richard M. Stallman
fb5eba9c6f
(Frename_buffer): Rename arg NAME to NEWNAME.
1994-11-15 17:05:44 +00:00
Richard M. Stallman
489c043ab7
(Frename_buffer): Rename arg NAME to NEWNAME.
1994-11-15 14:01:12 +00:00
Karl Heuer
48e2e3ba61
(Fmake_overlay, Foverlay_properties, Foverlay_get, Foverlay_put): Use new
...
overlay substructure.
(list_buffers_1): Use PT, not point.
1994-11-15 02:02:34 +00:00
Karl Heuer
6746ed7a33
(Fkill_all_local_variables): Use XBUFFER_LOCAL_VALUE, not XCONS.
1994-11-15 00:06:33 +00:00
Karl Heuer
fdc6e51676
(set_buffer_internal): Use XBUFFER_LOCAL_VALUE, not XCONS.
1994-11-11 07:33:46 +00:00
Richard M. Stallman
cf1e6391ae
(init_buffer): Fix error message syntax.
1994-11-02 01:22:31 +00:00
Richard M. Stallman
f7975d0711
(init_buffer): Use DIRECTORY_SEP, IS_DIRECTORY_SEP macros,
...
not character constants.
(init_buffer_once, syms_of_buffer): Test DOS_NT, not MSDOS.
1994-11-01 06:39:38 +00:00
Karl Heuer
a9ee7a5992
(Fset_buffer_major_mode): New function. Set the default major mode here.
...
(Fget_buffer_create): Not here.
(Fswitch_to_buffer): Call Fset_buffer_major_mode.
(syms_of_buffer): defsubr the new function.
1994-10-27 22:35:14 +00:00
Richard M. Stallman
b5b4d3606f
(list_buffers_1): Always mark current_buffer read-only.
1994-10-20 21:19:47 +00:00
Karl Heuer
54dfdeb04f
(buffer_slot_type_mismatch): Take just the offset as argument. Only check
...
against types that are actually used.
1994-10-12 05:14:30 +00:00
Karl Heuer
c51e6d8c26
(buffer_slot_type_mismatch): Test against Lisp_Misc.
1994-10-11 07:46:22 +00:00
Richard M. Stallman
1d3395a615
(list_buffers_1): Fix indentation in header lines.
1994-10-11 05:29:55 +00:00
Jim Blandy
f0c5b7125a
(syms_of_buffer): Doc fix for cache-long-line-scans.
1994-10-10 16:01:58 +00:00
Jim Blandy
28e969dd70
* buffer.c: #include region-cache.h.
...
(Fget_buffer_create): Initialize new members of struct buffer.
(Fkill_buffer): Free memory occupied by caches.
(init_buffer_once): Set default value for cache_long_line_scans in
buffer_defaults, and give it a bit in buffer_local_flags.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for cache_long_line_scans.
1994-10-08 22:12:12 +00:00
Karl Heuer
aab808227e
(init_buffer_once): Don't use XSETFASTINT when negative.
...
(reset_buffer_local_variables, Fbuffer_local_variables): Access
buffer_local_flags as Lisp_Object, not int.
1994-10-06 22:30:47 +00:00
Karl Heuer
0319206797
(validate_region): Swap using temp Lisp_Object, not int.
1994-10-04 19:36:47 +00:00