1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00
Commit graph

307 commits

Author SHA1 Message Date
Richard M. Stallman
c995f22e7e Include ctype.h. 2001-11-04 17:34:56 +00:00
Miles Bader
59f2c8ab31 (Fline_beginning_position, Fline_end_position): Clarify documentation. 2001-10-19 15:02:53 +00:00
Pavel Janík
f32cdf59fa (Fchar_to_string): Make the doc string consistent with arguments. 2001-10-15 14:13:56 +00:00
Gerd Moellmann
ea229bec47 (toplevel) [STDC_HEADERS]: Include float.h.
(MAX_10_EXP): New macro.
(Fformat): Use it.
2001-07-23 09:38:43 +00:00
Eli Zaretskii
0ae833485b (Fmessage_box): If the frame is not under a window
system, output the message in the echo area.
2001-06-15 11:31:11 +00:00
Gerd Moellmann
04f250d495 (char_property_eq): Put in #if 0. 2001-05-28 12:04:26 +00:00
Gerd Moellmann
ba973f7a65 (save_excursion_restore): Don't use XBUFFER on
a non-buffer.
2001-04-26 12:37:43 +00:00
Gerd Moellmann
04b566a183 (Fcurrent_time_zone): Accept spaces in timezone
names.
2001-04-05 14:04:44 +00:00
Gerd Moellmann
26fad6e5d6 (Ffloat_time): Fix off-by-factor-of-10 bug in the
microseconds calcuation.  Avoid double-rounding problem.
In doc string, warn that the result is approximate.
2001-03-28 15:50:47 +00:00
Gerd Moellmann
cda0f4da7b (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
Accept only alphanumeric time zone names.
2001-03-02 12:57:16 +00:00
Kenichi Handa
603a8d59d2 (Fchar_to_string): If CHARACTER is less than 256,
return a unibyte string.
2001-02-09 05:32:46 +00:00
Eli Zaretskii
eb24d0bfe7 (Fconstrain_to_field): Doc fix. 2001-02-02 07:54:48 +00:00
Eli Zaretskii
7c132cba8b (Fformat_time_string): Doc fix. 2001-01-31 17:05:55 +00:00
Gerd Moellmann
50606b4c01 (Fformat): Don't extend text properties from arguments
to padding chars in the result.
2001-01-22 13:10:49 +00:00
Kenichi Handa
e1e40b38d1 (Fformat): Use lisp_string_width instead of strwidth. 2001-01-19 23:38:06 +00:00
Gerd Moellmann
ba976213c3 (Fbuffer_substring): Doc fix. 2001-01-19 10:12:44 +00:00
Dave Love
e066768e65 (Fformat): Doc fix. 2001-01-04 21:02:24 +00:00
Eli Zaretskii
7ef8bdb5aa (Ftranspose_regions): Remove unused variables `gcpro1'
and `gcpro2'.
2001-01-02 14:01:48 +00:00
Gerd Moellmann
a432bfe5e7 (Fformat): Prevent a buffer overrun when the format
specifies a precision.
2000-12-14 16:18:54 +00:00
Gerd Moellmann
793cd2c862 (save_excursion_restore): Don't move point
in another window if it is showing the wrong buffer.
Avoid the call to Fwindow_live_p, for speed.
2000-12-04 12:25:36 +00:00
Miles Bader
2480a59bda (find_field):
Use the correct overlay marker when checking after_overlay's start ins type.
2000-10-25 07:35:11 +00:00
Miles Bader
7ae1c03203 (find_field):
Set the field stickiness correctly from overlay fields.
  Use renamed `text_property_stickiness'.
(text_property_stickiness):
  Renamed from `char_property_stickiness'.
2000-10-25 05:18:10 +00:00
Miles Bader
f657bbf68b (Fconstrain_to_field): Check carefully for field boundaries if either
OLD_POS or NEW_POS has a non-nil field property, even if they're the same.
2000-10-16 07:28:24 +00:00
Gerd Moellmann
2483cf581b (save_excursion_save): Additionally record the
selected window.
(save_excursion_restore): If buffer was visible in a window, and a
different window was selected, and the old selected window is
still live, restore point in that window.
2000-10-12 13:06:00 +00:00
Gerd Moellmann
3a8a3a66d3 (Fmessage_or_box): Doc fix. 2000-09-20 16:23:54 +00:00
Miles Bader
974e1e5b2a (Fbuffer_string): Doc fix. 2000-09-11 10:48:34 +00:00
Gerd Moellmann
8892f40bde Remove includes of
string.h and strings.h.
(index) [HAVE_INDEX]: Add prototype.
2000-09-02 19:35:49 +00:00
Gerd Moellmann
a847af86f5 (toplevel) [HAVE_STRING_H]: Include string.h.
(toplevel) [HAVE_STRINGS_H]: Include strings.h.
(index): Remove prototypes which might conflict with non-standard
definitions of index/strchr.
2000-08-28 15:03:29 +00:00
Andrew Innes
f12ef5ebfd [USE_CRT_DLL]: Remove unnecessary extern, which screws
up dllimport attributes.
2000-08-22 22:19:26 +00:00
Gerd Moellmann
acb7cc8983 (find_field): Formatting changes.
(toplevel): Some old-style function forward declarations
changed to prototypes, some new protypes added, some functions
made static.
2000-08-21 19:48:17 +00:00
Miles Bader
d6abb4c767 (save_restriction_save): Rewrite to use markers.
(save_restriction_restore): Rewrite to understand new form of data
  saved by save_restriction_save.
(Fsave_restriction): Remove cautionary note in doc-string.
2000-08-18 00:43:52 +00:00
Ken Raeburn
cba7d658d8 (find_field): Use EQ, not ==, to compare lisp objects. 2000-08-08 14:38:09 +00:00
Gerd Moellmann
afd74e2569 (Ftranspose_regions): Use xfree instead of free. 2000-08-05 19:26:20 +00:00
Miles Bader
10b0f752ea (Fconstrain_to_field): Fix the conditions for deciding when to constrain
NEW_POS (they were pretty screwed up before).
2000-08-01 12:56:24 +00:00
Eli Zaretskii
c0261b5e26 (lisp_time_argument): Fix last change. 2000-07-27 14:25:35 +00:00
Sam Steingold
34a7a2672a new function: float-time 2000-07-26 18:41:15 +00:00
Miles Bader
ee547125d8 (find_field): Honor special `boundary' fields.
(Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
  Use scan_buffer instead of find_before_next_newline, because it
  allows us to detect the boundary case where there's a newline at
  the search limit.
(Qboundary): New variables.
(syms_of_editfns): Initialize Qboundary.
2000-07-24 23:45:57 +00:00
Miles Bader
f4d708d0ed (char_property_eq, char_property_stickiness):
Renamed from `text_property_eq' and `text_property_stickiness', respectively.
(find_field, Fconstrain_to_field, char_property_eq, char_property_stickiness):
  Changed to call char-property functions instead of text-property-only ones.
2000-07-15 15:18:35 +00:00
Kenichi Handa
be17069b71 (Fformat): While copying text properties, make each composition
property value a copy.
2000-07-04 07:37:30 +00:00
Kenichi Handa
9a599130ca (Fformat): Be sure to convert 8-bit characters to
multibyte form.
(Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
combining occurs.
(Ftranspose_region): Delete codes for handling byte combining.
2000-05-19 23:59:04 +00:00
Dave Love
df3b0cc64e (preceding-char, following-char): Doc fix. 2000-04-10 17:42:19 +00:00
Ken Raeburn
c01fbf95df * editfns.c (text_property_stickiness, Fmessage_or_box): Use NILP to test
Lisp_Object boolean value.
(Fformat): Use a temporary variable to avoid ENABLE_CHECKING problems reading
from and changing the same lisp value in an XSETSTRING call.
2000-04-02 02:31:07 +00:00
Gerd Moellmann
7439e5b9ca (Fsubst_char_in_region): Don't use INC_POS in unibyte
buffers because it looks for multibyte character sequences which
don't exist in unibyte text.
2000-03-27 15:48:36 +00:00
Gerd Moellmann
cc94f3b24e Remove LISP_FLOAT_TYPE' and standalone'. 2000-02-17 09:45:46 +00:00
Dave Love
76329875ff (Fpropertize): Doc fix. 2000-02-01 15:13:01 +00:00
Dave Love
4d54f79436 (Fchar_after, Fchar_before): Doc fix. 2000-01-26 17:53:22 +00:00
Gerd Moellmann
ee5cd4dba2 (Fconstrain_to_field): Don't constrain if
inhibit-field-text-motion is non-nil.
(Fline_beginning_position): Undo previous change.
(Fline_end_position): Ditto.
2000-01-01 17:24:22 +00:00
Gerd Moellmann
9a74e7e566 (Vinhibit_field_text_motion): New variable.
(inhibit-field-text-motion): New DEFVAR_LISP.
(Fline_beginning_position, Fline_end_position): Notice field
boundaries only if inhibit-field-text-motion is nil.
2000-01-01 17:06:00 +00:00
Kenichi Handa
d5c2c40348 (Fchar_to_string): Adjusted for the change of
CHAR_STRING.
(general_insert_function): Likewise.
(Finsert_char): Likewise.
(Fsubst_char_in_region): Likewise.  Call update_compositions.
(Ftranslate_region): Call update_compositions.
(Ftranspose_regions): Call update_compositions.
1999-12-15 00:10:23 +00:00
Stefan Monnier
7dae4502b6 * editfns.c (Fdelete_and_extract_region): New function.
(syms_of_editfns): register it.
* insdel.c (del_range): update del_range_1 call.
(del_range_1, del_range_2): Add a ret_string argument to
request that the deleted text be returned.
(del_range_byte, del_range_both): Update del_range_2 call.
* lisp.h (del_range_1, del_range_2): change prototype
* casefiddle.c (casify_region): Update del_range_1 call.
* coding.c (code_convert_region): Update del_range_2 call.
* fileio.c (Finsert_file_contents): Update del_range_2 call.
1999-12-07 04:42:40 +00:00