Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Stefan Monnier
5e097e002b
(buf_charpos_to_bytepos, buf_bytepos_to_charpos)
...
(Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
(set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
Update for new types.
2003-06-26 23:17:50 +00:00
Richard M. Stallman
55a91ea3b5
(verify_bytepos): New function.
2003-04-06 20:33:59 +00:00
Juanma Barranquero
177c0ea743
Trailing whitespace deleted.
2003-02-04 14:56:31 +00:00
Juanma Barranquero
3f67ae94e0
Fix typo in comment.
2002-04-17 13:49:49 +00:00
Richard M. Stallman
59d3606667
(count_markers): New function.
2002-04-13 17:47:20 +00:00
Stefan Monnier
3ab364ce24
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE.
2002-04-01 23:07:40 +00:00
Richard M. Stallman
b5a4bb222b
Comment change.
2001-11-18 06:52: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
2e1280f865
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-31 11:06:47 +00:00
Eli Zaretskii
4644f58940
(Fmarker_position): Remove unused variables pos', i',
...
and `buf'.
(Fmarker_insertion_type): Remove unused variable `buf'.
2001-01-02 14:08:59 +00:00
Gerd Moellmann
80d26f99bb
Avoid some more compiler warnings.
...
(byte_char_debug_check): Return void.
2000-09-21 20:55:56 +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
Karl Heuer
0469366f99
(Fcopy_marker): Make return from wrong_type_argument
...
fall thru into normal case.
1998-07-12 19:13:45 +00:00
Richard M. Stallman
7693a579bd
(unchain_marker): Abort if the marker is not in its buffer's chain.
...
(buf_bytepos_to_charpos): Fix assignment of `record'
when scanning from below.
Don't create a marker if buffer's marker chain is empty.
1998-05-11 01:11:02 +00:00
Andreas Schwab
6acce4eaa2
(set_marker_both): Remove bogus checks on charpos.
1998-04-14 13:02:50 +00:00
Andreas Schwab
dfcf069d56
Fix -Wimplicit warnings.
1998-04-14 12:25:56 +00:00
Karl Heuer
b8f477cbd2
(buf_charpos_to_bytepos, buf_bytepos_to_charpos):
...
When calling set_marker_both, pass the right buffer.
1998-04-13 18:56:44 +00:00
Karl Heuer
34e4751f89
(Fbuffer_has_markers_at): Fix termination condition.
1998-04-09 19:40:19 +00:00
Kenichi Handa
15b0983da0
(buf_charpos_to_bytepos): Delete local variable gapend_byte.
1998-04-02 00:25:47 +00:00
Kenichi Handa
bab9ce2f56
(byte_char_debug_check): Call multibyte_chars_in_text
...
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
1998-03-19 07:34:29 +00:00
Richard M. Stallman
6e57421bcf
(byte_char_debug_check): New function.
...
(CONSIDER, both definitions): Call it.
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise.
(byte_debug_flag): New variable.
(syms_of_marker): Set up Lisp variable.
1998-02-08 22:40:44 +00:00
Richard M. Stallman
31c8f88101
Update copyright year.
1998-01-21 22:22:17 +00:00
Richard M. Stallman
31f8ab72fb
(clear_charpos_cache): New function.
1998-01-19 19:32:47 +00:00
Richard M. Stallman
1f03507fc9
(buf_bytepos_to_charpos): Use marker bytepos, not bufpos.
...
(buf_charpos_to_bytepos, marker_byte_position): Likewise.
(Fset_marker, set_marker_restricted, set_marker_both): Likewise.
(set_marker_restricted_both): Likewise.
1998-01-02 21:26:05 +00:00
Richard M. Stallman
1389ad718c
(marker_byte_position): Renamed from marker_position.
...
(marker_position): New function returns the charpos.
(Fbuffer_has_markers_at): Test the marker's charpos.
(set_marker_restricted, Fset_marker): Set both kinds of position.
Optimize case where POSITION is a marker.
(set_marker_both, set_marker_restricted_both): New functions.
(Fmarker_position): Use the charpos.
(charpos_to_bytepos, bytepos_to_charpos): New functions.
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): New functions.
1998-01-01 02:35:09 +00:00
Andreas Schwab
c03232491a
(unchain_marker): Define as returning nothing.
...
(syms_of_marker): Likewise.
1997-11-21 13:33:35 +00:00
Richard M. Stallman
9e5896c658
(Fbuffer_has_markers_at): New function.
...
(syms_of_marker): defsubr it.
1996-10-11 03:11:21 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Erik Naggum
9be191c94f
(Fset_marker): Harmonize arguments with documentation.
1996-01-09 00:33:13 +00:00
Richard M. Stallman
efa9a1605c
(Fset_marker_insertion_type): Doc fix.
1995-10-29 21:38:59 +00:00
Richard M. Stallman
fc299663f4
(Fcopy_marker): New arg TYPE.
...
(Fmarker_insertion_type, Fset_marker_insertion_type): New functions.
(syms_of_marker): defsubr them.
1995-09-03 18:53:58 +00:00
Karl Heuer
7c938215cd
Update GPL to version 2.
1995-06-15 20:42:24 +00:00
Richard M. Stallman
3686a8de27
(unchain_marker): Allow differing buffers
...
as long as they have the same text.
1995-03-14 05:45:39 +00:00
Richard M. Stallman
d281a86afb
Use BUF_MARKERS throughout.
1995-01-02 21:54:50 +00:00
Karl Heuer
c5802b21e4
(Fmarker_position): Don't use XFASTINT as an lvalue.
1994-10-04 16:07:23 +00:00
Karl Heuer
0e11d8694e
(Fmarker_buffer): Use new accessor macros instead of calling XSET directly.
1994-10-04 12:19:07 +00:00
Karl Heuer
e8e68e490b
(Fset_marker, set_marker_restricted, Fcopy_marker): Use type test macros.
1994-09-27 02:24:00 +00:00
Richard M. Stallman
609b39788d
(unchain_marker): Use EMACS_INT.
1994-09-17 00:37:10 +00:00
Roland McGrath
18160b98ce
Include <config.h> instead of "config.h".
1993-09-10 06:15:46 +00:00
Jim Blandy
d427b66a66
entered into RCS
1992-01-13 21:48:03 +00:00
Jim Blandy
dcfdbac7bb
Initial revision
1990-11-12 20:20:45 +00:00