1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-14 19:01:45 -07:00
Commit graph

155589 commits

Author SHA1 Message Date
Lars Ingebrigtsen
71916f0758 Make the `C' command work on marked files
* lisp/arc-mode.el (archive-copy-file): Make the `C' command work
on marked files (bug#44753).
2020-11-24 08:44:30 +01:00
Lars Ingebrigtsen
6dad1f25de Add a user option to control how links are followed in eww
* doc/misc/eww.texi (Advanced): Document it (bug#44783).

* lisp/net/eww.el (eww-use-browse-url): New variable.
(eww-follow-link): Use it.
2020-11-24 08:22:26 +01:00
Itai Seggev
868f51324a Codesign the executable on recene MacOS systems
* src/Makefile.in (temacs$(EXEEXT)): Codesign the executable on
recent (ARM) MacOS systems (bug#43878).  Without this, building
Emacs fails.

Copyright-paperwork-exempt: yes
2020-11-24 06:52:27 +01:00
Lars Ingebrigtsen
3802f9ce3d Delete the emacs-server directory upon Emacs exit
* lisp/server.el (server-start): Delete the server directory upon
Emacs exit (bug#44644).  This fixes the problem of /tmp/emacs0
directories being left behind when running an Emacs server as root.
2020-11-24 06:41:03 +01:00
Lars Ingebrigtsen
33e2515257 Tweak the face of unknown backend indicators in flymake
* lisp/progmodes/flymake.el (flymake--mode-line-format): Don't put
a face on the the "?" unknown backend indicator, because that
looks odd in inactive windows (bug#44689).
2020-11-24 06:22:52 +01:00
Paul W. Rankin
5a823a2a0c Handle outline overlays better when cycling in outline.el
* lisp/outline.el (outline--cycle-state): Only consider outline
overlays that are on outline headings; when subtree end is
point-max, return overlay-end +1 because final subtree overlay
only reaches point-max -1 (bug#41198).
(outline-cycle-buffer): Check that buffer has top-level headings
before calling outline-hide-sublevels 1 thus preventing
disconcerting buffer state of content reduced to single "..."
2020-11-24 06:08:59 +01:00
Yuuki Harano
d6ef9af82e Fix crash when .schema.xml is not installed
* src/pgtkfns.c (parse_resource_key): Check return value.
2020-11-24 12:24:41 +11:00
Yuuki Harano
731b5e8e31 Add copyright line
* etc/org.gnu.emacs.defaults.gschema.xml: Add copyright line.
2020-11-24 12:24:40 +11:00
Yuuki Harano
b1b744057f Work around gtk_im_context_filter_keypress() issue with super key
* src/pgtkterm.c (x_find_modifier_meanings): Convert virtual super
to non-virtual one.
(pgtk_gtk_to_emacs_modifiers): Use non-virtual one.
(pgtk_emacs_to_gtk_modifiers): Use non-virtual one.
(key_press_event): Don't call pgtk_im_context_filter_keypress while
super is pressed.
* src/pgtkterm.h (struct pgtk_display_info): New member.
2020-11-24 12:24:40 +11:00
Jeff Walsh
8fa5427130 lisp/term/pgtk-win.el: Add copyright file header 2020-11-24 12:24:40 +11:00
Jeff Walsh
886fcb237d Update copyright dates for PGTK files
* src/pgtkfns.c:
* src/pgtkgui.h:
* src/pgtkim.c:
* src/pgtkmenu.c:
* src/pgtkselect.c:
* src/pgtkselect.h:
* src/pgtkterm.c:
* src/pgtkterm.h: Update copyright dates - No Funtional Changes
2020-11-24 12:24:40 +11:00
Yuuki Harano
e405404d10 Fix startup failure on svg-unsupported environments
* src/pgtkterm.c (pgtk_bitmap_icon): Re-port X-code.
(pgtk_term_init): Add member initialization.
* src/pgtkterm.h (struct pgtk_display_info): Add member.
(struct pgtk_output): Add member.
2020-11-24 12:24:40 +11:00
Yuuki Harano
948e2fa582 Avoid weird behavior when resizing with top-left corner
* src/frame.c (syms_of_frame): Defaults frame_resize_pixelwise to true.
2020-11-24 12:24:40 +11:00
Yuuki Harano
c1fbfb3fe0 Don't use gtk_window_resize to resize offscreen window
* src/xwidget.c (Fmake_xwidget): Use gtk_container_check_resize instead.
(Fxwidget_resize): Use gtk_container_check_resize instead.

; Gtk+3 document says:
; > Applications should not use any API specific to GtkWindow
; > to operate on this object. It should be treated as a GtkBin
; > that has no parent widget.
2020-11-24 12:24:40 +11:00
Yuuki Harano
d437aabe4d Avoid gtk warnings on X
* src/xwidget.c (xwidget_osr_draw_cb): Call it to avoid alloc_needes.
2020-11-24 12:24:40 +11:00
Kira Bruneau
7b6fea821a Avoid mutating invocation-name (tiny change)
* lisp/term/pgtk-win.el (window-system-initialization): copy invocation-name.
2020-11-24 12:24:40 +11:00
Yuuki Harano
4dbea5be17 Fix Gtk warnings
* src/gtkutil.c (xg_frame_set_char_size): Call appropriate function
(xg_set_undecorated): Do nothing if child frame.
(xg_set_no_focus_on_map): Do nothing if child frame.
(xg_set_no_accept_focus): Do nothing if child frame.
(xg_set_frame_icon): Do nothing if child frame.
(xg_get_file_name): Do nothing if child frame.
(xg_get_font):
* src/pgtkterm.c (pgtk_focus_frame): Do nothing if child frames.
(x_set_frame_alpha): Select correct widget.
(x_new_focus_frame): Focus only when non-child frames.
(pgtk_set_event_handler): Don't set for child frames.
* src/pgtkfns.c (xg_set_icon): Do nothing if child frames.
(xg_set_icon_from_xpm_data): Do nothing if child frames.
(pgtk_set_sticky): Do nothing if child frames.
(Fx_show_tip): Do nothing if child frames.
(Fpgtk_set_mouse_absolute_pixel_position): Select correct widget.
(Fpgtk_mouse_absolute_pixel_position): Select correct widget.
* src/pgtkmenu.c (pgtk_menu_show):
(pgtk_dialog_show):
2020-11-24 12:24:40 +11:00
Yuuki Harano
bb6862df1b Fix crash on drag and drop
* src/pgtkterm.c (pgtk_select): Move dispatch before
g_main_context_query.
(drag_drop): Remove drag_drop.
(drag_data_received): Rename arg.
(pgtk_set_event_handler): Remove drag-drop callback.
2020-11-24 12:24:40 +11:00
Yuuki Harano
640f770b79 Fix mouse cursor doesn't appear on motion events on xwidgets
* src/xwidget.c (xwidget_osr_event_forward): Propagate motion notify.
2020-11-24 12:24:40 +11:00
Yuuki Harano
d899fc11f6 Fix tooltips don't hide on events
* src/pgtkterm.c: New variable to indicate whether any event occurs.
(configure_event): Clear help string on a event.
(leave_notify_event): Clear help string on a event.
(motion_notify_event): Use gen_help_event.
(pgtk_set_event_handler): Hook configure-event for outer widgets.
(pgtk_term_init): Clear the flag.
2020-11-24 12:24:40 +11:00
Yuuki Harano
b60d4c9db0 Fix crash on creating child frames.
* src/pgtkfns.c (frame_geometry): Returns nil when no widget.
2020-11-24 12:24:40 +11:00
Yuuki Harano
0b69b73baa Fix crash when child frame updates toolbar
* src/gtkutil.c (update_frame_tool_bar): Do nothing when child frame.
2020-11-24 12:24:40 +11:00
Yuuki Harano
7c8da33613 Exclude Xlib's modifier keys
* src/pgtkterm.c (IsModifierKey): New macro.
(key_press_event): Exclude Xlib's modifier keys.
2020-11-24 12:24:40 +11:00
Yuuki Harano
28073ba59b Re-implement childframe with emacsgtkfixed
* src/emacsgtkfixed.c (G_DEFINE_TYPE): Make emacs_fixed_get_type public.
* src/emacsgtkfixed.h (EMACS_TYPE_FIXED): Make emacs_fixed_get_type public.
* src/gtkutil.c (xg_frame_set_char_size): Call appropriate functions
by whether the frame is a child frame or not.
(xg_create_frame_widgets): Use GTK_WINDOW_TOPLEVEL when creating child frame.
(xg_create_frame_outer_widgets): New function.
(xg_set_skip_taskbar): Call only when top-level frame.
(xg_set_no_accept_focus): See appropriate widget.
* src/gtkutil.h: New declaration.
* src/pgtkfns.c (pgtk_set_name_internal): Do only when top-level frame.
(Fx_create_frame): Reparent the frame.
(frame_geometry): Call appropriate functions
(syms_of_pgtkfns): Port from X code.
* src/pgtkterm.c (x_free_frame_resources): Destroy appropriate widget.
(x_calc_absolute_position): Port from X code.
(x_set_offset): Re-port from X code.
(pgtk_set_window_size): Use appropriate widget.
(pgtk_make_frame_visible): Use appropriate widget.
(pgtk_make_frame_invisible): Use appropriate widget.
(x_set_parent_frame): Reparent the frame.
(x_set_z_group): Process only when top-level frame.
(pgtk_text_icon): Process only when top-level frame.
(set_fullscreen_state): Process only when top-level frame.
(frame_highlight): Hold ref.
(frame_unhighlight): Hold ref.
(pgtk_window_is_of_frame_recursive): Prune child frames.
(pgtk_window_is_of_frame): Prune child frames.
(print_widget_tree_recursive): Don't call this when not debugging.
(pgtk_handle_draw): Don't call this when not debugging.
(pgtk_set_event_handler): expect map-event for edit_widget not outer widget.
* src/pgtkterm.h (FRAME_WIDGET): New macro.
2020-11-24 12:24:40 +11:00
Jeff Walsh
e75ce0302d Add support for x-support-frames
* src/pgtkfns.c (Fx_export_frames):
(syms_of_pgtkfns): port from X11 version
* src/pgtkterm.c (pgtk_cr_accumulate_data):
(pgtk_cr_destroy):
(pgtk_cr_export_frames): port from X11
* src/pgtkterm.h: add defs
2020-11-24 12:24:40 +11:00
Yuuki Harano
9704e23f4c Enable GtkIMContext by default
* lisp/term/pgtk-win.el: Call pgtk-use-im-context after init.

* src/pgtkim.c (pgtk_im_use_context): New function.
(pgtk_im_init): Call pgtk_im_use_context.
(Fpgtk_use_im_context): Call pgtk_im_use_context.
(syms_of_pgtkim): New variable Vpgtk_use_im_context_on_new_connection.
2020-11-24 12:24:40 +11:00
Yuuki Harano
6df8556ab7 Remove duplicated syms_of_xwidget call
* src/emacs.c (main): Remove duplicated syms_of_xwidget() call.
2020-11-24 12:24:40 +11:00
Yuuki Harano
2dd20b2d75 Self-implement tooltip
* src/gtkutil.c (xg_create_frame_widgets): Use popup for tooltip.
* src/pgtkfns.c (unwind_create_tip_frame): Port X code.
(x_create_tip_frame): Re-port X code.
(x_hide_tip): Re-port X code.
(Fx_show_tip): Re-port X code.
(frame_geometry): Get left_pos and top_pos here.
(syms_of_pgtkfns): Add variables for tooltip.
* src/pgtkterm.c (pgtk_set_event_handler): Set event handler for tooltip.
2020-11-24 12:24:40 +11:00
Yuuki Harano
51462ce2cc Add PGTK to system-configuration-features
* configure.ac: Set HAVE_PGTK when configuring for PGTK, and
add PGTK for iteration.
2020-11-24 12:24:40 +11:00
Yuuki Harano
be47e34e40 Re-port image drawing code from X
* src/pgtkterm.c (x_cr_draw_image): Re-port X code.
(x_draw_image_foreground): Re-port X code.
(x_draw_image_glyph_string): Re-port X code.
2020-11-24 12:24:40 +11:00
Yuuki Harano
2d5ffa5595 Make pointer visible when motion notify event
* src/pgtkterm.c (motion_notify_event): set pending_signals to true.
2020-11-24 12:24:40 +11:00
Yuuki Harano
e7190d8bb2 Fix non-English layout does not work
* src/pgtkterm.c (key_press_event): Use Vlocale_coding_system.
2020-11-24 12:24:40 +11:00
Yuuki Harano
6c4349601c Fix font lock is not applied on continued lines
* src/pgtkterm.c (pgtk_parse_color): Remove alpha bits.
2020-11-24 12:24:40 +11:00
Jeff Walsh
af1e279c15 Restore support for terminal only emacs in PGTK (add --with-pgtk)
* configure.ac: add "--with-pgtk" switch for building pgtk terminal
support.
Adjust X11 window system tests to no clobber pgtk preferences
2020-11-24 12:24:40 +11:00
Jeff Walsh
27a92f7b15 Add font chooser functionality
* src/pgtkfns.c (Fpgtk_popup_font_panel): repurpose X/gtk font chooser code
(syms_of_pgtkfns): add new symbol
2020-11-24 12:24:40 +11:00
Jeff Walsh
383ced7aee Fix migrating Child frames
* src/pgtkterm.c:
(x_calc_absolute_position): Remove Function that has no effect
(x_set_offset): titlebar off should not be stored as an offset, only
used to calculate final move locations
2020-11-24 12:24:40 +11:00
Yuuki Harano
89cbe3756c * src/keyboard.c (make_lispy_event): Fix coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
20dbd4e283 Change coding style
* src/gtkutil.c (xg_display_open):
(xg_get_image_for_pixmap):
(xg_frame_resized):
(xg_create_frame_widgets):
(x_wm_set_size_hint):
(xg_frame_restack):
(xg_finish_scroll_bar_creation):
(xg_update_scrollbar_pos):
(xg_update_horizontal_scrollbar_pos):
(xg_set_toolkit_scroll_bar_thumb):
(xg_event_is_for_scrollbar):
2020-11-24 12:24:40 +11:00
Yuuki Harano
1fe7caf3a6 Fix coding style
* src/emacs.c (main): Fix coding style
2020-11-24 12:24:40 +11:00
Yuuki Harano
25cf59203e Change coding style
* src/image.c (image_create_pattern_from_pixbuf): Change coding style
(image_create_bitmap_from_data): Change coding style
(image_create_bitmap_from_file): Change coding style
2020-11-24 12:24:40 +11:00
Yuuki Harano
3b161dd3c8 * src/pgtkselect.h: Change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
f761a09c98 * src/pgtkim.c: Change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
0056ca2d06 * src/pgtkterm.h: Change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
209c611ae9 * src/pgtkterm.h: Remove unused code 2020-11-24 12:24:40 +11:00
Yuuki Harano
964dfcf462 * src/pgtkgui.h: change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
af5b72575c * src/pgtkmenu.c: change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
72f79d820d * src/pgtkselect.c: change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
d109dabbc5 * src/pgtkfns.c: change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
e649275a0c * src/pgtkterm.c: change coding style 2020-11-24 12:24:40 +11:00
Yuuki Harano
a167e23560 * src/pgtkmenu.c (set_frame_menubar): Suppress gcc warning 2020-11-24 12:24:40 +11:00