Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Juanma Barranquero
177c0ea743
Trailing whitespace deleted.
2003-02-04 14:56:31 +00:00
Dave Love
f45bedd470
(record_point):
...
Declare all args (per C99).
2002-11-14 14:18:26 +00:00
Ken Raeburn
d5db40779d
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
...
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
331379bfa7
Rename BINDING_STACK_SIZE to SPECPDL_INDEX.
2002-07-10 08:45:24 +00:00
Stefan Monnier
6396140ae1
(record_point): New fun.
...
(record_delete, record_insert): Use it.
2002-04-04 20:42:56 +00:00
Pavel Janík
b782650360
Update usage of CHECK_ macros (remove unused second argument).
2001-11-02 20:46:55 +00:00
Pavel Janík
8c1a1077c0
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-21 12:13:46 +00:00
Ken Raeburn
f3fbd15535
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
...
with lisp system changes.
2001-10-16 09:09:51 +00:00
Stefan Monnier
c3b09bbf66
(Fprimitive_undo): Use XCAR/XCDR.
2001-10-12 01:43:29 +00:00
Gerd Moellmann
38d56be353
(Fprimitive_undo): In a writable buffer, enable undoing
...
read-only text that is so because of text properties.
2001-04-30 14:57:35 +00:00
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