aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fformat): Fix casts when assigning buf.Richard M. Stallman1998-05-031-2/+2
|
* (Finsert_char): Doc fix.Richard M. Stallman1998-05-021-1/+1
|
* (Fcompare_buffer_substrings): Rewrite to loop by chars.Richard M. Stallman1998-04-291-21/+39
|
* (Fgap_position, Fgap_size): New functions.Richard M. Stallman1998-04-291-0/+22
| | | | (syms_of_editfns): defsubr them.
* (Fbuffer_substring): Doc fix.Richard M. Stallman1998-04-231-10/+28
| | | | | (Finsert_and_inherit_before_markers): Doc fix. (Finsert_and_inherit, Finsert_before_markers, Finsert): Doc fixes.
* (Fchar_after, Fchar_before): Fix mixing of Lisp_ObjectAndreas Schwab1998-04-141-2/+2
| | | | and int
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+8
|
* (Ftranspose_regions): Fix order of parameters for replace_range.Andreas Schwab1998-04-061-2/+2
|
* (Fmessage_box): Pass the missing third argumentRichard M. Stallman1998-04-041-1/+2
| | | | STRING_MULTIBYTE (val) to message2.
* (Fchar_to_string): Use make_string_from_bytes.Richard M. Stallman1998-03-211-4/+7
| | | | | (Fformat): Use make_specified_string. (make_buffer_string_both): Use make_uninit_string if buffer is unibyte.
* Use STRING_BYTES and SET_STRING_BYTES.Richard M. Stallman1998-03-211-20/+78
| | | | (Ftranspose_regions): Try to handle combining bytes.
* (make_buffer_string_both): New function.Richard M. Stallman1998-03-211-1/+25
| | | | (make_buffer_string): Use make_buffer_string_both.
* (Fgoto_char): If POSITION is a marker pointing aRichard M. Stallman1998-03-201-1/+2
| | | | different buffer, don't rely on the byte position of the marker.
* (Fformat): Handle padding before or after, for %s etc.Richard M. Stallman1998-03-201-11/+23
| | | | Treat 0 like a multibyte char in %c.
* (Fformat): Properly print floats.Richard M. Stallman1998-03-171-1/+4
|
* (Fchar_after, Fchar_before): Properly check arg typeRichard M. Stallman1998-03-171-11/+24
| | | | | | and whether in range, for all cases. (Fsave_excursion): Doc fix.
* (Fformat): Format multibyte characters by "%c"Kenichi Handa1998-03-041-3/+14
| | | | correctly. Handle padding for multibyte characters correctly.
* (Fformat): Fix previous change.Kenichi Handa1998-03-031-1/+1
|
* (general_insert_function): UseKenichi Handa1998-03-031-1/+1
| | | | | | unibyte_char_to_multibyte if an argument is character code. (Finsert_char): Use unibyte_char_to_multibyte. (string1): Cast ARGS to `char **' to avoid compiler warning.
* (Fmessage): Check byte size (instead of char size) ofKenichi Handa1998-02-201-1/+1
| | | | VAL against MESSAGE_LENGTH.
* (Fchar_before): Check POS in valid rangeKarl Heuer1998-02-181-3/+2
| | | | before calling CHAR_TO_BYTE.
* (Fsubst_char_in_region): Don't increment pos twice.Richard M. Stallman1998-02-141-2/+0
|
* (Fposition_bytes): Declare arg POSITION as Lips_Object.Kenichi Handa1998-02-101-0/+1
|
* (Fposition_bytes): Allow marker as arg POSITION. UseKenichi Handa1998-02-101-2/+2
| | | | XINT for type consistency.
* (Fformat): Handle a symbol of which name containsRichard M. Stallman1998-02-081-4/+26
| | | | multibyte characters correctly.
* (Fsubst_char_in_region): Handle character-baseKenichi Handa1998-02-041-13/+13
| | | | | position and byte-base position correctly. (Fstring_to_char): Give byte size to STRING_CHAR.
* (Fformat): If MULTIBYTE is changed to 1Richard M. Stallman1998-02-031-6/+25
| | | | after we start computing TOTAL, jump back to `retry' (a new label).
* (CONVERTED_BYTE_SIZE): Fix the logic.Kenichi Handa1998-01-301-4/+11
| | | | | (Fformat): Update the variable MULTIBYTE according to the result of Fprin1_to_string. Free BUF after making Lisp string from it.
* Update copyright year.Richard M. Stallman1998-01-211-1/+1
|
* (Fsave_current_buffer): Use set_buffer_if_live.Richard M. Stallman1998-01-211-1/+1
|
* (Fchar_equal): Fix case-conversion code.Richard M. Stallman1998-01-201-4/+11
|
* (Fformat): Do all the work directly--don't use doprnt.Richard M. Stallman1998-01-091-133/+157
| | | | | | Calculate the right size the first time, so no need to retry. Count chars and bytes in the result. Convert single-byte strings to multibyte as needed.
* (transpose_markers): Update marker's bytepos.Richard M. Stallman1998-01-021-2/+1
|
* (Fchar_after): Fix previous change.Richard M. Stallman1998-01-021-1/+1
|
* (Fgoto_char): When arg is a marker, copy char and byteRichard M. Stallman1998-01-011-170/+220
| | | | | | | | | | | | | | | | | | positions from it. When arg is an integer, no need to worry that it is in middle of a character. (buildmark): Take 2 args (charpos and bytepos). Callers changed. (Fline_beginning_position): Save and restore both kinds of PT. (Fprevious_char): Use PT_BYTE. (Fbolp, Feolp): Use PT_BYTE. (transpose_markers): Take args in chars and bytes. (Ftranspose_regions): Work with byte and char positions. (Fchar_after, Fchar_before): Use bytepos. (make_buffer_string): Convert charpos to bytepos. (Fcompare_buffer_substrings): Work with charpos and bytepos. (Fsubst_char_in_region): Handle charpos and bytepos. (Fwiden, Fnarrow_to_region): Likewise. (save_restriction_restore): Update PT and PT_BYTES. Cast arg to doprnt_lisp.
* (emacs_strftime): New decl.Paul Eggert1997-11-241-4/+6
| | | | | (Fformat_time_string): Doc fix: %b, %h, %B, %a, %A, and %p depend on locale; don't use actual chars to describe %n and %t.
* (Fchar_to_string): Declare `workbuf' as unsigned char.Andreas Schwab1997-11-211-3/+5
| | | | | (general_insert_function): Likewise. Protoize parameters. Define as returning nothing.
* (Fsref): If IDX points an 8-bit code which is not partKenichi Handa1997-11-081-4/+20
| | | | | of multibyte characters, return it. Pay attention to enable-multibyte-characters.
* Repeat the argument list of format-time-string in theKarl Heuer1997-10-021-0/+1
| | | | comment for make-docstring.
* (NULL): Define, if not defined.Richard M. Stallman1997-08-201-0/+4
|
* (Fchar_before): Do range check before decrement.Richard M. Stallman1997-08-181-4/+3
|
* (Fwiden, Fnarrow_to_region, save_restriction_restore):Richard M. Stallman1997-08-071-3/+13
| | | | Don't set clip_changed if the new values are the same as the old.
* (Fformat_time_string): Don't hang if strftime producesRichard M. Stallman1997-07-291-4/+3
| | | | | an empty string. Fix arguments of second call to strftime. Remove check for result being negative, this cannot happen.
* (Fcurrent_message): New function.Richard M. Stallman1997-07-241-0/+10
| | | | (syms_of_editfns): defsubr it.
* (get_system_name): Don't crash if Vsystem_name does not contain a string.Richard M. Stallman1997-07-121-1/+4
|
* (Fcurrent_time_zone): Convert Fmake_list argument to Lisp_Integer.Richard M. Stallman1997-07-121-6/+11
| | | | (Ftranspose_regions): Convert Fset_text_properties arguments to Lisp_Integer.
* (Fuser_full_name): Declare p, q and r as unsigned char *.Richard M. Stallman1997-07-071-2/+2
|
* Fix bugs with inappropriate mixing of Lisp_Object with int.Richard M. Stallman1997-07-041-2/+2
|
* (Fformat): Add second argument in call to Ftruncate.Richard M. Stallman1997-07-041-1/+1
|
* (Fformat_time_string): Move doc string outside DEFUN.Richard M. Stallman1997-07-011-1/+6
|