1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 11:12:19 -08:00
Commit graph

8039 commits

Author SHA1 Message Date
Richard M. Stallman
0de6b8f4a0 (Finsert_file_contents): If a coding system is
specified explicitly on visiting a new file, set
buffer-file-coding system of the new buffer to the specified one.
1997-09-14 17:21:28 +00:00
Richard M. Stallman
993d17f24c Comment change. 1997-09-14 15:57:18 +00:00
Richard M. Stallman
a3788d5332 When redisplaying the echo area, use the value
of enable-multibyte-characters from when message was called.
(message_enable_multibyte): New variable.
(message2_nolog): Set the variable.
(echo_area_display): Use that variable.
(display_string): New arg MULTIBYTE.  Callers changed.

(display_menu_bar): Include WINDOW_LEFT_MARGIN in maxendcol.
1997-09-13 08:42:12 +00:00
Richard M. Stallman
7e3e3ad1e5 (syms_of_minibuf): Doc fix. 1997-09-13 06:02:11 +00:00
Richard M. Stallman
cd22039d5b (Fexternal_debugging_output): On Windows output to debugger. 1997-09-12 04:06:46 +00:00
Paul Eggert
89752145b5 automatically generated from GPLed version 1997-09-11 18:22:03 +00:00
Richard M. Stallman
c6a6499f7d Switch to raw-text as coding system. 1997-09-11 17:51:36 +00:00
Richard M. Stallman
4e82508479 (syms_of_msdos): Intern background-color and
foreground-color, and staticpro them.
(IT_set_frame_parameters): Use Qforeground_color and
Qbackground_color.
1997-09-11 01:27:57 +00:00
Richard M. Stallman
b1d1b865a1 (ENCODE_FILE): New macro.
(Vfile_name_coding_system): New variable.
(syms_of_fileio): Set up Lisp variable.
(Fset_visited_file_modtime): Use ENCODE_FILE.
(Fcopy_file, Fmake_directory_internal, Fdelete_directory, Fdelete_file)
(Frename_file, Fadd_name_to_file, Ffile_exists_p Ffile_executable_p)
(Ffile_readable_p, Ffile_writable_p, Faccess_file, Ffile_symlink_p)
(Ffile_directory_p, Ffile_accessible_directory_p, Ffile_regular_p)
(Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p, Fwrite_region)
(Finsert_file_contents, Fverify_visited_file_modtime): Likewise.

(Ffile_symlink_p): Decode the file name value.
1997-09-11 00:00:01 +00:00
Richard M. Stallman
d1d0d27fec (BROKEN_MKTIME): Define. 1997-09-10 03:26:31 +00:00
Richard M. Stallman
89e1ec1dd0 (Fcall_process): Encode the new current dir. 1997-09-09 05:32:07 +00:00
Richard M. Stallman
a932f187fb (create_process): Encode the new current dir. 1997-09-09 05:30:58 +00:00
Richard M. Stallman
0a53202aab (UPDATE_SYNTAX_TABLE_FORWARD): Add missing fourth
argument of update_syntax_table.
(UPDATE_SYNTAX_TABLE_BACKWARD): Likewise.
(UPDATE_SYNTAX_TABLE): Likewise.
1997-09-09 00:48:08 +00:00
Richard M. Stallman
f03f248997 (x_screen_planes): Fix type of argument. 1997-09-09 00:47:40 +00:00
Richard M. Stallman
35cb86869d (encode_designation_at_bol): Fix type of local vars C1, C2. 1997-09-09 00:46:00 +00:00
Richard M. Stallman
24c2a54f4c (ENCODE_FILE): New macro.
(Ffile_attributes): Encode the file names to operate on.
(file_name_completion): Do completion on encoded name, then decode.
(Fdirectory_files): Encode the argument.
Decode all result file names using Vfile_name_coding_system.
1997-09-08 10:09:15 +00:00
Richard M. Stallman
fe487a7128 (Fencode_coding_string, Fdecode_coding_string): Doc fixes. 1997-09-08 10:00:48 +00:00
Richard M. Stallman
13febd855d (Feval_buffer): New arg FILENAME. 1997-09-07 18:32:49 +00:00
Richard M. Stallman
d8b9150f33 (modify_overlay): Update overlay_modiff of proper buffer. 1997-09-07 17:49:08 +00:00
Richard M. Stallman
e0f7eb3bb0 Test __OpenBSD__ along with __NetBSD__. 1997-09-07 05:25:37 +00:00
Richard M. Stallman
8082986440 Initial revision 1997-09-07 05:14:46 +00:00
Richard M. Stallman
0f8b8c5063 (Fcall_process_region): Fix previous change:
never override Vcoding_system_for_write.
1997-09-07 04:25:59 +00:00
Richard M. Stallman
3f1ea77ed6 (display_string): Determine multibyte from current buffer,
not from W's buffer.
1997-09-07 04:22:29 +00:00
Richard M. Stallman
cb1ee8118f Test __OpenBSD__ along with __NetBSD__.
[__OpenBSD__]: Include sys/exec_elf.h.
1997-09-06 19:40:22 +00:00
Richard M. Stallman
61e630894a Test __OpenBSD__ along with __NetBSD__. 1997-09-06 19:37:47 +00:00
Kenichi Handa
b19fd4c592 (Ffind_operation_coding_system): If a function in
XXX-coding-system-alist returns a coding system (instead of cons
of coding systems), return cons of it.
1997-09-05 08:07:44 +00:00
Richard M. Stallman
024d8713bc (Fcall_interactively): Pass new arg to Fread_coding_system. 1997-09-05 05:38:41 +00:00
Richard M. Stallman
9b787f3ead (Fread_coding_system): New optional arg DEFAULT_CODING_SYSTEM. 1997-09-05 05:38:21 +00:00
Richard M. Stallman
34ba1f2ea4 (Fread_coding_system): Update decl. 1997-09-05 05:37:59 +00:00
Richard M. Stallman
82330e7fc0 (Fexpand_file_name): If default dir isn't string, use `/'. 1997-09-05 01:21:43 +00:00
Erik Naggum
744b2e45aa (main): Update Copyright messages. 1997-09-04 11:57:12 +00:00
Richard M. Stallman
3c8fccc3e5 (Faset): Simplify a statement in the char-table case.
This is to help some compilers.
1997-09-04 06:30:27 +00:00
Richard M. Stallman
bb0115a22e (Qcoding_system_history): New variable.
(syms_of_coding): Initialize it.
(Fread_coding_system): Use Qcoding_system_history.
1997-09-04 05:58:20 +00:00
Richard M. Stallman
f44d27ceec (setup_coding_system, Ffind_operation_coding_system)
(Fdetect_coding_region, Fread_coding_system):
Don't initialize a Lisp_Object.
1997-09-04 04:55:52 +00:00
Richard M. Stallman
1b2af4b0ba (detect_coding_mask): Re-work previous change.
(detect_eol): Fix use of == instead of -.
1997-09-04 03:31:10 +00:00
Richard M. Stallman
994de0acdf (HAVE_RINT): Add #undef. 1997-09-03 23:02:21 +00:00
Richard M. Stallman
dca6c9144c (emacs_rint): Define this,
either as a function or as a macro for rint.
(Fround, Ffround): Use emacs_rint, not rint directly.
1997-09-03 23:01:57 +00:00
Richard M. Stallman
914894115d (Fcall_process): Set EOL conversion type to LF when
binary-process-output is non-nil.
(Fcall_process_region): binary-process-XXXput only determines EOL
conversion; if it is nil, convert LF <-> CRLF.  Don't bind
coding-system-for-read, it is done in Fcall_process.
1997-09-03 20:35:35 +00:00
Richard M. Stallman
d785cf9e4d (main): Call run_time_remap earlier, before any use of stdio. 1997-09-03 20:34:22 +00:00
Richard M. Stallman
6801b30063 (read_minibuf): Fix use of Ffboundp. 1997-09-03 16:20:47 +00:00
Geoff Voelker
f516a861b4 (my_endbss) [WINDOWSNT]: New variable. 1997-09-03 07:30:49 +00:00
Geoff Voelker
7f470effe9 (INTERRUPT_INPUT): Don't define.
(bcopy): Use memmove instead of memcpy.
(GAP_USE_BCOPY, BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE): Define.
Undef system calls before redefining.  Emulated calls redefined
to sys_*, real calls redefined to _*.
(DebPrint): Macro defined.

Use pragmas to place Emacs initialized data in
EMDATA segment, and Emacs uninitialized data in EMBSS segment.
1997-09-03 01:14:40 +00:00
Geoff Voelker
4a83117466 (have_menus_p): Move to w32fns.c. 1997-09-03 01:14:17 +00:00
Geoff Voelker
8694f11b54 (w32_output): New fields menubar_widget, menubar_active,
and pending_menu_activation.
(VERTICAL_SCROLL_BAR_*): Use proportional scroll bar variables.
(W32WindowPos): Delete definition.
(WM_EMACS_SETFOCUS, WND_*_INDEX): New macros.
(deferred_msg): New structure.

(WM_MOUSEWHEEL): Define if not already defined.
Necessary for pre VC5.0 distribution.
(WM_EMACS_TRACKPOPUPMENU): New Macro.
1997-09-03 01:13:25 +00:00
Geoff Voelker
689004fa09 (SIF_*): Win95 macros defined for NT.
(struct tagSCROLLINFO): Win95 struct defined for NT.
(vertical_scroll_bar_min_handle, vertical_scroll_bar_top_border,
vertical_scroll_bar_bottom_border, last_scroll_bar_drag_pos,
Vw32_gab_focus_on_raise, Vw32_capslock_is_shiftlock): New
variables.
(w32_frame_up_to_date): Block input.
(do_line_dance): Use DC while erasing, release at end.
(show_mouse_face): Use column and endcolumn calculated at start of
loop.
(my_create_scrollbar, my_show_window, my_set_window_pos,
my_set_focus) [! ATTACH_THREADS]: Send message to window instead
of invoking Windows procedure.
(x_scroll_bar_create, x_scroll_bar_move, x_scroll_bar_handle_click,
x_scroll_bar_report_motion): Use SCROLLINFO for proportional handle.
(x_scroll_bar_set_handle): Create proportional sized scroll handle.
(w32_set_vertical_scroll_bar): Size handle according to how much
is showing in window.
(x_scroll_bar_set_report_motion): Use top_range, calculated above.
(x_scroll_bar_clear): Hide scroll bar until ready to repaint.
(show_scroll_bars): Pass in frame to my_show_window.
(w32_read_socket): Distinguish between invisible and obscured frames
when handling PAINT messages.
Fixup off-by-one calculation for PAINT and SIZE.
Pass in new parameter to w32_kbd_mods_to_emacs.
Handle WM_DISPLAYCHANGE, WINDOWPOSCHANGED, ACTIVATE, SHOWWINDOW,
INITMENU, and ACTIVATEAPP messages.
Explicitly check for visibile and obscured frames, and to see if
any event should cause a redisplay.

(x_display_bar_cursor): Don't check whether frame is updating here.
(x_display_cursor): Check it here instead.
(x_set_offset) [HAVE_NTGUI]: Don't add border widths.
Set NOACTIVATE when setting window position.
(x_set_window_size): Fixup off-by-one calculation when setting
window position.  Mark frame garbaged earlier.  Clear mouse
highlighting state.
(x_focus_on_frame): Set focus by making frame the foreground window.
(x_raise_frame): Support frames to be raised without grabbing focus.
(x_lower_frame): Set NOACTIVATE flag when setting window position.
(x_make_frame_visible, x_make_frame_invisible): Pass in frame
to my_show_window.
to my_show_window.
(x_iconify_frame): Send a MINIMIZE message to the window.
(x_wm_set_size_hint): Set font width, line height, border,
and scroll bar indexes instead of X and Y unit indexes.

(w32_initialize): Set input mode.  Use w32_msg_worker instead
of windows_msg_worker.  Dynamically link proportional scroll bar
functions and intialize proportional scroll bar variables.
(syms_of_w32term): DEFVAR new variables.

(construct_mouse_wheel): New function.  Constructs an
input event from a WM_MOUSEWHEEL message.
(w32_read_socket): Handle WM_MOUSEWHEEL.

(w32_read_socket): Pass in new parameter to key_event.
Let key_event determine whether key is dead.
For MOVE, use x_real_positions to map to client coords.
(x_set_mouse_pixel_position): Offset to use client area as origin.
1997-09-03 01:07:37 +00:00
Geoff Voelker
b2fc9f3d6b Include w32heap.h.
(Vw32_start_process_share_console, Vw32_generate_fake_inodes,
Vw32_get_true_file_attributes, Qhigh, Qlow, process_dir):
New variables.
(find_child_console, set_process_dir, Fw32_short_file_name,
Fw32_long_file_name, Fw32_set_process_priority, Fw32_get_locale_info,
Fw32_get_current_locale_id, Fw32_get_default_local_id,
Fw32_set_current_locale): New functions.
(CORRECT_DIR_SEPS): New macro.
(create_child): Create a new console if subprocs don't share parent's.
(reap_subprocess): Don't check for dos subprocesses.
Add debug support.
(sys_wait): Ignore socket child_procs.
Check for quit while waiting.
(w32_executable_type): Renamed from w32_is_dos_binary.
Check for dos and Cygnus executables.
(sys_spawnve): Always use cmdproxy if spawning a dos app.
Use quotes to quote arguments for Cygnus apps, backslashes otherwise.
Handle escape characters.  Escape quotes at start and end, too.
(sys_select): Treat null timeout as infinite.
Add handles of child processes.
Loop over handles round robin to ensure fairness.
(sys_kill): Send ctrl-break and ctrl-c keystrokes to subprocesses
on SIGINT if not sharing consoles, otherwise generate ctrl-break event.
On other termination signals, send WM_QUIT message to Win95 apps
and WM_CLOSE to NT apps.
(syms_of_ntproc): Intern new symbols.  defsubr new functions.
DEFVAR new variables.
1997-09-03 01:05:33 +00:00
Geoff Voelker
014510b01f (init_menu_items): Disable code.
(x_activate_menubar): New function.
(initialize_frame_menubar): Pass in new param to set_frame_menubar.

(get_frame_menubar_event): Check for the possibility
of a menu-bar button.  A menu-bar button is a caption on the menu
bar with no submenu.

(set_frame_menubar): Correctly handle menu-bar buttons.
(add_menu_item): Equiv parameter send and paid attention to.
(keymap_panes, list_of_panes): Use CreatePopupMenu.
(single_keymap_panes): Use CreatePopupMenu.  Send key descriptions
to add_menu_item.
(list_of_items): Use CreatePopupMenu.  Send nil description to
add_menu_item.
(get_menu_event): Send keymap instead of menu to get_keymap_event.
(Fx_popup_menu): Extra parameter to mouse_position_hook.  Don't
send address of menu to win32menu_show.
(win32menu_show): Send message to call popup menu rather than
trying directly.  get_menu_event should take an address.
Call eat_mouse_events in order to get rid of any extraneous
mouse events.
(list_of_panes): Only bring up one pane if the length of the list
of panes is one.

(single_keymap_panes): Fixed problem with 'descrip'
lisp object not being protected properly (GCPRO).
(get_single_keymap_event): Fixed problem with 'descrip' lisp
object not being protected properly (GCPRO).
(name_is_separator): New function.
(list_of_panes): If a pane's name is empty ("") items are now
placed in the main popup instead of a blank-named submenu.  This
seems to be an undocumented feature of x-popup-menu.
(list_of_items): New argument HMENU.
Use 1 and 0 instead of Qt and Qnil for enable in add_menu_item
1997-09-03 00:53:34 +00:00
Geoff Voelker
59131421e9 Declare externs from other files.
(w32_kbd_mods_to_emacs): New parameter KEY.
Use w32-capslock-is-shiftlock for old behavior.
(key_event): Pass in new parameter to w32_kbd_mods_to_emacs.
(key_event): New parameter isdead. Set isdead if the
key press was done using a dead key.
1997-09-03 00:52:40 +00:00
Geoff Voelker
3443b04a09 Enumerate operating system types.
Declare extern data and functions.
Move file_data struct definition here.
(OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): New macros.
1997-09-03 00:52:12 +00:00
Geoff Voelker
801f68b995 (os_subtype): New variable.
(cache_system_info): Set os_subtype.
(recreate_heap): Update system information after loading heap.
Don't use data_seg pragma here.
(_heap_init, _heap_term) [_MSC_VER >= 1000]: New functions that
override CRT routines.
1997-09-03 00:51:32 +00:00