1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-26 01:40:53 -08:00
Commit graph

28073 commits

Author SHA1 Message Date
Jan Djärv
acd51077ea * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
* xterm.c (x_handle_net_wm_state): Also look for sticky.
(x_term_init): Initialize Xatom_net_wm_state_sticky.

* frame.h: Declare Qsticky.
2009-07-01 16:58:05 +00:00
Jan Djärv
cad9ef74ea * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
* 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.
2009-07-01 16:48:35 +00:00
Jan Djärv
69b166106d * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
(xg_tool_bar_menu_proxy): Attach enter/leave events to
xg_tool_bar_proxy_help_callback.
2009-07-01 15:52:58 +00:00
Jan Djärv
3f1c666608 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
* 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.

* frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.  Declare
Qfullwidth, Qfullheight, Qfullboth, 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.

* gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
(xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
flush_and_sync.
(xg_height_changed): New function.
(xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
and gtk_window_set_policy.  Set frame gravity after parsing the geometry
string.
(xg_update_frame_menubar, free_frame_menubar)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
Remove calls to xg_frame_set_char_size.

* startup.el (command-line-x-option-alist): Add -mm and --maximized.

* NEWS: Mention maximized.

* frames.texi (Size Parameters): Mention maximized for fullscreen.

* xresources.texi (Table of Resources): Mention maximized for
fullscreen.

* cmdargs.texi (Window Size X): -mm/--maximized is new.
2009-07-01 14:02:27 +00:00
Kenichi Handa
fd503d99b2 (decode_keyboard_code): New function.
(tty_read_avail_input): Decode the input bytes if necessary.
2009-07-01 11:37:45 +00:00
Kenichi Handa
624bda0987 (setup_coding_system): Initialize
coding->carryover_bytes to 0.
(Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
use Qno_conversion.
2009-07-01 11:35:07 +00:00
YAMAMOTO Mitsuharu
24ed93fb87 (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc. 2009-07-01 08:55:45 +00:00
Chong Yidong
99061dfcf6 * xftfont.c (xftfont_open): Avoid passing NULL argument to
XftLockFace.
2009-06-30 22:07:44 +00:00
Jason Rumney
ff90fbdecc bug#1849 - Windows 7 Taskbar Support
* w32term.c (w32_initialize): Use GetModuleHandle for library that
is already loaded.
Set user model ID if supported (bug#1849).

* runemacs.c (set_user_model_id): New function.
(WinMain): Use it.

* emacsclient.c (w32_give_focus): Use GetModuleHandle for library
that is already loaded.
(w32_set_user_model_id): New function.
(main): Use it to associate emacsclient with emacs (bug#1849).
2009-06-30 15:48:23 +00:00
Jim Meyering
5f4457269e Remove useless if-before-xfree tests.
* nsfont.m (nsfont_close): Remove useless test.
* term.c (delete_tty): Likewise.
* w32.c (system_process_attributes): Likewise.
* w32font.c (w32font_close): Likewise.
* xfaces.c (x_free_gc): Likewise.
* xselect.c (buffer): Likewise.
2009-06-29 05:28:54 +00:00
Andreas Schwab
347f3cd3dd Simplify last change. 2009-06-28 20:25:49 +00:00
Andreas Schwab
b96075879a (send_process): Keep decoded string in a local
variable and protect it from GC.  (Bug#3521)
2009-06-28 20:12:20 +00:00
Chong Yidong
485422be11 * xdisp.c (start_display, handle_face_prop)
(move_it_vertically_backward, cursor_row_fully_visible_p)
(redisplay_window, try_window_id, produce_image_glyph): Delete
some #ifdef-ed out code chunks that are now obsolete.
2009-06-28 20:01:28 +00:00
Eli Zaretskii
89ba96f423 (create_tty_output) [MSDOS]: #ifdef away.
(tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2009-06-28 19:07:16 +00:00
Chong Yidong
098a1589d9 * xterm.c (x_update_window_begin, x_new_focus_frame)
(x_scroll_bar_handle_click, handle_one_xevent)
(handle_one_xevent, XTread_socket, x_focus_on_frame)
(x_make_frame_visible, x_make_frame_invisible)
(x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
code chunks that are now obsolete.
2009-06-28 15:32:20 +00:00
Michael Albinus
78c383195c * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
for hours, when optimzation is enabled.
(xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
(xd_read_message): Make them static.
2009-06-28 15:22:37 +00:00
Chong Yidong
4189ed40b8 * term.c (turn_on_face): Allow simultaneously bold and dim
terminal faces (Bug#3530).
2009-06-27 21:27:51 +00:00
Chong Yidong
4e23bedbfa * frame.c (x_get_arg): Check if dpyinfo is non-NULL. 2009-06-27 19:50:50 +00:00
Chong Yidong
cd9b5e16ff * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
truncation glyphs (Bug#3686).
2009-06-27 03:50:23 +00:00
Glenn Morris
07cc3c358f Trim to just the stuff applicable to netbsd, since the other platforms
have been removed.
2009-06-27 02:40:34 +00:00
Glenn Morris
4bbbda22da Restore file. 2009-06-27 02:39:28 +00:00
Dan Nicolaescu
2977109422 (--enable-checking): New option. 2009-06-26 23:41:43 +00:00
David Reitter
25c5550f48 nsterm.m (keydown): avoid infinite loop 2009-06-26 18:37:41 +00:00
Kenichi Handa
42d4a64f78 (get_adstyle_property): Call font_intern_prop with 1 as
the arg FORCE_SYMBOL.
2009-06-26 06:16:07 +00:00
Chong Yidong
930fe55bb0 Fix last entry. 2009-06-25 14:28:32 +00:00
Kenichi Handa
a71ccf3ac8 (fontset_find_font): When a usable rfont_def is found
in a fallback font-group, make it the first element of the group.
2009-06-25 08:02:34 +00:00
Chong Yidong
57ebc3fdd2 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671). 2009-06-24 14:27:47 +00:00
Kenichi Handa
f084f94244 (fontset_get_font_group): Return 0 if no font-group is
set for C.
(fontset_font): Record the availability of a font for C both in
the realized fontset of the current one and the default one.
2009-06-24 04:24:18 +00:00
Chong Yidong
632c203070 Reformat 2009-06-23 ChangeLog entry. 2009-06-23 14:14:13 +00:00
Dan Nicolaescu
2f686c8743 (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
conditional, it is always defined on AIX.
2009-06-23 07:09:58 +00:00
Miles Bader
666e158e38 Add the recenter-redisplay' variable, and make recenter' use it.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1604
2009-06-23 07:07:45 +00:00
Jim Meyering
c6da7cd2b6 Don't dereference NULL upon failed malloc and realloc.
* src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
and xrealloc (not malloc and realloc), so subsequent heap pointer
dereferences are guaranteed to be valid.
2009-06-23 06:49:20 +00:00
Kenichi Handa
74d7542405 (main): Call init_font (). 2009-06-23 05:53:56 +00:00
Kenichi Handa
59314cafbe (Vfont_log): Extern it.
(FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2009-06-23 05:53:28 +00:00
Kenichi Handa
652b9560dc (font_sort_entities, font_list_entities)
(font_matching_entity, font_open_entity)
(font_close_object): Change font_add_log to FONT_ADD_LOG.
(Vfont_log): Delete static.
(font_log_env_checked): Delete this variable.
(font_add_log): Don't check font_log_env_checked.
(font_deferred_log): Check Vfont_log.
(init_font): New function.
2009-06-23 05:52:59 +00:00
Kenichi Handa
678dca3ddb Change font_add_log to FONT_ADD_LOG. 2009-06-23 05:51:00 +00:00
Kenichi Handa
b23bf85abc (fontset_font): Call FONT_DEFERRED_LOG.
(face_for_char): Don't call font_deferred_log here.
(font_for_char): Likewise.
2009-06-23 05:47:46 +00:00
Chong Yidong
ec7c992608 * xterm.c (xg_default_icon_file): New variable.
(syms_of_xterm): Initialize it to the Emacs SVG icon file.
(x_bitmap_icon): Under GTK, use xg_default_icon_file.
2009-06-22 04:09:14 +00:00
Chong Yidong
9a01ee3357 * w32term.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).

* xterm.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).
2009-06-22 02:01:56 +00:00
Chong Yidong
8a668709c2 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
(load_overlay_strings): Remove externs.
(fast_find_position): Function deleted.
(mouse_face_from_buffer_pos): New function, based on
fast_find_position.  Correctly handle before-strings,
display-strings, and after-strings (Bug#1220).
(note_mouse_highlight): Use mouse_face_from_buffer_pos.
2009-06-22 01:53:11 +00:00
Chong Yidong
7024347875 Add "Branch for 23.1" ChangeLog entry. 2009-06-21 14:35:26 +00:00
Chong Yidong
4d4c02d802 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
!HAVE_WINDOW_SYSTEM.
(move_it_in_display_line_to, move_it_in_display_line_to)
(display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2009-06-21 14:28:27 +00:00
Jason Rumney
46534e1efb (w32_initialize): Add necessary casts to last change. 2009-06-21 13:16:21 +00:00
Jason Rumney
13087e5925 (keyboard_codepage): New static variable.
(w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
(w32_read_socket) [WM_CHAR]: Use it to decode character
input (bug#3237).
(w32_initialize): Initialize it.
(codepage_for_locale): New function.
2009-06-21 03:34:19 +00:00
Ken Raeburn
4735b74e57 (status_message): Pass Faset index argument as a lisp object, so as to work
with USE_LISP_UNION_TYPE.
2009-06-20 23:23:55 +00:00
Juanma Barranquero
ec7709ba14 Fix typos. 2009-06-19 13:45:19 +00:00
YAMAMOTO Mitsuharu
0e727afa9d (Ffind_coding_systems_region_internal): Cache checked characters. 2009-06-19 08:39:44 +00:00
Kenichi Handa
cf299835b1 (decode_coding_iso_2022): Check MSB of bytes more rigidly. 2009-06-18 10:29:51 +00:00
Andreas Schwab
90f20d9422 (redisplay_internal): Check that the frame is still
live after redisplay of its windows.
(redisplay_windows): Check that the window is still live.
2009-06-18 09:49:05 +00:00
Kenichi Handa
7f1faf1cc2 (detect_coding_utf_16): Fix previous change. 2009-06-17 00:42:17 +00:00