1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 15:30:29 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Richard M. Stallman
1389ad718c (marker_byte_position): Renamed from marker_position.
(marker_position): New function returns the charpos.
(Fbuffer_has_markers_at): Test the marker's charpos.
(set_marker_restricted, Fset_marker): Set both kinds of position.
Optimize case where POSITION is a marker.
(set_marker_both, set_marker_restricted_both): New functions.
(Fmarker_position): Use the charpos.

(charpos_to_bytepos, bytepos_to_charpos): New functions.
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): New functions.
1998-01-01 02:35:09 +00:00
Richard M. Stallman
12adba3450 (redisplay_internal): Use scan_newline.
(try_window_id): Use scan_newline.
(display_text_line): Use scan_newline.

(pos_tab_indent): Moved from indent,c.  Now static.
Take POS in bytes and chars.  Callers changed.

(redisplay_window): Handle byte and char positions.
(try_window): Don't move W->start if it's already at right place.

(display_count_lines): Several changes in args.
Do the work directly.
(display_scan_buffer): Function deleted.
(decode_mode_spec): Pass new arg.
(message_log_check_duplicate): Take charpos and bytepos args.
(message_dolog): Use markers to update old PT, BEGV, ZV.
Use scan_newline.  Handle positions in bytes and chars.

(try_window): Pass bytepos to and from display_text_line.
(try_window_id): Likewise.  Use byte pos as well as charpos.
(redisplay_internal): Handle bytepos for tlbufpos.

(message): Cast last arg to doprnt.
1998-01-01 02:27:27 +00:00
Richard M. Stallman
b73ea88edf (unshow_buffer): Set PT with TEMP_SET_PT_BOTH.
(Fset_window_buffer): Use set_marker_both.
(Fselect_window, Fscroll_other_window, save_window_save): Likewise.
(Fset_window_configuration): Pass p->mark itself to Fset_marker
and set_marker_restricted_both.
(temp_output_buffer_show): Use set_marker_restricted_both.
(window_scroll): Save and restore both kinds of pointers.

(Fdelete_other_windows): Rely on vmotion to give bytepos.
Use set_marker_both.  Use byte positions.
(Frecenter): Likewise.
(Fmove_to_window_line): Use set_marker_both and Fgoto_char.
1998-01-01 02:07:14 +00:00
Richard M. Stallman
6ae1f27ebf (Fchars_in_string): Update call to CHAR_HEAD_P.
(chars_in_text, str_cmpchar_id, Fcompose_string): Likewise.

(Fchar_boundary_p): Always return 0.
(Fchars_in_region): Just subtract the arguments.
(chars_in_text): New function.
(Ffind_charset_region): Scan in bytepos as well as charpos.
1997-12-31 22:18:06 +00:00
Richard M. Stallman
ec7adf2664 (Finsert_file_contents): Update call to CHAR_HEAD_P.
(Fwrite_region): Use scan_newline.

(restore_point_unwind): Now static.  Use Fgoto_char.
(Funhandled_file_name_directory): Doc fix.
(Finsert_file_contents): Handle bytes vs chars.
(Fwrite_region): Handle bytes vs chars.
(a_write): Take args in bytes; handle annotations labeled in chars.
(e_write): Rename args.
(Funhandled_file_name_directory): Doc fix.
(a_write, e_write): Now static.
1997-12-31 22:16:35 +00:00
Richard M. Stallman
a9c26562b3 (Fminibuffer_complete_word): Handle bytes vs characters
when comparing buffer against string.
(temp_echo_area_glyphs): Save, update, delete text using
byte and char positions.
(read_minibuf): BACKUP_N counts bytes.
1997-12-31 21:56:00 +00:00
Richard M. Stallman
c399b46133 (CHAR_HEAD_P): Take char, not pointer, as arg.
(INC_POS, DEC_POS): Fix because arg is a bufpos.
(BUF_INC_POS, BUF_DEC_POS): New macros.
(INC_BOTH, DEC_BOTH): New macros.
1997-12-31 21:49:31 +00:00
Richard M. Stallman
a50545d958 (doprnt1): Call to CHAR_HEAD_P fixed. 1997-12-31 21:48:28 +00:00
Richard M. Stallman
aa406bac5f (describe_abbrev): Return void.
(write_abbrev): Return void.
(Fexpand_abbrev): Scan in bytepos along with charpos.
(Funexpand_abbrev): Use bytepos to delete the expansion.
1997-12-31 05:05:32 +00:00
Richard M. Stallman
92bb366afa (LIB_MOTIF): Define, if HAVE_LIBINTL.
(LIBX11_SYSTEM): Undo previous change.
1997-12-31 04:44:31 +00:00
Richard M. Stallman
fcf01ad3f0 (abort): New function. 1997-12-30 19:01:13 +00:00
Richard M. Stallman
2d60724455 (Fcall_process): Cast new_argv for child_setup. 1997-12-28 19:19:00 +00:00
Richard M. Stallman
88623f1c40 (Fx_rotate_cut_buffers_internal): Doc fix. 1997-12-28 19:06:57 +00:00
Richard M. Stallman
6dd05c14f2 (Fread_command, Fread_variable): Fix previous change. 1997-12-27 08:16:00 +00:00
Richard M. Stallman
96f9054416 (Ftext_properties_at): Doc fix. 1997-12-26 22:51:41 +00:00
Richard M. Stallman
fad1559b93 Declare nonascii_insert_offset. 1997-12-26 20:45:22 +00:00
Richard M. Stallman
d2e9bfae62 (HAVE_STRING_H): Add #undef.
[HAVE_STRING_H]: Include string.h.
1997-12-26 10:41:25 +00:00
Richard M. Stallman
dd9cda060f (Vminor_mode_overriding_map_alist): New variable.
(syms_of_keymap): Set up Lisp var.
(current_minor_maps): Use Vminor_mode_overriding_map_alist first,
then Vminor_mode_map_alist.
1997-12-26 10:38:56 +00:00
Richard M. Stallman
beffc8bb49 (LIBX11_SYSTEM) [HAVE_LIBINTL and MOTIF]: Add -lintl. 1997-12-21 02:44:46 +00:00
Richard M. Stallman
a3b81f96df (HAVE_LIBINTL): Add #undef. 1997-12-21 02:44:20 +00:00
Richard M. Stallman
3b4490b3d1 (message2_nolog): Fix arg types. 1997-12-21 02:32:45 +00:00
Richard M. Stallman
e5c992983c (sys_signal): Undo previous change. 1997-12-21 02:28:52 +00:00
Richard M. Stallman
a59b172a76 (Fexecute_extended_command):
Save message_enable_multibyte and pass it to message2_nolog.
1997-12-21 02:19:17 +00:00
Richard M. Stallman
7da0b0d356 (Fgarbage_collect):
Save message_enable_multibyte and pass it to message2_nolog.
1997-12-21 02:17:50 +00:00
Richard M. Stallman
44461111ef (message2_nolog): New arg MULTIBYTE.
(message2): Pass new arg to message2_nolog.
(message1_nolog): Likewise.
1997-12-21 02:17:16 +00:00
Richard M. Stallman
30c6e0629b (Fexecute_extended_command):
Save and restore message_enable_multibyte.
1997-12-21 02:12:03 +00:00
Richard M. Stallman
7317d9e8fc (Vsignal_USR1_hook, Vsignal_USR2_hook): New variables.
(syms_of_emacs): Set up Lisp variables.
(handle_USR1_signal, handle_USR2_signal): New signal handlers.
(main): Set up signal handlers.
1997-12-21 02:06:32 +00:00
Richard M. Stallman
045226c75c (x_display_cursor): Abort if X or Y is out of range. 1997-12-21 01:59:49 +00:00
Richard M. Stallman
47ab3db57b Comment changes. 1997-12-21 01:57:48 +00:00
Richard M. Stallman
bff37d2a0c (Fparse_partial_sexp): Return nil for 9th element
whenever not inside a string or a comment.
1997-12-21 01:57:32 +00:00
Richard M. Stallman
7c8d993103 (Fread_variable): If DEFAULT_VALUE is symbol, use its name.
(Fread_command): Likewise.
1997-12-21 01:44:07 +00:00
Richard M. Stallman
644ea4df73 Comment and whitespace changes. 1997-12-21 01:34:37 +00:00
Richard M. Stallman
bab29e15c4 (message_dolog): Update PT and ZV properly when at end of
buffer, when we convert between multibyte and single-byte.
Properly initialize i.

(message_dolog): Convert between single-byte and multibyte
when inserting text into *Messages*.
1997-12-21 01:20:26 +00:00
Karl Heuer
eebbfb0117 (Vread_buffer_function): New var.
(syms_of_minibuf): Set up Lisp var.
(Fread_buffer): Use Vread_buffer_function.
1997-12-19 14:54:55 +00:00
Karl Heuer
a2825280f1 (sys_signal): Add two casts. 1997-12-11 07:22:21 +00:00
Karl Heuer
eead07d624 (GROW_FAIL_STACK): Fix test for stack size at max. 1997-12-11 07:21:05 +00:00
Karl Heuer
6453db4572 (GROW_FAIL_STACK): Fix previous change:
update (fail_stack).size properly.
1997-12-09 23:04:38 +00:00
Karl Heuer
320a2a7349 (TYPICAL_FAILURE_SIZE): Renamed from MAX_FAILURE_ITEMS.
Define it simply as a number.
(DOUBLE_FAIL_STACK, regex_compile): Set the limit at the size
TYPICAL_FAILURE_SIZE specifies, rather than at twice that much.
(re_max_failures): Double the initial values.
(INIT_FAIL_STACK): Use TYPICAL_FAILURE_SIZE so that INIT_FAILURE_ALLOC
counts in the proper units.
(INIT_FAILURE_ALLOC): Increase to 20.
(FAIL_STACK_GROWTH_FACTOR): New macro.
(GROW_FAIL_STACK): Renamed from DOUBLE_FAIL_STACK.
FAIL_STACK_GROWTH_FACTOR controls what ratio to increase size by.
1997-12-09 23:01:27 +00:00
Karl Heuer
db54baaa69 (Fcall_process): Don't clobber new_argv[0]
in the case of no args.
1997-12-09 22:47:45 +00:00
Kenichi Handa
bbd29cfebd (Fcall_process): Set Vlast_coding_system_used after
reading from the process.
1997-12-09 04:12:03 +00:00
Kenichi Handa
3fac5a51f7 (Fget_unused_iso_final_char): New function.
(syms_of_charset): Declare it as a Lisp function.
1997-12-09 04:12:03 +00:00
Kenichi Handa
774324d66c (setup_coding_system): Do not set
Vlast_coding_system_used here.
(decode_coding_sjis_big5): Decode Big5 text of CR only end-of-line
correctly.
1997-12-09 04:12:03 +00:00
Kenichi Handa
486b111b20 (read_process_output): Fix previous change, i.e, if
proc_encode_coding_system[p->outfd] is NULL, instead of allocating
`struct coding_system' for encoding, just skip setting up coding
system for encoding.  Set Vlast_coding_system_used after some text
is read.
(send_process): Set Vlast_coding_system_used after deciding a
coding system to be used for encoding.
1997-12-09 04:12:03 +00:00
Kenichi Handa
b56567b5fd (Finsert_file_contents): Set Vlast_coding_system_used
before calling Vafter_insert_file_functions.
(Fwrite_region): Set Vlast_coding_system_used after deciding a
coding system to be used for encoding.
1997-12-09 04:12:03 +00:00
Kenichi Handa
ee11256720 (Fexecute_extended_command): Fix previous change. 1997-12-08 06:58:14 +00:00
Karl Heuer
ea4496e6c5 (read_process_output): Allocate for coding system, if
not already done.
1997-12-08 01:35:12 +00:00
Karl Heuer
03effc232e (main): Fix the stack-limit code to calculate
the ratio for re_max_failures accurately and leave some extra slack.
1997-12-04 05:53:41 +00:00
Karl Heuer
83f0c0c72d (Feval_region): Doc correction (point does not move). 1997-12-04 04:49:06 +00:00
Karl Heuer
23ce248659 Fix comment (avoid spurious "unterminated comment" warning) 1997-12-04 03:36:09 +00:00
Karl Heuer
cd67c79783 Comment fix (to avoid "unterminated comment" warning). 1997-12-04 03:30:03 +00:00