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

86 commits

Author SHA1 Message Date
Martin Rudalics
3ecc116303 (record_point): Don't call Fundo_boundary for first
change.  (Bug#731)
2008-09-22 15:40:20 +00:00
Glenn Morris
9ec0b715e2 Switch to recommended form of GPLv3 permissions notice. 2008-05-14 07:50:26 +00:00
Stefan Monnier
4591d6cbef (last_boundary_buffer, last_boundary_position): New vars.
(Fundo_boundary): Set them.
(syms_of_undo): Initialize them.
(record_point): Use them instead of last_point_position*.
(last_undo_buffer): Change type.
2008-04-04 16:59:52 +00:00
Martin Rudalics
8abe0f9776 (undo_inhibit_record_point): New variable.
(syms_of_undo): Initialize it.
(record_point): Don't record point when undo_inhibit_record_point
is set.
2008-01-20 10:34:18 +00:00
Glenn Morris
8cabe764e9 Add 2008 to copyright years. 2008-01-08 04:37:27 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Chong Yidong
9e56868413 (Fprimitive_undo): Give clearer error message when trying to change
text properties outside accessible part of buffer.
2007-03-30 02:04:27 +00:00
Glenn Morris
429ab54e01 Update copyright for years from Emacs 21 to present (mainly adding
2001).
2007-01-14 03:38:22 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Richard M. Stallman
3cece6938d Undo previous change. 2005-12-26 22:11:07 +00:00
Luc Teirlinck
ac0526190a include keyboard.h. 2005-12-26 18:35:45 +00:00
Richard M. Stallman
91e25f5e6f Depend on window.h.
(record_point): Save old point from the correct window.
2005-12-26 16:33:05 +00:00
Ken Raeburn
88fde92a48 (truncate_undo_list): Avoid dangerous side effects in NILP argument. 2005-12-06 07:40:47 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Kim F. Storm
a7a39468d6 (Fprimitive_undo): Check that undo function does not switch buffer. 2005-02-09 21:49:12 +00:00
Stefan Monnier
3419757dfd (Fprimitive_undo): Check veracity of delta,start,end. 2005-02-08 20:49:16 +00:00
Kim F. Storm
4ac0318706 (Fprimitive_undo): Record max one dummmy apply element. 2005-02-07 11:44:00 +00:00
Kim F. Storm
ed71a5cf0a (Fprimitive_undo): Fix dummy apply undo entry. 2005-02-02 15:43:18 +00:00
Kim F. Storm
49be18c97e (Qapply): New lisp var.
(syms_of_undo): Intern and staticpro it.
(Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
(apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2005-01-31 22:44:27 +00:00
Luc Teirlinck
6de38aa350 (syms_of_undo) <undo-outer-limit>: Increase value to 3 Meg. 2005-01-30 02:09:45 +00:00
Luc Teirlinck
62d776fd34 (syms_of_undo) <undo-outer-limit>: Doc update. 2005-01-30 00:39:33 +00:00
Richard M. Stallman
6887bce515 (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME. 2005-01-29 17:16:31 +00:00
Richard M. Stallman
81c1cf71fe (Vundo_outer_limit): Replaces undo_outer_limit. Uses changed.
(syms_of_undo): Initialize appropriately.
(truncate_undo_list): If it's nil, there's no limit.
2004-12-23 00:15:23 +00:00
Richard M. Stallman
137e23eabd (truncate_undo_list): Return void.
Take just one argument, the buffer.
Make it current, and inhibit recursive GC.
Access and update the undo list directly; return void.
Refer to the undo...limit variables directly.
Test undo_outer_limit only after counting the whole current command.
When it's exceeded, call the function in undo-outer-limit-function.
(undo_limit, undo_strong_limit, undo_outer_limit): Moved from alloc.c.
(Vundo_outer_limit_function): New variable.
(syms_of_undo): Define undo-limit, undo-strong-limit
and undo-outer-limit here, and undo-outer-limit-function.
Doc fixes.
2004-12-21 11:31:24 +00:00
Richard M. Stallman
e3d5ca1ed1 (truncate_undo_list): New arg LIMITSIZE. 2004-05-29 16:20:47 +00:00
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