Commit graph

10633 commits

Author SHA1 Message Date
Andreas Schwab 5bf68f6e34 (Qusr1_signal, Qusr2_signal): New variables.
(syms_of_keyboard): Initialize them.
(lispy_user_signals): New variable.
(make_lispy_event): Handle user_signal event type.
1999-02-22 10:05:43 +00:00
Andreas Schwab e2fa15ffaa Don't define Qusr1_signal and Qusr2_signal.
(syms_of_emacs): Don't initialize them.
(handle_USR1_signal, handle_USR2_signal): Set event type to
user_signal instead of non_ascii_keystroke, and use plain integers
as code instead of Lisp symbols.
1999-02-22 10:04:28 +00:00
Richard M. Stallman e9f22ced2f (get_boot_time_1): Put this in #ifdef BOOT_TIME. 1999-02-21 19:57:34 +00:00
Richard M. Stallman 8c29413d71 (print_error_message): Don't crash if (cdr data) is not a list. 1999-02-21 19:56:08 +00:00
Eli Zaretskii 8f6df9b587 (lstat) [!S_ISLNK]: Use stat instead of lstat. 1999-02-21 16:36:07 +00:00
Andrew Innes b78e8d0afb (memory_warnings) [WINDOWSNT]: Reset lim_data on each
run, since size can vary from run to run.
1999-02-20 20:50:20 +00:00
Andrew Innes 2b9a4fe9b8 (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
data is included, to enable profiling.
($(EMACS)): Map file not needed for emacs.exe.
1999-02-20 20:48:10 +00:00
Andrew Innes f5a3c8c45d (main): [!SYSTEM_MALLOC]: Call realloc and free as well
as malloc before calling uninterrupt_malloc, for consistency.
This also enables profiling to work on WINDOWSNT.
1999-02-20 20:43:58 +00:00
Richard M. Stallman b81ea5ef1d (syms_of_process): defsubr it.
(Fprocess_running_child_p): New function.

(process_send_signal): If CURRENT_GROUP is `lambda'
then don't send the signal if the shell owns the terminal.
(Finterrupt_process): Doc change.
1999-02-19 01:39:27 +00:00
Richard M. Stallman a028e993f8 (emacs.o): Depend on termhooks.h.
(filelock.o): Depend on systime.h.
1999-02-19 01:37:28 +00:00
Richard M. Stallman 9177d97852 (within_one_second): New function.
(current_lock_owner): Use that.
(get_boot_time): Use /proc/uptime if available.
Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
(get_boot_time_1): New subroutine taken from get_boot_time.
1999-02-19 01:36:29 +00:00
Richard M. Stallman 5bda49c640 (Qusr1_signal, Qusr2_signal): New variables.
(syms_of_emacs): Init and staticpro them.
(handle_USR1_signal): Don't run any code, just queue up an event.
(handle_USR2_signal): Likewise.
1999-02-19 01:34:48 +00:00
Kenichi Handa 9da8350f2e (Fdecode_sjis_char): In case of error, use %x for
formatting error message.
(Fdecode_big5_char): Likewise.
1999-02-18 12:52:07 +00:00
Richard M. Stallman c8a3c7eb27 (adjust_markers_for_replace): When doing an insertion
(replacing a region of zero length), handle markers at the
insertion point properly.
1999-02-18 05:40:34 +00:00
Andrew Innes 7d08135584 (Vw32_quit_key): New variable.
(post_character_message): Use it.
(syms_of_w32fns): DEFVAR it.
1999-02-17 12:47:59 +00:00
Kenichi Handa c22554ac39 (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'. 1999-02-17 08:12:31 +00:00
Eli Zaretskii cb1846b412 (Ffile_attributes): If the file's size doesn't fit in
an integer, return it as a float.  Doc string fixed.
1999-02-16 08:25:51 +00:00
Kenichi Handa c28a9453f6 (Fdecode_sjis_char, Fencode_sjis_char): Hanlde
ASCII correctly.  Signal error on invalid characters.
(Fdecode_big5_char, Fencode_big5_char): Likewise.
1999-02-16 01:38:01 +00:00
Eli Zaretskii cc6d8c5b60 (get_clipboard_data): Work around a bug in Windows95
DOS box which doubles the reported size of text in the clipboard.
1999-02-15 15:14:47 +00:00
Kenichi Handa a63063ae57 (decode_coding_iso2022): Don't set coding->composed_chars to 0 here.
(setup_coding_system): Set coding->composed_chars to 0 here.
1999-02-15 10:47:36 +00:00
Richard M. Stallman 5057be3e8c (Ffile_regular_p): Use lstat. 1999-02-13 16:36:24 +00:00
Richard M. Stallman 72443547c2 (HAS_SBSS_SECTION): Define this in some cases.
(unexec): Test this instead of specific systems.
1999-02-10 03:02:01 +00:00
Dave Love 0c6ca44b7a (Fyes_or_no_p, Fy_or_n_p): Doc fix. 1999-02-08 13:59:24 +00:00
Kenichi Handa 489427668f (ccl_coding_driver): On encoding, coding->produced_char
should be set to coding->produced.
1999-02-08 11:06:56 +00:00
Paul Fisher 9a092df081 (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
(base64_decode_1): Use READ_QUADRUPLET_BYTE.
1999-02-07 23:58:09 +00:00
Richard M. Stallman d6c0ea9945 (Fformat): Doc fix. 1999-02-07 06:28:54 +00:00
Andrew Innes fb9cc9cc6e (construct_drag_n_drop): Call DraqQueryPoint before
recording drop position.
1999-02-05 17:49:04 +00:00
Kenichi Handa f3ac545f7d (encode_terminal_code): Fix previous change. 1999-02-05 05:40:27 +00:00
Kenichi Handa 3efbce959e (encode_coding_iso2022): Before writing out an invalid
code, reset glaphic planes and registers if necessary.
1999-02-05 05:39:58 +00:00
Eli Zaretskii 5033894e97 (last_clipboard_text, clipboard_storage_size): New
static variables.
(set_clipboard_data): Save a copy of the text we put into
clipboard in last_clipboard_text.
(get_clipboard_data): If the clipboard text is identical to what
last_clipboard_text holds, pretend there's no data in the
clipboard.
1999-02-04 15:53:37 +00:00
Richard M. Stallman fc9b48d7f3 (NLIST_STRUCT): Add #undef. 1999-02-04 04:48:24 +00:00
Eli Zaretskii ba92a4701a Fix last change. 1999-02-03 16:40:32 +00:00
Eli Zaretskii c759462781 (Fw16_set_clipboard_data): When the text needs to be
encoded, set its pointer and size as returned by encode_coding.
1999-02-03 14:53:47 +00:00
Kenichi Handa 2db66414f1 (Fset_char_table_default): To handle the case that CH is
an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1999-02-03 02:20:53 +00:00
Andrew Innes 247be83704 (syms_of_w32fns): Change default value of w32-mouse-move-interval to
0, so that the mouse wheel/rocker on some mice works properly.
1999-02-02 14:03:10 +00:00
Eli Zaretskii 0236e3f151 (set_clipboard_data): Correctly null-terminate the
string to be put into the Windows clipboard.  Use xbuf_addr.
1999-02-02 13:43:14 +00:00
Geoff Voelker e6c0f51910 Use full path to temacs.exe when dumping. 1999-02-02 02:59:29 +00:00
Richard M. Stallman 6e553d5e6c (Fset_buffer_multibyte): Error if buffer is multibyte. 1999-02-01 11:17:41 +00:00
Andrew Innes 7fef47a389 (ROUND_UP_DST_AND_ZERO): New macro.
(copy_executable_and_dump_data): Use it to ensure alignment slop
is zeroed.
1999-01-31 21:53:14 +00:00
Richard M. Stallman e90c4fe62a (Fset_window_point): If WINDOW is selected but the
current buffer is not its buffer, don't use Fgoto_char.
1999-01-30 23:45:54 +00:00
Andrew Innes aa7b87b0b2 (init_environment): Change argv[0] to contain the full path to Emacs. 1999-01-30 18:48:57 +00:00
Andrew Innes a3a58294d8 (main): Pass argv to init_environment. 1999-01-30 18:47:52 +00:00
Kenichi Handa d5749adb29 (x_load_font): For the height of font, if normarl ascent and
descent value are larger than those in max_bounds field, use the
former.
1999-01-30 02:37:14 +00:00
Kenichi Handa 715a159be2 (x_new_fontset): For ASCII font, don't use the font name
returned by x_new_font (the resolved one) but use the font name
set in the fontset specification.
1999-01-30 01:46:35 +00:00
Eli Zaretskii 302f2b38d0 (decode_mode_spec_coding): Fix previous change. 1999-01-28 16:30:23 +00:00
Geoff Voelker 5ca0cd71d3 (w32_load_system_font): Do not load unlisted fonts if
list was reliable.
(enum_fontex_cb1, enum_fontex_cb2): New functions.
(w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
(w32_list_synthesized_fonts): New function.
(w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
available instead of EnumFontFamilies.  List synthesized fonts if
Vw32_enable_italics is non-nil.
1999-01-28 04:52:02 +00:00
Richard M. Stallman 5878523b19 (x_set_frame_parameters): gcpro as needed. 1999-01-28 04:01:44 +00:00
Richard M. Stallman 35fc36a16b (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Don't complain if ttcompat does not exist.
1999-01-28 03:49:39 +00:00
Andrew Innes 576ba81cd4 (w32_wnd_proc): Fix bug introduced by previous change;
the lwindow, rwindow and apps keys could not be used as function
keys, because they were being passed to TranslateMessage which
ignores them.  Also, key was being changed to SPC.
1999-01-27 21:53:27 +00:00
Andrew Innes 27d3ec7f87 Do make version comparison as strings. 1999-01-27 21:49:57 +00:00
Eli Zaretskii 20ee919eb4 eol-mnemonic-* variables are now strings, not characters. 1999-01-27 10:09:55 +00:00
Eli Zaretskii 7722baf9b3 (syms_of_coding): eol-mnemonic-* variables are now
strings, not characters.
1999-01-27 10:08:13 +00:00
Eli Zaretskii d24715e869 (decode_mode_spec_coding): Display the EOL type as a string. 1999-01-27 10:06:21 +00:00
Richard M. Stallman 7e8e59d0cd (main): Up-date copyright. 1999-01-26 22:09:40 +00:00
Dave Love 94c7a21474 (syms_of_coding): Doc fix for inhibit-eol-conversion. 1999-01-25 19:00:50 +00:00
Andreas Schwab bfa8ca433a (Fsignal): Move comment to avoid confusing make-docfile. 1999-01-25 09:20:43 +00:00
Richard M. Stallman 7589a1d97e (x_set_frame_parameters): gcpro as needed. 1999-01-25 01:37:58 +00:00
Dave Love c0218e1b54 Comment about unibyte. 1999-01-24 22:37:36 +00:00
Richard M. Stallman 0afc861ba9 (read_key_sequence): Fix previous change. 1999-01-24 20:08:10 +00:00
Richard M. Stallman cf591cc18b (same_x_server): Detect treat ":0" and "unix:0"
as the same.  Treat "myname:0" as the same as those two.
1999-01-24 20:07:05 +00:00
Richard M. Stallman e18e6130fa (x_handle_selection_clear): Don't clear the
selection if Emacs still owns it through a different display.
1999-01-24 20:06:34 +00:00
Karl Heuer ccf89641df (scan_sexps_forward): Delete duplicate code
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
1999-01-22 21:57:43 +00:00
Geoff Voelker 33d52f9c45 (Vw32_bdf_filename_alist): New variable.
(x_destroy_bitmap): Returns void not int.
(x_set_border_pixel): Returns void.
(w32_load_bdf_font): New function.
(w32_load_system_font): New function, was w32_load_font.  List
fonts before loading.  Explicitly set encoding for SJIS fonts.
Set default_ascent to 0 as comment indicates.
(w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
(w32_unload_font): Support BDF fonts.
(w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
Autodetect whether to use koi8-r instead of iso8859-5.
Associate "ksc5601.1987" with HANGUEL_CHARSET.
Associate "ksc5601.1992" with JOHAB_CHARSET.
(x_to_w32_charset): Make consistent with w32_to_x_charset.
(w32_to_x_font): Add resolution.
(x_to_w32_font): Use font resolution to calculate height if supplied.
(w32_font_match): Handle wildcards anywhere within field.
(enumfont_t): Remove unused head pointer.
(enum_font_cb2): Dereference elfLogFont.
(w32_list_bdf_fonts): New function.
(w32_list_fonts): Use one_w32_dispay_info instead of insisting on
valid frame.  Remove MessageBox.  Support BDF fonts.
(Fw32_find_bdf_fonts): New function.
(syms_of_w32fns): Add Vw32_bdf_filename_alist and
Sw32_find_bdf_fonts.
1999-01-22 19:59:22 +00:00
Geoff Voelker 65c4903c49 (W32_TEXTOUT): New macro.
(dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
Simplify baseline calculation.  Detect SJIS by font, not glyph.
Call SetTextAlign.
(syms_of_w32term): Remove "jisx0212-sjis" from
w32-charset-to-codepage-alist.
Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
Add "ksc5601.1992' to w32-charset-to-codepage-alist.
1999-01-22 19:58:37 +00:00
Geoff Voelker 25d9ec8cc4 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
Support BDF fonts.
1999-01-22 19:58:23 +00:00
Geoff Voelker 640ea3c512 Include w32bdf.h.
(W32FontStruct) Add bdf element.
1999-01-22 19:58:10 +00:00
Geoff Voelker f0cd15b5cd Add w32bdf.c and w32bdf.h. 1999-01-22 19:58:01 +00:00
Geoff Voelker 7b416d4284 Initial revision 1999-01-22 19:42:26 +00:00
Andrew Innes 15682d2416 (temacs): Use del to delete file, not rm. 1999-01-21 12:12:24 +00:00
Geoff Voelker a1b9438c25 Remove codepage macros. Remove redundant BIG5 macros.
(dumpglyphs): Move definitions out of block containing goto.
Remove redundant code for BIG5.
Use w32_codepage_for_font instead of
w32_codepage_for_charset.  Add cast to int where float
operation is assigned to int.
(Vw32_charset_to_codepage_alist): New variable.
(w32_codepage_for_charset): Removed.
(w32_codepage_for_font): New function, replacing
w32_codepage_for_charset.
(syms_of_w32term): Add and initialize
w32-charset-to-codepage-alist.
1999-01-19 22:25:33 +00:00
Geoff Voelker a4e691eeeb (x_to_w32_charset): Add iso8859-9.
(w32_to_x_charset): Fix charset mappings.
1999-01-19 22:25:08 +00:00
Richard M. Stallman 27c3b45d28 (re_match_2_internal) [WINDOWSNT & emacs]: Insert QUIT at various places. 1999-01-19 03:24:03 +00:00
Andrew Innes a7325b562f (w32_executable_type): Relax the check to identify
cygwin-compiled applications, because the exact dll name varies
with release.  Now only require the name to start "cygwin".
1999-01-17 19:24:42 +00:00
Andrew Innes a5352d98bb (ROUND_UP):
(ROUND_DOWN): New macros.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(init_heap): New extern.
(data_region_size):
(recreate_heap):
(read_in_bss):
(map_in_heap):
(round_to_next):
(w32_fatal_reload_error):
(get_section_size): Obsolete externs removed.
1999-01-17 19:23:52 +00:00
Andrew Innes 30d2b1c27b (RVA_TO_PTR): Redefine to convert RVA to address in
current process.
(round_to_next): Obsolete function removed.
(preload_heap_section): New variable.
(data_region_size): Obsolete variable removed.
(allocate_heap): Modified to determine end of static heap section
used during preload, and use that as initial base address for
dynamic heap instead of hard-coded value.
(sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
calls to commit or decommit pages when allocating from static heap
section during preload.
(recreate_heap): Obsolete function removed.
(init_heap): New function to initialize internal sbrk heap
variables.  Uses static heap section during preload, otherwise
calls allocate_heap to reserve a heap region dynamically.
(round_heap): Use ROUND_UP macro instead of round_to_next.
1999-01-17 19:22:55 +00:00
Andrew Innes 5b79dba5b9 Major rewrite to support cleaner method of dumping; a
static "bss" section is used for heap space during preload, and
bss data is now written to the proper section area when dumping.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(heap_index_in_executable): Obsolete variable removed.
(data_section): New variable.
(data_start_va): Renamed to data_start.
(data_start_file): Obsolete variable removed.
(bss_section):
(extra_bss_size):
(bss_section_static):
(bss_start_static):
(bss_size_static):
(extra_bss_size_static):
(heap_section): New variables.
(_start): Remove code based on old unexec method.  Call init_heap
to initialize sbrk heap.
(close_file_data): Update size of file when closing, so that
unexec doesn't have to work out exact size in advance.
(get_bss_info_from_map_file):
(get_section_size): Obsolete functions removed.
(rva_to_section): Fix minor bug, and add a work-around for a bug
in very old linkers.
(offset_to_section):
(relocate_offset): New functions.
(OFFSET_TO_RVA):
(RVA_TO_OFFSET):
(RVA_TO_SECTION_OFFSET):
(PTR_TO_RVA):
(PTR_TO_OFFSET):
(OFFSET_TO_PTR): New macros.
(get_section_info): Modify to support new unexec method;
determines address ranges in process that need dumping, and COFF
sections where data will be dumped.  Allows for static and global
bss data to be in separate ranges.  No longer relies on knowledge
of section names.
(copy_executable_and_dump_data_section): Renamed
copy_executable_and_dump_data.  Completely rewritten to copy
executable section by section, so that raw data areas can be
expanded to hold dumped data as necessary.  Allows for bss data to
be in same section as initialized data.  Reduces size of static
heap section to that used during preload.
(dump_bss_and_heap):
(w32_fatal_reload_error):
(read_in_bss):
(map_in_heap): Obsolete functions removed.
(unexec): Rounds off preload heap to nearest page rather than
virtual allocation unit.  Modified to match other changes.
1999-01-17 19:21:24 +00:00
Andrew Innes 3bc2366f3c (get_lim_data): Use reserved_heap_size instead of
data_region_size.
1999-01-17 19:18:38 +00:00
Andrew Innes ea01f00222 (TEMACS_TMP): New macro.
($(TEMACS)): Output to TEMACS_TMP from link, use post-link
processor to add static heap section in support of new unexec.
1999-01-17 19:17:43 +00:00
Andrew Innes cfe8de4370 Include config.h to pick up data layout pragmas.
[WINDOWSNT]: Remove explicit pragma.
1999-01-17 19:16:08 +00:00
Kenichi Handa 55ab7be3ac (Fdecode_sjis_char): Decode Japanese Katakana character
correctly.
(Fencode_sjis_char): Encode Japanese Katakana character correctly.
1999-01-14 01:20:35 +00:00
Dave Love f07f4a2430 (syms_of_coding): Doc fix for inhibit-eol-conversion. 1999-01-11 21:21:03 +00:00
Richard M. Stallman 9b942ebd48 (find_handler_clause): If SIG is nil (memory full error),
never run the debugger, and don't bother checking the args
to see whether the debugger should be run.
1999-01-11 18:09:31 +00:00
Richard M. Stallman c700c260e6 (read_key_sequence): In key-translation-map and
function-key-map, handle symbol with array as fn def.
In function-key-map, handle symbol with keymap as fn def,
and autoloaded definitions.
1999-01-11 15:30:06 +00:00
Richard M. Stallman bbd25f47ef (BASE_PURESIZE): Increment to 500000. 1999-01-11 15:27:08 +00:00
Richard M. Stallman d9c21094c7 (Qtemp_buffer_setup_hook): New variable.
(syms_of_print): Init and staticpro that.
(temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
1999-01-11 15:26:11 +00:00
Kenichi Handa 9c36993afd (del_range_1): Call signal_after_change.
(del_range_byte): Likewise.
(del_range_both): Likewise.
(del_range_2): Don't call signal_after_change.
1999-01-11 11:42:52 +00:00
Kenichi Handa a45dc86eeb (message_dolog): Use insert_1_both to avoid running any
Lisp code here.
1999-01-11 11:42:52 +00:00
Richard M. Stallman 41857307a6 (Frequire): Don't fail to unbind bindings. 1999-01-06 23:55:31 +00:00
Richard M. Stallman e83f6bb074 (read_key_sequence): Tell get_keyelt to look handle autoloads.
Handle symbols defined as keymaps, and autoloaded keymaps.
1999-01-06 23:54:44 +00:00
Richard M. Stallman 5ffaf437c9 (search_buffer): Fix previous change. 1999-01-06 22:46:20 +00:00
Eli Zaretskii 0265f89f7c (set_clipboard_data): Terminate the text with a null
character.  Don't allow to put binary data into the clipboard.
Return zero in case of success, 1 or 2 otherwise.
(get_clipboard_data): Only bail out if the null character is in
the last 32-byte chunk of clipboard data
(Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
they save binary data, print a message in the echo area saying the
text was not put into the clipboard.
1999-01-06 10:14:25 +00:00
Eli Zaretskii 52d38ab2d9 (IT_write_glyphs): Move constant expression out of the loop. 1999-01-06 10:08:24 +00:00
Andreas Schwab 55a2e19e03 [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
_BSD_SOURCE, the latter is always defined.
1999-01-04 12:10:38 +00:00
Richard M. Stallman c782ad7a64 Delete #if 0 old definitions. 1999-01-03 16:36:41 +00:00
Richard M. Stallman 0f5c40c7b0 (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit. 1999-01-02 21:53:05 +00:00
Richard M. Stallman 38f02ede3f (Ffind_charset_region): Fix doc typo. 1999-01-02 20:00:29 +00:00
Richard M. Stallman 759860a6af In each active map, for each menu bar item, use only the first submap.
(menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
(menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
(syms_of_keyboard): Staticpro and init it.
1999-01-02 00:11:36 +00:00
Richard M. Stallman e0a6ee5e19 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it. 1999-01-02 00:10:53 +00:00
Richard M. Stallman 81d492d5da (MMAP_MAX_AREAS): New macro.
(allocate_vectorlike, make_uninit_multibyte_string): Use that.
(init_alloc_once): Use that.
1999-01-02 00:10:26 +00:00
Eli Zaretskii aff4381d9a (IT_write_glyphs): Convert unibyte characters to
multibyte in unibyte buffers only.
1998-12-31 16:32:53 +00:00
Eli Zaretskii 7f8f0e6709 (Fdefine_prefix_command): Accept a third argument NAME
and pass it to Fmake_sparse_keymap.
1998-12-31 13:16:45 +00:00
Richard M. Stallman ba5c004d4b (re_compile_fastmap): Do something similar to the
previous change, for charset_not, wordchar, notwordchar,
categoryspec, notcategoryspec.
1998-12-30 20:44:39 +00:00
Richard M. Stallman c8099634a0 (lisp_malloc, lisp_free): New functions.
Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
(n_interval_blocks, n_float_blocks): New variable.
(n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
(n_marker_blocks, n_string_blocks): New variable.
(init_intervals, make_interval): Set a count variable.
Use lisp_malloc instead of setting allocating_for_lisp.
(init_float, make_float, init_cons, Fcons): Likewise.
(allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
(init_marker, allocate_misc, init_strings): Likewise.
(make_uninit_multibyte_string): Likewise.
(gc_sweep, compact_strings): Decrement the count variables.

(uninterrupt_malloc): Don't store Emacs's hooks
into the old_..._hook variables.
1998-12-30 01:07:49 +00:00
Richard M. Stallman bf7f4e9066 (main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
1998-12-29 22:53:54 +00:00
Richard M. Stallman 5c9c2c3f33 (Fsingle_key_description): Handle (control ?x) etc.
(Fkey_description): Handle lists like vectors.
1998-12-29 22:53:25 +00:00
Andrew Innes 4934bcddb3 (x_iconify_frame): Wait for frame to be iconified; do
not set async_iconified flag though.
1998-12-28 19:43:05 +00:00
Andrew Innes 3ef68e6be2 (w32_msg_pump): Ignore WM_NULL message posted to thread
by complete_deferred_msg.
(post_character_message): Cancel all deferred messages when
quit_char is typed, in order to break out of potential deadlocks.
(cancel_all_deferred_msgs): New function.
(complete_deferred_msg): Don't abort if msg not found; may have
been cancelled.

(Fw32_reconstruct_hot_key): Use pre-interned symbols.

(Fw32_send_sys_command): Wait for system command to
complete before returning.
1998-12-28 19:42:26 +00:00
Andrew Innes 82e7c0a907 (Vw32_start_process_inherit_error_mode): New variable.
(create_child): Use it.
(syms_of_ntproc): Defvar it.  Also fix docstrings for
w32-start-process-share-console and w32-start-process-show-window.
1998-12-28 19:33:57 +00:00
Andrew Innes 467af476c1 (_start): Force system calls accessing unmounted devices to fail
without prompting.
1998-12-28 19:28:19 +00:00
Kenichi Handa b8ba7b4e76 (read_char): Don't bind
input-method-exit-on-first-char.
1998-12-22 06:06:48 +00:00
Kenichi Handa 562e4a4f61 (Fcall_interactively) <'C'>: Give Fread_char Qnil
because of the change of the second argument of Fread_char.
1998-12-22 06:06:48 +00:00
Kenichi Handa fc351d2f65 (Fread_char): Change the meaning of the second argument.
(Fread_event): Likewise.
(Fread_char_exclusive): Likewise.
1998-12-22 06:06:48 +00:00
Kenichi Handa e6e114f231 (Fcharset_after): Check range. If POS is out of
range, return nil.
1998-12-22 06:06:48 +00:00
Kenichi Handa 9a4d01d85c (printchar): Fix previous change. 1998-12-22 06:06:48 +00:00
Kenichi Handa 51c6067d9b (read_process_output): Decide the multibyteness of
string given to a process filter by a coding system used for
decoding the process output.
1998-12-22 06:06:48 +00:00
Eli Zaretskii 8cbf107d58 (copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:13:57 +00:00
Eli Zaretskii 543b4f618f (unibyte_char_to_multibyte): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:12:53 +00:00
Eli Zaretskii f9638719e2 (concat): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:11:47 +00:00
Eli Zaretskii f0dd4c3524 (IT_write_glyphs): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:10:52 +00:00
Eli Zaretskii 3e1f7d51ce (dumpglyphs): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:09:29 +00:00
Andreas Schwab a3cec380f5 (Fdocumentation): Change the doc string for prefix
commands to make it a complete sentence in one line.
1998-12-21 09:59:30 +00:00
Karl Heuer ca49396408 (TIOCSIGSEND): Don't define this if irix6.
(bcopy, bcmp, bzero): Likewise.
1998-12-16 21:46:44 +00:00
Karl Heuer 808903abdd Initial revision 1998-12-16 21:45:24 +00:00
Karl Heuer b71689771d (IRIX6): Define this symbol. 1998-12-16 21:44:28 +00:00
Karl Heuer a6851a5bab (LIBS_MACHINE): Leave this blank if irix6.5.
(C_SWITCH_MACHINE): New value for irix6.5.
1998-12-16 21:43:35 +00:00
Karl Heuer 8c21764540 (Fbase64_decode_region, Fbase64_decode_string):
Do free malloc'd memory even in case of failure.
Use xfree, not free.
(Fbase64_encode_region, Fbase64_encode_string):
Use xfree, not free.
(base64_decode_1): Don't fail for short lines.
1998-12-16 06:32:39 +00:00
Kenichi Handa d366d2e41b (printchar): Outputting multibyte characters
to echo area always makes it multibyte.
1998-12-15 10:41:44 +00:00
Kenichi Handa c7e3eb8b1b (printchar): Cancel previous change. 1998-12-15 10:38:40 +00:00
Kenichi Handa edf496dd13 Include "ccl.h".
(Fcall_process): Doc-string modified.  Set CODING_MODE_LAST_BLOCK
bit in argument_coding.mode to tell encoding procedure to flush
data.  While encoding arguments, if argument_coding uses CCL
program, initialize it again after encoding.
(Fcall_process_region): Doc-string modified.  Handle the case that
NARGS is 3.
1998-12-15 04:35:38 +00:00
Kenichi Handa ad3d1b1d67 (CCL_SUCCESS): Don't set ccl->ic.
(ccl_driver) <CCL_End>: Pretend that all source text is consumed.
Set `ic' to the head of this command.
(ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
code for an invalid code.
(setup_ccl_program): If the arg VEC is nil, skip setting ups
based on VEC.
1998-12-15 04:35:38 +00:00
Kenichi Handa 0282eb6915 (Qunknown): New variable.
(init_charset_once): Intern and staticpro Qunknown.  Initialize
all elements of Vcharset_symbol_table to Qunknown.
(find_charset_in_str): New arg MULTIBYTE.  If it is zero, check
unibyte characters only.  For an invalid composition sequence, set
CHARSETS[1] to 1.
(Ffind_charset_region): Call find_charset_in_str with an
appropriate MULTIBYTE arg.  If undefined charsets are found,
include `unknown' is the return value.
(Ffind_charset_string): Likewise.
(Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
(str_cmpchar_id): Max composite character code should be less than
GENERIC_COMPOSITION_CHAR.
1998-12-15 04:35:38 +00:00
Kenichi Handa 8c5b01cc4b (find_charset_in_str): Update declaration. 1998-12-15 04:35:38 +00:00
Kenichi Handa 944bd42004 (DECODE_DESIGNATION): Jump to label_invalid_code if
final_char is invalid.
(decode_coding): If coding->type is coding_type_ccl, call
ccl_coding_driver even if SRC_BYTES is zero.
(code_convert_region): Update `inserted' correctly after calling
coding->post_read_conversion.  Even after the code converter
consumed all source text, call it once more if it is
coding_type_ccl to flush out data.
1998-12-15 04:35:38 +00:00
Kenichi Handa 02a08df0ab (printchar): When outputting a multibyte character to
echo area, always set message_enable_multibyte to 1.
1998-12-15 04:35:38 +00:00
Kenichi Handa de7fbd0989 (read_process_output): If NBYTES is zero and
CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
and try decoding again.
(Fprocess_send_eof): If the coding system of PROCESS
requires flushing, call send_process with null-string at first.
1998-12-15 04:35:38 +00:00
Kenichi Handa c91beee236 (Finsert_file_contents): Even if INSERTED is zero, if
CODING is handled by CCL program, call code_convert_region.
1998-12-15 04:35:38 +00:00
Kenichi Handa 67bfe42d76 (string_char_to_byte): Handle invalid multibyte sequence
correctly.
(string_byte_to_char): Likesize.
1998-12-15 04:35:38 +00:00
Kenichi Handa 040272ceb2 (search_buffer): Don't use Boyer-Moore
to search for an invalid multibyte code.
In unibyte case, no need to check whether there are translations
in more than one charset; just set charset_base to 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 42912be360 (Fw16_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 2798f18161 (Fw32_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 666273c2f0 (lisp_data_to_selection_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Geoff Voelker dabe36a823 (LOCALTIME_CACHE): Define. 1998-12-10 06:41:00 +00:00
Geoff Voelker 4f8ac0b2d6 (w32_get_long_filename): Handle root dirs correctly. 1998-12-10 05:43:07 +00:00
Karl Heuer b283f79ec7 Doc fixes. 1998-12-10 04:25:07 +00:00
Karl Heuer 4468c4f1cf (insert_from_buffer_1): Properly count the size
of output from conversion to multibyte even when input
is split across the gap.
1998-12-10 03:19:37 +00:00
Karl Heuer d18b62f211 (re_compile_fastmap): For anychar, set all fastmap
elements for all possible unibyte chars (except newline).
1998-12-10 03:09:12 +00:00
Karl Heuer 620e6ddb8c (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space. 1998-12-10 02:52:20 +00:00
Geoff Voelker c0ca703bd4 (Fw32_get_clipboard_data): Do not delete isolated CR
characters, only convert CRLF to LF.
1998-12-09 00:03:09 +00:00
Geoff Voelker 9c148db6a3 Do string comparision of _NMAKE_VER. 1998-12-08 23:56:14 +00:00
Eli Zaretskii aa9ce93672 (Vdos_unsupported_char_glyph): New variable.
(syms_of_msdos): DEFVAR_LISP it.
(IT_insert_glyphs, IT_delete_glyphs): New functions which abort
Emacs.
(internal_terminal_init): Set up insert_glyphs_hook and
delete_glyphs_hook to call them.  Explicitly set char_ins_del_ok
to 0.
(unibyte_display_via_language_environment): New variable.
(syms_of_msdos): Devfar it.
(IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
Encode the character codes of the glyphs according to the
terminal_coding in effect.
1998-12-06 15:57:48 +00:00
Eli Zaretskii d24422702f (msdos.o): Depend on termchar.h, charset.h, coding.h, and disptab.h 1998-12-06 15:55:59 +00:00
Andreas Schwab c3161ec382 (Fstring_as_unibyte): Doc fix. 1998-12-04 09:50:31 +00:00
Eli Zaretskii 06b1ea1321 (init_environment): Record the time we started up.
(IT_reset_terminal_modes): Don't restore the screen if we exit too
fast after startup (aka crash).
1998-12-03 09:41:48 +00:00
Eli Zaretskii 6f855d6452 (dos_cleanup): Flush and fsync the termscript stream. 1998-12-03 09:41:09 +00:00
Andreas Schwab c2d1e590cf Declare char_valid_p. 1998-12-03 09:22:52 +00:00
Geoff Voelker a0b9c8385f (check_windows_init_file): Use decode_env_path when
using EMACSLOADPATH.
1998-12-03 03:14:46 +00:00
Geoff Voelker 19589637fa (FONT_MAX_WIDTH): New macro. 1998-12-03 00:06:26 +00:00
Geoff Voelker feba565d2a (dumpglyphs): Use unsigned char arrays.
Use FONT_MAX_WIDTH to detect and fudge proportional fonts
for various languages.
Compensate for fonts that have underhangs (e.g., Thai).
1998-12-03 00:06:03 +00:00
Geoff Voelker 93066bc2ab (WM_EMACS_TOGGLE_LOCK_KEY): New define. 1998-12-02 23:54:30 +00:00
Geoff Voelker 9ddef9c4de (key_event): Use Vw32_phantom_key_code. Undo the
mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
(w32_console_toggle_lock_key): New function.
1998-12-02 23:54:14 +00:00
Geoff Voelker adcc38092f (Vw32_phantom_key_code): New variable.
(Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New
variables.
(syms_of_w32fns): Init and register them.
(reset_modifiers): Use a more precise test for whether Emacs has
keyboard focus.  Synchronize state of all keys that can be used as
modifiers, to overcome problems arising from hot-keys.
(w32_key_to_modifier): Be careful not to call intern() to avoid
requiring thread synchronization.
(w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
(w32_wnd_proc): Ensure lock key indicator lights are updated
promptly on Windows 9x, by passing key events on to the system.
(w32_wnd_proc): Use Vw32_phantom_key_code to stop system
responding to Windows key events when not wanted.
(w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
Ctrl-NumLock into pause by the system.
(w32_wnd_proc): Don't translate key combinations containing any
modifiers other than shift (and capslock).
(w32_wnd_proc): Reset modifier key states when receiving focus (we
can't determine the key states until we have keyboard focus).
(Fw32_toggle_lock_key): New function.
(syms_of_w32fns): Defsubr it.
1998-12-02 23:52:47 +00:00
Geoff Voelker 83c75055bc (w32_last_error): Fix cut+paste error. 1998-12-02 23:00:29 +00:00
Geoff Voelker dba46b7c5d termhooks.h (event_kind) [WINDOWSNT]: Define
language_change_event.
1998-12-02 23:00:14 +00:00
Geoff Voelker 501d50943c (parse_modifiers): Declare prototype. 1998-12-02 23:00:02 +00:00
Geoff Voelker 1161d3675c (Qlanguage_change): New variable.
(syms_of_keyboard): Init it.
(kbd_buffer_get_event) [WINDOWSNT]: Generate language-change
events.
(lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
keys; add name for Escape key; extend to 256 elements.
(parse_modifiers): Make non-static.
1998-12-02 22:59:11 +00:00
Richard M. Stallman 2cbebefb27 (Qouter_window_id): New variable.
(syms_of_xfns): Initialize it.
(x_report_frame_params): Set up outer-window-id parameter.
1998-12-02 18:06:37 +00:00
Richard M. Stallman 9160906f27 (Freplace_match): Set OPOINT clearly for the case
where point is in the middle of the text to be replaced.
1998-12-01 05:17:11 +00:00
Richard M. Stallman ffa286a2aa (display_text_line): When handling HPOS < 0 after loop,
if compute_motion fails to advance at all, don't back it up.
1998-11-30 06:35:33 +00:00
Richard M. Stallman f49770515b (Fsingle_key_description): Fix previous change. 1998-11-28 22:16:09 +00:00
Richard M. Stallman f4e09ae710 (Fstring_as_unibyte, Fstring_as_multibyte):
Clear text properties in the new string.
1998-11-27 22:15:38 +00:00
Kenichi Handa 6f39b7c89b (Frequire): Update declaration. 1998-11-26 08:37:32 +00:00
Kenichi Handa 9b0ca86943 (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
if the charset is ascii.
(ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
1998-11-26 08:12:12 +00:00
Kenichi Handa 8ac5a9ccbe (non_ascii_char_to_string): If C has modifier bits,
make an appropriate one byte string.
(char_bytes): Handle the case that C is a single byte char or has
modifier bits.
1998-11-26 08:12:12 +00:00
Kenichi Handa 43229ac34b (CHAR_BYTES): If C has modifier bits, return 1. 1998-11-26 08:12:12 +00:00
Kenichi Handa 741263c22b (internal_self_insert): If C has modifier bits, insert
appropriate one byte char.
1998-11-26 08:12:12 +00:00
Richard M. Stallman 1741e72de6 (read_process_output): Call signal_after_change. 1998-11-25 01:26:56 +00:00
Richard M. Stallman 9ebc22d43e (syms_of_buffer): Doc fix. 1998-11-24 09:01:32 +00:00
Richard M. Stallman 307958d6cb (syms_of_keyboard): Doc fix. 1998-11-24 08:56:27 +00:00
Richard M. Stallman 69eca94c24 (Fmake_keymap): Doc fix. 1998-11-24 04:55:16 +00:00
Kenichi Handa 9a64297c67 (word_boundary_p): If C1 or C2 are composite
characters, test their first components.
1998-11-24 03:52:08 +00:00
Richard M. Stallman e84ffeec07 (Fset_mouse_position): Doc fix. 1998-11-22 17:23:36 +00:00
Richard M. Stallman 47a18cef7c (Fsingle_key_description): Handle generic characters. 1998-11-19 04:30:14 +00:00
Richard M. Stallman 53d5acf5c1 (Frequire): New arg NOERROR. 1998-11-19 04:26:44 +00:00
Richard M. Stallman ff83dbb19a (Qmouse_face): Replace definition with extern decl.
(syms_of_xfaces): Initialization deleted.
1998-11-18 01:40:17 +00:00
Richard M. Stallman 69bb837eb5 (Qmouse_face): Variable definition moved here.
(syms_of_textprop): Initialize it.
1998-11-18 01:38:14 +00:00
Richard M. Stallman 65a04b969d (temp_output_buffer_show): Around temp-buffer-show-hook,
don't do save-excursion, just restore selected window.

(window_loop): For UNSHOW_BUFFER, always do consider minibuffer windows.
1998-11-17 16:27:02 +00:00
Kenichi Handa 6185c1c05b (CHAR_TABLE_REF): Check if IDX is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa da63a5fee1 (non_ascii_char_to_string): If C is negative, signal error. 1998-11-16 06:26:27 +00:00
Kenichi Handa 72b718d765 (SINGLE_BYTE_CHAR_P): Check if C is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa 9ced2cfe0a Initial revision 1998-11-16 06:26:03 +00:00
Kenichi Handa 9192a0270d Include charset.h. 1998-11-16 01:17:06 +00:00
Kenichi Handa 94c02a5e1a (abbrev.o): Depend on charset.h
(bytecode.o): Depend on charset.h.
1998-11-16 01:17:06 +00:00
Kenichi Handa 0b58a513d9 (SYNTAX_ENTRY_INT): For a composite character, check
the first component.
1998-11-16 01:17:06 +00:00
Karl Heuer 3ec46dba9a (LIBS_MACHINE): Delete redundant definition. 1998-11-13 23:27:33 +00:00
Karl Heuer a00e91cd76 (XTread_socket): Fix previous change in case F == 0. 1998-11-12 01:57:30 +00:00
Karl Heuer 9f641ce742 Initial revision 1998-11-11 19:01:02 +00:00
Karl Heuer 6d9fac3ecd (BSD_PGRPS): Add #undef. 1998-11-11 18:58:45 +00:00
Karl Heuer b12576db33 (BROKEN_FIONREAD): #undef commented out.
(INTERRUPT_INPUT): #define commented out.
1998-11-11 18:53:50 +00:00
Eli Zaretskii 4b2e75e6ad (MAX_ALLOCA): New macro.
(Fbase64_encode_region, Fbase64_encode_string,
Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
1998-11-11 11:12:09 +00:00
Kenichi Handa ea12aa2bf9 (byte_combining_error): Error message improved. 1998-11-11 10:37:09 +00:00
Kenichi Handa 32278fd599 (char_valid_p): Handle a composite character correctly. 1998-11-11 10:31:24 +00:00
Kenichi Handa 9b4d1fe69d (str_cmpchar_id): Check the byte sequence for
composition more rigidly.
(Fcompose_string): Allow DEL to be composed.  Signal error if STR
contains an invalid multibyte sequence.
1998-11-11 03:36:15 +00:00
Kenichi Handa 861bf815f3 (x_list_fonts): Don't change the value of maxnames. 1998-11-11 03:36:15 +00:00
Geoff Voelker ccc2d29c56 (Vw32_pass_optional_keys_to_system): Variable removed.
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_enable_num_lock):
(Vw32_enable_caps_lock):
(Vw32_scroll_lock_modifier): New variables.
(modifier_set): Return toggle state for Scroll Lock.
(w32_key_to_modifier): New function.  Returns chosen modifier bit
for given key.
(w32_get_modifiers): Returns modifier flags for
non-keyboard input events.
(construct_console_modifiers): Renamed from construct_modifiers;
recognize Windows and Apps keys as modifiers.
(w32_get_key_modifiers): New function.  Returns modifier flags for
keyboard input events.
(map_keypad_keys): Make non-static.  Use second arg as extended
flag.
(w32_grabbed_keys): New variable.
(HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
(register_hot_keys):
(unregister_hot_keys):
(lookup_vk_code):
(w32_parse_hot_key):
(Fw32_register_hot_key):
(Fw32_unregister_hot_key):
(Fw32_registered_hot_keys):
(Fw32_reconstruct_hot_key): New functions to support hotkeys.
(post_character_message): New function.
(w32_msg_pump): Handle new messages for using hotkeys and changing
keyboard layout/language.
(w32_wnd_proc): Major rework of keyboard input handling:
optionally recognize Windows keys and Apps key as modifiers;
optionally treat NumLock, CapsLock and ScrollLock as function
keys; let system translate keystrokes to characters to avoid
system bugs relating to dead-key handling; preserve shift
distinction for control characters; forward keyboard
layout/language changes to lisp; detect and convert hot-key events
to normal keystrokes.
(syms_of_w32fns): Register new functions and variables.
(w32_last_error): New function for use in debugging.
1998-11-10 20:54:46 +00:00
Geoff Voelker f791da1d45 ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
and w32heap.h.
1998-11-10 20:54:31 +00:00
Geoff Voelker 29a2c30ff6 Include w32term.h and w32heap.h.
(map_keypad_keys):
(Vw32_enable_caps_lock):
(Vw32_enable_num_lock):
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_scroll_lock_modifier):
(w32_key_to_modifier): Add externs.
(w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
Scroll Lock as potential modifiers; exclude numpad keys from
effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
code.
(is_dead_key): Copy from w32fns.c.
(w32_kbd_patch_key): Comment attempt to improve handling of
dead-keys, and system bug relating to same on Windows NT.  Work
around the bug by calling ToUnicode and then converting to the
correct codepage.
(map_virt_key): Removed obsolete variable.
(lispy_function_keys): Add extern.
(key_event): Major rework of keyboard input handling: optionally
recognize Windows keys and Apps key as modifiers; optionally treat
NumLock, CapsLock and ScrollLock as function keys; let system
translate keystrokes to characters to avoid system bugs relating
to dead-key handling; preserve shift distinction for control
characters.  Remove some obsolete code.
1998-11-10 20:52:20 +00:00
Geoff Voelker 0eaf592609 (sys_kill): Set extended key flag when faking
Ctrl-Break keystrokes.
(Fw32_get_locale_info): Allow LONGFORM parameter to specify an
arbitrary locale property using a numerical index.
(Vw32_valid_codepages): New variable.
(enum_codepage_fn):
(Fw32_get_valid_codepages):
(Fw32_get_console_codepage):
(Fw32_set_console_codepage):
(Fw32_get_console_output_codepage):
(Fw32_set_console_output_codepage):
(Fw32_get_codepage_charset):
(Fw32_get_valid_keyboard_layouts):
(Fw32_get_keyboard_layout):
(Fw32_set_keyboard_layout): New functions, exposing Windows locale
handling functions.
(syms_of_ntproc): Register them.
1998-11-10 20:50:40 +00:00
Geoff Voelker f98169a023 (convert_to_key_event): Removed.
(is_dead_key): Copied to w32fns.c.
(w32_read_socket): Generate language_change_event.  Modify to work
with keyboard handling changes in w32_wnd_proc.
1998-11-10 20:50:08 +00:00
Geoff Voelker bb35543459 (struct w32_display_info): New element faked_key.
(WM_EMACS_SETKEYBOARDLAYOUT):
(WM_EMACS_REGISTER_HOT_KEY):
(WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
(LEFT_WIN_PRESSED):
(RIGHT_WIN_PRESSED):
(APPS_PRESSED): New console keyboard modifier flags.
1998-11-10 20:49:30 +00:00
Karl Heuer 3583e969a4 (regex_compile): Handle translation of multibyte
exact-match characters.
1998-11-10 07:03:05 +00:00
Kenichi Handa c61bca6a28 (CATEGORY_SET): Adjusted for the change of cmpchar_component.
(CATEGORY_SET): Likewise.
1998-11-10 00:24:40 +00:00
Kenichi Handa de54b0d5ec (cmpchar_component): New arg NOERROR. Check
composition char ID more strictly.
(Fcmpchar_component): Call cmpchar_component with NOERROR arg
zero.
(Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
return 255.
(Fcompose_string): Signal error if STR contains a rule-based
composition character.
1998-11-10 00:24:40 +00:00
Kenichi Handa cf36cf3f21 (cmpchar_component): Proto-type adjusted. 1998-11-10 00:24:40 +00:00
Kenichi Handa 1dca54f61e (string_to_non_ascii_char): Return correct length for
a charset of dimension 2 and composition character.
1998-11-09 07:06:11 +00:00
Karl Heuer 31cd7d0079 (Fprocess_status): Doc fix. 1998-11-07 16:55:41 +00:00
Kenichi Handa 6038393415 (init_charset_once): Fix previous change. 1998-11-07 01:42:20 +00:00
Kenichi Handa bb63e573a8 (string_to_non_ascii_char): Fix previous change.
(char_valid_p): The the validity of CHARSET by CHARSET_DEFINED_P.
1998-11-06 10:59:09 +00:00
Kenichi Handa dfd57aa70f (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
character correctly.
(STRING_CHAR): Handle an invalid charater correctly.
1998-11-06 10:59:09 +00:00
Kenichi Handa f35b0e56f0 (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte character. 1998-11-06 00:44:16 +00:00
Kenichi Handa d9d851ea28 (Fstring_to_char): Don't return a multibyte character
if STRING is a unibyte string.
1998-11-06 00:44:16 +00:00
Kenichi Handa a6c253264f (string_to_non_ascii_char): Fix previous change. 1998-11-06 00:44:16 +00:00
Kenichi Handa d6127b83e3 (MAKE_NON_ASCII_CHAR): Check validity of CHARSET. 1998-11-06 00:44:16 +00:00
Kenichi Handa a688bb2444 (display_text_line): Check validity of a multibyte
character.
(display_string): Likewise.  Handle an invalid character
correctly.
1998-11-06 00:44:16 +00:00
Karl Heuer 101e446fa0 (Fcombine_after_change_execute): Return nil, not junk.
If nothing to do, return immediately.
(syms_of_insdel): Initialize combine_after_change_buffer.
1998-11-05 20:06:22 +00:00
Karl Heuer edad46f664 (XTread_socket): ButtonPress clears f->mouse_moved. 1998-11-05 19:17:42 +00:00
Geoff Voelker 484fa2c1ec (w32_enable_unicode_output): Rename from
w32_no_unicode_output.
(w32_use_unicode_for_codepage, syms_of_w32term): Use new name
and new semantics.
1998-11-04 23:42:04 +00:00
Geoff Voelker bc6af9357c (dumpglyphs): Use FRAME_FONT for w32_fill_area. 1998-11-04 23:38:42 +00:00
Geoff Voelker 396594fed9 (w32_list_fonts): Report an error if a frame has not
been created yet.
1998-11-04 23:38:19 +00:00
Kenichi Handa fbddb98df1 Initial revision 1998-11-04 10:54:59 +00:00
Kenichi Handa a4165c918b (do_switch_frame): Cancel previous change. 1998-11-04 10:53:14 +00:00
Kenichi Handa da1ad4e741 (print_string): Check validity of a character.
(print): Likewise.
1998-11-04 10:53:14 +00:00
Kenichi Handa 6a0d0ed308 [nec_ews_svr4]: Extern *_sobuf. 1998-11-04 10:53:14 +00:00
Kenichi Handa 6ef23ebb48 (string_to_non_ascii_char): Change the check for the
varidity of multibyte form.
(update_charset_table): Check validity of BYTES.  Don't set
bytes_by_char_head here.
(init_charset_once): Set bytes_by_char_head completely.
1998-11-04 10:48:53 +00:00
Geoff Voelker c654fd9e7d Compile multiple source files when possible. 1998-11-04 01:28:57 +00:00
Geoff Voelker f2b56a5d96 (Qmouse_face): Replace definition with extern decl. 1998-11-04 01:26:24 +00:00
Andrew Innes 01f31dfb5f (stat): GetFileInformationByHandle can legitimately fail, so don't
rely on it succeeding.
1998-11-03 22:39:04 +00:00
Andrew Innes 1a292d24f1 (x_to_w32_font): Specify DEFAULT_CHARSET in the w32 LOGFONT struct if
x font doesn't specify the charset.

(x_to_w32_charset): Change >= to == when testing results of stricmp.
1998-11-03 22:21:58 +00:00
Geoff Voelker 4488d7e15c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo. 1998-11-03 02:26:21 +00:00
Richard M. Stallman 33fa85e042 (set_internal): For built-in maybe-local vars,
when BINDFLAG is set, do not mark them as local.
1998-10-31 23:39:42 +00:00
Kenichi Handa b80f1b20d3 (replace_range): Fix previous change. 1998-10-31 05:24:11 +00:00
Kenichi Handa 33a2d2a074 (do_switch_frame): Update minibuf_window if necessary. 1998-10-31 05:12:07 +00:00
Kenichi Handa 039af53ac4 (byte_combining_error): New function.
(CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
(insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Check the posibility of inhibitted byte
combining correctly.
(replace_range): Before signaling an error for inhibitted byte
combining, recover the buffer in a safe state.
(del_range_2): Check the posibility of inhibitted byte combining
correctly.
1998-10-31 05:12:07 +00:00
Kenichi Handa 48839d2ed7 (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-31 05:12:07 +00:00
Kenichi Handa 922dfd866f (Fbase64_decode_region): Fix previous change.
n
1998-10-31 05:12:07 +00:00
Andreas Schwab aac77ff120 (Vselection_coding_system): Doc fix. 1998-10-30 10:21:58 +00:00
Andreas Schwab 8b835738fd (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
when we have both char and byte position.  Fix type clashes.
1998-10-30 10:20:25 +00:00
Andreas Schwab 377127ce12 (Fsignal): Use a separate format string when passing
error message string to fatal, in case it contains %'s.
1998-10-30 10:14:50 +00:00
Andreas Schwab 3c52e568d6 (Fchar_after): Fix type clashes. 1998-10-30 10:13:41 +00:00
Andreas Schwab 60022cb712 (Fchar_bytes): Doc fix.
(char_bytes): Fix returned value to match returned type.
(syms_of_charset): Fix type clash in initialisation of
Vauto_fill_chars.
1998-10-30 10:13:36 +00:00
Geoff Voelker 938469f27d (initialize_w32_display): Use buffer coords
instead of buffer size (which may be larger than the window).
1998-10-30 04:22:31 +00:00
Geoff Voelker dbda5089c0 fileio.c (init_fileio_once): New function. 1998-10-30 03:49:09 +00:00
Geoff Voelker 680256a8be emacs.c (main): Invoke init_fileio_once. 1998-10-30 03:48:54 +00:00
Paul Eggert 1decb68022 (XTread_socket): Check the returned value of XmbLookupString more carefully. 1998-10-29 00:16:49 +00:00
Kenichi Handa 9f3ede3ccc (check_markers): Check if markers are at character
boundry.
(adjust_markers_for_insert): Fix previous change.
(count_combining_before): Don't limit the check at BEGV.
(count_combining_after): Don't limit the check at ZV.
(CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
(insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_string_1): Likewise.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Inhibit bytes combined across region
boundary.  Update end_unchanged correctly.
(replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
end_unchanged correctly.
(del_range_2): Inhibit bytes combined across region boundary.
Update end_unchanged correctly.
1998-10-28 07:52:13 +00:00
Kenichi Handa 3f5409d35b (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-28 07:52:13 +00:00
Kenichi Handa d14d03ac4a (DECODE_CHARACTER_ASCII): Check validity of inserted
code.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(DECODE_CHARACTER_DIMENSION2): Likewise.
(decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
1998-10-28 07:52:13 +00:00
Geoff Voelker 78859b8033 (Fset_message_beep): Recognize 'silent.
(w32_sys_ring_bell): Do nothing for the 'silent sound.
1998-10-28 05:48:12 +00:00
Geoff Voelker 93cbf229f9 (Vnext_selection_coding_system): New variable.
(syms_of_w32select): DEFVAR_LISP it.
(Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert multibyte strings.
(Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert a string that includes non-ASCII characters.
1998-10-28 03:50:07 +00:00
Geoff Voelker 96ef7d42fb (check_windows_init_file): Also look in load path specified
in environment.
1998-10-27 23:42:26 +00:00
Geoff Voelker 5d84dd8714 (w32_color_map_lookup): Remove duplicate definition. 1998-10-27 20:10:19 +00:00
Richard M. Stallman 46ac5b268d (Fbase64_decode_string): Doc fix.
(Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
Likewise.
1998-10-27 17:55:28 +00:00
Dave Love 15a9a50c39 (Fbase64_decode_region, Fbase64_encode_region): Fix
newline in doc string.
1998-10-27 10:39:24 +00:00
Kenichi Handa f6ecdae5b2 (adjust_after_replace): Correctly handle the case that
both byte combining before and byte combining after happen.
(replace_range): Likewise.
1998-10-27 03:54:13 +00:00
Kenichi Handa a3360ff915 (Fsubst_char_in_region): Correctly handle the case
that byte combining before happens.
(Ftranslate_region): Likewise.
1998-10-27 03:54:13 +00:00
Richard M. Stallman b413f89564 (Fformat): Increase buffer size for floating format. 1998-10-26 23:48:57 +00:00
Kenichi Handa 61a398eac8 (syms_of_category): Doc-string modified. 1998-10-26 08:00:11 +00:00
Kenichi Handa 0007bdd098 (code_convert_region): Kill the work buffer created by
pre-write-conversion.
1998-10-26 08:00:11 +00:00
Geoff Voelker 02062ac320 (main) [HAVE_NTGUI]: Invoke syms_of_fontset(). 1998-10-25 23:55:37 +00:00
Kenichi Handa 828f1ed318 (adjust_markers_for_insert): Adjust markers by taking
combined_before_bytes and combined_after_bytes into account.
(count_combining_after): Handle the case that LENGTH is zero.
(adjust_after_replace): Record deletion at correct buffer
position.  Handle the case that LEN is zero.
(replace_range): Record deletion at correct buffer position.
(del_range_2): Call adjust_makers_for_replace to adjust makers for
combined bytes.
1998-10-24 01:17:09 +00:00
Kenichi Handa 6abb9bd967 (code_convert_region): While preserving the orignal
point, pay attention to the byte combining problem.
1998-10-24 01:17:09 +00:00
Kenichi Handa 9b703a38c6 (Fbase64_decode_region): Pay attention to the byte
combining problem.
1998-10-24 01:17:09 +00:00
Richard M. Stallman 6e0fca1d84 (Fgarbage_collect): Block input around most of the function. 1998-10-22 01:53:38 +00:00
Kenichi Handa 9ebe6947ae (Fx_list_fonts): Access frame parameters throught
general macros.   Don't call x_list_font directory, instead call a
function set in list_fonts_func.
1998-10-21 11:50:56 +00:00
Kenichi Handa 3541bb8faa Include frame.h before fontset.h.
(list_fonts_func): Fix prototype.
1998-10-21 11:50:56 +00:00
Kenichi Handa 9625ce22ee (list_fonts_func): Fix prototype. 1998-10-21 11:50:56 +00:00
Kenichi Handa a1dfb88a16 Include frame.h before fontset.h. 1998-10-21 11:50:56 +00:00
Kenichi Handa e133c8fabc (setup_coding_system): Fix setting up
coding->spec.ccl.valid_codes for CCL based coding system.
(code_convert_region): Set point to FROM before inserting the
result of pre-write-funciton.  Preserve original point.
(code_convert_string): If coding->type is coding_type_ccl, do
conversion even if the length of conversion region is zero.
1998-10-21 11:50:56 +00:00
Geoff Voelker bbdf24fae2 (w32_use_unicode_for_codepage): Interpret w32_no_unicode_output properly.
(syms_of_w32term): Reference w32_no_unicode_output properly.
1998-10-20 22:34:50 +00:00
Geoff Voelker bd6bb5442f Include charset.h and fontset.h. 1998-10-20 22:16:48 +00:00
Geoff Voelker d82f9149cb Remove redundant font_info struct definition.
(Vx_pixel_size_width_font_regexp,
unibyte_display_via_language_environment): Declare variables.
(w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
Declare functions.
w32_output): New fields font_baseline and fontset.
(FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
1998-10-20 22:16:00 +00:00
Geoff Voelker cabb23bc0d Include fontset.h. Define codepage macros.
Add ENCODE_BIG5 macro from coding.c.
(w32_no_unicode_output): New variable.
(w32_codepage_for_charset, w32_use_unicode_for_codepage): New
functions.
(BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
(dumpglyphs): Rewrite based on xterm.c equivalent.
(x_new_font): Use functionality provided in fontset.c.
(x_new_fontset): New function based on the one in xterm.c.
(syms_of_w32term): Add w32-no-unicode-output flag.
1998-10-20 22:15:14 +00:00
Geoff Voelker 4587b02635 (Vx_pixel_size_width): New global variable.
(unibyte_display_via_language_environment): New global variable.
(x_set_font): Add support for setting fontsets.
(Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
font names to match xlfd-tight-regexp.
(w32_load_font): Rewrite based on x_load_font.
(x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
`iso8859-1' rather than `ansi'.
(w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
end. Move charset into `charset registry' field.
(enum_font_cb2): Check charsets match.  Include width in font list.

(w32_list_fonts): Rewrite based on x_list_fonts.
Moved from w32term.c to have access to enumfont_t struct.
(Fx_list_fonts): w32 specific version eliminated.  Include
`x-list-fonts.c'.
(w32_get_font_info, w32_query_font, w32_find_ccl_program): New
functions for fontset support - adapted from x_ equivalents.
(syms_of_w32fns): New lisp variables initialised.  Function
pointers for fontset.c set up.
1998-10-20 22:13:14 +00:00
Geoff Voelker 30a231e64d Update comments referring to obsolete structs.
(allocate_face, copy_face, face_eql, load_font,
Fpixmap_spec_p, free_frame_faces, new_computed_face,
frame_update_line_height, merge_faces, compute_base_face,
Fset_face_attribute_internal): Use fontset support based on xfaces.c.
1998-10-20 22:12:51 +00:00
Geoff Voelker 67c2a40ffd (w32fns.c): Add x-list-font.c to dependancies. 1998-10-20 22:12:38 +00:00
Richard M. Stallman f3be100fc2 (syms_of_syntax): Fix the setup of Qscan_error. 1998-10-20 20:56:18 +00:00
Eli Zaretskii 0c7bc1aabd (mouse_init): Reset the button press/release info of the mouse driver.
(mouse_preempted): New variable.
(dos_rawgetc): Don't generate mouse events if mouse is preempted.
(XMenuActivate): Preempt the mouse during menu-handling loop.
Release the current time slice while idling in the menu-handling
loop.  Leave the loop only if the user pressed, then released the
same button.  Discard all mouse events that are pending in the
event queue before exiting.
1998-10-20 14:25:38 +00:00
Kenichi Handa c1a08b4c81 (Vauto_fill_chars, Qauto_fill_chars): New variables.
(syms_of_charset): Staticpro and initialize Qauto_fill_chars.
Declare auto-fill-chars as a Lisp variable and initialize it.
1998-10-19 00:40:10 +00:00
Kenichi Handa 69535a4bd5 (Vauto_fill_chars): Extern it. 1998-10-19 00:40:10 +00:00
Kenichi Handa 01428933ec (internal_self_insert): Check Vauto_fill_chars. 1998-10-19 00:40:10 +00:00
Kenichi Handa 3742fe75f8 (casify_object): Use make_string instead of
make_specified_string to cope with byte-combining situation.
1998-10-17 01:58:01 +00:00
Kenichi Handa 174a4cbee1 (decode_coding_iso2022): Set coding->fake_multibyte to
1 when encountered with a code of the range 0x80..0x9F.
1998-10-17 01:58:01 +00:00
Eli Zaretskii 8a52365ce8 (Fcall_process): Use $TMPDIR instead of trying $TMP
and $TEMP, since the former is always set in msdos.c.
(Fcall_process_region): When looking for a place to put the
temporary files, check $TMPDIR as well.
1998-10-14 15:17:11 +00:00
Richard M. Stallman bbce7d721d (exec_sentinel, read_process_output):
Restore waiting_for_user_input_p after running Lisp code.
1998-10-14 14:36:33 +00:00
Richard M. Stallman 07ba902ebf (parse_menu_item): Avoid initialization for Lisp_Object.
(command_loop): Likewise.
1998-10-14 12:59:30 +00:00
Kenichi Handa 3019692c38 (adjust_markers_for_combining): This function deleted.
(adjust_markers_for_replace): Correctly adjust marker positions.
Don't record these adjustment because they were recorded already.
(combine_bytes): Don't adjust markers here.
1998-10-14 07:17:22 +00:00
Kenichi Handa 5e522af4f3 (Faset): Fix previous change. 1998-10-14 07:17:22 +00:00
Kenichi Handa 95b8aba74b (Ffillarray): Fix previous change. 1998-10-14 07:17:22 +00:00
Richard M. Stallman 4b37311e13 Fix previous change. 1998-10-13 23:54:54 +00:00
Richard M. Stallman 5744fa7c02 (Fdisplay_completion_list): Put on mouse-face properties. 1998-10-13 21:10:10 +00:00
Richard M. Stallman 82e6e5afd8 (Fclear_this_command_keys): New function.
(syms_of_keyboard): defsubr it.
1998-10-13 03:46:13 +00:00
Richard M. Stallman b80d5655b0 (Fexecute_kbd_macro): Set real_this_command. 1998-10-12 20:03:15 +00:00
Kenichi Handa 1c5c931ae0 (clear_string_char_byte_cache): Extern it. 1998-10-12 12:00:44 +00:00
Kenichi Handa 51520e8a2e (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions. 1998-10-12 12:00:44 +00:00
Kenichi Handa 020da46098 (Fstring): Call make_string instead of
make_string_from_bytes.
(Ffind_charset_region): Include `composition' in the returned list
if the region contains any composite characters.
(Ffind_charset_string): Include `composition' in the returned list
if the string contains any composite characters.
(find_charset_in_str): Handle CMPCHARP arg correctly.
1998-10-12 12:00:44 +00:00
Kenichi Handa 622fece532 (shrink_decoding_region): If a charset other than ascii
is initially designated to G0, don't shrink the region.
(shrink_encoding_region): Likewise.
1998-10-12 12:00:44 +00:00
Kenichi Handa dbda4aad56 (Faset): If ARRAY is a multibyte string, pay attention to
byte-combining situation.
1998-10-12 12:00:44 +00:00
Kenichi Handa 57247650fb (clear_string_char_byte_cache): New function.
(Ffillarray): Handle multibyte string correctly.
1998-10-12 12:00:44 +00:00
Kenichi Handa 76be80e02b (Fw16_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 3c8cb3123a (Fw32_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 6b123f323b (lisp_data_to_selection_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 8e36ae7f46 (Fstring_to_number): Don't recognize floating point if base is not 10. 1998-10-12 11:54:43 +00:00
Richard M. Stallman 9ac425d169 (parse_menu_item): For top level of menu bar,
accept ordinary commands, and treat them just like a keymap.
1998-10-12 06:13:00 +00:00
Richard M. Stallman b5174a5103 (redisplay_window): Clear w->window_end_valid
before running the window-scroll-functions hook, if appropriate.
1998-10-12 01:38:50 +00:00
Richard M. Stallman 0ec56a8056 (check_x_display_info): Don't use selected_frame if it is dead. 1998-10-10 15:07:08 +00:00
Richard M. Stallman 3f8ab7bddc (window_loop): New alternative CHECK_ALL_WINDOWS.
(check_all_windows): New function for debugging tests.
(syms_of_window): Initialize it.

(Qwindow_configuration_p): New variable.
(Fwindow_configuration_frame): New function.
(syms_of_window): defsubr it.
(Fset_window_configuration): Return t if frame is live.
Use Qwindow_configuration_p.
1998-10-10 14:49:28 +00:00
Geoff Voelker 5d7fed93b5 (x_create_bitmap_from_file): Skip special files. 1998-10-09 06:09:52 +00:00
Karl Heuer 7744ca33c6 Doc fixes. 1998-10-08 20:31:34 +00:00
Richard M. Stallman c3907a7e36 (scan_lists): Bring FROM back into range BEGV...ZV. 1998-10-08 10:47:51 +00:00
Kenichi Handa 55d8d76935 (code_convert_region): Set inhibit_modification_hooks
to 1 before calling Fset_text_properties.
1998-10-08 06:48:42 +00:00
Kenichi Handa fd16a4c6d8 (signal_before_change): If inhibit_modification_hooks
is nonzero, do nothing.
(signal_after_change): Likewise.
1998-10-08 06:45:36 +00:00
Kenichi Handa 7775635d6f (inhibit_modification_hooks): New variable.
(init_buffer_once): Initialize inhibit_modification_hooks to 0.
1998-10-08 06:45:36 +00:00
Kenichi Handa 347d3e9ca8 (inhibit_modification_hooks): Extern it. 1998-10-08 06:45:36 +00:00
Kenichi Handa ba7434e5bf (invalid_character): Prepend `0' to octal
representation.  Give error sufficient args.
1998-10-08 06:45:36 +00:00
Geoff Voelker d54abccd47 (init_ntproc): Check for Windows init file.
(term_ntproc): Do not check for it here.
1998-10-07 19:47:48 +00:00
Paul D. Smith 75c0d0950d Checkpoint changes. Bug fixes, mostly. 1998-10-03 05:40:15 +00:00
Kenichi Handa d7af002f65 (adjust_after_replace): Don't delete text properties here. 1998-09-28 11:52:53 +00:00
Kenichi Handa 88993dfd4e (check_composing_code): Fix previous change. Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
(check_composing_code): Fix previous change.  Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
1998-09-28 11:52:53 +00:00
Kenichi Handa c42869c47d (encode_terminal_code): Handle raw 8-bit codes correctly. 1998-09-28 11:52:53 +00:00
Richard M. Stallman 432eec292e Treat __GNU__ line NeXT: undefine BSD and FSCALE. 1998-09-27 07:29:59 +00:00
Richard M. Stallman d5844360c8 (NLIST_STRUCT, KERNEL_FILE, LDAV_SYMBOL): Add #undefs. 1998-09-27 07:21:30 +00:00
Richard M. Stallman 81b7af7247 (sort_args): Fill extra space with NULL ptrs. 1998-09-27 07:11:54 +00:00
Kenichi Handa 4224cb6213 (Fformat): Check format control characters. 1998-09-26 04:20:48 +00:00
Kenichi Handa de79a6a5ed (check_composing_code): If the current composing
sequence doesn't end properly, return -1.
(DECODE_CHARACTER_ASCII): Update coding->composed_chars.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(decode_coding_iso2022): Check validity of a composing sequence.
(code_convert_string): If the length of text to be converted is
shrunk to zero, don't perform code conversion.
(shrink_decoding_region): Fix previous change.
1998-09-26 04:20:48 +00:00
Kenichi Handa 450c60a559 (struct coding_system): New member composed_chars. 1998-09-26 04:20:48 +00:00
Paul Eggert 08b4600264 (underlying_strftime):
Set the buffer to a nonzero value before calling
strftime, and check to see whether strftime has set the buffer to zero.
This lets us distinguish between an empty buffer and an error.

I'm installing this patch by hand now; it will be superseded whenever
the glibc sources are propagated back to fsf.org.
1998-09-25 21:40:23 +00:00
Kenichi Handa fdfcf19d01 (decode_eol): While decoding DOS-like eol, handle a
single CR code correctly.
(shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
1998-09-25 07:32:05 +00:00
Geoff Voelker f695b4b18a (w32_color_map_lookup): New function.
(x_to_w32_color): Approximate colors ending in numbers if necessary.
1998-09-24 02:14:55 +00:00
Kenichi Handa 519bf1461a (ccl_driver): Report correct CCL program counter on error. 1998-09-22 10:33:09 +00:00
Kenichi Handa 703dc2a895 (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
strings unibyte.
(xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
1998-09-22 10:33:09 +00:00
Kenichi Handa 24819c4351 (Fcall_interactively): Don't use input method when
reading a character in the case of `c' code letter.
1998-09-22 10:23:40 +00:00
Dave Love 5b2a531650 (Fsave_restriction): Doc fix. 1998-09-21 17:43:14 +00:00
Karl Heuer cac84ff0a2 (build_load_history): Do add to Vload_history
even when dumping Emacs.
1998-09-21 16:31:46 +00:00
Kenichi Handa 12abd7d10f (CCL_WRITE_CHAR): Don't use bcopy.
(ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
cause error if the program is going to output some bytes.  When
outputing a string to notify an error, check the case that
DST_BYTES is zero.
1998-09-18 13:10:40 +00:00
Kenichi Handa 9864ebcee4 (ccl_coding_driver): If ccl_driver is interrupted by a
user or the CCL program executed an invalid command, return
CODING_FINISH_INTERRUPT.
(code_convert_region): Pay attention to the converters return
value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
1998-09-18 13:10:40 +00:00
Kenichi Handa 1ee0bc0950 (CODING_FINISH_INTERRUPT): New macro. 1998-09-18 13:10:40 +00:00
Kenichi Handa 23b20a7066 (adjust_markers_for_replace): Don't adjust a byte
position if it is FROM.
(adjust_markers_for_combining): New function.
(combine_bytes): Call adjust_markers_for_combining instead of
adjust_markers_for_replace.
(adjust_after_replace): Record deletion of combining after bytes
with the correct position.  Don't add combining bytes to the args
given to adjust_point.  Handle correctly the case that there are
both before and after combining bytes.
(replace_range): Likewise.  Record the actual deletion after
recoding deletions of combining bytes.
1998-09-16 07:21:31 +00:00
Kenichi Handa f2558efddd (code_convert_region): Update beg_unchanged and
end_unchanged after we delete the source text.
1998-09-16 07:21:31 +00:00
Kenichi Handa 457262616e (message_log_check_duplicate): Count byte length of the
latest message correctly.
1998-09-16 07:21:31 +00:00
Karl Heuer 05edf8bd68 (Fmake_local_variable): Doc fix. 1998-09-13 03:58:36 +00:00
Karl Heuer 26a9b1f3b7 (redisplay_internal): Use TEMP_SET_PT_BOTH
instead of SET_PT_BOTH.
(try_window_id, display_text_line): Likewise.
1998-09-13 03:54:01 +00:00
Dave Love 451f7df83b (Fwith_output_to_temp_buffer): Doc fix. 1998-09-10 22:51:33 +00:00
Karl Heuer 5cfc5cbe70 (TIOCSIGSEND): Add #undef.
(bcopy, bcmp, bzero): Add #undef.
1998-09-10 15:59:36 +00:00
Karl Heuer b519fca5a6 (main): Mention --display and --eval in help. 1998-09-10 15:54:42 +00:00
Karl Heuer a94a433590 (command_loop_1): When switching to selected window's bfr,
first exit if selected frame is dead (no live frames remain).
(read_key_sequence): Likewise.
1998-09-10 15:47:53 +00:00
Paul Eggert be09e6e6bf Add a comment to emacs_memftime, explaining why it needs to loop. 1998-09-09 21:33:50 +00:00
Paul Eggert 70ebbe5f81 (emacs_memftime): New function.
(Fformat_time_string): Use it to handle null bytes in formats
correctly.
1998-09-08 03:56:09 +00:00
Kenichi Handa 8bedbe9dc2 (adjust_after_replace): Don't add combining bytes to
the args given to adjust_point.  Handle correctly the case that
there are both before and after combining bytes.
(replace_range): Likewise.
1998-09-08 02:01:59 +00:00
Kenichi Handa 9869520f33 (Fsubst_char_in_region): Call replace_range with the
arg MARKERS 1.
1998-09-08 02:01:59 +00:00
Kenichi Handa 2e45bf1801 (Ffind_charset_region): Optimization for unibyte buffer.
(Ffind_charset_string): For unibyte string, return (ascii).
1998-09-08 02:01:59 +00:00
Karl Heuer 24c129e40e (base64_decode_1, base64_encode_1): New functions.
(Fbase64_decode_string, Fbase64_encode_string): New functions.
(Fbase64_decode_region, Fbase64_encode_region): New functions.
1998-09-07 19:58:05 +00:00
Karl Heuer f7993597fa (Fwidget_put): Return VALUE instead of garbage. 1998-09-07 17:34:59 +00:00
Karl Heuer 955f3ff914 (error): After enlarging buffer, write to it, not to buf. 1998-09-07 17:31:29 +00:00
Kenichi Handa b57a7b0bf4 (count_combining_after): Check also preceding bytes at
POS if all characters in STRING are not character head.
1998-09-07 13:39:15 +00:00
Kenichi Handa 8783b77f5b (STRING_CHAR_AND_LENGTH): Return correct value in
ACTUAL_LEN even if LEN is too short to have a valid multibyte
form.
(STRING_CHAR_AND_CHAR_LENGTH): Likewise.
1998-09-07 13:39:15 +00:00
Kenichi Handa 69f7652519 (ccl_coding_driver): Always calculate correct mulibyte
chars in produced byte sequence.
(Ffind_operation_coding_system): Doc-string fixed.
1998-09-07 13:39:15 +00:00
Paul Eggert 177ea5f115 (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
Don't assume that localtime and gmtime return non-NULL.
1998-09-06 15:49:17 +00:00
Karl Heuer bf6ab66c9a (Fformat): Detect incomplete format spec at string's end. 1998-09-06 14:40:21 +00:00
Karl Heuer 5e24a1f76c (Fload): Handle case where openp finds a magic file
but it has no `load' handler or that handler calls `load'.
If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
1998-09-06 13:57:32 +00:00
Dave Love ed218f733e (enable-multibyte-characters): Doc fix. 1998-09-04 14:08:26 +00:00
Geoff Voelker 3c1f9d6603 (allocate_heap): Define NTHEAP_PROBE_BASE by default. 1998-09-02 05:25:38 +00:00
Kenichi Handa 23017390a5 (Ftranspose_regions): Use BYTE_POS_ADDR to get an
address in buffer from byte-position.
1998-09-02 04:51:42 +00:00
Eli Zaretskii 9963e85930 (Vnext_selection_coding_system): New variable.
(syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
Vselection_coding_system.
(Fw16_set_clipboard_data): Always convert multibyte strings.  Use
Vnext_selection_coding_system if non-nil.
(Fw16_get_clipboard_data): Always convert a string that includes
non-ASCII characters. Use Vnext_selection_coding_system if
non-nil.
1998-09-01 13:26:41 +00:00
Kenichi Handa e1d6d5b93f (x_load_font): If SIZE is 0, don't use a name x_list_font returns. 1998-09-01 02:25:57 +00:00
Geoff Voelker 490822ffc8 (w32_wnd_proc): Always zero button_state when releasing
mouse capture.
1998-09-01 00:30:46 +00:00
Paul Eggert a897205290 (read1): Don't assume that atof ("-0.0") yields -0.0.
Handle leading '-' uniformly for zeros, infinities, and NaNs.
1998-08-31 21:18:28 +00:00
Eli Zaretskii 06da1de199 (IT_cmgoto): When tracking echo area messages with the
cursor, save and restore previous cursor position in the
minibuffer.
1998-08-31 15:56:52 +00:00
Kenichi Handa 3b0800187d (copy_text): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyte.
(count_size_as_multibyte): Likewise.
1998-08-31 03:50:17 +00:00
Kenichi Handa bbf12bb32b (unibyte_char_to_multibyte):
Vnonacii_translation_table will convert a 7-bit charcater.
(multibyte_char_to_unibyte): Handle the case that
Vnonacii_translation_table converts a multibyte charcater to a
unibyte charcter of less than 128.
(init_charset_once): Initialize nonascii_insert_offset and
Vnonacii_translation_table.
1998-08-31 03:50:17 +00:00
Kenichi Handa d4e57bcd5b (decode_coding): Even if SRC_BYTES is zero, try
processing if CODING requires flushing.
(encode_coding): Likewise.
(code_convert_region): Likewise.
(code_convert_string): Likewise.
1998-08-31 03:50:17 +00:00
Kenichi Handa e0e25273d2 (concat): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyte.
1998-08-31 03:50:17 +00:00
Kenichi Handa c63e0d56d5 (dumpglyphs): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyteL.
1998-08-31 03:50:17 +00:00
Paul Eggert e64981da92 (arith_driver, float_arith_driver): Compute (- x) by
using negation, not subtraction; this makes a difference with
IEEE floating point arithmetic (and also if integer arithmetic
is ones' complement or signed-magnitude!).
1998-08-29 17:57:22 +00:00
Karl Heuer 66cb9c0731 (x_create_bitmap_from_file): Fail immediately if magic. 1998-08-29 15:55:28 +00:00
Kenichi Handa f78643efc0 (Fchar_bytes): Add \n\ in doc-string. 1998-08-29 01:26:19 +00:00
Paul Eggert 9d0ebf980b (NOT_USING_MOTIF): New macro.
(LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
path only if we're not building with Motif.
1998-08-28 23:38:20 +00:00
Kenichi Handa 4a7cf15f47 (adjust_after_replace): Fix the code to recode undo
information for the case that `before combining' happens.  Remove
text properties which are added to the new text by
offset_intervals.
1998-08-28 12:33:52 +00:00
Kenichi Handa df2ddb2d28 (code_convert_region1): Remove all text properties of the region. 1998-08-28 12:33:52 +00:00
Kenichi Handa 643044ebfd (count_size_as_multibyte): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa fcf9683ed5 (Fposition_bytes): If the arg POSITION is out of
range, return nil.
(Fbyte_to_position): If the arg BYTEPOS is out of range, return
nil.
1998-08-28 12:22:39 +00:00
Kenichi Handa 9b6a601f87 (Fchar_bytes): Now always return 1.
(char_bytes): New function.
1998-08-28 12:22:39 +00:00
Kenichi Handa 3124bc0ed3 (CHAR_BYTES): New macro. 1998-08-28 12:22:39 +00:00
Kenichi Handa 6d0b4facd2 (Faset): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa cc531c4441 (concat): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa b778fdb3a5 (message_dolog): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa ae9ff118cb (detect_coding_iso2022): Handle ESC N and ESC O
correctly.  They are for SS2 and SS3 respectively.
(ccl_coding_driver): Fix previous change.
1998-08-27 07:47:15 +00:00
Paul Eggert 71f8198a32 (fixup_locale): New function. For now, it resets
LC_TIME to "C" (reverting the 1998-08-07 change), and also
resets LC_MESSAGES to "C".
(x_term_init): Use it to fix up the locale after setlocale
(LC_ALL, "").
1998-08-27 02:00:35 +00:00
Richard M. Stallman d24e26b1a9 (selection_data_to_lisp_data): Code-convert selections
regardless of enable-multibyte-characters.
(lisp_data_to_selection_data): Likewise for decoding.
1998-08-26 21:15:23 +00:00
Karl Heuer 7c3c78a3c8 (x_calc_absolute_position): Cast argument to XFree, in
case it was prototyped the old way.
1998-08-26 20:29:59 +00:00
Kenichi Handa 6f6512e8c0 (x_list_fonts): Work-around for the case XGetAtomName
returns a null string.  This happens when dxpc 3.7 is being used.
1998-08-25 03:59:40 +00:00
Andreas Schwab a8b1366533 (input-method-previous-message): Doc fix. 1998-08-24 10:11:57 +00:00
Andreas Schwab a85a871a33 (file-coding-system-alist, select-safe-coding-system-function): Doc fix. 1998-08-24 10:05:10 +00:00
Kenichi Handa f46869e46f (detect_coding_iso2022): Don't check the byte length of
succeeding codes (0xa0..0xFF) if the codes follows single shit
code.
1998-08-24 06:42:56 +00:00
Kenichi Handa 25b026986f (detect_coding_system): If detect_eol_type returns
CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
correctly.
1998-08-21 06:34:13 +00:00
Richard M. Stallman 76ba958178 (Fcall_process): Use malloc for decoding_buf. 1998-08-19 17:44:21 +00:00
Richard M. Stallman c683d70bd8 (LD_SWITCH_SYSTEM): Delete -dp. 1998-08-19 07:27:13 +00:00
Geoff Voelker d08e1f6c0d (SYSTEM_PURESIZE_EXTRA): Increase. 1998-08-19 03:48:17 +00:00
Kenichi Handa 0db078dc2c (ccl_driver): In case
ccl_read_multibyte_character_suspend:, if ccl->last_block is
nonzero, jump to ccl_repeat.
1998-08-19 01:36:48 +00:00
Richard M. Stallman 1ddd1e348a (tgetst1): Supprt EBCDIC systems.
(esctab): Alternate definition if IS_EBCDIC_HOST.
1998-08-18 20:58:45 +00:00
Kenichi Handa 4ccd0d4a7e If eof is encounterd while processing the
last block, don't just finish but processes eol block of the
current CCL program.
(ccl_driver): Add a new jump label ccl_repeat for the above
change.
1998-08-18 13:15:18 +00:00
Kenichi Handa 7b179c2dc2 (ccl_coding_driver): Setup ccl->last_block properly.
(setup_coding_system): Correctly setup `valid_codes' member.
1998-08-18 13:15:18 +00:00
Kenichi Handa 1814bd62c5 (write_glyphs): When terminal_coding require flushing,
call encode_coding with "" as the SOURCE arg so that ccl_driver
correctly processes eof block of a CCL program.
1998-08-18 13:15:18 +00:00
Richard M. Stallman b638f32846 (read_char): If not reading a key sequence (MAPS is nil),
bind input-method-exit-on-first-char and input-method-use-echo-area
to t.
(read_char): If PREV_EVENT is non-nil, don't run the input method.
(read_key_sequence): Do not bind input-method-function.
1998-08-18 11:12:25 +00:00
Richard M. Stallman 7a983715c8 (Fcall_interactively): Pass new args to Fread_event
and Fread_char.  Let Fread_char do the prompting.
1998-08-18 11:06:30 +00:00
Richard M. Stallman c2b705904d (Ftranspose_regions): Pass 0 as NOMARKERS to replace_range. 1998-08-18 11:05:37 +00:00
Richard M. Stallman 5f65b1b477 (internal_self_insert): Pass 1 as NOMARKERS to replace_range. 1998-08-18 11:05:03 +00:00
Richard M. Stallman 485bf5811d (Fread_event, Fread_char, Fread_char_exclusive):
Update declarations.
1998-08-18 11:04:16 +00:00
Richard M. Stallman 1bcc15674c (Fmultibyte_char_to_unibyte): New function.
(syms_of_charset): defsubr it.
1998-08-18 11:02:54 +00:00
Richard M. Stallman 7ba13c57a2 (Fy_or_n_p): Don't bind input-method-function.
Instead, pass 0 as INPUT_METHOD to read_filtered_event.
1998-08-18 09:01:20 +00:00
Richard M. Stallman bb49a19224 (read_filtered_event): New arg INPUT_METHOD. Calls changed.
(Fread_event): New args PROMPT and SUPPRESS-INPUT-METHOD.
(Fread_char, Fread_char_exclusive): Likewise.
1998-08-18 09:00:14 +00:00
Richard M. Stallman 60aa777aec (replace_range): Rename NOMARKERS arg to MARKERS. 1998-08-18 07:00:00 +00:00
Richard M. Stallman 3844ee4450 (Fy_or_n_p): Bind input-method-function to nil. 1998-08-18 04:27:37 +00:00
Richard M. Stallman 6e5742a05b (Freset_this_command_lengths): Return nil.
(read_char): [All these changes are in the input method code.]
Process and clear before_command_restore_flag before the input method.
Save and restore ok_to_echo_at_next_pause and
current_kboard->echo_after_prompt.
Save, copy and empty this_command_keys, if it is not empty.
Clear the echo area before the input method.
Then in all cases restore this_command_keys, and reenable echoing
if it was enabled before.
1998-08-17 07:04:41 +00:00
Richard M. Stallman 48d3818408 (unibyte_display_through_language_environment):
Renamed from x_display_unibyte_char_with_fontset.
1998-08-17 00:45:52 +00:00
Richard M. Stallman 7ac57cb36c (vmotion): Don't use WINDOW for Fget_char_property
when it is not showing the right buffer.
1998-08-16 02:10:56 +00:00
Richard M. Stallman e3c55541bd x_display_unibyte_char_with_fontset renamed to
unibyte_display_via_language_environment.
1998-08-15 23:00:07 +00:00
Richard M. Stallman 5651af6d63 (wait_reading_process_input): If a pty gives EIO,
raise SIGCHLD just in case.
1998-08-15 05:53:00 +00:00
Richard M. Stallman 09ba2aa0b6 (widget_store_internal_border): Conditionalize declaration. 1998-08-15 05:49:39 +00:00
Kenichi Handa 4ec3678010 (copy_text): Fix previous change, call
multibyte_char_to_unibyte.
1998-08-15 01:28:14 +00:00
Kenichi Handa 89fa8b3669 (coding_category_name): Fix the order of initial
contents.
(detect_coding_mask): Fix previous change.
1998-08-15 01:28:14 +00:00
Kenichi Handa 250134b381 (BASE_PURESIZE): Increased. 1998-08-15 01:28:14 +00:00
Kenichi Handa 1e66110880 (x_display_unibyte_char_with_fontset): New variable.
(syms_of_xfns): Declare x-display-unibyte-char-with-fontset as a
Lisp variable.
1998-08-15 01:28:14 +00:00
Kenichi Handa 16cd502924 (Vnext_selection_coding_system): New variable.
(selection_data_to_lisp_data): If Vnext_selection_coding_system is
non-nil, use it.
(lisp_data_to_selection_data): Likewise.
(syms_of_xselect): Declare next-selection-coding-system as a Lisp
variable.
1998-08-15 01:28:14 +00:00
Kenichi Handa ab29c43b51 (dumpglyphs): If x_display_unibyte_char_with_fontset is
nonzero, convert a unibyte 8-bit char to a multibyte char and
display it by a font listed in the current fontset.
1998-08-15 01:28:14 +00:00
Kenichi Handa ee8ddc1c90 (x_display_unibyte_char_with_fontset): Extern it. 1998-08-15 01:28:14 +00:00
Richard M. Stallman 710ea1b88d (stat): Fall-back to default behaviour when we cannot get
accurate information on file attributes.
1998-08-14 03:47:10 +00:00
Eli Zaretskii b42099b9ec (dos_set_keyboard): Set up stack and flags before
calling _go32_dpmi_simulate_int.
1998-08-13 10:09:28 +00:00
Richard M. Stallman 326b283b18 (scan_sexps_forward): Set up the syntax table scanning
stuff before jumping into the loop.
1998-08-10 21:19:03 +00:00
Eli Zaretskii 9a599a60c1 (IT_cmgoto): In the echo area, only put the cursor at
the end of text if it is beyond the displayed text end.
1998-08-10 15:34:32 +00:00
Richard M. Stallman e43d17d398 (read_char): Don't decrement this_command_key_count when saving it. 1998-08-10 07:22:21 +00:00
Kenichi Handa 6bc51348fd (default_buffer_file_coding): New variable.
(init_coding_once): Initialize default_buffer_file_coding.
1998-08-10 06:29:02 +00:00
Kenichi Handa 0827f88d34 (default_buffer_file_coding): Extern it. 1998-08-10 06:29:02 +00:00
Kenichi Handa ef38927ffd (Fwrite_region): Reflect the eol conversion
specification of default value of buffer-file-coding-system if is
is undefined.
1998-08-10 06:29:02 +00:00
Richard M. Stallman 62bb752fdb (__FreeBSD_version): Define it, or else include osreldate.h to define it.
(LIB_GCC): Unconditional definition deleted.
[ELF] (LD_SWITCH_SYSTEM, START_FILES, UNEXEC, LIB_STANDARD, LIB_GCC):
New alternative definitions.
[! ELF] (START_FILES, LIB_GCC): New alternative definitions.
1998-08-10 02:41:44 +00:00
Richard M. Stallman 2e1ddb87df (unexec): Check for section names end and edata with no underscore. 1998-08-10 02:35:54 +00:00
Richard M. Stallman df902b62cd (Fminibuffer_complete): this_command renamed to Vthis_command. 1998-08-09 21:56:16 +00:00
Richard M. Stallman 14a18790a4 (Fcall_last_kbd_macro): this_command renamed to Vthis_command. 1998-08-09 21:55:58 +00:00
Richard M. Stallman e717e6d75d (Vthis_command): Renamed from this_command. 1998-08-09 21:55:27 +00:00
Richard M. Stallman f024b6aac0 (CHARSET_OK): Check that coding_system_table[IDX] != 0. 1998-08-09 05:28:02 +00:00
Richard M. Stallman 036bad88d8 (x_term_init): Don't reset LC_TIME to "C", since we
want strftime to be localized.
1998-08-08 22:11:22 +00:00
Richard M. Stallman 84d602979c Avoid using initializers for Lisp_Object. 1998-08-08 21:32:57 +00:00
Richard M. Stallman d5eecefb55 (Vthis_command): Renamed from this_command.
(real_this_command): New variable, but not a Lisp variable;
updated like Vthis_command, but never altered by Lisp programs.
(command_loop_1): Use real_this_command to set Vreal_last_command.

(read_char): When input method returns no chars, call cancel_echoing.
Restore the previous echo area message and this_command_keys, too.

(Vinput_method_previous_message): New variable.
(syms_of_keyboard): Set up lisp variable.
(Qinput_method_exit_on_first_char, Qinput_method_use_echo_area): New variables.
(syms_of_keyboard): Initialize them.
(Fread_key_sequence): New arg COMMAND_LOOP.
Bind those variables.
1998-08-08 03:13:39 +00:00
Richard M. Stallman ec0f00faca Initial revision 1998-08-08 03:02:37 +00:00
Richard M. Stallman a083fd237d (x_list_fonts): Fix previous change. 1998-08-08 02:39:50 +00:00
Richard M. Stallman e7c1c20eba (Fcall_process): Check type of process cmd args earlier on. 1998-08-08 01:03:27 +00:00
Richard M. Stallman 4525f571f5 (Fprocess_send_eof): Transfer proc_encode_coding_system
data to the new outfd.
1998-08-08 00:49:24 +00:00
Richard M. Stallman dca3296e52 (FRAME_OUTER_WINDOW): New macro. 1998-08-07 07:23:07 +00:00
Richard M. Stallman 835d0be6dd (print_escape_multibyte, Qprint_escape_multibyte)
(Qprint_escape_nonascii): New variables.
(syms_of_print): Initialize them and set up Lisp variable.
(PRINTPREPARE): Bind print-escape-multibyte to t if appropriate.
Also bind print-escape-nonascii if appropriate.
(print): Test print_escape_multibyte and print_escape_nonascii,
rather than enable-multibyte-characters.
1998-08-07 07:22:27 +00:00
Richard M. Stallman ad4ac47521 (Fcall_interactively): Pass new arg to Fread_key_sequence. 1998-08-07 07:15:37 +00:00
Kenichi Handa 13c148b8e7 (general_insert_function): If enable-multibyte-characters is
nil, convert a multibyte character to unibyte appropriately.
1998-08-07 05:04:36 +00:00
Kenichi Handa 5666cc6f95 (multibyte_char_to_unibyte): Extern it. 1998-08-07 05:04:36 +00:00
Kenichi Handa 76d7b82914 (multibyte_char_to_unibyte): New function.
(charset_id_internal): Avoid initializer for Lisp_Object.
(init_charset_once): Likewise.
1998-08-07 05:04:36 +00:00
Kenichi Handa 38b62842a1 (internal_self_insert): If enable-multibyte-characters is
nil, convert a multibyte character to unibyte appropriately.
1998-08-07 05:04:36 +00:00
Kenichi Handa e271fdb303 (Fread_key_sequence): Update declaration. 1998-08-07 04:36:17 +00:00
Richard M. Stallman 10f96191ab (Fsplit_window): Doc fix. 1998-08-06 05:48:33 +00:00
Kenichi Handa e23f810c3e (Fdirectory_files): If MATCH is non-nil, decode filenames
before checking them against MATCH.
1998-08-06 05:38:11 +00:00
Richard M. Stallman d86ad277e5 (Fexecute_kbd_macro): Fix error message.
(Fend_kbd_macro): Fix error message.
1998-08-06 05:36:45 +00:00
Richard M. Stallman 72aca5fa28 (Vselection_coding_system): Renamed from Vclipboard_coding_system.
(syms_of_w32select): No need to staticpro Vselection_coding_system.
1998-08-05 22:32:02 +00:00
Richard M. Stallman 57522629c8 (Funexpand_abbrev): Add ADJUST instead of subtracting. 1998-08-05 14:59:09 +00:00
Richard M. Stallman 2745e6c4cd (x_list_fonts): Call XFreeFont after the new call to XLoadQueryFont.
(fast_find_position): Handle case where position is before
an invisible character, thus not actually listed in charstarts.

(x_make_frame_visible): Use XGetGeometry to see if
position has been changed by the window manager.  Use
FRAME_OUTER_WINDOW.
1998-08-05 01:42:24 +00:00
Eli Zaretskii 199c7c44b9 (Fw16_set_clipboard_data, Fw16_get_clipboard_data, syms_of_win16select):
Rename Vclipboard_coding_system to Vselection_coding_system.
(Fw16_set_clipboard_data): Don't count trailing zero in the string
for the purposes of conversion.
1998-08-04 10:38:22 +00:00
Richard M. Stallman d81724c777 (Fmove_to_window_line): Doc fix. 1998-08-04 03:16:57 +00:00
Richard M. Stallman 255c7daeba (replace_range): Don't assume PT is at the place
where the change is being done.
1998-08-03 22:25:54 +00:00
Richard M. Stallman 0c1e3b856c (Fsubst_char_in_region): Use replace_range in the case
where we may need to combine bytes.
(Ftranslate_region): Likewise.
1998-08-03 22:25:08 +00:00
Richard M. Stallman 49da2e496a (Fdocumentation): Specify UNIBYTE = 0
when calling get_doc_string for a compiled function.
1998-08-02 02:44:04 +00:00
Richard M. Stallman 8db9dc66b1 (read1): In reading a string, treat Qlambda like Qget_file_char. 1998-08-02 02:43:47 +00:00
Kenichi Handa f44cbcd8dc (copy_text): In multibyte to unibyte conversion, take
nonascii-translation-table and nonascii-insert-offset into
account.
1998-08-02 01:06:57 +00:00
Kenichi Handa a35fd731c7 (ccl_spec): New member valid_codes. 1998-08-02 01:06:57 +00:00
Kenichi Handa 1397dc18d5 (Qvalid_codes): New variable.
(coding_category_name): Include "coding-category-ccl".
(detect_coding_ccl): New function.
(setup_coding_system): Setup coding->spec.ccl.valid_codes from the
coding system priority `valid-codes' for CCL based coding systesm.
(detect_coding_mask): Check also a CCL based coding system.
(Fupdate_coding_systems_internal): Renamed from
Fupdate_iso_coding_systems.
(syms_of_coding): Change property char-table-extra-slot of
translation-table to 1.  Initialize and static pro Qvalid_codes.
1998-08-02 01:06:57 +00:00
Kenichi Handa 8469bb88e5 (CODING_CATEGORY_IDX_CCL): New macro.
(CODING_CATEGORY_IDX_BIG5, CODING_CATEGORY_IDX_RAW_TEXT,
CODING_CATEGORY_IDX_BINARY, CODING_CATEGORY_IDX_MAX): Increased by
one.
(CODING_CATEGORY_MASK_CCL): New macro.
(CODING_CATEGORY_MASK_ANY): Include CODING_CATEGORY_MASK_CCL.
1998-08-02 01:06:57 +00:00
Richard M. Stallman 8f393ef918 (widget.o, xfns.o, xmenu.o):
Prepend $(srcdir)/ to rule dependencies outside this dir.
1998-08-02 00:30:33 +00:00
Richard M. Stallman 7c5e21ab08 (create_process): For outchannel, set up
proc_encode_coding_system, not proc_decode_coding_system.
1998-08-01 19:04:28 +00:00
Paul D. Smith 102f4b1740 GNU make release 3.77. 1998-07-30 20:55:47 +00:00
Kenichi Handa 6bdd75a54d (concat): Fix previous change. 1998-07-30 01:35:40 +00:00
Richard M. Stallman 929a672696 Whitespace change. 1998-07-29 18:59:34 +00:00
Richard M. Stallman 9e175146b4 (push_key_description): Output multibyte char as itself. 1998-07-28 23:10:44 +00:00
Richard M. Stallman 426939cc8b (Fexecute_extended_command):
Don't delay before displaying the suggestion message
if the command did not display anything in the echo area.
1998-07-27 05:37:42 +00:00
Richard M. Stallman 7d18f9ae99 (Qinput_method_function): New variable.
(syms_of_keyboard): Init and staticpro it.
(read_key_sequence): Bind input-method-function,
and set it to nil after reading the first event.
(raw_keybuf, raw_keybuf_count): New variables, to record
raw input events as they are read with read_char.
(GROW_RAW_KEYBUF): New macro.
(Fthis_single_command_raw_keys): New function.
(syms_of_keyboard): defsubr it.

(read_char): Call the input method if appropriate.
Change logic for distinguishing rereads from new events;
use local var `reread'.  Take events from
Vunread_input_method_events and Vunread_post_input_method_events.
(Vunread_input_method_events, Vunread_post_input_method_events)
(Vinput_method_function): New variable.
(syms_of_keyboard): Set up Lisp vars.
(command_loop_1): Check Vunread_input_method_events and
Vunread_post_input_method_events along with Vunread_command_events.
1998-07-26 23:03:58 +00:00
Richard M. Stallman 524eab087c entered into RCS 1998-07-26 04:24:47 +00:00
Richard M. Stallman 6d0d20a17e [AIXHFT] (hft_init, hft_reset): Add declarations. 1998-07-25 20:51:40 +00:00
Richard M. Stallman c64b0eb74c Initial revision 1998-07-25 20:51:18 +00:00
Richard M. Stallman 341989bef3 (HAVE_STRING_H): Move #undef here. 1998-07-25 06:46:28 +00:00
Richard M. Stallman 24b0b52b11 (HAVE_STRING_H): Delete #undef here. 1998-07-25 06:46:19 +00:00
Richard M. Stallman 2233624503 (regex_compile): Declare p with non-const type on AIX. 1998-07-25 06:40:50 +00:00
Kenichi Handa eda284acb2 (syms_of_coding): Mention auto-coding-alist in the
docstring of file-coding-system-alist.
1998-07-25 04:23:13 +00:00
Kenichi Handa 1255deb9a6 (Finsert_file_contents): Call Vset_auto_coding_function
with two arguments.
(Fwrite_region): If buffer-file-coding-system is set locally, use
the coding system whithout checking file-coding-system-alist.
(syms_of_fileio): Docstring of set-auto-coding-function adjusted
for the change of argument number.
1998-07-25 04:23:13 +00:00
Kenichi Handa 360fbb8e49 (Fcall_process): Use alloca instead of
get_conversion_buffer.
1998-07-21 01:42:40 +00:00
Kenichi Handa 85ef85ae0a (init_coding): Extern it. 1998-07-21 01:42:40 +00:00
Kenichi Handa 6d74c3aa20 (init_coding): New function.
(init_coding_once): Don't initialize conversion_buffer here.  It
is done in init_coding.
1998-07-21 01:42:40 +00:00
Kenichi Handa 0968d4ee86 (main): Call init_coding. 1998-07-21 01:42:40 +00:00
Kenichi Handa 277576f6bc (Fdefine_charset): Fix doc-string. 1998-07-19 05:17:35 +00:00
Kenichi Handa 9dfb82d5cc (dumpglyphs): After calling ccl_driver, set cp->byte1 to
zero for 1-byte font.
1998-07-19 05:17:35 +00:00
Kenichi Handa 8bc49fd1f3 (read_process_output): Even if we read data without
code conversion, calculate character counts.  If we insert the
data into a unibyte buffer, treat the data as unibyte.
1998-07-16 00:14:44 +00:00
Richard M. Stallman 20f6783d3c (Finsert_file_contents): When replacing, in multibyte bfr,
always extend the range to a character boundary.
1998-07-13 22:11:54 +00:00
Andrew Innes 070d1949d1 (add_menu_item): Draw menu items like titles if call_data is 0. 1998-07-13 19:54:15 +00:00
Eli Zaretskii 538d05bb65 (set_clipboard_data, get_clipboard_data, Fw16_set_clipboard_data,
Fw16_get_clipboard_data, Fx_selection_exists_p): Use CF_OEMTEXT instead
of CF_TEXT.
1998-07-13 14:29:35 +00:00
Andrew Innes 0108f679e4 (Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
1998-07-12 20:24:23 +00:00
Karl Heuer 0469366f99 (Fcopy_marker): Make return from wrong_type_argument
fall thru into normal case.
1998-07-12 19:13:45 +00:00
Richard M. Stallman 17e7ef1b77 (Fchars_in_region): Coerce markers. 1998-07-12 03:15:53 +00:00
Andrew Innes e59fe83bff (w32_menu_show): Set widget call_data to 0 if definition is nil.
(add_menu_item): Gray menu entry if widget call_data is 0.
1998-07-11 21:52:17 +00:00
Richard M. Stallman 93e4ce1b88 (Vselection_coding_system):
Renamed from Vclipboard_coding_system.  All uses changed.
(syms_of_xselect): Rename Lisp variable.
1998-07-11 20:42:12 +00:00
Eli Zaretskii 583f5d53e6 (Vclipboard_coding_system): New variable.
(set_clipboard_data, set_clipboard_data): New parameter Raw
determines whether CRLF <-> NL translation needs to be done.  All
callers changed.
(Fw16_set_clipboard_data): Encode the text using
Vclipboard_coding_system, if necessary.
(Fw16_get_clipboard_data): Decode the text using
Vclipboard_coding_system, if necessary.
(syms_of_win16select): DEFVAR Vclipboard_coding_system and
staticpro it.
1998-07-09 14:02:15 +00:00
Kenichi Handa 826bfb8b08 (code_convert_string): Count characters again if we
encounter some invalid code while decoding.
1998-07-09 04:33:00 +00:00
Richard M. Stallman 262c8ceae7 Comment change. 1998-07-09 03:47:06 +00:00
Kenichi Handa e3ae549a3b (fs_load_font): Typo in comments fixed. 1998-07-09 02:02:33 +00:00
Kenichi Handa 20398ea418 Typo in comments fixed. 1998-07-09 02:02:33 +00:00
Kenichi Handa 85bbb1345a (DECODE_ISO_CHARACTER): While decoding two-byte code,
if the sencond byte is invalid, produce the first byte as is.
1998-07-09 02:02:33 +00:00
Kenichi Handa 061bda8dfd (selection_data_to_lisp_data): Set Vlast_coding_system_used.
(lisp_data_to_selection_data): Likewize.
1998-07-09 02:02:33 +00:00
Kenichi Handa 25aa5d6464 (Fformat): Replace explicit numeric constants with proper macros. 1998-07-08 02:19:14 +00:00
Kenichi Handa 8b542479bb (concat): Replace explicit numeric constants with proper macros. 1998-07-08 02:19:14 +00:00
Richard M. Stallman f71599f4b4 Whitespace change. 1998-07-06 22:29:52 +00:00
Kenichi Handa 8a73a70484 (Vgeneric_character_list): New variable.
(init_charset_once): Init and staticpro it.
(Fgeneric_character_list): New function.
(syms_of_charset): defsubr it.
1998-07-06 06:33:55 +00:00
Kenichi Handa 4c0fbc0814 (MAX_CHAR_COMPOSITION): Defined as (GLYPH_MASK_CHAR -
1), one less than the previous value.
(GENERIC_COMPOSITION_CHAR): New macro.
1998-07-06 06:33:55 +00:00
Kenichi Handa 0da528a909 (Fset_char_table_default): Check only if the charset of
the arg CH is in the valid range or not.  Handle the case that CH
is a generic character for composite characters.
1998-07-06 06:33:55 +00:00
Kenichi Handa 8f2917e4dc (Fformat): Pay attention to the byte combining problem. 1998-07-06 01:47:34 +00:00
Kenichi Handa 2df42e0965 (Finsert_file_contents): Cancel previous change. Setup
the variable coding even if the inserted bytes is zero.
1998-07-06 01:47:34 +00:00
Kenichi Handa 18cc260b22 (concat): Pay attention to the byte combining problem. 1998-07-06 01:47:34 +00:00
Richard M. Stallman ad0153e46f (read_list): Pass new arg to get_doc_string. 1998-07-05 20:31:37 +00:00
Richard M. Stallman 32caae30ca (get_doc_string): Take both UNIBYTE and DEFINITION as args.
All callers changed.
1998-07-05 20:31:12 +00:00
Richard M. Stallman c1c4693e69 (Ffile_regular_p) [WINDOWSNT]: Bind
`w32-get-true-file-attributes' to t while calling stat.
(Finsert_file_contents) [WINDOWSNT]: Likewise.
(Fwrite_region): Don't try seeking to end of FILENAME for
appending if not a regular file.
1998-07-03 20:01:02 +00:00
Kenichi Handa 1390393209 (Finsert): Typo in doc-string fixed.
(Finsert_and_inherit, Finsert_before_markers,
Finsert_and_inherit_before_markers):  Likewize.
1998-07-03 04:39:22 +00:00
Kenichi Handa e921460071 (Finsert_file_contents): Do not set Vlast_coding_system
if inserted bytes is zero.
1998-07-03 04:33:12 +00:00
Richard M. Stallman a79485afb8 (Faccess_file): Check type of second argument STRING.
(Fread_file_name): Bind minibuffer-completing-file-name to t.
1998-07-02 07:01:56 +00:00
Richard M. Stallman ccf330a66b (Vminibuffer_completing_file_name): New var.
(syms_of_minibuf): Set up Lisp variable.
(Fminibuffer_complete_word): Test it, instead of checking
specifically for Qread_file_name_internal.
(Fcompleting_read): Likewise.
1998-07-02 07:01:21 +00:00
Richard M. Stallman c8b14b5fbe [COFF]: New variable coff_offset.
(make_hdr) [MSDOS]: If a_name is a coff-go32-exe executable with a
prepended stub, compute coff_offset.
(make_hdr, copy_sym) [COFF]: Use coff_offset when seeking into temacs.
1998-06-29 22:54:28 +00:00
Richard M. Stallman 3ab0732d83 (Fbyte_to_position): New function.
(syms_of_editfns): defsubr it.
1998-06-29 18:35:52 +00:00
Richard M. Stallman 8a2df9371a (wordify): Fix i_byte even in unibyte case for copy loop.
If input is unibyte, make the output unibyte.
1998-06-29 17:20:52 +00:00
Eli Zaretskii 09ffb8b543 (Fcall_process) [! subprocesses]: Balance parentheses in an if clause. 1998-06-29 13:32:48 +00:00
Richard M. Stallman 16f06ce000 (x_list_fonts): Fix prev change: cast result of alloca. 1998-06-27 04:52:31 +00:00
Richard M. Stallman 4b817373b7 (Fx_list_fonts): Bring arglist into sync with xfns.c.
(x_set_font): Call face-set-after-frame-default.
(Qface_set_after_frame_default): New variable.
(syms_of_w32fns): Initialize it.
1998-06-27 04:44:01 +00:00
Kenichi Handa 64abe701f1 (Qemacs_mule): Extern it. 1998-06-26 04:14:52 +00:00
Kenichi Handa 77c070f379 (init_process): Initilize Vdefault_process_coding_system. 1998-06-26 04:13:40 +00:00
Kenichi Handa 54f7817141 (setup_raw_text_coding_system): New function.
(decode_coding_sjis_big5): Bug for handling invalid code fixed.
1998-06-26 03:29:15 +00:00
Kenichi Handa e5ff4bc29e (setup_raw_text_coding_system): Extern it. 1998-06-26 03:29:15 +00:00
Kenichi Handa d5d4ae7193 (Fstart_process): Check process-coding-system-alist
and default-process-coding-system even in unibyte mode.
(create_process): In unibyte mode, suppress character code
conversion.
1998-06-26 03:29:15 +00:00
Kenichi Handa 57515cfea1 (Finsert_file_contents): Call setup_raw_text_coding_system. 1998-06-26 03:29:15 +00:00
Richard M. Stallman 8a2ab0c691 (PRINTFINISH): Convert text to unibyte before
inserting in a unibyte buffer.
1998-06-24 18:32:53 +00:00
Richard M. Stallman 3dd00fc37c (get_doc_string): Adjust declaration. 1998-06-24 18:27:02 +00:00
Richard M. Stallman 6fe9cce5cf (read_list): Pass new arg to get_doc_string. 1998-06-24 18:26:36 +00:00
Richard M. Stallman e96179b37a (get_doc_string): Take both UNIBYTE and DEFINITION as args.
All callers changed.
1998-06-24 18:26:20 +00:00
Richard M. Stallman f1df0d6764 (get_doc_string): 2nd arg is now DEFINITION;
if non-nil, read a dynamic function definition.
(read_doc_string): Don't call read here.
1998-06-24 04:11:00 +00:00
Richard M. Stallman 8f9db2b73f (indented_beyond_p): Return the right kind of value. 1998-06-23 20:31:53 +00:00
Richard M. Stallman 956e3c7e0b (sort_args): Discard duplicate options with no args.
(main): With duplicate -d options, use the last one.  Likewise for -t.
Check -d last, by checking for -nl earlier on.
1998-06-23 14:42:40 +00:00
Richard M. Stallman 68c46464e6 (command_loop): Reset executing_macro after
command_loop_2 has returned, in case a throw to exit or top-level
was executed as part of a keyboard macro.
1998-06-23 03:09:24 +00:00
Richard M. Stallman 3ffde7d691 (Fcall_process): Handle third argument BUFFER
consistently when it is an integer or a list.
1998-06-23 03:07:05 +00:00
Kenichi Handa 7c19e8e146 (Fmodify_syntax_entry): Use macro STRING_BYTES to get
byte size of a string.
1998-06-23 00:29:51 +00:00
Andrew Innes bbb059f390 Include buffer.h, charset.h, and coding.h.
(Vclipboard_coding_system): New variable.
(syms_of_w32select): DEF_VAR it.
(Fw32_set_clipboard_data): Encode string using
Vclipboard_coding_system if necessary.
(Fw32_get_clipboard_data): Decode clipboard contents using
Vclipboard_coding_system if necessary.
1998-06-22 17:43:15 +00:00
Karl Heuer 375fcc095f (print_string): Properly compute number of chars
in multibyte case, before calling strout.
1998-06-22 17:39:25 +00:00
Karl Heuer 735c094c0e (Vinhibit_redisplay, Qinhibit_redisplay): New variables.
(syms_of_xdisp): Set up Lisp var.
(redisplay_internal): Test Vinhibit_redisplay.
1998-06-22 17:35:41 +00:00
Karl Heuer 44e553a3fc (menu_item_eval_property): Bind Qinhibit_redisplay. 1998-06-22 17:34:59 +00:00
Karl Heuer d74347bc38 (Qinhibit_redisplay): Declared. 1998-06-22 17:33:13 +00:00
Andrew Innes c1e0668149 (initialize_w32_display): Call init_crit to initialize
interrupt_handle (referenced by sys_select).
1998-06-22 17:33:05 +00:00
Kenichi Handa 55fd504836 (read_process_output): While processing carryover,
check the size of p->decoding_buf.
1998-06-22 00:24:57 +00:00
Eli Zaretskii 52fd88d3c4 (wait_reading_process_input): Recompute timeout each
time through the loop.  Check requeued_events_pending_p and exit
the loop if there is unread keyboard input.
1998-06-21 14:52:08 +00:00
Karl Heuer ac3b28b194 (Freplace_match): Work by chars, not by bytes,
for scanning the old text, and for inserting new string in buffer.
1998-06-20 22:28:28 +00:00
Karl Heuer 01c752b506 (x_list_fonts): Keep alloca usage simple. 1998-06-20 22:17:48 +00:00
Karl Heuer 94487c4e37 Doc fixes. 1998-06-20 22:06:30 +00:00
Karl Heuer 799fdb040b (strout): Show multibyte message correctly. 1998-06-20 21:49:01 +00:00
Kenichi Handa 9b27b20d21 Comment for CCL_MapMultiple modified.. 1998-06-20 03:01:00 +00:00
Kenichi Handa 8ea691a60b (find_charset_in_str): Do not set the value of
charsets[LEADING_CODE_COMPOSITION].
1998-06-20 03:01:00 +00:00
Kenichi Handa ca65341ea8 (read_process_output): Handle carryover correctly. 1998-06-20 03:01:00 +00:00
Kenichi Handa a9a5b0a53c (dumpglyphs): Check the case that FACE_FONT (face) is
NULL.  While displaing cursor with non-default face, if the
variable `font' is NULL, don't set GCFont.
1998-06-20 03:01:00 +00:00
Karl Heuer 33d0a17f04 (syms_of_minibuf): Initialize buffer-name-history. 1998-06-19 16:53:40 +00:00
Karl Heuer e3a10b5e59 (casify_object): Cope with modifier bits in character. 1998-06-18 04:11:28 +00:00
Geoff Voelker 9d3355d178 (is_unc_volume, open_unc_volume, read_unc_volume,
close_unc_volume, unc_volume_file_attributes): New functions.
(wnet_enum_handle): New variable.
(opendir, readdir, closedir, sys_access, stat): Handle UNC volumes.
1998-06-17 04:22:58 +00:00
Kenichi Handa 09c6077fa6 (x_list_fonts): If SIZE is zero and MAXNAMES is 1, use
XLoadQueryFont instead of XListFonts.
(x_load_fonts): Call x_list_fonts with MAXNAMES 1.
1998-06-16 07:32:05 +00:00
Richard M. Stallman 993824c9b3 (encode_eol): Fix typo that prevented converting to Mac
line endings.  Always update dst_bytes to number of bytes actually copied.
(decode_eol): Fix value of coding->produced when decoding Unix
line endings (in case this function is ever used for that).
1998-06-16 04:50:57 +00:00
Richard M. Stallman f313ee82af (sys_rename): On some network drives, rename fails with
EACCES instead of EEXIST if target already exists.
1998-06-16 04:33:08 +00:00
Richard M. Stallman 43c158ed15 (message_dolog): GCPRO the oldpoint, oldbegv and oldzv
markers, and old_deactivate_mark.
1998-06-16 04:32:03 +00:00
Kenichi Handa 81a7030d5f (syms_of_fileio): Doc-string of the variable
set-auto-coding-function modified for the change above.
1998-06-15 01:20:26 +00:00
Kenichi Handa f736ffbf3a (Finsert_file_contents): Redo the change for handling
set-auto-coding while adding a kludgy code to avoid a compiler
bug.
1998-06-15 01:11:27 +00:00
Richard M. Stallman 1674d9a28b (skip_chars): Don't examine STRING before verifying that it is a string.
(scan_lists): Use prev_char_comend_first, not ...comstart...
1998-06-14 19:04:01 +00:00
Richard M. Stallman cdfac81276 (Fcall_interactively) <k, K>: If sequence ends in a down
event, discard following up event.
1998-06-14 19:03:11 +00:00
Eli Zaretskii 9a69bda1eb (dos_set_keyboard): Call Int 2Fh via the DPMI server, not directly.
(dos_yield_time_slice): New function.
(sys_select): Use it instead of __dpmi_yield.
1998-06-14 16:19:33 +00:00
Erik Naggum 60e6659c30 (Fcompleting_read): Escape bare newline in doc string. 1998-06-14 08:37:52 +00:00
Richard M. Stallman 26a047151b (Finsert_file_contents): Fix change to set INSERTED. 1998-06-14 05:51:03 +00:00
Richard M. Stallman c5c5a6f8d1 (parse_menu_item): Put a quote around DEF
to pass it as an argument to the filter function.
1998-06-13 05:27:47 +00:00
Kenichi Handa 80e803b4e7 (detect_coding_system): Always return a list of HIGHEST is zero.
(Fdetect_coding_region): Doc-string adjusted for the above change.
(Fdetect_coding_string): Likewise.
1998-06-13 01:41:23 +00:00
Richard M. Stallman 0592240774 (standard_args): Fix arg order to match code in `main'. 1998-06-12 23:20:54 +00:00
Kenichi Handa 54369368a3 (Finsert_file_contents): Undo the previous change for
handling set-ault-coding.
1998-06-12 08:44:43 +00:00
Kenichi Handa b69a8fdc6c (Finsert_file_contents): After calling handler,
get INSERTED from the handler's value.
1998-06-12 08:35:09 +00:00
Kenichi Handa b413243374 (set_auto_coding_unwind): New function.
(Finsert_file_contents): If the current buffer is empty, decide
the coding system after the file is inserted in the buffer.  If
not, insert the head and tail of a file in a temporary buffer and
call set-auto-coding-function.
(e_write): If there are carryover bytes in encoding because of
incomplete multibyte form, write them out as is.
1998-06-12 01:38:07 +00:00
Richard M. Stallman 9b9794f024 (SETUP_SYNTAX_TABLE): Don't call update_syntax_table
for FROM-1 if that's before BEGV.
1998-06-11 20:16:45 +00:00
Geoff Voelker 38cfb445f4 (LINK_FLAGS): Place debug info in executable in
unoptimized compile.  Link to run off of cd or network.
1998-06-11 04:33:37 +00:00
Richard M. Stallman 89c6809aa9 (Fforward_comment): Properly compute BYTEPOS arg to char_quoted. 1998-06-11 02:33:06 +00:00
Richard M. Stallman 445f44d296 (getcwd): Remove define.
(getdefdir) [emacs]: Redefine to always return root directory.
1998-06-10 21:00:58 +00:00
Richard M. Stallman 58f0cb7e31 (sys_rename): Don't examine errno if rename didn't fail. 1998-06-10 21:00:39 +00:00
Richard M. Stallman 976350af4c (readevalloop): New arg READFUN. Callers changed.
(Feval_region): New arg READ_FUNCTION.
1998-06-10 04:13:57 +00:00
Richard M. Stallman eb542c5159 (Feval_region): Accept 4 args. 1998-06-10 03:58:47 +00:00
Richard M. Stallman 5135279640 (PTR_TO_OFFSET): Alternate definition if not `emacs'. 1998-06-09 20:12:44 +00:00
Richard M. Stallman 852bff8fd8 (XTread_socket): Accept Japanese XK keysyms. 1998-06-09 01:55:49 +00:00
Richard M. Stallman 5936754e60 (redisplay_internal): If cursor's in the frame's echo area,
make last_point invalid instead of setting it normally.
(display_text_line): If cursor's in the frame's echo area,
don't set this_line_endpos.
(redisplay_window): Use Fwindow_end to find lower scroll margin.
1998-06-09 01:54:48 +00:00
Richard M. Stallman 1a102a5863 (struct lisp_parse_state): New field, levelstarts.
(scan_sexps_forward): Use 10th elt of STATE to set levelstarts.
(parse-partial-sexp): Add 10th elt to return value.
1998-06-08 04:29:46 +00:00
Richard M. Stallman d94a2d9ab6 (struct kboard): New elts Vreal_last_command and Vlast_prefix_arg. 1998-06-07 22:38:17 +00:00
Richard M. Stallman 75045dcbff (cmd_error): Init Vlast_prefix_arg.
(init_kboard, command_loop_1): Init Vlast_prefix_arg.
(Fcommand_execute): Set Vlast_prefix_arg to prefix arg used.

(command_loop_1): Set Vreal_last_command with Vlast_command.
(init_kboard): Init Vreal_last_command field.
(syms_of_keyboard): Set up Lisp var real-last-command.

(lispy_function_keys): Add kanji...eisu-toggle.
1998-06-07 22:37:36 +00:00
Richard M. Stallman fe3fbdcc80 (syms_of_callint): Set up Lisp variable. 1998-06-07 22:33:11 +00:00
Richard M. Stallman 23c73c165b (mark_kboards): Mark Vlast_prefix_arg too. 1998-06-07 22:32:47 +00:00
Richard M. Stallman 4bfd0c4f86 (mark_kboards): Mark all the Lisp_Object fields. 1998-06-07 21:41:37 +00:00
Richard M. Stallman 9cc4fad570 (init_callproc): Check Vinstallation_directory even if !initialized. 1998-06-06 22:04:07 +00:00
Richard M. Stallman 7e95234e31 (POS_AS_IN_BUFFER): Add 1 only if operating on a buffer.
(re_match_2, re_search_2): Adjust startpos or pos by 1
only if acting on a buffer.
nil for re_match_object means a buffer.
(re_match_2_internal <notwordbeg>): Assume POS1 is positive.
1998-06-06 21:59:21 +00:00
Richard M. Stallman f902a00832 (scan_lists): Properly skip the comment-fence character
that ends a comment, when moving forward.
(Fbackward_prefix_chars): Return immediately if point is at BEGV.

(prev_char_comend_first): New function.
(back_comment): Use that.  Carefully update syntax table position
for each character that is fetched.
(Fforward_comment): Likewise.
(scan_lists): Likewise.
(prev_char_comstart_first): New function.
1998-06-06 20:20:13 +00:00
Karl Heuer b3308d2eb9 #include sys/file.h
(sys_access): Provide our own implementation which recognizes D_OK.
(is_exec): New function.
(stat): Use it.
(init_environment): Set TMPDIR to an existing directory.
Abort if none of the usual places is available.
(sys_rename): On Windows 95, choose a temp name that
includes the original file's base name and use an explicit loop
rather than calling mktemp.  Only attempt to unlink the newname if
the rename fails, rather than second-guessing whether the old and
new names refer to the same file.
1998-06-05 16:08:32 +00:00
Karl Heuer 6cf71bf1f7 (Finsert_file_contents): Always update
Vlast_coding_system_used when we actually perform IO.
(Fwrite_region): Update documentation.
1998-06-05 16:02:11 +00:00
Karl Heuer 303901fb14 Comment change. 1998-06-05 15:51:08 +00:00
Karl Heuer 3270ae6e9b (main): Don't implement --version if not initialized. 1998-06-04 06:09:59 +00:00
Karl Heuer ad077db084 Handle the new convention that `position' values
in a string's intervals start from zero.
(validate_interval_range, interval_of, Fnext_property_change)
(property_change_between_p, Fnext_single_property_change)
(Fprevious_property_change, Fprevious_single_property_change):
(Ftext_property_any, Ftext_property_not_all): Implement that.

Undo previous change.
1998-06-03 14:45:03 +00:00
Karl Heuer 944d4e4b40 (create_root_interval): Initialize position to 0
for a string.
(interval_start_pos): New function.
(find_interval): Handle string positions starting at 0.
(adjust_intervals_for_insertion): Likewise.
(adjust_intervals_for_deletion): Likewise.
(compare_string_intervals): Likewise.
(graft_intervals_into_buffer): Set `position' in reproduce_tree value.
(copy_intervals): Init `position' to 0.
1998-06-03 14:44:21 +00:00
Karl Heuer afee915020 (DECODE_FILE, ENCODE_FILE):
Use code_convert_string_norecord.
1998-06-03 14:41:27 +00:00
Karl Heuer ecec61c199 (code_convert_string_norecord): New function.
Does encoding or decoding but doesn't set Vlast_coding_system_used.
1998-06-03 14:41:07 +00:00
Karl Heuer 074c438cbb (sys_subshell): Cast arg to chdir.
(init_sys_modes): Cast arg to setbuf or setvbuf.
1998-06-02 15:52:04 +00:00
Karl Heuer ac52ebd5d8 (syms_of_keyboard): Doc fix for suggest-key-bindings. 1998-06-02 15:49:47 +00:00
Kenichi Handa 5d76bc89d4 (string_to_non_ascii_char): Don't check the arg
EXCLUDE_TAIL_GARBAGE for an invalid composite characters.
1998-06-02 08:10:36 +00:00
Kenichi Handa 8a8147d64b (detect_coding_mask): Initilize local variable C. 1998-06-02 03:54:18 +00:00
Karl Heuer 6524291c22 (main): Test `initialized' before clearing *Messages*. 1998-06-01 21:08:28 +00:00
Karl Heuer 42d720cfa9 (SOCKLEN_TYPE): Define as int. 1998-06-01 21:07:32 +00:00
Richard M. Stallman c15cfd1faa Remember the last TWO strings skipped with #@.
(prev_saved_doc_string*): New variables.
(Fload): Initalize prev_saved_doc_string.
(read1): Copy saved_doc_string to prev_saved_doc_string
before storing a new string in saved_doc_string.
(read_list): Look in prev_saved_doc_string as well as
in saved_doc_string.

(read1): Swap saved_doc_string_length and
prev_saved_doc_string_length.
(read_list): Negate docstring position if negative before checking
against saved_doc_string_length et al.

(read_vector): Add bytecodeflag parameter, which is
nonzero when reading a bytecode object.  If
`load-force-doc-strings' is t when reading a lazily-loaded
bytecode vector, the loaded docstring must be treated as unibyte
and passed to Fread to obtain the actual bytecode string and
constants vector.
(read1): Add extra parameter to read_vector calls.

(read1): Enable saving of doc strings on WINDOWSNT.
(read_list): Call get_doc_string instead of read_doc_string, when
forced to load doc strings.
1998-06-01 21:03:23 +00:00
Karl Heuer 05b44e9027 (Fcall_process): Avoid initializer on auto struct. 1998-06-01 20:49:47 +00:00
Andrew Innes 124abc748d Use 1 as explicit value of empty #defines. 1998-06-01 14:23:44 +00:00
Andrew Innes efca9fdc86 (LOCAL_FLAGS): Define HAVE_NTGUI if appropriate. 1998-06-01 13:59:17 +00:00
Karl Heuer cadf50ff82 (Finsert_file_contents): Fix char signedness mismatches. 1998-06-01 03:32:52 +00:00
Karl Heuer c292461fc5 (doprnt1): Fix char signedness mismatches. 1998-06-01 03:32:00 +00:00
Karl Heuer 6d4279ab93 (Fredraw_frame): Don't erase frame or its glyph records
if it hasn't got any.
1998-06-01 03:12:04 +00:00
Geoff Voelker 556a263f57 (w32_fatal_reload_error): Update error message. 1998-05-30 23:42:16 +00:00
Geoff Voelker eb9ea53f9c (sys_rename): Handle filenames with accented characters.
(stat): Handle "c:/.." and "/.." specially.
1998-05-30 23:41:57 +00:00
Geoff Voelker a5b56dcda1 (sys_spawnve): Place Emacs pid in EM_PARENT_PROCESS_ID. 1998-05-30 23:41:48 +00:00
Karl Heuer e096c7f17f (distclean): Delete config.stamp, stamp-oldxmenu. 1998-05-30 15:48:11 +00:00
Karl Heuer da4d65af17 (syms_of_charset): Put \n\ at eol of docstring. 1998-05-30 14:52:20 +00:00
Karl Heuer dd394ff9dd (Fscroll_up, Fscroll_down, Fscroll_other_window): Doc fix. 1998-05-30 14:47:15 +00:00
Karl Heuer 17cea80917 (Fnext_property_change): Properly offset interval
position for string when comparing with LIMIT.
(property_change_between_p): Likewise.
(Fnext_single_property_change, Fprevious_property_change): Likewise.
(Fprevious_single_property_change): Likewise.
1998-05-29 22:26:22 +00:00
Richard M. Stallman aaf3523422 (command_loop_1): In shortcuts for forward-char etc,,
use FETCH_CHAR not FETCH_BYTE.
1998-05-28 18:10:20 +00:00
Richard M. Stallman 15c1f6fe16 Add prototype for get_doc_string. 1998-05-28 00:46:54 +00:00
Richard M. Stallman 0c3debbc6f (get_doc_string): Make non-static. 1998-05-28 00:46:38 +00:00
Richard M. Stallman 65059037ab (detect_coding_system): Treat CODING_EOL_INCONSISTENT
like CODING_EOL_UNDECIDED.
1998-05-26 20:46:31 +00:00
Richard M. Stallman f9ba10b011 (compute_motion): Check for past vpos/hpos target
before skipping invisible chars.
1998-05-25 22:33:38 +00:00
Richard M. Stallman 34c5d0ed52 (Fcall_interactively): Pass new arg to Fother_buffer. 1998-05-25 22:32:58 +00:00
Richard M. Stallman 96aab770c2 (sms_of_print): Doc fix in prev change. 1998-05-25 20:35:28 +00:00
Richard M. Stallman 38940e93ef (print_escape_nonascii): New variable.
(print) <Lisp_String>: Use it to force printing single-byte
non-ASCII characters as octal escapes.
(syms_of_print): Define print-escape-nonascii.
1998-05-25 20:29:54 +00:00
Richard M. Stallman 29b7163fa9 (CHAR_TABLE_TRANSLATE): New macro. 1998-05-25 20:28:28 +00:00
Richard M. Stallman 44eba967fc (RE_TRANSLATE): Use CHAR_TABLE_TRANSLATE. 1998-05-25 20:15:45 +00:00
Richard M. Stallman 33c4693956 (re_search_2): Don't use ++ inside RE_TRANSLATE.
(re_match_2_internal): Likewise.
1998-05-25 20:14:54 +00:00
Richard M. Stallman 1eab22b5de (print) <Lisp_Cons>: Detect circular list. 1998-05-25 16:28:02 +00:00
Richard M. Stallman c99babf20d (XTread_socket): Fix second argument of x_any_window_to_frame. 1998-05-25 16:03:58 +00:00
Richard M. Stallman 9e1348eee9 (setpgrp): Remove extra parens around parameters. 1998-05-25 16:01:08 +00:00
Kenichi Handa 66cfb53089 (ascii_skip_code): New variable.
(detect_coding_mask): Skip ASCII codes at the head according to
ascii_skip_code.
(coding_priorities): New variable.
(Fset_coding_priority_internal): New function.
(detect_coding): Call set_coding_mask with coding_priorities as
arg CODING.
(init_coding_once): Initialize ascii_skip_code.
(syms_of_coding): Declare set-coding-priority-internal as a Lisp
function.
1998-05-25 08:08:07 +00:00
Richard M. Stallman c520265ed4 (Fdelete_windows_on): For FRAME, change t to nil
and nil to t, but don't change other values.
1998-05-25 04:20:12 +00:00
Richard M. Stallman 6efc788795 (shrink_regexp_cache): New function. 1998-05-24 23:24:25 +00:00
Richard M. Stallman eec7b73dba (Fgarbage_collect): Call shrink_regexp_cache. 1998-05-24 23:23:59 +00:00
Richard M. Stallman e18a235e39 (message_dolog): Do set windows_or_buffers_changed,
if *Messages* is displayed in a window.
1998-05-24 07:30:16 +00:00
Richard M. Stallman 39a4c932b6 (Fchar_after): Make nil fully equivalent to (point) as arg.
(Fchar_before): Likewise.
1998-05-23 20:02:01 +00:00
Richard M. Stallman 97c3c30c78 (Fother_buffer): Doc fix. 1998-05-22 20:09:01 +00:00
Richard M. Stallman dbe7f1eff4 (frame_buffer_predicate, frame_buffer_list)
(set_frame_buffer_list, Fother_buffer): Decls changed.
1998-05-22 20:06:49 +00:00
Richard M. Stallman 773fbdb9c8 (Fother_buffer): New arg FRAME. Calls changed.
Pass it to frame_buffer_list, frame_buffer_predicate.
(record_buffer): Pass selected frame to them
and to set_frame_buffer_list.
1998-05-22 20:05:56 +00:00
Richard M. Stallman 98ce16221e (frame_buffer_predicate): New arg FRAME.
(frame_buffer_list, set_frame_buffer_list): Likewise.
(make_frame): Pass new arg to Fother_buffer.

(make_frame_visible_1): New function.
(Fmake_frame_visible): Use that.
1998-05-22 20:04:40 +00:00
Richard M. Stallman b7354ddfcd (window_loop): Pass new arg to Fother_buffer.
(select_window_1): New subroutine, from Fselect_window.
(Fselect_window): Use select_window_1.
(temp_output_buffer_show): Use select_window_1.
1998-05-22 20:03:28 +00:00
Kenichi Handa f967223b11 Change term "character translation table" to "translation table". 1998-05-22 09:45:34 +00:00
Kenichi Handa 537efd8df0 Change term "character translation table" to
"translation table".
(string_to_non_ascii_char): New arg EXCLUDE_TAIL_GARBAGE.  Caller
changed.
(Funibyte_char_to_multibyte): Doc-string fixed.
(syms_of_charset): Doc-string fixed.
1998-05-22 09:44:27 +00:00
Kenichi Handa d74d0ca5a8 (STRING_CHAR_AND_CHAR_LENGTH): New macro.
(string_to_non_ascii_char): Adjusted for the new arg.
1998-05-22 09:44:27 +00:00
Kenichi Handa 872a36d2e6 (print_string): Don't ignore garbage bytes following a
multibyte characters.
(print): Likewise.
1998-05-22 09:44:27 +00:00
Richard M. Stallman ba14e174a6 (Ffile_name_directory, Ffile_name_nondirectory)
[DOS_NT]: Handle the special construct "/:" when followed by d:foo.
1998-05-21 02:06:21 +00:00
Richard M. Stallman 309f2a6e70 (init_buffer): Support DOS_NT absolute file names. 1998-05-21 02:05:53 +00:00
Kenichi Handa 1d67c29bf7 (find_charset_in_str): New arg CMPCHARP.
(Ffind_charset_region): Call find_charset_in_str with CMPCHARP 0.
(Ffind_charset_string): Likewise.
1998-05-21 01:48:52 +00:00
Kenichi Handa 3f639f8562 (find_charset_in_str): Number of arguments fixed. 1998-05-21 01:48:52 +00:00
Kenichi Handa aa60dea617 (shrink_decoding_region): No short cut by
coding->heading_ascii if eol conversion is necessary.
1998-05-21 01:48:52 +00:00
Kenichi Handa aabd38eca1 (Fstring_make_multibyte): Call CHECK_STRING.
(Fstring_make_unibyte, Fstring_as_unibyte, Fstring_as_multibyte):
Likewise.
1998-05-21 01:48:52 +00:00
Kenichi Handa e550dcb299 (lisp_data_to_selection_data): Call
find_charset_in_str with CMPCHARP 1 to encode Lisp string if it
contains a composite character.
1998-05-21 01:48:52 +00:00
Richard M. Stallman e9cccb7183 (syms_of_minibuf): Doc fix. 1998-05-20 03:01:19 +00:00
Richard M. Stallman a5fcbc4e5a (Fscroll_up, Fscroll_down, Fscroll_other_window): Doc fixes. 1998-05-20 02:01:10 +00:00
Richard M. Stallman e042d829e1 (struct buffer): New slot display_time. 1998-05-20 00:39:09 +00:00
Richard M. Stallman 3fd364dbd5 (syms_of_buffer): Set up Lisp variable buffer-display-time.
Doc fixes.
(reset_buffer): Initialize display_time slot.
(init_buffer_once): Initialize display_time slot.
1998-05-20 00:38:47 +00:00
Richard M. Stallman beb4e3124e (Fselect_window): Doc fix.
(temp_output_buffer_show): Make the temp buffer current
before running Qtemp_buffer_show_hook.
1998-05-19 22:35:20 +00:00
Richard M. Stallman 81d2de9b9c (redisplay_window): Don't use window->start
if it is out of range of BEGV/ZV.
1998-05-19 22:34:36 +00:00
Richard M. Stallman c6d6572475 (read_minibuf): If history list var is void, make it nil. 1998-05-19 03:41:25 +00:00
Kenichi Handa 130901129f (skip_chars): Fix previous change. 1998-05-18 04:53:37 +00:00
Kenichi Handa bb9c978adc (Vnonascii_translation_table): Name changed from
Vnonascii_translate_table.
1998-05-18 00:59:38 +00:00
Kenichi Handa 8146262a46 Change term translation to code conversion, then change
terms unify/unification to translate/translation respectively
throughtout the file.
1998-05-18 00:59:38 +00:00
Kenichi Handa b4e9dd77cc Change terms unify/unification to
translate/translation respectively throughtout the file.
(ONE_BYTE_CHAR_WIDTH): Delete unnecessary continuation line at the
tail.
1998-05-18 00:59:38 +00:00
Kenichi Handa 62c6686f98 Change terms unify/unification to
translate/translation respectively throughtout the file.
(GET_TRANSLATION_TABLE): Name changed from UNIFICATION_ID_TABLE.
1998-05-18 00:59:38 +00:00
Kenichi Handa 84fbb8a002 Change terms unify/unification to
translate/translation respectively throughtout the file.
(encode_coding_iso2022): Fix bug in encoding a text ending by a
composite character.
(check_composing_code): If we are decoding the last block of data,
return 0 even if the source doesn't end by an escape sequence
which terminates the current composing sequence.
(decode_coding_iso2022): Decode correctly even if the source
doesn't end by an escape sequence which terminates the current
composing sequence.
1998-05-18 00:59:38 +00:00
Kenichi Handa ab45712c8f Change terms unify/unification to
translate/translation respectively throughtout the file.
1998-05-18 00:59:38 +00:00
Kenichi Handa 44893c8f3a (concat): Fix bug in concatinating a list of multibyte and
unibyte characters.
1998-05-18 00:59:38 +00:00
Kenichi Handa 06274af57f (skip_chars): Fix bug in handling a range which
contains multibyte characters.
1998-05-18 00:59:38 +00:00
Richard M. Stallman c321b1908b (get_boot_time): Scan the whole wtmp file
to find the most recent reboot.
1998-05-18 00:17:38 +00:00
Richard M. Stallman 3ea2d8b25c (Fexpand_file_name): Change conditional
in previous change from WINDOWSNT to DOS_NT.
1998-05-17 21:37:02 +00:00
Richard M. Stallman 0aa8c4b24d (insert_1_both, insert_from_string_1, replace_range)
(insert_from_buffer_1, adjust_before_replace, adjust_after_replace):
Don't copy text being deleted, if undo is disabled.
1998-05-16 20:34:59 +00:00
Richard M. Stallman f5321b5c8a (Fexpand_file_name) [WINDOWSNT]: Be careful not to
concatenate the directory prefix and file name to accidentally
create a network share name.
1998-05-16 19:56:07 +00:00
Richard M. Stallman adc1d5c873 (read_char): If redisplay is preempted,
try swallow_events; if that clears input_pending,
finish the redisplay.

(parse_menu_item): Removed unnecessary gcproing.
Fix a test of inmenubar.
1998-05-16 18:30:52 +00:00
Richard M. Stallman 00a9a93524 (readchar): Use readchar_backlog again
to read a character byte by byte, if its byte sequence
does not really match the character code.
(unreadchar): Handle readchar_backlog.
(readevalloop, Fread): Initialize readchar_backlog to -1.
1998-05-16 18:30:00 +00:00
Richard M. Stallman a7e4cdde61 (search_buffer): Set search regs for all success with an empty string.
(set_search_regs): Clear out all regs except 0.
1998-05-15 22:23:01 +00:00
Richard M. Stallman b44c3d59fa (signal_quit): Add prototype. 1998-05-15 20:55:45 +00:00
Richard M. Stallman 86143765b7 (sys_select): Always wait on interrupt_handle, so that
user can break out of `accept-process-input' (for instance) by typing C-g.
1998-05-15 20:55:26 +00:00
Richard M. Stallman 53d6080399 (w32_wnd_proc): Call signal_quit when C-g is received. 1998-05-15 20:53:53 +00:00
Richard M. Stallman 1ce3dc2b2d (interrupt_handle): New variable.
(init_crit): Initialize it.
(delete_crit): Cleanup on exit.
(signal_quit): New function.  Signal any threads that are blocked
on a "system" call (provided they have been specially written to
check for this), so the call can fail with EINTR as on Unix.
1998-05-15 20:53:39 +00:00
Richard M. Stallman df4cb2b7ad Renamed "struct buffer" to "struct termcap_buffer" to
avoid confusing the MSVC debugger.
1998-05-15 00:34:07 +00:00
Geoff Voelker 8331e67615 (w32_ring_bell): Flash window correctly. 1998-05-14 05:16:54 +00:00
Richard M. Stallman 6b3a18963a (Finsert_file_contents): Don't check non-regular
files for a coding: specification.
1998-05-14 03:54:50 +00:00
Eli Zaretskii 360c227503 (init_environment): Set TMPDIR to an existing
directory.  Abort if none of the usual places is available.
1998-05-13 15:12:18 +00:00
Richard M. Stallman feb9dc27d7 (Finsert_file_contents): Check that a -*- coding: -*- spec
or a local variables list exists, before Vset_auto_coding_function.
1998-05-13 06:47:40 +00:00
Richard M. Stallman 74cf0beb86 (skip_chars): When fetching char after \,
don't fail to set c_leading_code.
1998-05-13 06:47:15 +00:00
Richard M. Stallman 669c6673fc (Fminibuffer_complete_word): Fix the string-comparison loop. 1998-05-13 00:30:55 +00:00
Richard M. Stallman ba29c3c941 (get_doc_string): New arg UNIBYTE
Maybe use make_unibyte_string.  All callers changed.
(read_doc_string): Specify 1 for UNIBYTE.
1998-05-12 23:11:10 +00:00
Richard M. Stallman 70697733d4 (Finsert_file_contents): Don't use the fast replace code
if coding needs eol conversion.
(Finsert_file_contents) [DOS_NT]: When setting buffer_file_type,
if code conversion is needed, file is not binary.
1998-05-12 23:10:15 +00:00
Richard M. Stallman fd3613d785 (parse_menu_item): Argument inmenubar < 0 now means
parsing a keyboard menu item.
(read_char_minibuf_menu_prompt): Use `parse_menu_item' to understand
new menu item format.
1998-05-12 21:33:59 +00:00
Richard M. Stallman bb1584c878 (stat, get_long_basename): Fail if filename contains any
characters that are illegal in file names.
1998-05-12 21:33:44 +00:00
Richard M. Stallman 7d3159862c (Fall_completions, Ftry_completion): Compare char sizes, not STRING_BYTES. 1998-05-12 20:15:27 +00:00
Richard M. Stallman 9404446f1e (assoc_for_completion): Use Fcompare_strings.
(test_completion): In obarray, try both unibyte and multibyte strings.
(read_minibuf): Convert unibyte prompt to multi if minibuffer is multi.
(Fdisplay_completion_list): Convert unibyte to strings to multibyte
to conform to the buffer.
1998-05-12 02:48:51 +00:00
Richard M. Stallman 09cacf9c79 (redisplay_window): Handle scroll_step along with
scroll_conservatively.  Fix 1-off error checking the limit for them.
1998-05-11 16:36:02 +00:00
Richard M. Stallman 88eace34a7 (unlock_file): Encode the file name. 1998-05-11 15:52:28 +00:00
Richard M. Stallman b69f979760 (Fset_buffer_multibyte): Error if marker is put
on buffer's marker-chain while we have temporarily put nil there.
1998-05-11 01:14:36 +00:00
Richard M. Stallman 7693a579bd (unchain_marker): Abort if the marker is not in its buffer's chain.
(buf_bytepos_to_charpos): Fix assignment of `record'
when scanning from below.
Don't create a marker if buffer's marker chain is empty.
1998-05-11 01:11:02 +00:00
Richard M. Stallman 95fb069bc9 Comment change. 1998-05-11 01:08:59 +00:00
Richard M. Stallman f072a3e84c (code_convert_region1): Set Vlast_coding_system_used.
(code_convert_string1): Likewise.
(Fdecode_coding_region, Fencode_coding_region): Doc fixes.
(Fdecode_coding_string, Fencode_coding_string): Doc fixes.
1998-05-10 21:52:08 +00:00
Richard M. Stallman 6791894163 (Fstart_process): Remove the special case for
unibyte, for initializing the process coding systems.
Instead, use the normal multibyte code, but check
BUFFER's value and the default value of enable-multibyte-characters.
(Fopen_network_stream): Likewise.
1998-05-10 19:21:05 +00:00
Richard M. Stallman 6f940ba15d (TAGS): Specify directory when running etags. 1998-05-10 07:01:15 +00:00
Richard M. Stallman b77ad57db9 (Fbyte_code): Don't use Bmark. 1998-05-10 01:16:42 +00:00
Richard M. Stallman 14a8902aad (xstring): Handle unibyte strings.
(xchartable, xboolvector): New commands.
1998-05-10 01:13:11 +00:00
Richard M. Stallman e6b5063973 (redisplay_window): Don't use last_point_x and last_point_y
if cursor_in_echo_area.
1998-05-10 00:40:00 +00:00
Richard M. Stallman 406e55df20 (Qbuffer_name_history): New variable.
(syms_of_minibuf): Initialize it.
(Fread_buffer): Use that history list.
1998-05-09 23:55:27 +00:00
Richard M. Stallman 5ab13dd02e (detect_coding_mask): Check also coding-category-binary. 1998-05-09 21:47:17 +00:00
Richard M. Stallman 7c7ca3d217 (scan_lists, scan_sexps_forward): Move complex expressions
outside of the switch statement.
1998-05-09 07:39:00 +00:00
Kenichi Handa 9129bcc3bd Fix previous change. 1998-05-09 01:23:58 +00:00
Richard M. Stallman 4724eab4ec (Fcall_process): Fix test for when to call Ffind_operation_coding_system. 1998-05-08 05:14:47 +00:00
Richard M. Stallman c71c19f497 Comment change. 1998-05-08 05:10:29 +00:00
Kenichi Handa c38bd42839 (compute_motion): Fix, in a different way, the bug of handling
wide-column character around right margin.
1998-05-08 04:17:48 +00:00
Richard M. Stallman 33fe7d2059 (compute_motion): Undo both May 7 changes. 1998-05-08 02:28:22 +00:00
Richard M. Stallman 64f6f0d84b (doprnt1): Cast arg to CHAR_STRING. 1998-05-08 02:20:38 +00:00
Kenichi Handa 4aa5eb5a42 (compute_motion): Fix previous change. 1998-05-08 00:08:09 +00:00
Richard M. Stallman d131e79c3a (Freplace_match): Fix the loop for copying text
from a string, in handling lastpos and pos.
1998-05-07 23:15:14 +00:00
Richard M. Stallman f0f95d3101 (Fexpand_file_name) [DOS_NT]: Note when special escape
prefix /: is present, and reinsert after name has been expanded.
Only recognize drive specifier at beginning of name.

(Fexpand_file_name): Don't strip trailing slash if newdir is just /.
1998-05-07 23:11:57 +00:00
Richard M. Stallman a458d45d9e (Fintern): Properly compare lisp objects. 1998-05-07 20:48:17 +00:00
Richard M. Stallman 899cb8f0f3 (set_internal): Properly compare lisp objects.
(Fmakunbound): Likewise.
1998-05-07 20:47:53 +00:00
Eli Zaretskii 02b9b4fd8a (init_process, syms_of_process): Make definition consistent with
prototypes on lisp.h
1998-05-07 07:46:41 +00:00
Kenichi Handa dbc08868a2 (compute_motion): Fix bug of handling wide-column
character around right margin.
1998-05-07 06:41:12 +00:00
Richard M. Stallman 6c0316aea2 (syms_of_buffer) <buffer-file-coding-system>: Doc fix. 1998-05-07 04:02:36 +00:00
Kenichi Handa 7a7ab107f9 (Fcall_process): If we must display received data on
the fly, don't wait until a buffer is filled.
1998-05-07 01:05:36 +00:00
Richard M. Stallman 9d99031fcf (regex_compile): When checking after exactn
for a repetition operator, don't look beyond end of pattern arg.
1998-05-06 20:46:35 +00:00
Richard M. Stallman 8bb697c0d6 (main): Call the syms_of_... and keys_of_... functions
earlier, before init_vms_input and init_display.
1998-05-06 20:44:38 +00:00
Richard M. Stallman 833d591d60 (create_process): Add cast when calling encode_coding
and another when storing buf into new_argv.
1998-05-05 19:33:16 +00:00
Richard M. Stallman 643c73b90b (barf_or_query_if_file_exists): Encode file name.
(Finsert_file_contents): Don't use gap pos to set point
if del_range_byte deleted 0 characters.
1998-05-05 19:32:02 +00:00
Richard M. Stallman a558a05d61 (Fmake_bool_vector): Clear out extraneous bits at end. 1998-05-05 19:30:33 +00:00
Richard M. Stallman cb6792d2db (boyer_moore): Check more reliably for ptr[1] being
out of range.  Use pat_end to point at the pattern's end.
1998-05-05 06:25:58 +00:00
Richard M. Stallman 38cf95df42 (encode_coding_iso2022): Don't skip a code following some invalid code. 1998-05-04 22:33:38 +00:00
Richard M. Stallman 490fe8b05c (WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when there are no
vertical scrollbars and this is the rightmost window in the frame.
1998-05-04 20:14:36 +00:00
Eli Zaretskii 229ba775d4 (Fload): Rename dosmode to fmode and use it on all
platforms.  Avoid calling fdopen only for WINDOWSNT, use fdopen
for the the MSDOS version.
(read1): Avoid recording doc strings positions only for WINDOWSNT,
not for MSDOS.
1998-05-04 15:32:44 +00:00
Eli Zaretskii 67d3b149e2 (read1): Clear out extraneous bits at end of bool-vector. 1998-05-04 15:29:47 +00:00
Andreas Schwab ae79c227e8 Include syssignal.h after lisp.h. 1998-05-04 09:25:21 +00:00
Andreas Schwab 030f447530 Declare init_signals and add prototypes. 1998-05-04 09:24:30 +00:00
Andreas Schwab 46abf440cd Declare init functions. 1998-05-04 09:22:29 +00:00
Richard M. Stallman 5e0082a529 (LIBXMU): Don't bother testing CANNOT_DUMP. 1998-05-04 01:50:46 +00:00
Richard M. Stallman becf3db327 (TAGS-LISP): New target.
(${lispsource}TAGS): Target deleted.
(tags): Depend on TAGS-LISP.
(TAGS): Generate the TAGS file in the build dir.
(lisptagsfiles): Variable deleted.

(shortnamesdir, cppdir): Vars deleted.
(shortnames): Target deleted.
(temacs): Don't use $(SHORT).
(SHORT): Var deleted.
1998-05-03 08:24:10 +00:00
Richard M. Stallman e8cb089b39 (compute_motion): When invisible text cross TO,
return TO, not the start of the invisible text.
1998-05-03 04:33:27 +00:00
Richard M. Stallman f6a492a9f2 Comment change. 1998-05-03 04:30:10 +00:00
Richard M. Stallman 7276d3d802 (search_buffer): Fix casts when assigning raw_pattern.
(compile_pattern_1): Declare raw_pattern as unsigned char *.
Fix casts when assigning raw_pattern.
Cast raw_pattern when calling re_compile_pattern.
1998-05-03 02:32:58 +00:00
Richard M. Stallman 3c6db9d561 (Fformat): Fix casts when assigning buf. 1998-05-03 02:24:36 +00:00
Richard M. Stallman d8578e586c (isfloat_string): Don't look at bytes before the string. 1998-05-03 00:50:06 +00:00
Richard M. Stallman d85e7184b9 (HAVE_STRING_H): Add #undef.
(NO_ABORT): Defined.
1998-05-02 06:40:41 +00:00
Richard M. Stallman dbcb258a89 (XTwrite_glyphs): Don't advance cursor X beyond limit.
(XTcursor_to): Likewise.
1998-05-02 06:39:39 +00:00
Richard M. Stallman f4a4528da4 Include coding.h.
(lock_file): Encode the file name, to make lock file name.
1998-05-02 06:38:41 +00:00
Richard M. Stallman 31406df1a4 (Vfile_name_coding_system)
(Vdefault_file_name_coding_system): Declarations added.
1998-05-02 06:38:09 +00:00
Richard M. Stallman 8a7777fc1a (Fmake_temp_name): Improve randomness of generated file names. 1998-05-02 06:00:42 +00:00
Richard M. Stallman ba88b32238 (Finsert_char): Doc fix. 1998-05-02 05:39:14 +00:00
Richard M. Stallman 8231a9aaf2 Whitespace change. 1998-05-02 05:20:30 +00:00
Geoff Voelker 779a69a822 (enum_font_cb2): Only ignore raster fonts when
determining height and width.
1998-05-02 02:06:41 +00:00
Richard M. Stallman bba07c181d (LIBS): Link in shell32.lib. 1998-05-01 04:52:54 +00:00
Richard M. Stallman 523812cdf3 (event_kind): New event type `drag_n_drop'. 1998-05-01 04:52:40 +00:00
Richard M. Stallman a24dc617a8 (Qdrag_n_drop, drag_n_drop_syms, lispy_drag_n_drop_names): New variables.
(make_lispy_event): Handle drag_n_drop events.
(syms_of_keyboard): Initialize new symbols.
1998-05-01 04:51:51 +00:00
Richard M. Stallman 1e9582d459 (wordify): Do the second loop by chars, not by bytes. 1998-05-01 04:51:20 +00:00
Richard M. Stallman 12857dfd21 Include shellapi.h.
(construct_drag_n_drop): New function.
(w32_read_socket): Handle WM_DROPFILES messages.
1998-05-01 04:38:20 +00:00
Richard M. Stallman cb9e33d4a5 Include shellapi.h.
(w32_createwindow): Enable drag-n-drop on new windows.
(w32_wnd_proc): Handle WM_DROPFILES messages.
Disable drag-n-drop on closing windows.
1998-05-01 04:37:42 +00:00
Kenichi Handa 49cb52b45c (encode_coding_iso2022): If encoding a last block,
reset graphic planes and registers.
1998-05-01 04:15:48 +00:00
Geoff Voelker f11f6ccebb (WM_MOUSEWHEEL): Define relative to WM_MOUSELAST.
(MSH_MOUSEWHEEL): New macro.
1998-04-30 17:21:12 +00:00
Geoff Voelker e7efd97e0f (msh_mousewheel): Declare.
(w32_read_socket): Check for mousewheel events.
1998-04-30 17:20:53 +00:00
Geoff Voelker 93fbe8b746 (msh_mousewheel): New variable.
(w32_msg_pump): Register that Emacs accepts mousewheel events.
(w32_wnd_proc): Check for mousewheel events.
1998-04-30 17:19:55 +00:00
Richard M. Stallman eabb24d041 [defined (__alpha__) && !defined (__NetBSD__) && !defined (__OpenBSD__)]:
Include definition of HDRR structure that used to be in sym.h,
instead of sym.h.
1998-04-30 03:45:54 +00:00
Richard M. Stallman ec067ec7e1 (minibuf_conform_representation): New function.
(Ftry_completion): Use it to return multibyte string
if and only if the completion table has a multibyte string.
(Fdisplay_completion_list):
Convert string to unibyte before displaying it, if default is unibyte.
1998-04-30 03:16:00 +00:00
Richard M. Stallman 88817f3b42 (find_handler_clause): Cast Fbacktrace to proper type. 1998-04-30 03:13:09 +00:00
Richard M. Stallman 2ba993db41 (struct process): Make inherit_coding_system_flag a Lisp_Object. 1998-04-29 21:47:23 +00:00
Richard M. Stallman aa91317aed (Fset_process_inherit_coding_system_flag, Fstart_process):
Store inherit_coding_system_flag as a Lisp_Object.
(Fopen_network_stream): Likewise.
(Fprocess_inherit_coding_system_flag): Access it as Lisp_Object.
(read_process_output): Likewise.
1998-04-29 21:46:43 +00:00
Andreas Schwab 201d8c78ac Fix -Wimplicit warnings. 1998-04-29 09:49:44 +00:00
Andreas Schwab 84920a5cce (redisplay_window): Update STARTP_BYTE alongside with
STARTP.  New variable scroll_margin_bytepos, to parallel
scroll_margin_pos.  Fix arguments of pos_tab_offset to agree with
the first argument of compute_motion.
1998-04-29 09:46:49 +00:00
Andreas Schwab 9d1ec8314f (make_window): Initialize last_point field. 1998-04-29 09:44:06 +00:00
Andreas Schwab 1d9f9f9e64 (emacs_get_tty): Zero out termios structure before
getting attributes to get consistent values for holes.
(emacs_set_tty): Likewise.
1998-04-29 09:42:46 +00:00
Andreas Schwab 42d65b5fc8 Declare Fcompare_strings. 1998-04-29 09:41:10 +00:00
Andreas Schwab 58edb57253 Include <time.h> for time. 1998-04-29 09:37:15 +00:00
Andreas Schwab 3e75bb9e71 (main): Use Vbuffer_alist instead of Fbuffer_list.
(syms_of_emacs): Fix doc of Vsignal_USR1_hook and
Vsignal_USR2_hook.
1998-04-29 09:35:31 +00:00
Andreas Schwab f82423d721 (setup_coding_system): Properly check for nil. 1998-04-29 09:33:53 +00:00
Andreas Schwab 28ae27ae28 (re_search_2): Fix indentation. 1998-04-29 09:23:15 +00:00
Richard M. Stallman 07422a1266 (Fcompare_buffer_substrings): Rewrite to loop by chars. 1998-04-29 06:50:40 +00:00
Richard M. Stallman 37e2fdd268 (abort): Omit this definition, if NO_ABORT.
End by calling exit, to avoid warning.
1998-04-29 05:02:34 +00:00
Geoff Voelker 96214669c4 Forward declare hooks with full function prototypes.
(x_make_frame_visible): Pass dummy argument to input_poll_signal.
1998-04-29 04:43:08 +00:00
Geoff Voelker 543b3f021a (w32_console_mouse_position, w32_console_read_socket):
Declare with full function prototypes.
1998-04-29 04:36:27 +00:00
Geoff Voelker 81e3e4fd09 (w32_console_mouse_position): Rename from
w32_mouse_position.
1998-04-29 04:36:00 +00:00
Geoff Voelker f3d268f900 (initialize_w32_displayed): Use new function prototypes. 1998-04-29 04:35:17 +00:00
Geoff Voelker eccec691ae Include cm.h after dispextern.h to avoid name conflicts
in Windows system headers.
(term_init) [WINDOWSNT]: Do not include remainder of function.
1998-04-29 04:34:52 +00:00
Geoff Voelker 38adb313a0 [WINDOWSNT]: Use function prototypes. 1998-04-29 04:34:29 +00:00
Geoff Voelker 6d55d620a6 Conditionally include xterm.h using HAVE_X_WINDOWS. 1998-04-29 04:34:05 +00:00
Richard M. Stallman c86212b98b (Fgap_position, Fgap_size): New functions.
(syms_of_editfns): defsubr them.
1998-04-29 01:00:01 +00:00
Richard M. Stallman eb4b1c0532 Fix previous change. 1998-04-29 00:59:43 +00:00
Richard M. Stallman 81d7062685 (Flsh, Fash): Handle out-of-range shift counts reasonably. 1998-04-29 00:59:22 +00:00
Richard M. Stallman 3036594f2a (lock_file): gcpro `fn'. 1998-04-29 00:28:28 +00:00
Richard M. Stallman 35d6372510 (insert_1_both): Call prepare_to_modify_buffer before moving or making gap.
(insert_from_string_1): Don't check max buffer size here.
1998-04-29 00:20:14 +00:00
Richard M. Stallman cea6021b07 Comment changes. 1998-04-28 23:39:57 +00:00
Richard M. Stallman 7acceb4aaf (HAVE_STRING_H): Add #undef.
(HAVE_WAIT_HEADER): Defined.
1998-04-28 22:58:20 +00:00
Richard M. Stallman 12411c24ba (main): Doc --multibyte and --unibyte in --help message. 1998-04-28 21:35:36 +00:00
Richard M. Stallman e1176af4c5 (main): Fix bug report address. 1998-04-28 21:33:28 +00:00
Richard M. Stallman d73c6532e1 [HAVE_MENUS]: Include xterm.h only if HAVE_X_WINDOWS. 1998-04-28 21:21:14 +00:00
Eli Zaretskii c26949c3c8 (callproc.o, print.o, cmds.o, dispnew.o, fileio.o,
frame.o, keyboard.o, minibuf.o, process.o, scroll.o, sysdep.o,
term.o, w16select.o, window.o, xdisp.o, xfaces.o, lread.o): Depend
on msdos.h.
(print.o): Depend on dispextern.h.
1998-04-28 14:18:24 +00:00
Andreas Schwab c1a2f60a9c Fix -Wimplicit warnings. 1998-04-28 09:35:07 +00:00
Andreas Schwab 3a80c0aa96 (Fset_process_inherit_coding_system_flag): Fix test for non-nil FLAG. 1998-04-28 09:27:02 +00:00
Andreas Schwab 6c478f93f6 (readevalloop): Fix type of UNIBYTE parameter. 1998-04-28 09:23:01 +00:00
Richard M. Stallman de4df76b65 (reinvoke_input_signal): Don't use prototype decl. 1998-04-28 02:33:19 +00:00
Ulrich Drepper 1823194b95 automatically generated from GPLed version 1998-04-27 23:48:59 +00:00
Richard M. Stallman f4b50f66ee (Fload_average): New arg USE_FLOATS. 1998-04-27 20:54:19 +00:00
Richard M. Stallman b1ee4bd147 [HAVE_MENUS]: Include xterm.h only if HAVE_WINDOW_SYSTEM is defined. 1998-04-27 20:30:51 +00:00
Richard M. Stallman d68cc14c93 (Fcompare_strings): Doc fix. 1998-04-27 20:29:38 +00:00
Eli Zaretskii 7990d02a2d Include msdos.h after lisp.h. 1998-04-27 14:26:43 +00:00
Eli Zaretskii 5f027cead6 nclude msdos.h after lisp.h. 1998-04-27 14:24:08 +00:00
Eli Zaretskii 71f6566933 (IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line,
IT_clear_screen, IT_clear_to_end, IT_clear_to_end, IT_cursor_to,
IT_cmgoto, IT_reassert_line_highlight, IT_change_line_highlight,
IT_update_begin, IT_update_end, IT_set_terminal_modes,
IT_reset_terminal_modes, IT_set_terminal_window,
pixel_to_glyph_coords, IT_menu_display):  Bring definitions in
accordance with prototype declarations.
1998-04-27 14:18:00 +00:00
Eli Zaretskii bd5197a45b [!HAVE_X_WINDOWS]: Add a dummy typedef for XRectangle
and prototypes for external functions.
1998-04-27 14:15:07 +00:00
Richard M. Stallman a76206dcc3 (x_set_foreground_color, x_set_background_color)
(x_set_mouse_color, x_set_cursor_color): Don't call unload_color
if same pixel is used in another slot in the frame.

(x_set_foreground_color): Call unload_color on the old color.
(x_set_background_color, x_set_mouse_color): Likewise.
(x_set_cursor_color, x_set_border_pixel): Likewise.
1998-04-26 22:36:29 +00:00
Richard M. Stallman 74c1de234c (parse_menu_item): Support keywords :keys and
:key-sequence.  Some changes to provide GC-protection. Some
cosmetic changes.
(syms_of_keyboard): Define new symbols `:keys' and `:key-sequence'.
1998-04-26 22:34:53 +00:00
Richard M. Stallman 871fb8d0e1 (standard_args): Apply --unibyte/multibyte after --nw. 1998-04-26 19:21:14 +00:00
Richard M. Stallman bdd47b1c07 (Fintern): Initialize keywords only in initial obarray. 1998-04-26 19:16:46 +00:00
Richard M. Stallman 454fa45765 (Fmakunbound): Test keywordness only in initial obarray.
(set_internal): Test keywordness only in initial obarray.
1998-04-26 19:16:25 +00:00
Richard M. Stallman 393306dd07 Include initial_obarray from lread.c 1998-04-26 19:14:58 +00:00
Richard M. Stallman b9c4113ee8 (croak): Add forward declaration. 1998-04-26 02:18:58 +00:00
Richard M. Stallman adfea139b3 (unload_color): No longer static. 1998-04-25 23:33:59 +00:00
Richard M. Stallman 62b82678be (insert_from_string, insert_from_string_before_markers):
Don't special case LENGTH = 0.
(insert_from_buffer): Likewise.
1998-04-25 23:32:56 +00:00
Richard M. Stallman d6a1be6453 (x_display_cursor): Use FRAME_CURSOR_X_LIMIT. 1998-04-25 23:08:24 +00:00
Richard M. Stallman 868e640e90 (change_frame_size_1): Use FRAME_CURSOR_X_LIMIT.
(update_frame): Likewise.
1998-04-25 23:08:09 +00:00
Richard M. Stallman 4ff3479544 (FRAME_CURSOR_X_LIMIT): New macro. 1998-04-25 23:07:46 +00:00
Richard M. Stallman 8028e0edda (Fread_from_string): Initialize startval and endval. 1998-04-25 22:00:26 +00:00
Richard M. Stallman 7b140fd7c7 (re_search_2): Fix handling of at_dot.
Fix the way RANGE is set when handling begbuf.
1998-04-25 03:37:36 +00:00
Richard M. Stallman 6f46329ac1 (read1): Allow multibyte and unibyte together in one string. 1998-04-24 21:25:31 +00:00
Richard M. Stallman 6395da5ced (update_frame): Move echo area cursor into range. 1998-04-24 21:22:48 +00:00
Richard M. Stallman 2e54982edd (Qinhibit_point_motion_hooks): New variable.
(syms_of_xdisp): Init and staticpro it.
(redisplay_window): Bind the symbol to t.
1998-04-24 06:28:46 +00:00
Geoff Voelker caf1a17212 (sys_socket): Make sockets non-inheritable. 1998-04-24 04:35:05 +00:00
Richard M. Stallman ee59c65fd0 (shrink_decoding_region): Do not consider LF as ascii
if preceded by CR, since that confuses eol decoding.
(code_convert_region): When conversion fails with
CODING_FINISH_INSUFFICIENT_SRC, was overwriting src with garbage
from dst instead of copying from src to dst.
1998-04-24 01:05:25 +00:00
Geoff Voelker 80874ef71c (sys_kill): Fix indenting. 1998-04-23 23:43:22 +00:00
Geoff Voelker 485015ca07 Replace code with a new version written from scratch
based on xmenu.c; menu construction is now completely lazy.
1998-04-23 23:43:02 +00:00
Geoff Voelker 014b6ea1df (w32_read_socket): Don't misinterpret WM_PAINT message
as an expose event if the repaint region is actually empty.  Also
use the standard menubar_selection_callback routine.
1998-04-23 23:42:28 +00:00
Geoff Voelker f9ba66ce95 (Fcopy_file): Skip dev/inode check on Windows. 1998-04-23 23:42:09 +00:00
Geoff Voelker 719072f5c4 (utimbuf): New macro. 1998-04-23 23:41:42 +00:00
Geoff Voelker 16bb7578f2 (fstat, utime): New functions; these are provided in
conjunction with stat to make handling of file timestamps
consistent.
(convert_from_time_t): Fix calculation of low-order bits.
(sys_unlink): Allow read-only files to be unlinked as on Unix.
1998-04-23 23:41:12 +00:00
Geoff Voelker 9b69357efc (dir_warning): Don't log a warning if Emacs hasn't
finished initializing.
1998-04-23 23:40:46 +00:00
Geoff Voelker 879967835b (x_set_vertical_scroll_bars): Put scroll bars on the
right, as is conventional on MS-Windows.
(w32_wnd_proc): Add code to draw popup menu titles.
Ensure mouse capture is released before running popup menu.
1998-04-23 23:40:16 +00:00
Richard M. Stallman f438538138 (Fcommand_execute): Truncate command-history here. 1998-04-23 21:25:55 +00:00
Richard M. Stallman bed23cb24b (read_from_string_index_byte): New variable.
(read_from_string_index): Now counts characters.
(readchar, unreadchar, Fread_from_string): Changed accordingly.

(readchar): Read a multibyte char all at once
from a buffer, marker or string.
(unreadchar): Unread a multibyte char all at once.
(read1): Properly handle non-escaped multibyte chars.
They force a string to be multibyte.
When reading direct from a file, any multibyte sequence means
a multibyte string.
Insist on MAX_LENGTH_OF_MULTI_BYTE_FORM bytes when checking
for read_buffer full; this way need not check specially for multibyte.
1998-04-23 21:22:51 +00:00
Richard M. Stallman d67e2df9c3 (emacs.o): Depend on buffer.h. 1998-04-23 21:20:31 +00:00
Richard M. Stallman a08a816a25 Include buffer.h
(main): Move the --unibyte code below
the most basic initializations.
Clear out *Messages* at that point.

(main): When handling --unibyte, mark all existing
buffers as unibyte; but don't handle it when dumping.
1998-04-23 21:19:34 +00:00
Richard M. Stallman 225c215740 (Fcall_interactively): Truncate command-history here. 1998-04-23 21:18:18 +00:00
Richard M. Stallman 3e8ceaacd1 (syms_of_charset): Doc fix for nonascii-insert-offset. 1998-04-23 04:12:09 +00:00
Richard M. Stallman 24d6bf2685 (Fbuffer_substring): Doc fix.
(Finsert_and_inherit_before_markers): Doc fix.
(Finsert_and_inherit, Finsert_before_markers, Finsert): Doc fixes.
1998-04-23 04:09:05 +00:00
Richard M. Stallman a6ee6aa41b (Fstring_make_multibyte): Doc fix.
(Fstring_make_unibyte): Doc fix.
1998-04-23 04:03:31 +00:00
Richard M. Stallman 340b8d58ac (Funibyte_char_to_multibyte): Doc fix. 1998-04-23 04:00:47 +00:00
Erik Naggum dd6f88fb36 (get_boot_time): Remove extraneous semicolon. 1998-04-22 17:48:16 +00:00
Erik Naggum 9ae8d912e9 Remove extraneous semicolon. 1998-04-22 17:44:41 +00:00
Eli Zaretskii 767079a8c6 (alloc_xfer_buf): If want_size is more than 1MB,
return immediately with failure.
(Fw16_set_clipboard_data, Fw16_get_clipboard_data): Replace win16
with w16.
1998-04-22 13:39:59 +00:00
Eli Zaretskii 31354c30f6 (Fwin16_set_clipboard_data): Call UNBLOCK_INPUT before calling sit_for.
(Fwin16_get_clipboard_data, Fwin16_set_clipboard_data):	Balance
the calls to BLOCK_INPUT and UNBLOCK_INPUT.
1998-04-22 10:26:10 +00:00
Richard M. Stallman 1831d349aa (Fsignal): Unconditionally do TOTALLY_UNBLOCK_INPUT. 1998-04-22 02:14:55 +00:00
Eli Zaretskii c17c425043 (Fcall_process) [MSDOS]: Call child_setup instead of run_msdos_command.
(child_setup) [MSDOS]: Call run_msdos_command here.
(child_setup) [DOS_NT]: Get past drive letter in pwd.  Don't call
close_load_descs, since we are not in a vfork.
1998-04-21 11:14:24 +00:00
Eli Zaretskii e52f2f255e (run_msdos_command): Don't construct process
environment, it's already done in child_setup.
(run_msdos_command): Add ENVV to argument list.
1998-04-21 11:10:56 +00:00
Richard M. Stallman 3ce839e460 (Fmake_temp_name): Complete rewrite. 1998-04-20 18:13:03 +00:00
Richard M. Stallman 4929a8780a (Fgarbage_collect): Don't truncate command-history here. 1998-04-20 17:04:16 +00:00
Richard M. Stallman 94e554db23 (readevalloop): New arg UNIBYTE. Callers changed.
Use it to bind load_convert_to_unibyte.
(Feval_buffer): New arg UNIBYTE.  Pass it to readevalloop.
(readevalloop_1): New unwind-protect subroutine.
(load_convert_to_unibyte): New variable.
(syms_of_lread): Set up Lisp var.
(read1): If load_convert_to_unibyte, convert strings to unibyte.
1998-04-20 07:09:58 +00:00
Richard M. Stallman 7e79b8e08d (copy_text): Count down bytes_left properly
in multibyte to unibyte case.
1998-04-20 07:08:40 +00:00
Richard M. Stallman f95837d0a4 (Fcompare_strings): Require first 6 args. 1998-04-20 04:08:31 +00:00
Richard M. Stallman 69f4ef2009 (Ftry_completion): Use Fcompare_strings.
(Fall_completions, Fminibuffer_complete_word): Likewise.
1998-04-20 03:53:06 +00:00
Richard M. Stallman 0e1e9f8da5 (Fcompare_strings): New function.
(syms_of_fns): defsubr it.
1998-04-20 03:52:46 +00:00
Kenichi Handa f918549193 (lisp): Add czech.elc, slovak.elc, and romanina.elc.
(shortlisp): Likewise.
1998-04-20 02:14:57 +00:00
Kenichi Handa b23c244082 (Fregister_ccl_program): Put ccl-program-idx property to NAME. 1998-04-20 02:14:57 +00:00
Kenichi Handa d21ca14d48 (setup_coding_system): For a type 4 coding system,
FLAGS member of coding spec is a cons of CCL program symbols.
1998-04-20 02:14:57 +00:00
Eli Zaretskii 8d051ef1d1 (struct Lisp_Process): Add inherit_coding_system_flag member. 1998-04-19 14:18:01 +00:00
Eli Zaretskii 52a1b89480 (Fset_process_inherit_coding_system_flag,
Fprocess_inherit_coding_system_flag): New functions.
(syms_of_process): Defsubr them.
(Fstart_process, Fopen_network_stream): Initialize inherit_coding_system_flag.
(read_process_output): If the process buffer isn't dead, call
after-insert-file-set-buffer-file-coding-system.
1998-04-19 14:13:47 +00:00
Richard M. Stallman 22e0073908 (Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty. 1998-04-18 22:14:32 +00:00
Richard M. Stallman 89cddd35e9 Initial revision 1998-04-18 01:29:57 +00:00
Richard M. Stallman e7a9e1c3d4 (syms_of_emacs): Fix patching error in previous change. 1998-04-17 23:58:44 +00:00
Richard M. Stallman 3c32996351 (read1): Compute NaN and infinities using 0.0 in a
variable, to cope with compilers that think they are smarter than us.
1998-04-17 23:36:34 +00:00
Richard M. Stallman 5ae0761326 (readchar): Find the previous byte's address properly
for the buffer case, as for the marker case.
1998-04-17 23:35:14 +00:00
Richard M. Stallman 168afdaa0e (Fcall_process_region): Unbind coding-system-for-write
after calling Fwrite_region.
1998-04-17 07:08:02 +00:00
Geoff Voelker b3e1cb05b4 (reset_terminal_modes): Only invoke hook if defined. 1998-04-17 05:25:48 +00:00
Geoff Voelker 4a3bf56545 * lastfile.c (_my_endbss, my_endbss_static): New variables. 1998-04-17 05:25:35 +00:00
Geoff Voelker 074a066b07 (Vpath_separator): New variable. 1998-04-17 05:25:19 +00:00
Geoff Voelker 614c350cac (WM_EMACS_SETFOREGROUND, WM_EMACS_SETLOCALE):
New message macros.
1998-04-17 05:12:27 +00:00
Geoff Voelker ef0e360fdc (Vw32_recognize_altgr): New variable.
(dumpglyphs): Update from xterm.c.
(w32_ring_bell): Flash window, don't just reset its state.
(dumprectangle, show_mouse_face, x_draw_single_glyph): Use new
args to dumpglyphs.
(my_set_foreground_window): New function.
(w32_condemn_scroll_bars): Mark all as condemned scroll bars.
(w32_redeem_scroll_bar): Look through all scroll bars.
(w32_judge_scroll_bars): Don't clear out condemned list.
(w32_read_socket): Clip window after frame has been restored.
(x_focus_on_frame, x_raise_frame): Use my_set_foreground_window.
(syms_of_w32term): Define Vw32_recognize_altgr.
1998-04-17 05:11:31 +00:00
Geoff Voelker ef79fbba2f (w32_executable_type): Properly cast dos_header when
making size comparison.
(sys_spawnve): Update comments.
(sys_select): Ignore children dead children with pending input.
Delay sending SIGCHLD until all output has been read.
(sys_kill): Sleep to allow focus change events to propagate.
Use TerminateProcess on Win95.
(int_from_hex, enum_locale_fn, Fw32_get_valid_locale_ids):
New functions.
(Vw32_valid_locale_ids): New variable.
(Fw32_set_current_locale): Send message to input thread.
(syms_of_ntproc): defsubr Sw32_get_valid_locale_ids.
1998-04-17 05:10:29 +00:00
Geoff Voelker c886965532 (Vmenu_updating_frame): New variable.
(Fx_popup_menu, set_frame_menubar): Record frame whose menu is
being updated.
(syms_of_w32menu): Define Vmenu_updating_frame.
1998-04-17 05:09:51 +00:00
Geoff Voelker c0f1b02e2b (Vw32_recognize_altgr): Declare.
(w32_kbd_mods_to_emacs): Obey Vw32_recognize_altgr.
Add more keys for Vw32_capslock_is_shiftlock.
(w32_kbd_patch_key): Obey Vw32_recognize_altgr.
(map_virt_key): Brazilian keyboards use 0xc1 for /(?) key.
1998-04-17 05:09:29 +00:00
Geoff Voelker 3f3e462972 * w32heap.h (w32_fatal_reload_error): Declare. 1998-04-17 05:09:06 +00:00
Geoff Voelker a1b8f90f30 (recreate_heap): Invoke w32_fatal_reload_error upon error. 1998-04-17 05:08:51 +00:00
Geoff Voelker dfdb404753 (w32_msg_pump): Handle WM_EMACS_SETLOCALE.
(w32_wnd_proc): Handle WM_EMACS_SETFOREGROUND.
1998-04-17 05:08:23 +00:00
Geoff Voelker 8be05193e8 (Qforeground_color, Qbackground_color): Declare.
(compute_char_face, merge_face_list): Update from xterm.c.
1998-04-17 05:08:02 +00:00
Geoff Voelker ead2be985a (FILE_SEND_SIGCHLD): New macro. 1998-04-17 05:07:51 +00:00
Geoff Voelker f52eb3efc4 (sys_read): Clear carriage return flag.
Report normal EOF when read fails if nothing in buffer.
Only read more if more remaining.
(check_windows_init_file): New function.
(term_ntproc): Invoke check_windows_init_file.
1998-04-17 05:07:15 +00:00
Geoff Voelker 9c8056fe19 (my_begbss_static, my_endbss_static): Declare.
(get_bss_info_from_map_file): Only define if SEPARATE_BSS_SECTION.
(get_section_info): Use my_begbss_static, my_endbss_static to
determine bounds of bss.
(w32_fatal_reload_error): New function.
(read_in_bss, map_in_heap): Invoke w32_fatal_reload_error upon error.
1998-04-17 05:06:37 +00:00
Geoff Voelker b2140d4b79 (HAVE_STRING_H, HAVE_STRFTIME): Define macros.
(SYSTEM_PURESIZE_EXTRA): Increase to handle more dumped lisp files.
1998-04-17 05:06:20 +00:00
Geoff Voelker 032f460725 (LINK_TYPE): Do not include debug info in optimized
binary.
(LIBS): Include mpr.lib.
(clean): Delete patch generated files, optimized build directory.
1998-04-17 05:05:40 +00:00
Richard M. Stallman 4e30630835 (Fcatch): Doc fix. 1998-04-17 01:53:31 +00:00
Richard M. Stallman 00df1bdfb3 (Fml_if): Initialize val. 1998-04-17 01:49:33 +00:00
Richard M. Stallman 002ae4f99c (standard_args): Add --no-unibyte.
(main): Recognize --no-unibyte to inhibit EMACS_UNIBYTE.

(main): Fix typo, add --multibyte and --no-multibyte.
(standard_args): Add --multibyte and --no-multibyte.
1998-04-16 21:24:37 +00:00
Eli Zaretskii 03c747598f (it_keyboard): New variable, supports Italian keyboard.
(keyboard_layout_list): Add Italian keyboard.
1998-04-16 09:06:25 +00:00
Richard M. Stallman 49bdcd3e96 (time): Declare it only if not HAVE_UNISTD_H. 1998-04-16 06:21:56 +00:00
Richard M. Stallman f0c030b36d (Frequire): Doc fix. 1998-04-16 05:38:51 +00:00
Kenichi Handa 83fa074f8d (code_convert_region): If point in the conversion
region, move it to FROM in advance.
1998-04-15 23:49:52 +00:00
Eli Zaretskii ed29121d27 (syms_of_coding): Declare and define inherit-process-coding-system. 1998-04-15 15:52:41 +00:00
Eli Zaretskii 77a9bc9a3f Declare inherit-process-coding-system. 1998-04-15 15:48:45 +00:00
Eli Zaretskii 3b440bb591 (Fcall_process): Call
after-insert-file-set-buffer-file-coding-system if
inherit-process-coding-system is non-nil.
1998-04-15 15:44:16 +00:00
Eli Zaretskii 7664e30672 (sys_pipe): Use binary pipe I/O unconditionally. 1998-04-15 14:40:43 +00:00
Eli Zaretskii 208a446aa5 Remove binary-process-{in,out}put.
(syms_of_callproc): Likewise.
(Fcall_process, Fcall_process_region): Don't use binary-process-{in,out}put.
1998-04-15 14:36:16 +00:00
Andreas Schwab 7874f8a695 (RE_TRANSLATE_P): Define. 1998-04-15 10:35:44 +00:00
Andreas Schwab 28703c16f3 Use RE_TRANSLATE_P to check whether translation is
needed.
1998-04-15 10:33:18 +00:00
Andreas Schwab 4da4775f0d (RE_TRANSLATE_P): New macro. 1998-04-15 10:32:29 +00:00
Andreas Schwab 64e3c718c6 (realloc) <emacs>: Define to xrealloc. 1998-04-15 09:39:40 +00:00
Kenichi Handa db6089c5e9 (Fccl_execute_on_string): Put \n\ at eol of docstring. 1998-04-15 07:49:16 +00:00
Kenichi Handa 49965a2998 (x_set_font): Give 2nd arg nil to Fquery_fontset.
(Fx_create_frame): Likewise.
1998-04-15 07:38:29 +00:00
Kenichi Handa 727fb7903d (find_ccl_program_func): New variable.
(fs_load_font): Call a function pointed by find_ccl_program_func
instead of finding CCL program to encode a character by itself.
(Fquery_fontset): New optional 2nd arg REGEXPP.  Callers changed.
1998-04-15 07:12:49 +00:00
Kenichi Handa c2c8997eb3 (FONT_ENCODING_NOT_DECIDED): The value is changed to 255.
(find_ccl_program_func): Extern it.
(Fquery_fontset): Args number changed to 2.
1998-04-15 07:12:49 +00:00
Kenichi Handa 6ae21908b0 Typo in comments fixed.
(Qccl_program_idx, Qunification_table, Qunification_table_id): New
variables.
(syms_of_ccl): Initialize and staticpro them.
(CCL_ReadMultibyteChar2): Macro name changed from
CCL_ReadMultibyteCharacter.
(CCL_WriteMultibyteChar2): Macro name changed from
CCL_WriteMultibyteChar2.
(CCL_
(MAX_TABLE_SET_LEVEL): New macro.
(tr_stack): New type.
(translate_stack, translate_stack_pointer): New variables.
(PUSH_TRANSLATE_STACK, POP_TRANSLATE_STACK): New macros.
(ccl_driver): Adjusted for the above changes.
(resolve_symbol_ccl_program): New function.
(Fccl_execute): The arg CCL-PROGRAM can be a symbol of CCL
program.  If CCL-PRGRAM is a vector, convert symbols in it to ID
numbers by resolve_symbol_ccl_program.
(Fccl_execute_on_string): Likewise.
(Fregister_ccl_program): If the arg CCL-PRGRAM is a vector,
convert symbols in it to ID numbers by resolve_symbol_ccl_program.
1998-04-15 07:12:49 +00:00
Kenichi Handa 1cfae2bf37 (Vccl_program_table, Qccl_program_idx): Extern them. 1998-04-15 07:12:49 +00:00
Kenichi Handa bc1958c4cb (syms_of_xfns): Initialize find_ccl_program_func. 1998-04-15 07:12:49 +00:00
Kenichi Handa a65826769e (x_find_ccl_program): New function. 1998-04-15 07:12:49 +00:00
Kenichi Handa d7fcdd913e (x_find_ccl_program): Extern it. 1998-04-15 07:12:49 +00:00
Karl Heuer 154a307db3 (file_name_as_directory): For empty arg, return `./'. 1998-04-15 06:12:48 +00:00
Dave Love 055234ef11 Revert erroneous 1998-04-08 change. 1998-04-14 21:02:17 +00:00
Karl Heuer 968b123401 (x_destroy_bitmap): Declare as void, not int.
(x_report_frame_params, x_set_border_pixel): Likewise.
(x_set_internal_border_width): widget_store_internal_border takes
just one arg, not two.
1998-04-14 18:59:48 +00:00
Andreas Schwab 975d21ea0c (try_window): Fix mixing of Lisp_Object and int. 1998-04-14 13:12:18 +00:00
Andreas Schwab f8ad443a57 (Fset_window_configuration): Fix mixing of Lisp_Object
and int.
1998-04-14 13:11:34 +00:00
Andreas Schwab a61e51f0d2 (init_sys_modes): Fix mixing of Lisp_Object and int 1998-04-14 13:10:35 +00:00
Andreas Schwab 59fab36902 (compile_pattern, compile_pattern_1): Fix mixing of
Lisp_Object and int.
1998-04-14 13:09:08 +00:00
Andreas Schwab e6d6dff2d0 (read_process_output): Fix mixing of Lisp_Object and
int.
1998-04-14 13:05:38 +00:00
Andreas Schwab dab3ab3ce5 (Fself_insert_and_exit): Fix mixing of Lisp_Object and
int.
1998-04-14 13:03:30 +00:00
Andreas Schwab 6acce4eaa2 (set_marker_both): Remove bogus checks on charpos. 1998-04-14 13:02:50 +00:00
Andreas Schwab d52a7a9263 (parse_menu_item): Don't GCPRO non-lisp variables. 1998-04-14 13:01:59 +00:00
Andreas Schwab d6b81c0f2f (signal_after_change): Fix mixing of Lisp_Object and
int.
1998-04-14 13:01:05 +00:00
Andreas Schwab d5d6f7060f (indented_beyond_p): Fix mixing of Lisp_Object and int. 1998-04-14 13:00:27 +00:00
Andreas Schwab d4d76014dc (Fset_mouse_position, Fset_mouse_pixel_position): Fix
mixing of Lisp_Object and int.
1998-04-14 13:00:00 +00:00
Andreas Schwab 21ab867fb9 (Fsubstring, substring_both, Fchar_table_range,
Fset_char_table_range): Fix mixing of Lisp_Object and int.
1998-04-14 12:59:32 +00:00
Andreas Schwab b266ae04d7 (Fwrite_region): Fix mixing of Lisp_Object and int. 1998-04-14 12:58:24 +00:00
Andreas Schwab b98ef0dcdb (Fchar_after, Fchar_before): Fix mixing of Lisp_Object
and int
1998-04-14 12:56:53 +00:00
Andreas Schwab b39f748c48 (code_convert_region): Fix mixing of Lisp_Object and
int.
1998-04-14 12:55:11 +00:00
Andreas Schwab a8c21066b7 (Fchars_in_region): Fix mixing of Lisp_Object and int. 1998-04-14 12:53:36 +00:00
Andreas Schwab d387866ae5 (ccl_driver, syms_of_ccl): Fix mixing of Lisp_Object and
int.
1998-04-14 12:52:08 +00:00
Andreas Schwab 0120348b59 Update return types of declarations. 1998-04-14 12:34:43 +00:00
Andreas Schwab ec5d8db72d Add more prototypes. 1998-04-14 12:33:47 +00:00
Andreas Schwab dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Andreas Schwab 70e7711955 (Fset_buffer_multibyte): Do nothing if nothing actually
changes.
1998-04-14 10:27:32 +00:00
Andreas Schwab 68e3a8f141 (code_convert_region): Call adjust_after_insert also
in unibyte mode.
1998-04-14 10:21:04 +00:00
Andreas Schwab e9cea9474c (Finsert_file_contents): Call adjust_after_insert also
in unibyte mode.
1998-04-14 10:20:03 +00:00
Kenichi Handa f30cc6122e (code_convert_string): Give decode_coding correct byte
length of source text.
1998-04-14 01:06:44 +00:00
Ulrich Drepper 06bd27fdf5 automatically generated from GPLed version 1998-04-14 00:02:53 +00:00
Karl Heuer 4ad8bb205e (strout): Convert old echo area to multibyte, like printchar.
(printchar, strout): If echo area text converted to multibyte
does not all fit, truncate it at char boundary.
1998-04-13 18:58:10 +00:00
Karl Heuer b8f477cbd2 (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
When calling set_marker_both, pass the right buffer.
1998-04-13 18:56:44 +00:00
Karl Heuer 9fdae274dd (Fcompute_motion): Check that TO and FROM are in range. 1998-04-13 18:56:00 +00:00
Eli Zaretskii 40437cf549 (dosv_refresh_virtual_screen): Do not use negative arguments.
(dos_direct_output): Fix the offset passed to dosv_refresh_virtual_screen.
(IT_display_cursor): Don't call dosv_refresh_virtual_screen.
(IT_reset_terminal_modes): Don't call dosv_refresh_virtual_screen
when setting cursor.
1998-04-13 06:42:31 +00:00
Karl Heuer c5c6d57c7c (temp_output_buffer_setup): Clear out overlays,
visited file, undo list, etc.
1998-04-12 18:08:02 +00:00
Karl Heuer cc9b4df2b4 (re_match_2, re_search_2): Convert position to a charpos,
before calling SETUP_SYNTAX_TABLE_FOR_OBJECT.
1998-04-12 06:57:47 +00:00
Karl Heuer f79b4b7ee2 (SETUP_SYNTAX_TABLE_FOR_OBJECT): FROM counts chars.
(SYNTAX_TABLE_BYTE_TO_CHAR): Handle the offset properly
both before and after conversion.

(UPDATE_SYNTAX_TABLE_FORWARD): Arg renamed to charpos.
(UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE): Likewise.
1998-04-12 06:51:58 +00:00
Karl Heuer 1b62edd6ba (print) <Lisp_String>: Fix "\ " handling. 1998-04-12 06:49:26 +00:00
Karl Heuer b5231eda99 (display_text_line): When handling selective > 0,
update pos and pos_byte with results of calling scan_newline.
1998-04-12 06:45:08 +00:00
Karl Heuer 120821e11c (set_internal, Fmakunbound): Fix previous change. 1998-04-12 06:41:01 +00:00
Karl Heuer ad61e7bc25 (LINKER): Add definition.
(LD_SWITCH_SYSTEM): Undo previous change.
1998-04-11 18:16:01 +00:00
Karl Heuer b087d86605 (set_internal, Fmakunbound): No error if setting
a keyword to itself.
1998-04-11 18:04:12 +00:00
Karl Heuer 34e4751f89 (Fbuffer_has_markers_at): Fix termination condition. 1998-04-09 19:40:19 +00:00
Karl Heuer 67ce527d26 (min, max): Make these macros, not functions.
(scan_buffer, boyer_moore): Simplify args to those macros.
1998-04-09 18:50:53 +00:00
Karl Heuer 03887dd388 (min, max): Define as macros. 1998-04-09 18:12:46 +00:00
Karl Heuer f4fe72d542 * print.c (print): Avoid min'/max' as variable names. 1998-04-09 17:58:28 +00:00
Karl Heuer a3833dfef0 (relocate_fd): Avoid min'/max' as variable names. 1998-04-09 17:47:17 +00:00
Karl Heuer ceafe86b40 (minmax): New macro.
(update_frame): Use it.
1998-04-09 17:21:02 +00:00
Karl Heuer 09522567d8 Delete incorrect prototype of report_file_error. 1998-04-09 17:07:32 +00:00
Karl Heuer c66245847e (unrequest_sigio, request_sigio): Fix prototype. 1998-04-09 17:06:31 +00:00
Karl Heuer 78781e92a6 (set_frame_menubar): Call Fset_match_data, not
Fstore_match_data.
1998-04-09 17:04:35 +00:00
Karl Heuer 8be35eabe6 (abort): Don't redefine on DOS_NT. 1998-04-09 17:03:05 +00:00
Kenichi Handa 90d7b74e9a (string_to_non_ascii_char): Include garbage bytes (if
any) following a multibyte character in *ACTUAL_LEN.
(Fcharset_after): New function.
(syms_of_charset): Defsubr it.
(multibyte_form_length): Modified to be consistent with
string_to_non_ascii_char.
1998-04-09 05:40:23 +00:00
Kenichi Handa d121936ff0 (MULTIBYTE_FORM_LENGTH): Don't check LEN here. 1998-04-09 05:40:23 +00:00
Kenichi Handa a2c983d55c (display_text_line): Code for displaying a character by
octal form is modified.
1998-04-09 05:40:23 +00:00
Karl Heuer 5c5aad0710 (keyword_symbols_constant_flag): New variable.
(syms_of_data): Set up Lisp variable.
(set_internal): Obey it and give error for :-symbols.
(Fmakunbound): Likewise.
1998-04-08 18:56:20 +00:00
Eli Zaretskii 7a2fd3696f (init_dosfns): Fix bug in passing segment address of the transfer buffer. 1998-04-08 13:48:30 +00:00
Karl Heuer c02a3079ee (fix_submap_inheritance): Fix parens. 1998-04-08 08:24:33 +00:00
Richard M. Stallman c9e5d3d141 (make_frame_without_minibuffer): Conditionalize on HAVE_WINDOW_SYSTEM.
(make_minibuffer_frame): Likewise.
1998-04-08 07:15:51 +00:00
Richard M. Stallman 5ba50c519e (redisplay_window): If updating mode line,
temporarily change selected_frame
1998-04-08 07:15:02 +00:00
Karl Heuer d8afad26de (Fmake_temp_name): Detect error return from mktemp. 1998-04-08 07:08:28 +00:00
Karl Heuer 8867de6748 (string_to_non_ascii_char, multibyte_form_length)
(split_non_ascii_string, str_cmpchar_id): Make the STR argument
const unsigned char *.
1998-04-08 06:55:55 +00:00
Karl Heuer c9fe9cce7b (abort): Don't redefine on MSDOS. 1998-04-08 06:50:51 +00:00
Karl Heuer a63f12f992 (Fwin16_set_clipboard_data): Call message2 with 3
arguments.
1998-04-08 06:50:34 +00:00
Karl Heuer 54c182d14b (CHAR_STRING): Cast to unsigned char ** explicitly. 1998-04-08 06:50:18 +00:00
Karl Heuer b9ca50003b (request_sigio, unrequest_sigio): Make consistent with
prototypes in lisp.h.
1998-04-08 06:49:50 +00:00
Karl Heuer d9bb0c3292 (kill_buffer_processes): Make consistent with
prototype on lisp.h.
1998-04-08 06:49:17 +00:00
Karl Heuer e788eecc88 Include <utmp.h> only if CLASH_DETECTION is
defined.
1998-04-08 06:48:59 +00:00
Karl Heuer e13608fb05 (describe_command): Use quotes around symbol name. 1998-04-08 06:43:52 +00:00
Dave Love 28a3f8110d (main): Obey environment variable EMACS_UNIBYTE as
alternative to --unibyte.
1998-04-07 11:48:18 +00:00
Karl Heuer 85bc1d4ea5 (re_match_2) <anychar>: In unibyte case, set buf_ch as unsigned. 1998-04-07 04:07:58 +00:00
Karl Heuer e0834ad2c7 (GSSAPI, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI, HAVE_GSSAPI_H):
Add undefs for GSS-API support in movemail.
1998-04-07 03:26:32 +00:00
Richard M. Stallman e71b197157 (re_match_2_internal): Declare buf_ch unsigned int. 1998-04-07 03:21:46 +00:00
Richard M. Stallman 69927a6cec Don't include <string.h> when configuring. 1998-04-07 03:21:19 +00:00
Karl Heuer e540cbed19 (Fdirectory_files): Use make_uninit_multibyte_string.
Use STRING_BYTES on encoded_directory.
1998-04-06 21:52:29 +00:00
Andreas Schwab 96ced23cf1 (Flength): Doc fix. 1998-04-06 09:33:40 +00:00
Andreas Schwab c1937d6a5e (unexec): Account for possible padding before the old .bss
section.
1998-04-06 09:26:20 +00:00
Andreas Schwab 8daf7106e6 (Ftranspose_regions): Fix order of parameters for replace_range. 1998-04-06 09:20:04 +00:00
Andreas Schwab 96d6400464 (Fdirectory_files): GCPRO encoded_directory and list.
Compute needsep only once.  Pass correct arg to chars_in_text.
1998-04-06 09:11:05 +00:00
Andreas Schwab 6feef45153 (gc_sweep): Avoid using two loop variables counting the
same thing.
1998-04-06 09:04:23 +00:00
Kenichi Handa fa25174026 (Fstring_as_unibyte): Set size_byte field to -1. 1998-04-06 05:06:12 +00:00
Richard M. Stallman 453fa9876f (print) <Lisp_String>: Follow a hex escape with `\ ' if nec. 1998-04-05 19:18:32 +00:00
Richard M. Stallman 8f152ad40d Fix previous change. 1998-04-05 19:13:50 +00:00
Richard M. Stallman bba88bb165 (make_frame_without_minibuffer): Conditionalize on HAVE_WINDOW_SYSTEM.
(make_minibuffer_frame): Likewise.
1998-04-04 06:37:54 +00:00
Richard M. Stallman d13a848004 (Fmessage_box): Pass the missing third argument
STRING_MULTIBYTE (val) to message2.
1998-04-04 05:27:31 +00:00
Richard M. Stallman a26f4ccdd5 (regex_compile) [!MATCH_MAY_ALLOCATE]: Fix paren error. 1998-04-04 00:00:06 +00:00
Richard M. Stallman 24cef2618f (set_intervals_multibyte): Function moved after set_intervals_multibyte_1. 1998-04-03 23:58:11 +00:00
Richard M. Stallman e934739e62 (compile_range): Unused function deleted.
(regex_compile): Special handling for range \177-\377.
(regex_compile): Cast args to TRANSLATE to unsigned char.
(re_search_2): Fix forward scan handling multibyte.
Recognize that nonascii characters are not in the fastmap.
Handle fetching multibyte characters for backward scan,
(re_match_2_internal): Handle multibyte and translation
in exactn and anychar.
(bcmp_translate): Handle multibyte chars for translation.

(TRANSLATE): Don't cast to  unsigned char.

(PATFETCH): Use RE_TRANSLATE to translate.
1998-04-03 07:33:13 +00:00
Richard M. Stallman 37254ece9e (Fmake_variable_frame_local): Doc fix. 1998-04-03 03:13:32 +00:00
Richard M. Stallman 9658795ce8 (Fstring_as_multibyte): Never return unibyte string unchanged.
Set size_byte field.
1998-04-02 22:48:51 +00:00
Dave Love 898df4aa14 (main): Add [--unibyte] to usage. 1998-04-02 18:46:08 +00:00
Richard M. Stallman 37cbd14613 (RE_TRANSLATE): Use char_table_translate. 1998-04-02 08:11:19 +00:00
Richard M. Stallman 1d969a2339 (char_table_translate): New function. 1998-04-02 08:10:56 +00:00
Richard M. Stallman 4a4c24d09e (redisplay_window): Fix computing pos from last_point. 1998-04-02 04:40:52 +00:00
Kenichi Handa 15b0983da0 (buf_charpos_to_bytepos): Delete local variable gapend_byte. 1998-04-02 00:25:47 +00:00
Kenichi Handa 704c57813e (CHARSET_OK): Don't reject safe charsets.
(DECODE_DESIGNATION): Likewise.
(check_composing_code): Likewise.
1998-04-02 00:25:47 +00:00
Kenichi Handa 25b98b34c5 (selection_data_to_lisp_data): Give
make_string_from_bytes a correct char size.
1998-04-02 00:25:47 +00:00
Kenichi Handa 652838b531 (adjust_markers_for_replace): New function.
(adjust_after_replace): Arguments changed.  Call
adjust_markers_for_replace if this function is called after
replacement.
(adjust_after_insert): New function.
1998-03-30 06:00:54 +00:00
Kenichi Handa 1e94b9981a (adjust_after_replace, adjust_after_insert): Extern them. 1998-03-30 06:00:54 +00:00
Kenichi Handa 12410ef100 (code_convert_region): Handle skipped ASCII characters
at the head and tail of conversion region correctly when adjusting
position keepers.  Call adjust_after_insert to record undo info
and adjust markers when we don't have to change byte sequence of
a buffer.
1998-03-30 06:00:54 +00:00
Kenichi Handa a137bb009d (struct coding_system): Comment for the member
heading_ascii modified.
1998-03-30 06:00:54 +00:00
Kenichi Handa 12fccb8562 (Finsert_file_contents): Call adjust_after_insert when
a text is inserted in a multibyte buffer without any code
conversion.
1998-03-30 06:00:54 +00:00
Richard M. Stallman 212e4f8756 (display_text_line): Handle overlay-arrow correctly. 1998-03-29 01:25:20 +00:00
Richard M. Stallman f5f9a3da6b (code_convert_region): Call adjust_before_replace
in the no-conversion case.  Adjust GPT, ZV and Z in chars.
1998-03-28 21:55:22 +00:00
Richard M. Stallman 60ea60525e (check_markers_debug_flag): New variable.
(syms_of_insdel): Set up Lisp var.
(CHECK_MARKERS): New macro.  Use it everywhere
instead of calling check_markers directly.
It tests check_markers_debug_flag.
1998-03-28 21:52:10 +00:00
Richard M. Stallman 4c315bdabd (mark_buffer): Mark the undo_list slot specially;
don't mark a marker just cause it is in this list.
(Fgarbage_collect): Discard from all undo-lists
all elements that adjust markers that were not marked.
1998-03-28 21:50:59 +00:00
Richard M. Stallman b50f6283db (struct buffer): Field undo_list' moved before name'
so it won't get marked in the usual way.
1998-03-28 21:50:39 +00:00
Richard M. Stallman b8b29dc948 (barf_or_query_if_file_exists): New arg QUICK. All calls changed. 1998-03-28 08:25:53 +00:00
Richard M. Stallman 0340dc60d6 (item_properties): New variable.
(ITEM_PROPERTY_...): New macros.
1998-03-27 04:52:43 +00:00
Richard M. Stallman 8f6b041144 (init_lread): Init Vstandard_input. 1998-03-26 04:22:13 +00:00
Kenichi Handa 5ffc0a807c (redisplay_window): Fix previous change. 1998-03-26 04:10:02 +00:00
Kenichi Handa 4116deeea8 (compute_motion): Call strwidth only when necessary.
Set wide_column_end_hpos only when MULTIBYTE_BYTES_WIDTH set
nonzero to wide_column.
1998-03-25 10:45:59 +00:00
Kenichi Handa b745ec7dde (make_buffer_string, make_buffer_string_both): Extern them. 1998-03-25 10:45:59 +00:00
Kenichi Handa 0d023da168 (read_process_output): Count multibyte characters. If
received data is stored in p->decoding_buf, copy it to a temporary
buffer and call insert_before_makers instead of
insert_from_string_before_markers.
1998-03-25 10:45:59 +00:00
Kenichi Handa f1c87a7d42 (redisplay_window): Give byte position to FETCH_BYTE.
Call pos_tab_offset appropriately.
(try_window_id): Give byte position to FETCH_BYTE.  Set
val.bytepos to pos_byte.
1998-03-25 10:45:59 +00:00
Kenichi Handa 443de1d740 (record_delete): The second arg is Lisp_Object. 1998-03-24 12:17:32 +00:00
Kenichi Handa d8fc7ce4c1 Declarations changed.
(STRING_MULTIBYTE, STRING_BYTES, SET_STRING_BYTES):
New definitions treating negative size_byte as a flag for unibyte.
1998-03-24 12:16:10 +00:00
Kenichi Handa 2436e18031 (MULTIBYTE_BYTES_WIDTH): Set wide_column only when we
encounter a wide-column character.
1998-03-24 05:41:38 +00:00
Kenichi Handa 242beafec7 (del_range_2): Move gap again to a proper place just
after calling make_buffer_string_both.
1998-03-24 05:41:38 +00:00
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