summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* ; * src/xdisp.c (display_string): Fix a typo in a comment.Eli Zaretskii2021-12-21
|
* Fix xg_event_is_scrollbar for grab-related events on XI2Po Lu2021-12-21
| | | | | * src/gtkutil.c (xg_event_is_for_scrollbar): Don't return true if event coordinates are outside the frame on XInput 2.
* ; * src/xterm.c (handle_one_xevent): Fix typo in last change.Po Lu2021-12-21
|
* Ignore XI_TouchBegin events on the GTK tool barPo Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Ignore TouchBegin events that target the tool bar.
* Revert "Speed up find_field when called from outside a field"Lars Ingebrigtsen2021-12-21
| | | | | | This reverts commit 4d8af56c76ee20bc8e1ebdeef5c4100cea005974. This leads to lisp-mode-tests failures
* Remove the `mode-line-percent-position' min width hackLars Ingebrigtsen2021-12-21
| | | | | | | * lisp/bindings.el (mode-line-position): Remove hack to get min-width to work on the `mode-line-percent-position' bit. * src/xdisp.c (display_string): Respect min-width in the non-Lisp string case (bug#52332).
* Speed up find_field when called from outside a fieldLars Ingebrigtsen2021-12-21
| | | | | | * src/editfns.c (find_field): Speed up the field functions when called from outside a field (bug#52593). (In some cursory tests, this makes the called-from-outside-a-field case about 3x faster.)
* Don't drop touch events we're not interested in on GTK3Po Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Allow GTK to handle unwanted TouchBegin events.
* Fix touch event menu bar detectionPo Lu2021-12-21
| | | | | * src/xterm.c (handle_one_event): Don't drop menu bar touch events.
* Fix xg_event_is_for_menubar for XI2 eventsPo Lu2021-12-21
| | | | | | | * src/gtkutil.c (xg_event_is_for_menubar): Use correct fields for XI2 events. * src/xterm.c (handle_one_event): Drop TouchBegin events we know about.
* * src/xterm.c (handle_one_xevent): Set user time on touch events.Po Lu2021-12-21
|
* Ignore all emulated button events (i.e. those from touchscreens)Po Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated events if the display supports XI 2.2 or later.
* Put AM_V_GEN etc. firstPaul Eggert2021-12-20
| | | | | | | | | | | | | | | | | With the recent changes to src/verbose.mk.in, it’s more important to be consistent about putting AM_V_GEN and similar macros at the start of a rule’s recipe, since ‘make’ now outputs the diagnostic before it executes the recipe rather than the shell outputting it. Most of the uses were already this way, but there were a few outliers. Problem reported by Pip Cet. * Makefile.in (${srcdir}/info/dir): * admin/unidata/Makefile.in (${unidir}/charprop.el, ${unifiles}) (${unidir}/emoji-labels.el): * lib/Makefile.in (libgnu.a, libegnu.a): * lisp/Makefile.in (TAGS): * src/Makefile.in (lisp.mk, Emacs): * test/Makefile.in (%.log, $(test_module)): Put AM_V_GEN and similar macros first.
* Prefer $(info) to @echoPaul Eggert2021-12-20
| | | | | | | | | | | | | | | | | | Have GNU Make output some diagnostics directly, instead of forking and execing a shell to do it. * GNUmakefile (help): * doc/lispref/two-volume.make (vol2.pdf, elisp2med-init) (elisp2-init): * doc/misc/Makefile.in (echo-info, echo-sources): * lib-src/Makefile.in (archlibdir, install, check): * src/verbose.mk.in (AM_V_AR, AM_V_CC, AM_V_CXX, AM_V_CCLD) (AM_V_CXXLD, AM_V_ELC, AM_V_ELN, AM_V_GEN, AM_V_GLOBALS) (AM_V_RC): * test/Makefile.in (subdirs, subdir-targets): Prefer $(info) to @echo. * GNUmakefile (MAKECMDGOALS, configure, Makefile): Prefer $(warning) to @echo >&2. * src/verbose.mk.in (AM_V_ELN): Output target, like the others.
* Fix sloppy base64 acceptance of some multibyte charactersMattias Engdegård2021-12-20
| | | | | | | | | | | | The base64 encoding functions incorrectly accepted some multibyte characters; stop doing that (bug#52670). * src/fns.c (base64_encode_1): Reject all multibyte characters. * test/src/fns-tests.el (fns-tests-base64-encode-string) (fns-test-base64url-encode-region) (fns-test-base64url-encode-string): Add tests. * doc/lispref/text.texi (Base 64): Rephrase outdated manual text. * etc/NEWS: Add a notice.
* Fix build in a separate directory (bug#52669)Sam Steingold2021-12-20
| | | | * src/lisp.h: Include <globals.h> instead of "globals.h"
* Add `macroexp--dynamic-variable-p`Mattias Engdegård2021-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | This predicate can be used for discriminating between lexically and dynamically bound variables during macro-expansion (only). It is restricted to internal use for the time being. * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Use macroexpand--all-toplevel. * lisp/emacs-lisp/macroexp.el (macroexp-dynamic-variable-p): New. (macroexp--expand-all): Maintain macroexp--dynvars. (macroexpand-all): Rebind macroexp--dynvars. (macroexpand--all-toplevel): New. (internal-macroexpand-for-load): Use macroexpand--all-toplevel. * src/eval.c (eval_sub): Transfer defvar declarations from Vinternal_interpreter_environment into macroexp--dynvars during lazy macro-expansion. * src/lread.c (readevalloop): Rebind macroexp--dynvars around read-and-evaluate operations. (syms_of_lread): Define macroexp--dynvars. * test/lisp/emacs-lisp/macroexp-resources/vk.el: New file. * test/lisp/emacs-lisp/macroexp-tests.el (macroexp-tests--run-emacs) (macroexp-tests--eval-in-subprocess) (macroexp-tests--byte-compile-in-subprocess) (macroexp--tests-dynamic-variable-p): Add tests.
* New error symbol 'permission-denied'Eli Zaretskii2021-12-19
| | | | | | | | | | | | | | * src/fileio.c (syms_of_fileio) <permission-denied>: Define the symbol and its 'err-conditions' and 'error-message' properties. (get_file_errno_data): Return permission-denied on EACCES. * test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled) (filelock-tests-unlock-spoiled) (filelock-tests-kill-buffer-spoiled): Adapt the tests to the new error symbol. * doc/lispref/errors.texi (Standard Errors): * etc/NEWS: Document 'permission-denied' error.
* Fix last change in 'handle_display_prop'Eli Zaretskii2021-12-19
| | | | | * src/xdisp.c (handle_display_prop): Pass the window's buffer to 'display_min_width' and to 'handle_display_spec'. (Bug#52385)
* * src/gtkutil.c: Remove obsolete fixme.Po Lu2021-12-19
|
* 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.