summaryrefslogtreecommitdiff
path: root/src/w32fns.c
Commit message (Collapse)AuthorAgeFilesLines
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* (syms_of_w32fns): Change default value ofJason Rumney2009-10-291-1/+1
| | | | w32-scroll-lock-modifier to nil. (Bug#2827)
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.Michael Albinus2009-10-021-1/+1
|
* * lisp.h (Qdelete_directory_internal):Juanma Barranquero2009-10-011-1/+1
| | | | | | Declare, instead of Qdelete_directory. * w32fns.c (Fsystem_move_file_to_trash): Use it.
* * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: PositionJason Rumney2009-07-221-0/+45
| | | | | | | | | IME window at cursor (Bug#2570). (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished. (globals_of_w32fns): Dynamically load functions required above. * w32term.c (w32_draw_window_cursor): Send message to reposition any IME window.
* * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.Jan Djärv2009-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nsfns.m (ns_frame_parm_handlers): Ditto. * frame.c: Declare Qsticky. (frame_parms): Add sticky. * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky. * xterm.h: Declare x_set_sticky. * xterm.c (x_set_sticky): New function. * frame.c: Qmaximized is new. (x_set_frame_parameters): Do not handle fullscreen specially. Only set width and height if explicitly set. (x_set_fullscreen): Handle Qmaximized. (x_set_font, x_figure_window_size): Do not handle fullscreen specially. (syms_of_frame): Initialize Qmaximized. * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen for Expose event. Add call to x_check_fullscreen for MapNotify event. Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not set gravity to NorthWestGravity when USE_GTK. (set_wm_state): New function. (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED. (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED. (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen or the case when no window manager is running. That means remove calls to x_real_positions and x_fullscreen_adjust.
* (x_create_tip_frame): Use the uniscribe font backend ifJason Rumney2009-06-031-2/+2
| | | | available. (Bug#3379)
* * w32term.h (WM_EMACS_PAINT): New message.Jason Rumney2009-03-151-1/+6
| | | | | | * w32term.c (w32_read_socket): Use it instead of WM_PAINT. * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT before passing to lisp thread. (Bug#950)
* (w32_wnd_proc): Only ignore IME messages for theJason Rumney2009-03-041-3/+6
| | | | characters that have already been read.
* (w32_hide_hourglass): Handle case where frameJason Rumney2009-02-081-2/+11
| | | | disappeared while hourglass was displayed. (Bug #2193)
* * dbusbind.c (Fdbus_register_signal):Juanma Barranquero2009-01-181-3/+3
| | | | | * process.c (conv_sockaddr_to_lisp): * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
* (Vx_pointer_shape, Vx_nontext_pointer_shape)Jason Rumney2009-01-081-4/+6
| | | | | | | | (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape) (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape): Don't declare. (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485) (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * frame.c (delete_frame): New function derived fromMartin Rudalics2008-12-221-1/+1
| | | | | | | | | | | | | | Fdelete_frame to handle Qnoelisp value for FORCE argument. Delete last frame iff FORCE equals Qnoelisp. (Bug#1450) (Fdelete_frame): Call delete_frame. Remove line from doc-string saying that FORCE non-nil doesn't run `delete-frame-functions'. * frame.h: Extern delete_frame. * window.c (window_loop): * terminal.c (delete_terminal): * xterm.c (x_connection_closed): * xfns.c (Fx_hide_tip): * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
* (x_display_info_for_name, Fx_open_connection): SetJason Rumney2008-12-121-2/+2
| | | | Vwindow_system_version to the real w32 major version.
* * w32fns.c (x_create_tip_frame): Prevent default foreground color forJuanma Barranquero2008-10-301-3/+9
| | | | | new frames overriding foreground for tooltips. Based on similar patch from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
* * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.Juanma Barranquero2008-10-221-1/+2
| | | | Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
* * frame.c (x_fullscreen_adjust): Declare var as Display_Info.Juanma Barranquero2008-09-191-4/+4
| | | | | * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height) (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
* [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.Eli Zaretskii2008-08-151-0/+5
|
* NS port now uses etc/rgb.txt instead of etc/Emacs.clr (now removed); ↵Adrian Robert2008-08-011-49/+1
| | | | function Fw32_load_color_file moved to xfaces x_load_color_file
* * s/ms-w32.h (MULTI_KBOARD): Remove.before-remove-vmsDan Nicolaescu2008-07-311-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | * xterm.c: * xselect.c: * xfns.c: * window.c: * w32term.c: * w32fns.c: * terminal.c: * termhooks.h: * term.c: * sysdep.c: * keyboard.h: * keyboard.c: * frame.h: * frame.c: * frame.c: Remove references to MULTI_KBOARD, it is now the default. * config.in: Regenerate. * config.nt (MULTI_KBOARD): Remove. * configure.in (MULTI_KBOARD): Remove.
* * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.before-merge-emacs-app-to-trunkJason Rumney2008-07-151-7/+12
| | | | | | | | | | | | (w32_show_hourglass): Rename from show_hourglass. (w32_hide_hourglass): Rename from hide_hourglass. (DEFAULT_HOURGLASS_DELAY): Revert from last change. (Vhourglass_delay): Declare extern. (hourglass_started): Remove. * xdisp.c (Vhourglass_delay): Remove static. (hourglass_started, start_hourglass, cancel_hourglass): Don't include these versions on WINDOWSNT.
* applying patch to consolidate non-GUI portion of hourglass implementation as ↵Adrian Robert2008-07-151-27/+3
| | | | posted at http://thread.gmane.org/gmane.emacs.devel/98341
* (w32_get_arg): Remove wrapper function.Jason Rumney2008-07-141-48/+34
| | | | | | (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg directly. (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
* (x_create_tip_frame): Pass parameter argument toChong Yidong2008-07-081-1/+1
| | | | face-set-after-frame-default.
* * w32fns.c (map_w32_filename): Declare extern.Juanma Barranquero2008-07-071-0/+1
|
* Changes from Toru Tsuneyoshi for using Trash can when deleting files.Jason Rumney2008-07-021-0/+59
| | | | | | | | | | | | | | | | | | * files.el (backup-extract-version): Handle versioned directories. (trash-directory): New variable. (move-file-to-trash): New function. * cus-start.el (delete-by-moving-to-trash): Declare for custom. * lisp.h (Qdelete_file, Qdelete_directory): Declare extern. * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars. (syms_of_fileio): Initialize and export them. (Fdelete_directory, Fdelete_file): Optionally delete via trash. * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already. (Fsystem_move_file_to_trash): New function. (syms_of_w32fns): Export it to lisp.
* * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.Jason Rumney2008-06-281-1/+3
| | | | | | | | | | | (pfnSetLayeredWindowAttributes): New function pointer. (w32_initialize): Initialize it when supported. (x_set_frame_alpha): New function. * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'. (w32_frame_parm_handlers): Set alpha handler. * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
* * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)Jason Rumney2008-06-271-883/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions. (w32_to_x_charset, x_to_w32_charset) (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c. (Qw32_charset_unicode): Remove. (syms_of_w32fns): Update for above changes. * w32font.c (w32_to_x_charset, x_to_w32_charset) (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c. (syms_of_w32font): Update for above changes. * w32-fns.el (top-level): Unconditionally define all charsets.
* American English spelling fix.Glenn Morris2008-06-271-1/+1
|
* [OLD_FONT]: Remove obsolete font code.Jason Rumney2008-06-201-1194/+0
|
* * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'Stefan Monnier2008-06-201-5/+10
| | | | | for explicit `font' parameters. * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
* * w32fns.c, xfns.c (Qfont_param): New var.Stefan Monnier2008-06-191-0/+8
| | | | | | | (syms_of_w32fns): Initialize it. (x_default_font_parameter): Record explicit `font' into `font-parameter'. * faces.el (face-set-after-frame-default): Re-apply explicit `font' frame parameters after setting up the `default' face.
* * w32fns.c (Fw32_select_font): Removed old font API function.Jason Rumney2008-06-131-57/+0
| | | | | | | | | | | * w32font.c (logfont_to_fcname): New function. (Fx_select_font): New font dialog function compatible with GTK/fontconfig version. * font.c (font_style_symbolic_from_value): New function. (font_style_symbolic): Use it. * font.h (font_style_symbolic_from_value): Declare new function.
* Make "xfree (NULL)" a no-op; remove useless if-before-xfree.Jim Meyering2008-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (xfree): Return right away for a NULL arg. * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests. * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise. * src/mac.c (create_apple_event_from_event_ref): Likewise. (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise. * src/doprnt.c (doprnt1): Likewise. * src/frame.c (frame): Likewise. * src/keyboard.c (wipe_kboard): Likewise. * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap): (init_font_name_table, mac_unload_font, x_delete_display): Likewise. * src/term.c (tty_default_color_capabilities, maybe_fatal) (delete_tty): Likewise. * src/w16select.c (string): Likewise. * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. * src/w32bdf.c (w32_free_bdf_font): Likewise. * src/w32fns.c (w32_unload_font): Likewise. * src/w32font.c (w32font_close): Likewise. * src/window.c (size_window): Likewise. * src/xselect.c (receive_incremental_selection): Likewise. * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise. * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise. * src/w32.c (stat): Likewise.
* Fix typo in comment.Juanma Barranquero2008-05-281-1/+1
|
* * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.Jason Rumney2008-05-221-12/+12
| | | | | | * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: * xfns.c, xfont.c: Callers changed.
* Seiji Zenitani <zenitani at mac.com>Glenn Morris2008-05-211-1/+2
| | | | | | Ryo Yoshitake <ryo at shiftmode.net> (w32_frame_parm_handlers): A null handler for x_set_alpha.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* Throughout the file, delete all USE_FONT_BACKENDKenichi Handa2008-05-141-107/+35
| | | | | | | conditionals. Don't check enable_font_backend. Delete all codes used only when USE_FONT_BACKEND is not defined. Surround non-used code by "#ifdef OLD_FONT" and "endif". (Fw32_select_font): Use FONT_COMPAT to get old font structure.
* (Fw32_battery_status): Fix computation of %t (h:min) format.Juanma Barranquero2008-05-041-2/+2
|
* (Fw32_battery_status): New defun.Jason Rumney2008-04-291-0/+110
| | | | (syms_of_w32fns): Defsubr it.
* (Fw32_define_rgb_color): Fix typo in docstring.Juanma Barranquero2008-04-281-3/+3
|
* (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.Jason Rumney2008-04-031-0/+12
|
* (start_hourglass): Suppress hourglass on tty frames.Jason Rumney2008-03-271-0/+4
|
* * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.Jason Rumney2008-03-191-97/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | (syms_of_w32fns): Initialize them. (HOURGLASS_ID): New constant. (x_window_to_frame): Don't check hourglass_window. (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer. (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor. (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor. (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor. Only change the cursor if hourglass is not active. (Fx_create_frame): Initialize frame's current_cursor. (hourglass_atimer): Remove. (hourglass_started): New function. (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. (show_hourglass): Adapt to w32, changing argument to frame. * w32term.h (struct w32_output): Remove hourglass_window. Add current_cursor. * eval.c (call_debugger, Fsignal): * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) (Fexecute_extended_command, cancel_hourglass_unwind): * minibuf.c (read_minibuf): * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
* (globals_of_w32fns, Fx_create_frame): Fix last change.Eli Zaretskii2008-03-141-11/+0
|
* (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)Jason Rumney2008-03-141-10/+76
| | | | | | | (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. (monitor_from_point_fn, get_monitor_info_fn): New globals. (globals_of_w32fns): Initialize them. (compute_tip_xy): Use them to position tooltips.
* (w32_msg_pump): Disable debug code.Jason Rumney2008-03-011-0/+4
|