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

428 commits

Author SHA1 Message Date
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
Richard M. Stallman
674a954a1d (Fmessage): If arg is "", return "" (as before). 2005-01-21 00:32:36 +00:00
Steven Tamm
a15252fdfb * editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
	based on call to uname if available.
	(get_operating_system_release): Added function to
	allow c-level access to operating system release.
* config.h: Regenerated.
* s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
	less.
	(MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
	using ptys as '7'.
* term/mac-win.el (process-connection-type): Removed.
	Controlled now by s/darwin.h:PTY_ITERATION.
2005-01-20 18:13:48 +00:00
Steven Tamm
3bb9abc888 * editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
	based on call to uname if available.
* config.h: Regenerated.
2005-01-19 19:09:42 +00:00
Eli Zaretskii
3c14598ca1 Move #include "systime.h" before <sys/resource.h>.
Don't include <sys/time.h> explicitly.
Include <stdio.h> unconditionally, not just on MacOS.
2004-11-08 12:04:07 +00:00
Steven Tamm
21acf12465 editfns.c: Adding in better patch 2004-11-07 05:57:58 +00:00
Steven Tamm
31141c132b editfns.c: Need to include sys/time.h before resource.h on darwin. 2004-11-07 05:57:08 +00:00
Eli Zaretskii
4211ee7d6c (Fget_internal_run_time): New function.
(syms_of_data): Defsubr it.
2004-11-06 17:00:37 +00:00
Richard M. Stallman
281c172124 (Fmessage): Doc fix. 2004-10-27 11:02:06 +00:00
Kim F. Storm
e65837df54 (Fformat): Allocate discarded table with SAFE_ALLOCA.
Only allocate info and discarded tables once.
Fix SAFE_FREE calls.
2004-10-26 22:37:34 +00:00
Kenichi Handa
365d14677e (Ftranslate_region_internal): New function.
(syms_of_editfns): Defsubr it.
2004-10-22 13:09:39 +00:00
Richard M. Stallman
8550b998e8 (Fdelete_and_extract_region): If region is empty, return null string. 2004-10-19 16:58:30 +00:00