Commit graph

439 commits

Author SHA1 Message Date
Chong Yidong
6cd0f4784b (Ftranspose_regions): Validate interval before setting text
properties.
2007-04-07 03:37:48 +00:00
Eli Zaretskii
8696b55799 (Fgoto_char): Doc fix. 2007-03-24 16:03:48 +00:00
Chong Yidong
916480c4ef (Ftranspose_regions): Use set_text_properties_1 instead of
Fset_text_properties to avoid GC.  Signal after change.
2007-03-24 15:50:21 +00:00
Chong Yidong
f1767e2b05 Fix typo. 2007-03-17 19:00:52 +00:00
Chong Yidong
9c279ddfba (Fdecode_time, Fencode_time): "daylight savings" -> "daylight saving"
doc fix.
2007-03-17 18:31:34 +00:00
Andreas Schwab
cb06e57015 (Fformat): Add support for '+' flag. 2007-02-16 13:18:29 +00:00
Juanma Barranquero
9671c13af8 (Finsert_char): Doc fix.
(Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
2007-01-23 13:19:36 +00:00
Eli Zaretskii
3aef3c0adf (Fuser_uid, Fuser_real_uid): Copy values returned by geteuid and getuid
into EMACS_INT to avoid GCC warnings.
2007-01-13 21:46:02 +00:00
Stefan Monnier
c5c6b2cc68 (Fformat): Allow integer-format to work with floats of size
larger than most-positive-fixnum (but still smaller than MAXINT).
2007-01-10 03:50:19 +00:00
YAMAMOTO Mitsuharu
bcda42c8fd (Fformat_time_string, Fdecode_time, Fencode_time)
(Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
gmtime/localtime/emacs_memftimeu/mktime.
2007-01-05 08:29:41 +00:00
Juanma Barranquero
db18da59a1 (Fmessage): Doc fixes. 2006-11-12 22:29:38 +00:00
Kim F. Storm
7bd5bcfba3 (Fmessage): Recommend using (message "%s" ...). 2006-09-11 08:26:47 +00:00
Eli Zaretskii
1a7e01173e (Fsystem_name): Mention "host" in the doc string.
(syms_of_editfns) <system-name>: Likewise.
2006-09-09 10:50:03 +00:00
Kenichi Handa
04e28558df (Fformat_time_string): Use make_unibyte_string to make
a Lisp string from the result of emacs_memftimeu call.
2006-09-06 06:41:40 +00:00
Chong Yidong
3e1451520b * buffer.h (struct buffer_text): New field chars_modiff.
(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
        * buffer.c (Fbuffer_chars_modified_tick): New function returning
        value of BUF_CHARS_MODIFF.
        (syms_of_buffer): Defsubr it.
        (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
        * insdel.c (modify_region): New argument preserve_chars_modiff.
        Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
        (insert_1_both, insert_from_string_1, insert_from_buffer_1)
        (adjust_after_replace, adjust_after_replace_noundo)
        (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
        * lisp.h (modify_region): Add fourth argument in extern.
        * casefiddle.c (casify_region): Call modify_region with fourth
        argument zero to assert that CHARS_MODIFF is updated.
        * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
        (Ftranspose_regions): Likewise.
        * textprop.c (Fadd_text_properties, Fset_text_properties)
        (Fremove_text_properties, Fremove_list_of_text_properties):
        Call modify_region with fourth argument 1 to avoid that
        CHARS_MODIFF is updated.
2006-09-01 13:28:13 +00:00
Richard M. Stallman
de92d4d43e (Fformat): Don't sign-extend for %o or %x. 2006-08-31 23:07:39 +00:00
Kim F. Storm
799734b063 (Fcurrent_time, Fget_internal_run_time): Simplify; use list3. 2006-08-25 23:33:30 +00:00
Stefan Monnier
0f2e2a3bbc (Fsubst_char_in_region): Redo the setup work after running
the before-change-functions since they may have altered the buffer.
2006-08-04 15:22:09 +00:00
Thien-Thi Nguyen
f554db0f96 Undo 2006-06-28 change. 2006-07-30 12:43:09 +00:00
Kim F. Storm
8a0ff74421 (region_limit, Fget_internal_run_time): Use xsignal0. 2006-07-18 13:26:30 +00:00
Kenichi Handa
d40ec4a023 (Fformat): Fix calculation of text property positions
of format string.
2006-07-13 06:06:45 +00:00
Kim F. Storm
b7f34213c1 (general_insert_function): Remove loop around wrong_type_argument. 2006-07-12 13:16:32 +00:00
YAMAMOTO Mitsuharu
b91834c328 Include blockinput.h.
(Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
getpwuid/getpwnam.
2006-07-12 08:37:25 +00:00
Chong Yidong
df8ffa055d * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
(Ffield_string_no_properties, Ffield_end): Mention
	args-out-of-range error condition in docstring.
2006-06-28 00:00:57 +00:00
Chong Yidong
4e8f005c08 * intervals.c (set_point_both): Fix mixup before before and after
in variable names.

	* editfns.c (Fline_beginning_position): Inhibit point-motion hooks
	while setting point temporarily.
2006-05-12 17:39:39 +00:00
Miles Bader
51d793dabf Revision: emacs@sv.gnu.org/emacs--devo--0--patch-245
(Ffield_beginning, find_field): Undo change of 2006-04-23.

2006-04-25  Miles Bader  <miles@gnu.org>

   * src/editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
2006-04-25 08:18:01 +00:00
Lars Hansen
59062dce67 (find_field): Fix comment.
(Ffield_beginning): Fix bug when POS is at field beginning.
2006-04-23 08:14:52 +00:00
Paul Eggert
d65b42351f * lib-src/b2m.c (main): Don't include <limits.h>.
(TM_YEAR_BASE): New macro.
(TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
that s/ files can override this.  Use the more-conservative range
1000-9999.
(main): Check for asctime returning NULL.
* lib-src/fakemail.c: Likewise.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
../lib-src/b2m.c and ../lib-src/editfns.c.
(Fcurrent_time_string): Use it.
Document that the year might not consume 4 columns if it's outside
the range 1000-9999.
Check for asctime failure.
Don't assume that the output string length is always exactly 24.
2006-04-04 04:13:02 +00:00
Eli Zaretskii
71c3f28fb7 Move explanations from ChangeLog to the source. 2006-03-25 08:56:07 +00:00
Paul Eggert
aac18aa436 * editfns.c: (TM_YEAR_BASE): Move up.
(Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
(Fdecode_time): Cast tm_year to EMACS_INT, to avoid overflow when
int is narrower than EMACS_INT.
(Fcurrent_time_string): As with Fformat_time_string, report an
invalid time specification if the argument is invalid.  Also,
check for out-of-range time stamps.
2006-03-24 20:40:24 +00:00
Miles Bader
42ab8e36ac Revision: emacs@sv.gnu.org/emacs--devo--0--patch-51
Make constrain-to-field notice overlays

2006-02-08  Miles Bader  <miles@gnu.org>

   * src/editfns.c (Fconstrain_to_field): Use Fget_char_property instead
   of Fget_text_property (other field functions word with overlays as
   well as text-properties).
2006-02-07 09:08:53 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Ken Raeburn
d63b401895 (Fconstrain_to_field): Fix int/Lisp_Object mixup. 2006-02-05 12:15:02 +00:00
Károly Lőrentey
e477bb0420 (Fconstrain_to_field): Fix behaviour on field boundaries.
(find_field): Set before_field to after_field when pos is at BEGV.
2006-01-26 06:43:33 +00:00
Károly Lőrentey
2cb3aec40b (Fconstrain_to_field): Use get_pos_property, not Fget_char_property,
to fix handling of field boundaries.  Fix bogus comment.
(Fline_beginning_position, Fline_end_position): Clarify confusing doc
string.
2006-01-26 03:12:45 +00:00
Richard M. Stallman
8f2c9ed8c9 (Fformat): Don't include string padding
between info[n].start and info[n].end.
2005-10-28 16:26:45 +00:00
Kim F. Storm
60758816f2 (Fcompare_buffer_substrings): Fix last change. 2005-10-24 08:35:50 +00:00
Stefan Monnier
1149fd6f89 (Fcompare_buffer_substrings): Handle multibyte chars. 2005-10-24 03:51:05 +00:00
Dan Nicolaescu
b17f937955 Move systime.h include after lisp.h.
(make_time): Move prototype from systime.h.
2005-09-30 22:38:16 +00:00
Juri Linkov
867b9600bb (Fmessage, Fmessage_box, Fmessage_or_box):
Rename argument name `string' to `format-string'.
(Fformat): Doc fix.
2005-09-29 23:28:48 +00:00
Richard M. Stallman
913f73d4ee (Fformat): Explicitly test for end of format string and don't use `index'. 2005-09-23 18:22:46 +00:00
Kim F. Storm
f5be4dfd96 (Fformat): Don't scan past end of format string that
ends in %.  Reported by: Johan Bockgård.
2005-09-19 08:13:14 +00:00
Kim F. Storm
fa056b08ee (Ftranslate_region_internal): Reload `tt' after
signal_after_change that may have GC'ed.
(Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
2005-09-12 10:26:15 +00:00
Richard M. Stallman
9b7a236939 (Fpropertize): Don't insist that properties be symbols. 2005-09-04 01:07:27 +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
Juanma Barranquero
fdd6025e58 (Fsubst_char_in_region): Follow error conventions. 2005-06-23 16:06:58 +00:00
Nick Roberts
8794438453 (Fmessage_box): Use "Information" for frame title. 2005-05-24 03:48:32 +00:00
Thien-Thi Nguyen
5b9c0a1d12 Remove reference to defunct vms-pwd.h.
For pwd.h, use HAVE_PWD_H, not !VMS.
2005-04-20 15:07:03 +00:00
Stefan Monnier
8f59a4b0d6 (Fgoto_char): Fix docstring. Probably left-over from Emacs-20.1. 2005-03-27 14:23:09 +00:00