Po Lu
f90176b1ca
Use only effective modifiers when handling XI2 button events
...
* src/xterm.c (handle_one_xevent): Use mods.effective when
constructing button events.
2021-11-24 09:09:45 +08:00
Yuuki Harano
901938109f
Remove PGTK_DEBUG stuff
...
* src/gtkutil.c:
(xg_create_frame_widgets):
(xg_create_frame_outer_widgets):
(x_wm_set_size_hint):
(xg_set_toolkit_scroll_bar_thumb):
* src/pgtkfns.c (x_set_background_color):
(pgtk_set_name):
(x_explicitly_set_name):
(pgtk_implicitly_set_name):
(x_set_title):
(Fx_create_frame):
(Fpgtk_set_mouse_absolute_pixel_position):
(pgtk_log):
(pgtk_backtrace):
* src/pgtkselect.c (get_func):
(clear_func):
(pgtk_selection_lost):
(Fpgtk_own_selection_internal):
(Fpgtk_disown_selection_internal):
(Fpgtk_selection_exists_p):
(Fpgtk_selection_owner_p):
(nxatoms_of_pgtkselect):
(syms_of_pgtkselect):
* src/pgtkterm.c (flip_cr_context):
(get_keysym_name):
(frame_set_mouse_pixel_position):
(x_free_frame_resources):
(x_destroy_window):
(x_set_offset):
(pgtk_set_window_size):
(pgtk_iconify_frame):
(pgtk_make_frame_visible):
(pgtk_make_frame_invisible):
(pgtk_new_font):
(x_display_pixel_height):
(x_display_pixel_width):
(x_set_no_focus_on_map):
(x_set_no_accept_focus):
(x_set_z_group):
(x_set_cursor_gc):
(x_set_glyph_string_gc):
(x_set_glyph_string_clipping):
(x_draw_glyph_string_background):
(pgtk_draw_glyph_string):
(pgtk_after_update_window_line):
(pgtk_clear_frame_area):
(pgtk_draw_window_cursor):
(pgtk_copy_bits):
(pgtk_cr_draw_image):
(pgtk_draw_fringe_bitmap):
(pgtk_redraw_scroll_bars):
(pgtk_clear_frame):
(pgtk_read_socket):
(pgtk_select):
(xg_scroll_callback):
(xg_end_scroll_callback):
(pgtk_set_vertical_scroll_bar):
(set_fullscreen_state):
(pgtk_fullscreen_hook):
(pgtk_handle_event):
(pgtk_fill_rectangle):
(pgtk_clear_under_internal_border):
(print_widget_tree_recursive):
(print_widget_tree):
(pgtk_handle_draw):
(size_allocate):
(key_press_event):
(key_release_event):
(map_event):
(delete_event):
(enter_notify_event):
(leave_notify_event):
(focus_in_event):
(focus_out_event):
(motion_notify_event):
(button_event):
(scroll_event):
(drag_data_received):
(pgtk_xlfd_to_fontname):
(pgtk_defined_color):
(pgtk_parse_color):
(pgtk_query_colors):
(pgtk_query_color):
(pgtk_clear_area):
(pgtk_cr_update_surface_desired_size):
(pgtk_begin_cr_clip):
(pgtk_end_cr_clip):
(pgtk_set_cr_source_with_gc_foreground):
(pgtk_set_cr_source_with_gc_background):
(pgtk_set_cr_source_with_color):
(pgtk_cr_draw_frame):
(pgtk_cr_destroy_frame_context):
* src/pgtkterm.h:
2021-11-24 00:32:57 +09:00
Michael Albinus
88637c3415
Adapt artifacts paths in emba testjobs
...
* test/infra/Makefile.in (subdir_template): Adapt artifacts paths.
* test/infra/test-jobs.yml: Regenerate.
2021-11-23 16:25:41 +01:00
Yuuki Harano
209662c0bd
* src/ftcrfont.c (ftcrfont_open): Revert redundant brace change.
2021-11-24 00:13:29 +09:00
Yuuki Harano
4a5aa814ba
* src/frame.c (syms_of_frame): Revert frame_resize_pixelwise defaults to false
...
It was just a workaround of mutter's bug, which is already fixed, so
we can revert it.
2021-11-24 00:07:42 +09:00
Takesi Ayanokoji
756b8a5f1b
Fix typos in documentation
...
* doc/lispref/anti.texi:
* doc/misc/efaq.texi: Fix typos.
Copyright-paperwork-exempt: yes
2021-11-23 16:37:04 +02:00
Eli Zaretskii
38fdeaef46
; * etc/DEBUG: Fix last change.
2021-11-23 16:25:48 +02:00
Yuuki Harano
1fd3b57a92
* src/frame.c (Fframep): Fix comment
2021-11-23 23:10:28 +09:00
Yuuki Harano
b80a24b221
* src/font.h: Remove redundant condition
...
It is redundant because pgtk build always defines HAVE_FREETYPE.
2021-11-23 23:05:17 +09:00
Yuuki Harano
a68575a814
Enclose pgtk changes within #ifdef
...
* src/emacsgtkfixed.c:
* src/emacsgtkfixed.h:
2021-11-23 22:59:18 +09:00
Yuuki Harano
bc53310aaf
* src/emacs.c (main): Combine two conditions to one
2021-11-23 22:49:03 +09:00
Eli Zaretskii
8b62b20159
Merge from origin/emacs-28
...
bdb489a ; * etc/DEBUG: Adjust instructions for libgccjit reproducer.
b4fb381 ; * src/xdisp.c (produce_stretch_glyph): Avoid compilation wa...
2021-11-23 15:11:16 +02:00
Eli Zaretskii
bdb489ad5d
; * etc/DEBUG: Adjust instructions for libgccjit reproducer.
2021-11-23 14:44:45 +02:00
Eli Zaretskii
b4fb381d8d
; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.
2021-11-23 14:37:53 +02:00
Stefan Kangas
84d9d47660
Prefer locate-user-emacs-file in gitmerge.el
...
* admin/gitmerge.el (gitmerge-status-file): Prefer
'locate-user-emacs-file' to fiddling with 'user-emacs-directory'.
2021-11-23 11:41:02 +01:00
Po Lu
5c4136f564
Fix compilation with XInput 2 but without XKB
...
* src/xterm.c (handle_one_xevent): Remove extraneous
conditional.
2021-11-23 17:57:09 +08:00
Stefan Kangas
4c5efda8d3
Merge from origin/emacs-28
...
d791cd556d Fix '(space :relative-width N)' display spec w/non-ASCII c...
712898210f * lisp/proced.el (proced-sort-header): Fix event positions...
# Conflicts:
# lisp/proced.el
2021-11-23 08:49:49 +01:00
Po Lu
2955d46c00
Only reset scroll valuators on real enter events
...
* src/xterm.c (handle_one_xevent): Test event detail and mode
before resetting scroll valuators.
2021-11-23 11:08:45 +08:00
Po Lu
da3db6a15d
Fix delay between tool bar clicks and visual feedback
...
* src/haikuterm.c (haiku_read_socket): Redisplay after tool
bar click.
2021-11-23 01:20:15 +00:00
Po Lu
919cb31cf7
Fix XI2 keysym translation
...
* src/xterm.c (handle_one_xevent): Handle XI_KeyPress events
that can't be translated into strings.
2021-11-23 09:04:40 +08:00
Stefan Monnier
9ceb3070e3
* lisp/subr.el (event-start, event-end): Handle (menu-bar) events
...
* lisp/net/browse-url.el (browse-url-interactive-arg): Simplify accordingly
2021-11-22 14:23:42 -05:00
Juri Linkov
44923722f4
* lisp/textmodes/flyspell.el: Pop up the menu under cursor from keyboard.
...
* lisp/textmodes/flyspell.el (flyspell-emacs-popup):
Use popup-menu-normalize-position with point when no mouse is involved,
instead of the incorrect use of mouse-position (bug#52025).
2021-11-22 21:07:08 +02:00
Stefan Monnier
0601afcf7c
src/indent.c, src/xdisp.c: Questions about with_echo_area_buffer_unwind_data
2021-11-22 14:06:14 -05:00
Michael Albinus
c3ac8285d4
; Remove "needs" from emba jobs
2021-11-22 19:40:56 +01:00
Juri Linkov
eef6626b55
* lisp/tab-bar.el: 'C-x t RET' creates a new tab for non-existent tab name.
...
* lisp/tab-bar.el (tab-bar-switch-to-tab): Create a new tab and
rename it to NAME when can't find the tab with the given NAME (bug#51935).
2021-11-22 20:15:58 +02:00
Mattias Engdegård
d096e12f44
Simplify gnu compilation-mode regexp
...
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Remove the pattern ostensibly added for Ruby, because at closer
inspection it could never have matched anything. This lessens the
performance impact of the pattern added for GCC's -fanalyzer,
now slightly tweaked.
2021-11-22 19:11:55 +01:00
Eli Zaretskii
d791cd556d
Fix '(space :relative-width N)' display spec w/non-ASCII chars
...
* src/xdisp.c (produce_stretch_glyph): Use the correct face for
non-ASCII characters. Support :relative-width display spec on
Lisp strings, not just on buffer text.
2021-11-22 20:00:48 +02:00
Juri Linkov
6de588ad24
* lisp/tab-bar.el (tab-bar-history-old-minibuffer-depth): Remove variable.
...
(tab-bar--history-pre-change, tab-bar--history-change): Use minibuffer-depth
instead of this variable (bug#51370).
2021-11-22 19:57:59 +02:00
Juri Linkov
712898210f
* lisp/proced.el (proced-sort-header): Fix event positions (bug#1779).
...
The logic was copied from 'tabulated-list-col-sort'.
2021-11-22 19:39:28 +02:00
Michael Albinus
d737bfe911
; Fix error in artifacts paths of emba jobs
2021-11-22 16:47:23 +01:00
Michael Albinus
196196c739
Adapt emba jobs
...
* admin/notes/emba (Emacs jobset): Precise.
* test/infra/Makefile.in (tn): New variable.
(subdir_template): Use it. Handle eieio-tests, faceup-tests and
so-long-tests. Rearrange .PHONY entry. Add needs and artifacts
to emba job.
* test/infra/gitlab-ci.yml (test-filenotify-gio): Move up.
* test/infra/test-jobs.yml: Regenerate.
2021-11-22 16:33:16 +01:00
Stefan Kangas
55f84a12ec
; Improve recent NEWS entry
...
* etc/NEWS: Improve recently added entry on substitution of
literal key sequences. Thanks to Eli Zaretskii <eliz@gnu.org>.
2021-11-22 16:28:08 +01:00
Stefan Kangas
a59e35d79f
; Further minor simplification of rx form in bytecomp.el
...
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Simplify even more. Thanks to Mattias Engdegård <mattiase@acm.org>.
2021-11-22 16:14:01 +01:00
Eli Zaretskii
a5fbc21bc6
Improve recently installed documentation
...
* doc/lispref/display.texi (Size of Displayed Text): Move to
description of 'buffer-text-pixel-size' to preserve previous text;
mention the importance of WINDOW.
2021-11-22 17:05:40 +02:00
Robert Pluim
698e044a25
; * etc/NEWS: Fix some typos and improve some entries.
2021-11-22 14:20:45 +01:00
Stefan Kangas
487ddf466a
; Fix typo
...
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Fix typo.
2021-11-22 12:18:13 +01:00
Po Lu
3db3d5a398
Fix compiler warning in image.c
...
* src/image.c (webp_load): Initialize `mask_img' to NULL.
2021-11-22 11:13:55 +00:00
Stefan Kangas
d1a2e78b8c
; Very minor simplification in bytecomp.el
...
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Very minor simplification of 'rx' form.
2021-11-22 12:04:19 +01:00
Stefan Kangas
4a3ba8528b
Use substitute-command-keys for literal key sequences
...
* lisp/abbrev.el (expand-region-abbrevs):
* lisp/calc/calc-graph.el (calc-graph-show-dumb):
* lisp/calc/calc-help.el (calc-help-for-help):
* lisp/calc/calc-mode.el (calc-auto-why):
* lisp/calc/calc.el (calc-do):
* lisp/calculator.el (calculator-mode):
* lisp/dired-aux.el (dired-create-files)
(dired-do-create-files-regexp, dired-create-files-non-directory):
* lisp/dired-x.el (dired-virtual):
* lisp/dired.el (dired-mark-region, dired-unmark-all-files):
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
* lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
* lisp/epa-ks.el (epa-ks--display-keys):
* lisp/erc/erc.el (erc-toggle-debug-irc-protocol):
* lisp/files.el (save-some-buffers):
* lisp/gnus/gnus-dired.el (gnus-dired-find-file-mailcap)
(gnus-dired-print):
* lisp/gnus/gnus-group.el (gnus-keep-same-level):
* lisp/gnus/gnus-score.el (gnus-score-find-trace):
* lisp/gnus/gnus.el (to-list):
* lisp/gnus/message.el (message--send-mail-maybe-partially):
* lisp/mail/supercite.el (sc-set-variable):
* lisp/minibuffer.el (minibuffer-inactive-mode):
* lisp/progmodes/etags.el (select-tags-table):
* lisp/progmodes/idlw-shell.el (idlwave-shell-mode)
(idlwave-shell-char-mode-loop):
* lisp/replace.el (query-replace-help):
* lisp/simple.el (set-variable):
* lisp/subr.el (read-char-from-minibuffer):
* lisp/textmodes/ispell.el (ispell-help, ispell-message):
* lisp/textmodes/reftex-global.el (reftex-find-duplicate-labels):
* lisp/textmodes/reftex-vars.el
(reftex-toc-include-file-boundaries)
(reftex-toc-include-labels, reftex-toc-include-index-entries)
(reftex-toc-include-context, reftex-toc-follow-mode)
(reftex-index-include-context, reftex-index-follow-mode)
(reftex-enable-partial-scans)
(reftex-auto-update-selection-buffers)
(reftex-highlight-selection):
* lisp/time.el (display-time-update):
* lisp/vc/ediff-help.el (ediff-help-for-quick-help):
* lisp/vc/ediff-init.el (ediff-keep-variants):
* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map)
(ediff-patch-file-internal):
* lisp/windmove.el (windmove-delete-default-keybindings): Use
'substitute-command-keys' for literal key sequences.
* lisp/userlock.el (userlock--fontify-key): Remove function.
(ask-user-about-lock, ask-user-about-lock-help)
(ask-user-about-supersession-threat)
(ask-user-about-supersession-help): Use 'substitute-command-keys' for
literal key sequences.
* lisp/ibuffer.el (ibuffer-unmark-all): Use 'substitute-command-keys'
for command.
2021-11-22 12:04:19 +01:00
Stefan Kangas
e91f71676c
Avoid false positives about wide docstrings for key sequences
...
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
Ignore literal key sequence substitutions.
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-substitutions.el:
New file.
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-ignore-substitutions.el"): New test.
2021-11-22 12:04:19 +01:00
martin rudalics
61c254cafc
Add new function buffer-text-pixel-size
...
* doc/lispref/display.texi (Size of Displayed Text): Document it.
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Use
buffer-text-pixel-size (bug#51995).
* src/xdisp.c (window_text_pixel_size): Factor out from
Fwindow_text_pixel_size.
(Fbuffer_text_pixel_size): New function.
2021-11-22 12:02:42 +01:00
Po Lu
c7699b9702
Fix mouse movement event generation on Haiku
...
* src/haikuterm.c (haiku_mouse_position): Set timestamp.
(haiku_read_socket): Set last_mouse_movement_time.
* src/haikuterm.h (struct haiku_display_info): Add field
`last_mouse_movement_time'.
2021-11-22 07:10:57 +00:00
Po Lu
9d8a2832e8
Don't set button event modifiers twice on Haiku
...
* src/haikuterm.c (haiku_read_socket): Simplify.
2021-11-22 06:33:22 +00:00
Po Lu
8aea4721d9
Move XI2 event filtering to a more appropriate location
...
* src/xterm.c (handle_one_xevent): Filter all key press events
even if no frame is found.
2021-11-22 14:09:44 +08:00
Stefan Kangas
1aef1a6673
Add new format for literal key sequences to substitute-command-keys
...
* lisp/help.el (substitute-command-keys): Add new format "\\`f'" for
literal key sequences. (Bug#50804)
* doc/lispref/help.texi (Keys in Documentation): Document the above
new substitution.
* test/lisp/help-tests.el
(help-tests-substitute-command-keys/literal-key-sequence):
(help-tests-substitute-command-keys/literal-key-sequence-errors): New
tests.
(help-tests-substitute-key-bindings/face-help-key-binding): Extend test.
2021-11-22 06:44:10 +01:00
Po Lu
5fcff0d2cb
Use more precise test for emulated wheel events in XI2
...
* src/xterm.c (handle_one_xevent): Ignore button events
that have XIPointerEmulated set.
2021-11-22 13:24:59 +08:00
Po Lu
9324efac48
Make `xwidget-display-event' a special event as well
...
* doc/lispref/commands.texi (Xwidget Events): Document that
`xwidget-display-event' is a special event, and that it should
be handled through callbacks.
* etc/NEWS: Update NEWS entry.
* lisp/xwidget.el (xwidget-webkit-new-session)
(xwidget-webkit-import-widget): Attach display callback.
(xwidget-webkit-display-event): Call display callback instead.
(xwidget-webkit-display-callback): New function.
* src/keyboard.c (make_lispy_event): Store
source information for XWIDGET_DISPLAY_EVENT correctly.
* src/xwidget.c (store_xwidget_display_event): Store
source of the display request.
(webkit_ready_to_show): Store source if available.
(webkit_create_cb_1): Store source if available.
(kill_xwidget): Remove dead widget from internal_xwidget_list.
2021-11-22 10:47:29 +08:00
Glenn Morris
536e7bf03b
Fix recent compile-tests addition
...
* test/lisp/progmodes/compile-tests.el (compile-test-error-regexps):
Bump number of expected errors.
; Surely running the tests before committing would have flagged this?
2021-11-21 18:29:24 -08:00
Po Lu
4eb228bfac
Also filter XI_KeyRelease events
...
* src/xterm.c (handle_one_xevent): Also filter XI_KeyRelease
events through the X input method.
2021-11-22 09:40:47 +08:00
Po Lu
a4ac609098
Use only effective modifiers for XI2 key press events
...
* src/xterm.c (handle_one_xevent): Use only effective modifiers
in XI_KeyPress events.
2021-11-22 09:34:39 +08:00