1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

346 commits

Author SHA1 Message Date
Richard M. Stallman
1e9b6335bb (reset_buffer_local_variables): Init case_table slots the new way. 1995-10-19 00:09:46 +00:00
Richard M. Stallman
e95a0b39f8 (Fkill_buffer): Don't kill auto save file if not recent. 1995-10-11 14:41:55 +00:00
Erik Naggum
6fdc249f09 (buffer-display-table): Document new implementation. 1995-10-09 20:52:43 +00:00
Richard M. Stallman
a96621c61e (init_buffer_once): Make file_format always local, not just local when set. 1995-10-08 19:26:07 +00:00
Richard M. Stallman
ea064aa0d0 (Fmake_indirect_buffer): Was taking marker positions
from current buffer, which is irrelevant.
1995-10-04 17:24:33 +00:00
Richard M. Stallman
597dd755eb (Fmake_overlay): Set end-marker's insertion_type to 1. 1995-10-03 18:43:12 +00:00
Richard M. Stallman
26d84681fa (Fmake_indirect_buffer): Set the insertion_type of the zv_marker markers to 1. 1995-09-03 18:52:37 +00:00
Richard M. Stallman
52e011899b (get_truename_buffer): New function. 1995-08-09 22:39:09 +00:00
Richard M. Stallman
2237866508 (Qbefore_change_functions, Qafter_change_functions): New variables.
(syms_of_buffer): Initialize them.
1995-08-05 22:57:46 +00:00
Karl Heuer
cb26008f39 (record_overlay_string, overlay_strings): Handle zero-sized overlays better. 1995-07-27 22:44:41 +00:00
Karl Heuer
e8185fa816 (struct sortstrlist): New type.
(overlay_heads, overlay_tails): Change to struct sortstrlist.
(overlay_heads_len, overlay_tails_len): Deleted; now part of struct.
(record_overlay_string): New function.
(overlay_strings): Simplify.  Use record_overlay_string.
Check for window match in overlays_after loop, not just in
overlays_before.
1995-07-27 21:47:59 +00:00
Karl Heuer
9115729ea3 (last_overlay_modification_hooks): New variable.
(last_overlay_modification_hooks_used): Likewise.
(syms_of_buffer): Init last_overlay_modification_hooks.
(add_overlay_mod_hooklist): New function.
(call_overlay_mod_hooks): Call add_overlay_mod_hooklist.
(report_overlay_modification): When AFTER is non-nil,
call the functions recorded in last_overlay_modification_hooks.
1995-07-17 22:19:07 +00:00
Richard M. Stallman
2a3eeee73e (overlays_in): Don't count empty overlays at END.
(Foverlays_in): Likewise.
1995-07-07 13:31:48 +00:00
Richard M. Stallman
74514898f8 (overlays_in): New function.
(Foverlays_in): New function.
(syms_of_buffer): defsubr it.
1995-06-26 03:54:38 +00:00
Richard M. Stallman
bb4c204e27 (syms_of_buffer): Doc fix. 1995-06-21 23:09:16 +00:00
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