Kenichi Handa
de9d083c5d
(shrink_decoding_region): If EOL_CONVERSION is nonzero,
...
don't skip `\r' (instead of `\n').
1998-03-24 05:41:38 +00:00
Kenichi Handa
cbc1b668f3
(record_delete): Record last_point_position when there's
...
no record other than marker adjustment before undo boundary.
1998-03-24 05:41:38 +00:00
Andreas Schwab
0915568920
(popup_get_selection): On receiving a KeyPress event
...
only deactivate the menu when the key is not a modifier key.
1998-03-23 13:02:15 +00:00
Andreas Schwab
c33be4add6
(Fx_create_frame): Use "borderWidth", not "borderwidth",
...
as resource name, to be consistent with other X applications.
1998-03-23 12:56:25 +00:00
Richard M. Stallman
8ec5a40461
(Fdirectory_files): In FULL case, compute number of characters
1998-03-21 18:23:09 +00:00
Richard M. Stallman
b10b2daa18
(substring_both, Fsubstring): Use make_specified_string.
...
(concat): Make string result unibyte or multibyte as appropriate.
1998-03-21 18:09:01 +00:00
Richard M. Stallman
763401461f
(syms_of_sunfns): Pass new arg to make_pure_string.
1998-03-21 18:07:27 +00:00
Richard M. Stallman
c0696668ad
(make_specified_string): New function.
...
(make_string_from_bytes): New function.
(compact_strings): Get byte size from size, if size_byte < 0.
(Fmake_string): Use make_uninit_string for single-byte char.
(make_unibyte_string): Mark string as unibyte.
(make_uninit_string): Likewise.
(make_string): Likewise, if size == size in bytes.
(make_pure_string): New arg MULTIBYTE.
(Fpurecopy): Pass new arg to make_pure_string.
1998-03-21 18:07:06 +00:00
Richard M. Stallman
5f75e6660f
(Fchar_to_string): Use make_string_from_bytes.
...
(Fformat): Use make_specified_string.
(make_buffer_string_both): Use make_uninit_string if buffer is unibyte.
1998-03-21 18:05:29 +00:00
Richard M. Stallman
7d3d343a93
(casify_object): Use make_specified_string.
1998-03-21 18:02:09 +00:00
Richard M. Stallman
2780260006
(Fstring): Use make_string_from_bytes.
...
(Fcompose_string): Likewise.
1998-03-21 18:00:38 +00:00
Richard M. Stallman
f34206b459
(internal_self_insert): Use make_string_from_bytes.
1998-03-21 18:00:19 +00:00
Richard M. Stallman
bbdf84bda7
(code_convert_string): Use make_string_from_bytes.
1998-03-21 17:59:48 +00:00
Richard M. Stallman
cc5bf9eb92
(Fsubstitute_command_keys): Use make_string_from_bytes.
1998-03-21 17:59:22 +00:00
Richard M. Stallman
491f16a288
(read1): Pass new arg to make_pure_string.
...
(make_symbol): Likewise.
(init_obarray): Likewise.
(read1): Use make_specified_string.
1998-03-21 17:52:08 +00:00
Richard M. Stallman
9dffd51146
(PRINTPREPARE): Use make_string_from_bytes.
1998-03-21 17:51:30 +00:00
Richard M. Stallman
e6e5ac6800
(read_process_output): Use make_string_from_bytes.
1998-03-21 17:50:30 +00:00
Richard M. Stallman
3f8100f1d8
(Fregexp_quote): Use make_specified_string.
1998-03-21 17:50:03 +00:00
Richard M. Stallman
c98265b836
(selection_data_to_lisp_data): Use make_string_from_bytes.
1998-03-21 17:49:39 +00:00
Richard M. Stallman
2a1d8be0dc
(insert_from_string_1, replace_range):
...
Use STRING_MULTIBYTE to determine whether string is multibyte.
1998-03-21 17:48:54 +00:00
Richard M. Stallman
dc3620af1b
Use STRING_BYTES and SET_STRING_BYTES.
...
(Ftranspose_regions): Try to handle combining bytes.
1998-03-21 07:06:55 +00:00
Richard M. Stallman
fc932ac6c7
Use STRING_BYTES and SET_STRING_BYTES.
1998-03-21 07:06:14 +00:00
Richard M. Stallman
de57a39c28
Don't include puresize.h any more as code that needs it
...
has moved to keyboard.c.
(menu_item_equiv_key, menu_item_enabled_p_1, menu_item_enabled_p):
Functions deleted; code moved to parse_menu_item in keyboard.c.
(single_keymap_panes): Large part of code moved to single_menu_item.
(single_menu_item): New function that uses parse_menu_item.
(Qmenu_alias): Variable deleted.
(QCtoggle, QCradio): New variables.
(syms_of_xmenu): Change initializations of variables.
1998-03-21 06:01:22 +00:00
Richard M. Stallman
a3fc8840a3
(fix_submap_inheritance, get_keyelt, store_in_keymap,
...
copy-keymap, where_is_internal_1): Support new format for menu items.
(syms_of_keymap): New symbol `menu-item'.
1998-03-21 05:53:36 +00:00
Richard M. Stallman
e8886a1d99
Include puresize.h for CHECK_IMPURE.
...
(parse_menu_item): New function.
(menu_item_eval_property_1, menu_item_eval_property) New suroutines.
(menu_bar_one_keymap): Moved some code to menu_bar_item.
(menu_bar_item): Rewritten to use parse_menu_item.
(menu_bar_item_1): Function deleted.
(QCenable, QCvisible, QChelp, QCfilter, QCbutton, QCtoggle, QCradio):
(Qmenu_alias): New variables.
(syms_of_keyboard): Initialize them, and item_properties.
1998-03-21 05:49:49 +00:00
Richard M. Stallman
2db5082ff4
(replace_range): New arg NOMARKERS.
1998-03-21 05:48:03 +00:00
Richard M. Stallman
aab28f4722
(internal_self_insert): Pass new arg to replace_range.
1998-03-21 04:45:12 +00:00
Richard M. Stallman
e928d437c2
(record_delete): Replace LENGTH arg with STRING.
...
(record_change): Call record_delete the new way.
1998-03-21 03:58:00 +00:00
Richard M. Stallman
628cea90f1
(insert_1_both, insert_from_string_1, insert_from_buffer_1):
...
(adjust_before_replace, adjust_after_replace, replace_range):
(del_range_2): Call record_delete the new way.
Use make_buffer_string_both to make the string to pass.
1998-03-21 03:57:35 +00:00
Richard M. Stallman
88441c8eb8
(make_buffer_string_both): New function.
...
(make_buffer_string): Use make_buffer_string_both.
1998-03-21 02:57:08 +00:00
Richard M. Stallman
a42fefa844
(keymap.o): Depend on puresize.h.
...
(xmenu.o): Don't depend on puresize.h.
1998-03-20 22:38:54 +00:00
Richard M. Stallman
7cc3983fcb
(del_range_2): Use adjust_markers_for_record_delete.
...
(adjust_markers_for_delete): Delete unused local coming_gap_size.
(adjust_markers_for_record_delete): New function.
(insert_1_both, insert_from_string_1, insert_from_buffer_1)
(adjust_after_replace, replace_range):
Use adjust_markers_for_record_delete.
1998-03-20 06:10:36 +00:00
Richard M. Stallman
171d003c94
(window_display_table): Don't look inside buffer if its nil.
1998-03-20 05:11:27 +00:00
Richard M. Stallman
72ef82ec68
(Fgoto_char): If POSITION is a marker pointing a
...
different buffer, don't rely on the byte position of the marker.
1998-03-20 05:00:31 +00:00
Richard M. Stallman
25c9e7fbd7
(Fformat): Handle padding before or after, for %s etc.
...
Treat 0 like a multibyte char in %c.
1998-03-20 04:59:15 +00:00
Richard M. Stallman
bd26d5a361
(get_boot_time): Conditionalize on BOOT_TIME.
...
(lock_file_1): Add boot-time to lock only if available.
1998-03-19 21:19:07 +00:00
Kenichi Handa
1d10ac5b4b
(read1): Call multibyte_chars_in_text
...
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
1998-03-19 07:34:29 +00:00
Kenichi Handa
bab9ce2f56
(byte_char_debug_check): Call multibyte_chars_in_text
...
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
1998-03-19 07:34:29 +00:00
Kenichi Handa
88ab3cc133
(Fstring_as_multibyte): Call multibyte_chars_in_text
...
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
1998-03-19 07:34:29 +00:00
Richard M. Stallman
15e88d2198
(current_lock_owner): If lock file data doesn't include
...
the uptime, assume the lock is from this system boot.
(get_boot_time): New function.
(lock_file_1): Include boot time in the lock text.
(current_lock_owner): Parse and compare the boot time.
1998-03-19 06:32:34 +00:00
Richard M. Stallman
93d75e4c43
(read0): Swap args to Fmake_string.
1998-03-18 06:11:03 +00:00
Richard M. Stallman
57ca985523
(syms_of_callproc): Doc fixes.
1998-03-18 01:52:57 +00:00
Richard M. Stallman
1fd3172dd4
(Fbackward_prefix_chars): Set point properly while scanning.
...
(scan_sexps_forward): Make INC_FROM do UPDATE_SYNTAX_TABLE_FORWARD.
Delete the explicit calls to UPDATE_SYNTAX_TABLE_FORWARD.
Also set prev_from_syntax (new local var). Test that in the loop,
instead of fetching syntax of the previous char.
1998-03-18 00:11:33 +00:00
Richard M. Stallman
98bcfee8fe
(SYNTAX_FLAGS_COMSTART_FIRST): New macro.
...
(SYNTAX_FLAGS_COMSTART_SECOND): Likewise.
(SYNTAX_FLAGS_COMEND_FIRST, SYNTAX_FLAGS_COMEND_SECOND): Likewise.
(SYNTAX_FLAGS_PREFIX, SYNTAX_FLAGS_COMMENT_STYLE): Likewise.
1998-03-17 23:58:13 +00:00
Richard M. Stallman
d0183d383d
(Fformat): Properly print floats.
1998-03-17 08:16:35 +00:00
Richard M. Stallman
85cac557cd
(Fchar_after, Fchar_before): Properly check arg type
...
and whether in range, for all cases.
(Fsave_excursion): Doc fix.
1998-03-17 07:25:54 +00:00
Richard M. Stallman
f405b38dd1
Fstore_match_data => Fset_match_data.
1998-03-17 06:49:26 +00:00
Richard M. Stallman
478292ed62
(Frecenter): Operate on window's buffer even if some other was current.
...
(Fwindow_end): New arg UPDATE.
(Fset_window_configuration): Don't call do_switch_frame
or run Qwindow_configuration_change_hook if frame is dead.
1998-03-17 06:48:12 +00:00
Kenichi Handa
e3a87305b8
(ADJUST_CHAR_POS): New macro.
...
(combine_bytes): Use the macro ADJUST_CHAR_POS.
(adjust_after_replace): New arg REPLACE. If it is zero, give LEN
as the arg LENGTH to offset_intervals.
(del_range_2): Give correct args to count_combining_before and
combine_bytes. Adjust the gap position after record_delete if
necessary. Give character position to adjust_overlays_for_delete.
1998-03-16 05:51:07 +00:00
Kenichi Handa
6e44253b80
(code_convert_region): The 6th arg name is changed to
...
REPLACE. Even if there's no need of code conversion, call
adjust_after_replace to handle bytes combining.
1998-03-16 05:51:07 +00:00