summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Clean up some of PGTK codeEli Zaretskii2021-12-18
| | | | | | | | * src/pgtkgui.h: Fix comments. * src/image.c (DONT_CREATE_TRANSFORMED_IMAGEMAGICK_IMAGE) (is_wayland_display, check_x_display_info) (pgtk_get_string_resource): Reformat comments. * src/gtkutil.c (xg_show_tooltip): Add comments to large #ifdef's.
* * src/pgtkfns.c (Fx_show_tip): Adjust call for new signature.Po Lu2021-12-18
|
* Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-18
|\
| * Work around some mysterious touch ownership race on GNOME ShellPo Lu2021-12-18
| | | | | | | | | | | | | | * src/xterm.c (x_unlink_touch_point): Return if touchpoint was actually unlinked. (handle_one_xevent): Catch and ignore errors during touch sequence grabbing.
| * ; Fix last changeEli Zaretskii2021-12-18
| | | | | | | | | | | | | | | | | | | | * src/xdisp.c (window_text_pixel_size): Fix whitespace and braces. * src/xdisp.c (Fwindow_text_pixel_size): * etc/NEWS: * doc/lispref/display.texi (Size of Displayed Text): Improve wording of the documentation of the new argument of 'window-text-pixel-size'.
| * Add new argument `ignore-line-at-end' to `window-text-pixel-size'Po Lu2021-12-18
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Size of Displayed Text): Update documentation. * etc/NEWS: Announce new argument. * src/xdisp.c (window_text_pixel_size): Allow controlling if the iterator's ascent and descent will be appended to the pixel height returned. All callers changed. (Fwindow_text_pixel_size): New argument `ignore-line-at-end'. All callers changed.
| * Fix display of window-specific overlays with 'display' propertyEli Zaretskii2021-12-18
| | | | | | | | | | | | | | | | | | * src/xdisp.c (handle_display_prop): Pass the window to 'get_char_property_and_overlay', not the buffer. (Bug#52385) The assignment of the buffer to OBJECT was moved to before the call to 'get_char_property_and_overlay', for unknown reasons, as part of installing the support for the 'min-width' space spec.
* | Coding style fixesPo Lu2021-12-18
| | | | | | | | * src/gtkutil.c (xg_frame_set_char_size): Fix coding style.
* | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-18
|\|
| * Flip buffers if display were modified in haiku_read_socketPo Lu2021-12-18
| | | | | | | | | | | | * src/haikuterm.c (flush_dirty_back_buffers): New function. (haiku_read_socket): Flip buffers if the display could have been modified.
| * Don't abort upon untracked TouchUpdate eventsPo Lu2021-12-18
| | | | | | | | | | | | | | | | | | Emacs might get an untracked TouchUpdate event in the unlikely event of a device hierarchy change during a touch sequence, in which case all devices and touchpoints will be reset. * src/xterm.c (handle_one_xevent): Don't abort when receiving a TouchUpdate that isn't part of a touch sequence.
| * Fix touchscreen support on Xt buildsPo Lu2021-12-17
| | | | | | | | | | * src/xterm.c (handle_one_xevent): Make menu bar touch event code conditional on GTK3.
| * Update menu bar when processing touch sequences on itPo Lu2021-12-17
| | | | | | | | | | | | * src/xterm.c (handle_one_event): Prevent menu bar from becoming outdated when handling XI_TouchBegin events that may cause it to be opened.
| * Ignore motion events sent by an emulated pointerPo Lu2021-12-17
| | | | | | | | | | | | * src/xterm.c (handle_one_xevent): Ignore XI_Motion events that have PointerEmulated set when the display supports XInput 2.2 or later.
| * Fix selection of fonts that don't have regular weightEli Zaretskii2021-12-17
| | | | | | | | | | | | * src/font.c (font_delete_unmatched): The kludge of allowing inexact matches of the font weight is now used for non-NTGUI platforms as well. (Bug#52493)
* | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-17
|\|
| * Add support for touchscreen events generated by XInput 2Po Lu2021-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Input Events): Add "Touchscreen Events" to menu. (Touchscreen Events): New node. * etc/NEWS: Announce new event types. * src/keyboard.c (make_lispy_event): Handle touchscreen events. (syms_of_keyboard): New symbols `touchscreen-begin', `touchscreen-end' and `touchscreen-update'. * src/termhooks.h (enum event_kind): New touchscreen events. * src/xfns.c (setup_xi_event_mask): Set up touch event mask if appropriate. (x_window) [USE_GTK]: Call `setup_xi_event_mask'. * src/xterm.c (x_free_xi_devices): Free touchpoints. (x_init_master_valuators): Handle all devices and set master and touch mode flags appropriately. (xi_reset_scroll_valuators_for_device_id): (x_get_scroll_valuator_delta): Ignore slave devices. (xi_link_touch_point): (xi_unlink_touch_point): (xi_find_touch_point): New functions. (handle_one_xevent): Handle XI touch events and events from non-master devices. * src/xterm.h (struct xi_touch_point_t): New structure. (struct xi_device_t): Add touchpoints field.
| * * src/timefns.c: Minor comment fix.Paul Eggert2021-12-16
| |
| * Omit temporary warning re obsolete timestampsPaul Eggert2021-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | Do not warn about timestamps like (1 . 1000). This warning was added in Emacs 27 as a temporary transition aid, and has now served its purpose. These timestamps, which Emacs 26 and earlier treated as (HI . LO) instead of as (TICKS . HZ), were never generated by Emacs primitives, and in practice the warning seems to have been triggered only by test cases designed to generate it. * src/timefns.c (WARN_OBSOLETE_TIMESTAMPS): Remove. All uses changed to assume it’s false. (decode_lisp_time): Simplify by taking a bool instead of an integer bitmask. All uses changed.
| * Fix encode-time doc stringPaul Eggert2021-12-16
| | | | | | | | | | | | * src/timefns.c (Fencode_time): Fix incorrect doc string that talks about FORM (which doesn’t exist) by copying wording from the manual instead.
* | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-16
|\|
| * Require xwidget.el in `make-xwidget'Po Lu2021-12-16
| | | | | | | | * src/xwidget.c (Fmake_xwidget): Require `xwidget'.
| * Have 'dlopen' use RTLD_GLOBAL in 'dynlib_open'Andrea Corallo2021-12-15
| | | | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_do_dump_relocation): Use 'dynlib_open_for_eln' in place of 'dynlib_open'. * src/dynlib.h (dynlib_open_for_eln): Declare it. * src/dynlib.c (dynlib_open_for_eln): New function. (dynlib_open): Add RTLD_GLOBAL. * src/comp.c (Fnative_elisp_load): Use 'dynlib_open_for_eln' in place of 'dynlib_open'.
* | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-15
|\|
| * Merge from origin/emacs-28Stefan Kangas2021-12-15
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 7078f32b5b Fix crash when dumping charset_table with portable dumper ... a4fcbf46a7 ; etc/NEWS: Move the note about Xref EIEIO change to the p... f88c1d222f Remove maintainer comment from Emacs 28 module snippet. # Conflicts: # etc/NEWS
| | * Fix crash when dumping charset_table with portable dumper (Bug#52461)YAMAMOTO Mitsuharu2021-12-15
| | | | | | | | | | | | | | | | | | | | | * src/charset.h: * src/charset.c (charset_table_used): Now extern. * src/pdumper.c (dump_charset): Don't dump code_space_mask for unused slots of charset_table.
| | * Remove maintainer comment from Emacs 28 module snippet.Philipp Stephani2021-12-14
| | | | | | | | | | | | | | | | | | | | | | | | This is the same as 44c13eefe8d30841000a96d82f467fb8d222e365 on master. We should also remove this comment on the release branch, otherwise it ends up in the emacs-module.h shipped to users. * src/module-env-28.h: Remove maintainer comment.
| * | Prevent GDK from handling emulated button eventsPo Lu2021-12-15
| | | | | | | | | | | | * src/xterm.c (handle_one_xevent): Drop emulated button events.
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-14
|\| |
| * | Only allow SQLite extensions from an allowlistLars Ingebrigtsen2021-12-14
| | | | | | | | | | | | | | | * src/sqlite.c (Fsqlite_load_extension): Only allow extensions from an allowlist.
| * | Merge from origin/emacs-28Stefan Kangas2021-12-14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | 3607508f3f Set calc-make-windows-dedicated to nil by default 9de8eec3bc * make-dist: Don't run "make --question info". (Bug#52322) cea8deea72 ; * src/xdisp.c (move_it_vertically_backward): Clarify com... 6170c5036e Fix regression in help-mode prompt # Conflicts: # etc/NEWS
| | * ; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.Eli Zaretskii2021-12-13
| | |
| * | ; Add a FIXME regarding the GMP memory allocation functions.Philipp Stephani2021-12-13
| | | | | | | | | | | | | | | * src/bignum.c (init_bignum): Add a warning about the technically incorrect use of the GMP memory allocation functions.
| * | * src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE.Eli Zaretskii2021-12-13
| | |
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-13
|\| |
| * | Add a new `sqlite-pragma' commandLars Ingebrigtsen2021-12-13
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Database): Document it. * src/sqlite.c (Fsqlite_pragma): Add a separate command for pragmas. These can be done via sqlite-execute, but it's less confusing to have them in a separate command.
| * | Introduce a new sqlite-locked-errorLars Ingebrigtsen2021-12-13
| | | | | | | | | | | | | | | | | | * src/sqlite.c (Fsqlite_execute): Use it. (syms_of_sqlite): Introduce a new error for locked databases so that we can catch that condition on higher levels.
| * | Stop using XI focus events on non-GTK buildsPo Lu2021-12-13
| | | | | | | | | | | | | | | | | | | | | * src/xfns.c (setup_xi_event_mask): Stop setting XI_FocusIn and XI_FocusOut. * src/xterm.c (x_detect_focus_change) <GenericEvent>: Don't handle XI_FocusIn and XI_FocusOut events when not on GTK.
* | | Fix overline display when there is a box on PGTKPo Lu2021-12-12
| | | | | | | | | | | | | | | * src/pgtkterm.c (pgtk_draw_glyph_string): Draw box before any text decorations.
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-12
|\| |
| * | Fix overline display over stretch glyphs with box on NSPo Lu2021-12-12
| | | | | | | | | | | | | | | | | | | | | * src/nsterm.m (ns_dumpglyphs_stretch): Don't draw text decorations when there is a box. (ns_draw_glyph_string): Draw text decorations after the box in stretch glyph that have one.
| * | Fix overline display when there is a boxPo Lu2021-12-12
| | | | | | | | | | | | | | | | | | * src/w32term.c (w32_draw_glyph_string): * src/xterm.c (x_draw_glyph_string): Draw box before any text decorations.
| * | * src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.Po Lu2021-12-12
| | |
| * | Fix last changePo Lu2021-12-12
| | | | | | | | | | | | | | | * src/xterm.c (x_detect_focus_change): Test against FOCUS_EXPLICIT.
| * | Fix frame focus on X Toolkit builds with XInput 2Po Lu2021-12-12
| | | | | | | | | | | | | | | * src/xterm.c (x_detect_focus_change): Allow focus_state to not be FOCUS_EXPLICIT when handling FocusIn and FocusOut events.
| * | Merge from origin/emacs-28Stefan Kangas2021-12-12
| |\| | | | | | | | | | | | | | | | 8a0734329a Avoid undefined behavior in 'send-process-region' (Bug#523... 30dd5c9acc Update to Org 9.5.1-25-g9ca3bc a374849926 Fix the DJGPP port
| | * Avoid undefined behavior in 'send-process-region' (Bug#52369).Philipp Stephani2021-12-11
| | | | | | | | | | | | | | | * src/process.c (send_process): Signal an error if the file descriptor has already been closed.
| | * Fix the DJGPP portPo Lu2021-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.bat: * msdos/sed1v2.inp: * msdos/sed2v2.inp: * msdos/sed3v2.inp: * msdos/sedlibmk.inp: Update for Emacs 28. * msdos/langinfo.h: New file. * lisp/loadup.el: Use correct path to temacs when dumping on MS-DOS. * src/callproc.c (environ) [MSDOS]: New declaration. (child_setup, emacs_spawn): Update MS-DOS parts for Emacs 28. * src/fileio.c (Fcopy_file): Don't use copy_file_range on MS-DOS. * src/msdos.c (initialize_msdos_display): Add `defined_color_hook'. (openat, fchmodat, futimens, utimensat): New functions. * src/msdos.h (FRAME_X_DISPLAY): New macro. * src/process.c: Make some more things conditional on subprocess support. (PIPECONN_P, PIPECONN1_P) [!subprocesses]: New placeholder macros. (Fnum_processors): Return 1 on MSDOS. (open_channel_for_module): Avoid subprocess specific code on MSDOS.
* | | Fix coding stylePo Lu2021-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/pgtkmenu.c (popup_widget_loop): (popup_deactivate_callback): (show_help_event): (menu_highlight_callback): (menubar_selection_callback): (popup_selection_callback): (dialog_selection_callback): (create_and_show_dialog): Fix coding style.
* | | Prevent hangs when displaying a context menu on pgtkPo Lu2021-12-12
| | | | | | | | | | | | | | | * src/pgtkmenu.c (pgtk_menu_wait_for_event, popup_widget_loop): Remove unnecessary workarounds.