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
Po Lu
bb2a989e00
Remove variable that no longer exists from manual
...
* doc/emacs/haiku.texi: Remove nonexistent variable.
2021-11-22 00:24:26 +00:00
Stefan Kangas
73754bc54c
Adapt isearch help screen for variable-pitch-mode
...
* lisp/isearch.el (isearch-help-for-help-internal): Adapt for
'variable-pitch-mode', now that 'make-help-screen' uses that.
2021-11-21 21:05:47 +01:00
Omar Polo
74386abc0f
; Simplify rcirc authentication querying functions
2021-11-21 19:00:40 +01:00
Omar Polo
b79cb838a4
implement certfp authentication to rcirc
...
* lisp/net/rcirc.el (rcirc-connect): Use the provided client certs
* doc/misc/rcirc.texi (Configuration): Document the change
2021-11-21 19:00:40 +01:00
Omar Polo
1bc4fd6f52
Move the sasl section after the bitlbee text
2021-11-21 19:00:40 +01:00
Philip Kaludercic
08ccce2257
Improve error parsing for GCC -fanalyzer output
...
* compile.el (compilation-error-regexp-alist-alist): Adjust gnu rule
* compile-tests.el (compile-tests--test-regexps-data): Add testcase
2021-11-21 19:00:40 +01:00
Eli Zaretskii
b7db7eb2c7
Fix positioning of pop-up menus when there are window-margins
...
* src/menu.c (x_popup_menu_1): Calculate X and Y correctly for
clicks in the text area. (Bug#51782)
2021-11-21 19:07:10 +02:00
Robert Pluim
85f193b613
Add :version tags to new mwheel defcustoms
...
* lisp/mwheel.el (mouse-wheel-down-alternate-event):
(mouse-wheel-up-alternate-event): Add :version tag.
2021-11-21 16:20:20 +01:00
Robert Pluim
7c52c86a84
; Fix a few haiku typos
...
* lisp/net/browse-url.el (browse-url-webpositive-program): Correct
:version tag.
* src/frame.c (Fframep): Fix quoting of "haiku".
2021-11-21 16:04:31 +01:00
Eli Zaretskii
2716146e6c
Minor cleanup in w32inevt.c
...
* src/w32inevt.c (w32_console_mouse_position, mouse_moved_to)
(do_mouse_event): Use 'get_frame' to obtain the frame pointer.
2021-11-21 16:57:12 +02:00
Stefan Kangas
1e0e77bd44
Use variable-pitch-mode in 'C-h C-h'
...
* lisp/faces.el (help-key-binding): Inherit 'fixed-pitch'.
* lisp/help-macro.el (make-help-screen): Use
'variable-pitch-mode'.
This was discussed in
https://lists.gnu.org/r/emacs-devel/2021-11/msg01378.html
2021-11-21 14:44:41 +01:00
Michael Albinus
75d294cd4a
Reorganize emba control files
...
Using dynamic job generation in GitLab does not work sufficiently. So
we generate the jobs in the Emacs sources.
* configure.ac (SUBDIR_MAKEFILES): Add test/infra/Makefile.
* test/Makefile.in (subdirs, generate-test-jobs): New targets.
* test/infra/Makefile.in:
* test/infra/test-jobs.yml: New files.
* test/infra/default-gitlab-ci.yml:
* test/infra/test-jobs-generator.sh: Remove.
* test/infra/gitlab-ci.yml: Insert contents of default-gitlab-ci.yml.
(stages): Remove generator and trigger. Add normal.
(test-jobs-generator, test-jobs-pipeline): Remove jobs.
(top): Include test-jobs.yml.
2021-11-21 14:39:29 +01:00
Po Lu
6d90444ba0
Fix double and triple click in Haiku.
...
* src/haikuterm.c (haiku_read_socket): Record timestamp
in events.
2021-11-21 13:14:06 +00:00
Po Lu
f1ee5c6702
Report time in XInput 2 button events
...
* src/xterm.c (handle_one_xevent): Report time in XI button
events.
2021-11-21 21:07:58 +08:00
Po Lu
e22c37aa87
Fix horizontal wheel events on Haiku
...
* src/haikuterm.c (haiku_read_socket): Fix modifier
calculation for horizontal wheel events.
2021-11-21 12:43:53 +00:00
Stefan Kangas
1de6a86553
Merge from origin/emacs-28
...
0dd3883def Update to Org 9.5-72-gc5d6656
e3d5337970 Fix mouse handling with several TTY frames on MS-Windows
7e437af413 Fix temacs invocation from outside of the 'src' directory
0fbfd4253e ; Avoid byte-compilation warnings in edmacro.el
c22c988b1f Fix mouse events on tab bar or tool bar when 'track-mouse'...
354c834fba Fix `browse-url-interactive-arg' for certain kinds of events
# Conflicts:
# lisp/mouse.el
2021-11-21 11:18:23 +01:00