1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
Commit graph

49 commits

Author SHA1 Message Date
Eli Zaretskii
17bf2e6ede (Fprimitive_undo): Remove unused block-scope variable
`end'.
2001-01-02 14:04:12 +00:00
Gerd Moellmann
8c757fd783 (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t. 2000-12-21 16:56:13 +00:00
Gerd Moellmann
392e96d4e5 Update copyright. 2000-12-04 13:31:13 +00:00
Gerd Moellmann
4c587cd3af (Fprimitive_undo): Bind inhibit-read-only to t if
current buffer is read-only, not if it isn't.
2000-12-04 13:30:53 +00:00
Ken Raeburn
ae0b9b4690 * undo.c (record_delete): Check that last_undo_buffer is really a buffer before
applying XBUFFER to it.

* keymap.c (where_is_internal): Pass lisp object, not integer, to Faref.
2000-10-27 23:01:20 +00:00
Gerd Moellmann
2f33f38ac4 (record_first_change, record_marker_adjustment): Don'use
XBUFFER on last_undo_buffer which might not be a buffer.
2000-08-19 12:33:00 +00:00
Ken Raeburn
b347b3fd3f (record_delete): Make sure last_point_position_buffer is a buffer before
comparing pointers.
2000-08-08 14:45:00 +00:00
Ken Raeburn
86a375f869 (record_delete): If we hit the end of the undo list, stop picking elements
apart.
2000-04-26 18:39:30 +00:00
Ken Raeburn
8801a864d2 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):
Verify correct object type before returning pointer, using eassert.
* frame.h (XFRAME): Likewise.

* buffer.c (Frename_buffer, Fset_buffer_multibyte,
swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER,
etc, to values that may be nil or of the wrong type.
* data.c (set_internal): Likewise.
* dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise.
* fileio.c (auto_save_1): Likewise.
* insdel.c (check_markers): Likewise.
* marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
* undo.c (record_insert): Likewise.
* vmsproc.c (child_sig): Likewise.
* window.c (unshow_buffer, window_loop): Likewise.
* xterm.c (x_erase_phys_cursor): Likewise.
2000-03-30 09:56:31 +00:00
Gerd Moellmann
339ee9797d Remove USE_TEXT_PROPERTIES. 1999-11-11 11:45:06 +00:00
Ken Raeburn
c1d497be70 Use XCAR and XCDR instead of explicit member access. 1999-09-13 03:35:33 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Kenichi Handa
cbc1b668f3 (record_delete): Record last_point_position when there's
no record other than marker adjustment before undo boundary.
1998-03-24 05:41:38 +00:00
Richard M. Stallman
e928d437c2 (record_delete): Replace LENGTH arg with STRING.
(record_change): Call record_delete the new way.
1998-03-21 03:58:00 +00:00
Kenichi Handa
ff1aa840a4 (record_delete, record_marker_adjustment): Declare them as void. 1997-11-27 12:19:39 +00:00
Kenichi Handa
90dd3e4f46 (record_change, record_first_change,
record_property_change): Declare it as void.
1997-11-27 12:16:08 +00:00
Richard M. Stallman
b2adc40937 (Fprimitive_undo): When inserting, always insert
after markers (the ordinary kind of insertion).
1997-04-14 08:51:18 +00:00
Karl Heuer
6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Richard M. Stallman
714bced976 (record_marker_adjustment): New function.
(Fprimitive_undo): Handle marker-adjustment elements.
1996-02-03 18:07:27 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman
103dcb3822 (Fprimitive_undo): Don't end inner loop
just because a previous-modtime doesn't match any more.
1995-07-25 02:18:58 +00:00
Karl Heuer
53480e99d3 (record_insert): Change args to be ints, not Lisp_Objects. 1995-06-06 01:40:34 +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
Karl Heuer
28b2b11600 (record_delete, record_first_change): Don't use XFASTINT as an lvalue. 1994-10-04 16:15:52 +00:00
Karl Heuer
552bdbcf71 (record_insert, record_delete, record_first_change, record_property_change):
Use new accessor macros instead of calling XSET directly.
1994-10-04 12:28:40 +00:00
Karl Heuer
38c0d37cf5 (record_insert, truncate_undo_list, Fprimitive_undo): Use type test macros. 1994-09-27 01:13:35 +00:00
Karl Heuer
de65837bbe (Fprimitive_undo): GCPRO next and list.
Check argument type before calling XINT.
1994-05-25 02:22:08 +00:00
Richard M. Stallman
e7a8b7911b (record_delete): Record the old point value only right after a boundary.
(record_delete): Test last_point_position_buffer.
1994-05-07 08:38:28 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Richard M. Stallman
c58632fc81 (syms_of_undo): staticpro pending_boundary.
(pending_boundary): New variable.
(syms_of_undo): Initialize it.
(Fundo_boundary): Use pending_boundary.
(record_insert, record_delete, record_property_change):
Set pending_boundary.
1994-03-08 16:33:28 +00:00
Karl Heuer
4e665715b9 (record_delete): Save last_point_position in the undo record, rather than the
current value of point.
1994-03-03 20:12:01 +00:00
Richard M. Stallman
0736cafe0d (record_first_change): Check for buffer-undo-list = t.
Make an undo boundary if appropriate.  Set last_undo_buffer.
(record_property_change): Use BUFFER, not current_buffer,
when testing undo_list.
1994-02-03 19:39:21 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
063fb61f51 (Fprimitive_undo): Rename arg to N to avoid conflict. 1993-06-13 23:15:39 +00:00
Richard M. Stallman
f87a68b369 (syms_of_undo): Set up Qinhibit_read_only.
(Fprimitive_undo): Sometimes bind inhibit-read-only to t.
1993-06-12 18:10:20 +00:00
Richard M. Stallman
d8552b2f30 (record_delete): Always use XFASTINT on sbeg.
(Fprimitive_undo): Add missing `else'.  Add USE_TEXT_PROPERTIES
conditional for calling Fput_text_property.  Use XINT on high, low.
1993-06-12 17:04:51 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Richard M. Stallman
bdbe6f2856 (record_property_change, record_delete, record_insert):
Don't make boundary or touch last_undo_buffer if cur buf has no undo.
1993-03-15 06:03:33 +00:00
Richard M. Stallman
da9319d540 (record_property_change): Typo in last change.
(Fprimitive_undo): Handle property-change undo entry.
(record_property_change): New function.
1993-03-01 09:01:13 +00:00
Jim Blandy
e6dd60805c * undo.c (Fprimitive_undo): Remove whitespace in front of #ifdef
and #endif.
1992-11-16 00:57:54 +00:00
Jim Blandy
213861c758 * undo.c (record_insert): Use accessors on BEG and LENGTH.
(truncate_undo_list): Use NILP, not == Qnil.
1992-10-31 05:39:17 +00:00
Richard M. Stallman
f28f04cca2 (Fprimitive_undo): When undoing an insert, move point and then delete. 1992-10-03 02:12:40 +00:00
Richard M. Stallman
350bce561c (record_delete): Record pos before the deletion.
(Fprimitive_undo): Go back to recorded position.
1992-09-28 13:10:43 +00:00
Jim Blandy
07627b5d9a Doc fix. 1992-08-12 14:19:39 +00:00
Jim Blandy
f06cd13688 entered into RCS 1992-07-13 18:33:54 +00:00
Jim Blandy
62ae71c2e8 *** empty log message *** 1992-02-11 00:46:32 +00:00
Jim Blandy
265a9e559d *** empty log message *** 1992-01-13 21:48:08 +00:00
Jim Blandy
181a18b1b5 *** empty log message *** 1991-04-11 21:20:53 +00:00
Jim Blandy
c6953be16f Initial revision 1991-04-03 02:08:50 +00:00