aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
Commit message (Collapse)AuthorAgeFilesLines
* (transpose_markers): Allow for gap at start of region.Karl Heuer1994-06-121-48/+38
| | | | (Ftranspose_regions): Don't precompute pointers into buffer text.
* (difftm): Don't store a long value into an int variable.Richard M. Stallman1994-05-281-1/+1
|
* (Ftranspose_regions): Fix overlays after moving markers.Karl Heuer1994-05-171-1/+15
| | | | Update point as if it were a marker.
* (Fcurrent_time_zone): Add cast.Richard M. Stallman1994-05-151-1/+1
|
* (save_excursion_restore): Don't run activate-mark-hookRichard M. Stallman1994-05-131-2/+10
| | | | if mark position is unchanged.
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (Ftranspose_regions): Take addresses only after move gap.Richard M. Stallman1994-05-011-28/+54
| | | | | | Cast result of alloca. Use xmalloc instead, for large objects. Always copy the middle portion directly; never put it in temp. Always move the gap to START1 or END2, whichever is nearer.
* (Ftranspose_regions): New function.Richard M. Stallman1994-04-291-0/+301
| | | | | (transpose_markers): Helper func for above. (syms_of_frame): Call defsubr for Stranspose_regions.
* (Fuser_real_login_name): Doc syntax fix.Richard M. Stallman1994-04-141-1/+1
|
* (make_buffer_string): Copy properties whenever we have someRichard M. Stallman1994-04-091-2/+3
| | | | even if they don't change.
* (Fformat): Reword confusing error message.Karl Heuer1994-04-071-1/+1
|
* (Fformat): Validate number and type of arguments.Karl Heuer1994-03-251-1/+3
|
* (save_excursion_restore): Don't call Vrun_hooks if nil.Richard M. Stallman1994-03-051-4/+7
|
* (Fuser_real_login_name): Doc fix.Karl Heuer1994-02-111-1/+2
|
* (init_editfns): Look at LOGNAME before USER.Karl Heuer1994-02-111-4/+4
|
* (Fmessage): Copy the text to be displayed into a malloc'd buffer.Karl Heuer1994-02-101-1/+19
|
* (difftm): Simplify expression.Karl Heuer1994-02-101-16/+15
|
* (Femacs_pid): New function.Richard M. Stallman1993-12-301-0/+8
| | | | (syms_of_editfns): Define it for Lisp.
* (Fmessage): Use message2.Richard M. Stallman1993-12-231-10/+11
| | | | | (Fsubst_char_in_region): Move the NOUNDO hacking code after the modify_region call.
* (make_buffer_string): Don't copy intervalsRichard M. Stallman1993-11-231-7/+19
| | | | | | | | | | | if we don't really have any properties. (Finsert_buffer_substring): Pass graft_intervals_into_buffer the current buffer. Pass it the extra arg LENGTH. (Fsubst_char_in_region): Call modify_region only if a change has to be made. Call signal_after_change just once, at end.
* Doc fixes.Richard M. Stallman1993-11-091-6/+6
|
* (Finsert_and_inherit): New function.Richard M. Stallman1993-09-141-3/+78
| | | | | (Finsert_and_inherit_before_markers): New function. (Finsert, Finsert_before_markers): Pass new arg to insert_from_string*.
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (save_excursion_restore): Never make the buffer visible.Richard M. Stallman1993-08-021-0/+5
|
* (syms_of_editfns): Just staticpro Vuser...nameRichard M. Stallman1993-07-301-11/+4
| | | | and Vsystem_name; don't make them Lisp variables.
* (region_limit): Declare Vmark_even_if_inactive.Roland McGrath1993-07-081-0/+1
|
* (region_limit): Don't error if Vmark_even_if_inactive is set. When theRoland McGrath1993-07-081-2/+3
| | | | | mark is inactive and that is a no-no, signal mark-inactive instead of using error with a message.
* * editfns.c (Fformat): Since floats occupy two elements in theJim Blandy1993-07-071-7/+12
| | | | | | argument list passed to doprnt, we must use separate indices for the array of arguments passed to Fformat, and the array of arguments to be passed to doprnt.
* (Finsert_buffer_substring): Doc fix.Roland McGrath1993-06-161-1/+1
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-2/+2
|
* (Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.Richard M. Stallman1993-06-061-0/+5
|
* (Fcurrent_time_zone): Make `am' an int, not long.Richard M. Stallman1993-05-231-1/+1
|
* (Fcurrent_time_zone): Assign gmt, instead of init.Richard M. Stallman1993-05-231-5/+7
|
* * editfns.c: #include <sys/types.h>, to get time_t for Eggert'sJim Blandy1993-05-221-0/+2
| | | | changes.
* Some time-handling patches from Paul Eggert:Jim Blandy1993-05-201-45/+91
| | | | | | | | | | | | * editfns.c (Fcurrent_time_zone): Take an optional argument specifying what (absolute) time should be used to determine the current time zone. Yield just offset and name of time zone, including DST correction. Yield time zone offset in seconds, not minutes. (lisp_time_argument, difftm): New functions. (Fcurrent_time_string): Use lisp_time_argument. * systime.h (EMACS_CURRENT_TIME_ZONE, EMACS_GET_TZ_OFFSET, EMACS_GET_TZ_NAMES): Remove. * config.h.in: Add HAVE_TM_ZONE.
* The text property routines can now modify buffers otherJim Blandy1993-05-141-2/+2
| | | | | | | | | | | | than the current one. * insdel.c (modify_region): New argument BUFFER. Select that buffer while we prepare for the modification, and switch back when we're done. * textprop.c (add_properties, remove_properties): Pass the buffer being modified as the first argument to modify_region. * editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the current_buffer as the first argument to modify_region. * casefiddle.c (casify_region): Same.
* * editfns.c (Fcurrent_time_zone): Return a list whose elements areJim Blandy1993-04-051-3/+6
| | | | | nil if the time zone information is unavailable, instead of signalling an error.
* (Fchar_equal): Don't ignore high bits of character.Richard M. Stallman1993-03-271-1/+2
|
* (Fcurrent_time_string): Optional arg specifies time.Richard M. Stallman1993-03-121-6/+31
|
* (save_excursion_save): Save mark_active of buffer.Richard M. Stallman1993-03-071-5/+17
| | | | | | (save_excursion_restore): Restore mark_active of buffer. Run activate-mark-hook if it's on, or deactivate-mark-hook if it turns off. (region_limit): Error if mark inactive, if transient-mark-mode.
* * editfns.c (Fmessage): Don't forget to return a value whenJim Blandy1993-02-221-1/+4
| | | | args[0] == Qnil.
* (Finsert_buffer_substring): Proper error for non-ex buffer.Richard M. Stallman1993-02-111-5/+14
| | | | (Fcompare_buffer_substrings): Likewise.
* (Fcompare_buffer_substrings): New function.Richard M. Stallman1993-02-111-0/+117
|
* Doc fixes.Richard M. Stallman1993-01-081-5/+3
|
* * * editfns.c (Fmessage): With no arguments, clear any activeJim Blandy1992-10-171-6/+12
| | | | message; let the minibuffer contents show through.
* * editfns.c (make_buffer_string): Call copy_intervals_to_string().Joseph Arceneaux1992-10-011-3/+18
| | | | | (Finsert_buffer_substring): Call graft_intervals_into_buffer(). #include "intervals.h".
* * editfns.c (save_excursion_save, save_excursion_restore):Jim Blandy1992-09-291-3/+6
| | | | Formatting tweaked for readability.
* * editfns.c (Fcurrent_time_string): Change docstring toJim Blandy1992-09-131-2/+1
| | | | | indicate that we will probably add the timezone to the end, now that we have it available on many systems.
* * editfns.c (Fcurrent_time_zone): Doc fix.Jim Blandy1992-08-121-0/+38
| | | | | | | | * editfns.c (Fcurrent_time_zone): Don't forget to include code to signal an error when EMACS_CURRENT_TIME_ZONE is not defined. * editfns.c (Fcurrent_time_zone): New function. (syms_of_editfns): defsubr it.
* entered into RCSRichard M. Stallman1992-06-041-24/+0
|