Commit graph

378 commits

Author SHA1 Message Date
Kim F. Storm
15fad0379b (Fformat): Handle format strings with multiple text
properties.  Reverse text property list from the format string,
so the positions are in increasing order.
2004-09-12 21:35:14 +00:00
Kim F. Storm
7c111482b9 (Fformat): Allocated extra (dummy) element in info. 2004-07-30 12:05:32 +00:00
Luc Teirlinck
5668fbb8b1 (Ffloat_time, Fformat_time_string, Fdecode_time)
(Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
that time values of the type (HIGH . LOW) are considered obsolete.
2004-07-09 23:38:54 +00:00
Kim F. Storm
7e2c051b99 (Fformat, Ftranspose_regions): Use SAFE_ALLOCA. 2004-06-21 21:54:30 +00:00
Juanma Barranquero
412f1fab56 (Fuser_login_name, Ffloat_time, Fencode_time, Fcurrent_time_string)
(Fcurrent_time_zone, Finsert_buffer_substring, Ftranspose_regions):
Doc fixes.
2004-06-07 20:33:00 +00:00
Juanma Barranquero
658ec670ab (Finsert_buffer_substring): Make argument names match their use in
docstring.
2004-05-07 22:27:57 +00:00
Eli Zaretskii
5c5718b6f6 (lisp_time_argument): Provide externally. 2004-04-27 13:28:38 +00:00
Kim F. Storm
d68de522ca (Fformat): Fix allocation size of precision array. 2004-04-13 21:30:16 +00:00
Kenichi Handa
3c8111fcc5 (Fformat): Fix initialization of the array info. 2004-03-30 06:16:29 +00:00
Masatake YAMATO
abdb9b8306 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
* buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
* editfns.c (Ftranspose_regions): Likewise.
* lisp.h (top_level): Likewise.
2004-03-25 18:05:29 +00:00
Stefan Monnier
34ed747a82 (Ftranslate_region): Lisp_Object/int mixup. 2004-03-02 21:42:03 +00:00
Kenichi Handa
c99ffedf9a (Ftranslate_region): Fix previous change 2004-03-01 06:36:08 +00:00
Kenichi Handa
10475277ce (Ftranslate_region): Handle multibyte chars in the arg
TABLE correctly.
2004-03-01 06:19:10 +00:00
Luc Teirlinck
64d1e37322 (Fchar_after, Fchar_before): Doc fixes. 2004-02-05 04:19:44 +00:00
Jonathan Yavner
728345f8b1 For `format', make source and documentation match. 2004-01-24 17:39:47 +00:00
Kenichi Handa
3a9f36e634 (Fformat): Fix '&' to '&&'. 2004-01-08 08:40:12 +00:00
Eli Zaretskii
2063d89c11 (region_limit): Support any non-zero value of BEGINNINGP. 2003-09-07 16:26:52 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
c24e982c71 (Fencode_time): Doc fix. 2003-08-17 00:24:04 +00:00
Stefan Monnier
88006f77c4 (overlays_around): Use new type for overlays_(before|after). 2003-07-09 14:51:57 +00:00
Stefan Monnier
12038f9fc9 (save_excursion_restore, transpose_markers): Update for new types. 2003-06-26 23:17:13 +00:00
Stefan Monnier
dfe6cbf8f3 (get_pos_property): Don't assume that `object' = nil. 2003-05-17 18:47:04 +00:00
Richard M. Stallman
67965a9816 (Fformat): Set abort_on_gc during first scan of format.
Reinit FORMAT_START and END before second scan.
2003-04-30 12:05:37 +00:00
Stefan Monnier
f3ce1df88f (Fformat): Lisp_Object/int mixup.
(format2): Remove unused var numargs.
2003-04-11 23:17:42 +00:00
Richard M. Stallman
d147ee841a (Fformat): Translate positions of text properties
in the format string to apply them to the result.
2003-04-09 01:28:44 +00:00
Kenichi Handa
aa8b70aef5 (Fformat): Use a copy of FORMAT string so that we can
destructively change "%S" to "%s".
2003-04-04 10:47:26 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Kenichi Handa
231a33160e (Fformat): Add comment about the treatment of 0 as a multibyte
character.
2003-01-26 23:21:53 +00:00
Richard M. Stallman
d40dc1d037 (format2): New function, replaces format1
but takes exactly two Lisp Objects as format args.
2003-01-25 19:48:14 +00:00
Kim F. Storm
72bb55c6b2 (Finsert): Mention `string-make-multibyte' and
`string-as-multibyte' in doc string.
2003-01-17 12:30:34 +00:00
Kenichi Handa
063b53b1b0 (Fformat): Convert an unibyte char argument that is
formatted by "%c" to multibyte if the total result must be a
multibyte string.
2003-01-17 00:47:58 +00:00
Richard M. Stallman
6b381c3ac9 (Fformat): Add parens. 2002-12-21 18:00:23 +00:00
Juanma Barranquero
b11f1d8a33 (Fformat): Use alloca, not _alloca. 2002-12-10 07:40:21 +00:00
Ben Key
2573153f50 fixed a couple of minor compilation errors in editfns.c 2002-12-10 07:09:41 +00:00
Kai Großjohann
ac42d7b991 (Fformat): Handle precision in string conversion specifiers like libc
functions do (ie, print at most that many characters).  From Matthew
Swift <swift@alum.mit.edu>.
2002-12-09 10:44:25 +00:00
Stefan Monnier
538f9462d6 (get_pos_property): Don't hardcode Qfield. 2002-11-03 10:59:18 +00:00
Andreas Schwab
304f1f12d6 (Fmessage): Revert last change to properly handle %% format. 2002-11-01 22:35:02 +00:00
Stefan Monnier
2db1186a25 (find_field): Make an exception for nil fields. 2002-11-01 19:06:06 +00:00
Stefan Monnier
58401a3476 (overlays_around, get_pos_property): New funs.
(find_field): Use them.
Also be careful not to modify POS before its last use.
(Fmessage): Don't Fformat if there's nothing to format.
2002-10-30 23:11:26 +00:00
Richard M. Stallman
f98176d214 (Fformat): Detect invalid format letters for floats. 2002-10-26 22:52:36 +00:00
Markus Rost
a67a233bc8 (Fformat_time_string): Doc fix. 2002-10-05 04:32:00 +00:00
Richard M. Stallman
6388456397 (save_restriction_restore): Defend from unchained marker. 2002-08-17 04:55:17 +00:00
Richard M. Stallman
6076e561e6 (Fmessage): Treat "" like nil. 2002-07-23 19:08:44 +00:00
Ken Raeburn
439e8af4cf (general_insert_function): Insertion function now
takes pointer to const for input data.
2002-07-16 19:48:12 +00:00
Ken Raeburn
1e5d9116cc (Fstring_to_char): Don't use XSTRING/XSETSTRING to copy a lisp value. 2002-07-16 17:35:50 +00:00
Ken Raeburn
4e491f8d1e (Fstring_to_char): Use string macros instead of Lisp_String fields. 2002-07-16 16:58:04 +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
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Ken Raeburn
f6620ee2b0 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
XSYMBOL and name field.
2002-05-20 08:05:26 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00