Eli Zaretskii
a22c9a34bd
Fix 'posn-at-point' near some overlays
...
* src/xdisp.c (pos_visible_p): Fix 'posn-at-point' for positions
just after a display property that draws a fringe bitmap.
(Bug#52097)
2021-11-25 15:06:08 +02:00
Po Lu
d0ea2a87f4
Fix scroll wheel reporting on NS
...
* src/nsterm.m (- mouseDown): Clear scroll wheel
accumulators.
2021-11-25 19:04:02 +08:00
Lars Ingebrigtsen
7fea9c8415
Define a face for shr text
...
* lisp/net/shr.el (shr-text): New face.
(shr-insert): Use it instead of hard-coding `variable-pitch'.
2021-11-25 11:17:00 +01:00
Eli Zaretskii
d1aa552d11
; * CONTRIBUTE: No cleanups on release branches, even in docs.
2021-11-25 10:43:35 +02:00
Narendra Joshi
588caf0b27
* lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.
...
Copyright-paperwork-exempt: yes
2021-11-25 09:58:53 +02:00
Po Lu
b469a01551
Set serial when filtering XI_KeyPress events
...
This fixes fcitx flicker for whatever reason.
* src/xterm.c (handle_one_xevent): Set serial when filtering
XI_KeyPress events.
2021-11-25 13:20:56 +08:00
Po Lu
e37eb7f5c6
Add support for pixel wheel deltas on NS
...
* src/xterm.c (x_coalesce_scroll_events): Update doc string.
* src/nsterm.c (- mouseDown): Report pixel scroll deltas.
(x_coalesce_scroll_events): New variable
2021-11-25 11:09:08 +08:00
Stephen Gildea
82233c2c1d
mh-utils-tests: 'mh-sub-folders-actual' coverage
...
* test/lisp/mh-e/mh-utils.el (mh-sub-folders-parse-no-folder)
(mh-sub-folders-parse-relative-folder, mh-sub-folders-parse-root-folder):
New tests.
* lisp/mh-e/mh-utils.el (mh-sub-folders-parse): New function,
refactored out of 'mh-sub-folders-actual' to create a testing seam.
2021-11-24 18:39:42 -08:00
Matt Kramer
11e5c7d8ca
Fix tab-line cycling when using buffer groups (bug#52050)
...
* lisp/tab-line.el (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab):
Remove tabs that aren't associated with a buffer, such as the `group-tab' that
exists when `tab-line-tabs-function' is `tab-line-tabs-buffer-groups'.
Copyright-paperwork-exempt: yes
2021-11-24 21:42:32 +02:00
Eli Zaretskii
05c084cebb
; Merge from origin/emacs-28
...
The following commit was skipped:
0854453 Revert "Use @pxref when necessary"
2021-11-24 21:36:31 +02:00
Eli Zaretskii
d546659752
Merge from origin/emacs-28
...
b4f47d2 Use @pxref when necessary
2021-11-24 21:36:29 +02:00
Eli Zaretskii
982439401b
; Merge from origin/emacs-28
...
The following commit was skipped:
764ffa7 Backport Tramp fixes, don't merge
2021-11-24 21:36:28 +02:00
Michael Albinus
39e2c214df
Some optimizations for emba jobs
...
* test/infra/gitlab-ci.yml (.test-template): Remove.
(test-all-inotify, test-filenotify-gio, test-gnustep)
(test-native-comp-speed0):
* test/infra/Makefile.in (subdir_template): Remove .test-template
from extends. Add or adapt needs and artifacts.
* test/infra/test-jobs.yml: Regenerate.
2021-11-24 20:27:34 +01:00
Eli Zaretskii
0854453ec2
Revert "Use @pxref when necessary"
...
This reverts commit b4f47d2ee2 .
Cleanups should not be done on the release branch: that's
unnecessary risk.
2021-11-24 21:27:15 +02:00
Lars Ingebrigtsen
e99bf27158
Remove APPEND argument from add-display-text-property
...
* doc/lispref/display.texi (Display Property): Update doc.
* lisp/emacs-lisp/subr-x.el (add-display-text-property): Remove
the append argument -- it's nonsensical.
2021-11-24 20:10:17 +01:00
Lars Ingebrigtsen
833a42fbcf
Fix min-width problem with "overlapping" regions
...
* src/xdisp.c (handle_display_prop): Fix problem with overlapping
regions.
2021-11-24 20:10:17 +01:00
Juri Linkov
388b4a12f5
* lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.
...
Make the regexp less restrictive and don't require the outline heading
to have more text after outline-regexp until the end of the heading line
(bug#51016).
2021-11-24 20:47:48 +02:00
Lars Ingebrigtsen
fde9363a57
Add new function 'add-display-text-property'
...
* doc/lispref/display.texi (Display Property): Document it.
* lisp/emacs-lisp/subr-x.el (add-display-text-property): New function.
2021-11-24 19:38:41 +01:00
Lars Ingebrigtsen
34f2878ce2
Change eshell-mode mode-line-format insinuation
...
* lisp/eshell/esh-mode.el (eshell-mode): Tweak how the mode line
is altered after recent mode-line-format changes.
2021-11-24 18:38:14 +01:00
Eli Zaretskii
de9359d1d7
Fix documentation of 'min-width' display spec.
...
* doc/lispref/display.texi (Other Display Specs): Clarify
documentation of the 'min-width' display spec.
2021-11-24 19:19:21 +02:00
Narendra Joshi
20ab639d89
* lisp/vcursor.el (vcursor-get-char-count): Preserve point
...
Copyright-paperwork-exempt: yes
2021-11-24 11:58:03 -05:00
Robert Pluim
b4f47d2ee2
Use @pxref when necessary
...
* doc/lispref/customize.texi (Composite Types):
* doc/lispref/edebug.texi (Specification List):
* doc/lispref/variables.texi (Local Variables):
* doc/misc/efaq.texi (Basic keys):
(Informational files for Emacs):
* doc/misc/flymake.texi (Locating a master file):
* doc/misc/gnus.texi (Don't Panic):
(Oort Gnus):
* doc/misc/htmlfontify.texi (Non-interactive):
* doc/misc/mh-e.texi (More About MH-E):
* doc/misc/pcl-cvs.texi (Entering PCL-CVS):
* doc/misc/tramp.texi (Remote processes):
* doc/misc/vhdl-mode.texi (Indentation Calculation):
(Custom Indentation Functions): Use @pxref when inside parens.
2021-11-24 17:55:27 +01:00
Lars Ingebrigtsen
9d3d972f97
Fix typo in display_min_width comment
...
* src/xdisp.c (display_min_width): Fix typo in comment.
2021-11-24 17:29:39 +01:00
Lars Ingebrigtsen
0ccbb6f6d3
Make min-width of the U:-- wider
...
* lisp/bindings.el (standard-mode-line-format): Make the modified
bits larger since there's often a big difference between - and %
characters.
2021-11-24 17:12:26 +01:00
Michael Albinus
764ffa76ed
Backport Tramp fixes, don't merge
...
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
2021-11-24 16:54:59 +01:00
Stephen Gildea
f1fcd321ff
mh-utils-tests: Add new tests of "folders +/"
...
* test/lisp/mh-e/mh-utils-tests.el
(mh-sub-folders-actual, mh-sub-folders): Add new tests of "folders +/".
Rewrite tests that were using 'assoc' to use 'member' instead, so that
on failure, ERT logs the list of which the element was not a member,
rather than the 'nil' returned by 'assoc'.
(mh-test-variant-handles-plus-slash): Factor out new helper function.
(mh-folder-completion-function-08-plus-slash)
(mh-folder-completion-function-09-plus-slash-tmp):
Use new helper function.
* test/lisp/mh-e/test-all-mh-variants.sh: LD_LIBRARY_PATH unnecessary.
2021-11-24 07:27:18 -08:00
Eli Zaretskii
7dfa758fef
; * etc/NEWS: Fix recently added entries.
2021-11-24 16:34:25 +02:00
Eli Zaretskii
c8e28813af
Minor fixes for a recent commit
...
* src/xdisp.c (find_display_property): Fix style of comments.
(Fget_display_property): Doc fix.
(get_display_property): Fix style and whitespace.
2021-11-24 16:19:25 +02:00
Mattias Engdegård
6e1b984563
Add sample of -fanalyzer output (bug#51882)
...
* etc/compilation.txt (file): Add fragment of GCC diagnostics from
-fanalyzer (from Philip Kaludercic).
2021-11-24 15:07:18 +01:00
Mattias Engdegård
1a84b7a328
Tighten gnu compile regexp further
...
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
The -fanalyzer ASCII art does not contain tabs.
2021-11-24 15:07:17 +01:00
Lars Ingebrigtsen
84bf954986
Use a proportional font for the mode line
...
* lisp/bindings.el (mode-line-position): Add min-width specs.
(standard-mode-line-format): Ditto.
* lisp/faces.el (mode-line): Inherit from `variable-pitch'.
2021-11-24 14:48:17 +01:00
Lars Ingebrigtsen
4bfa73f920
Make display_min_width work from the mode line
...
* src/xdisp.c (display_min_width): Make this work from mode line
constructs via display_string.
2021-11-24 14:48:17 +01:00
Michael Albinus
5b2ba7da4f
; Fix syntax error in generated test/infra/test-jobs.yml
2021-11-24 14:47:55 +01:00
Robert Pluim
9fe409f958
* admin/unidata/emoji-zwj.awk: Quote functions properly.
2021-11-24 14:09:59 +01:00
Po Lu
fc35928ec2
Make `yank-media' work on Haiku
...
This works with what WebPositive does with images, at least. I don't
know about other programs, but Haiku doesn't seem to standardize this
very well.
* lisp/term/haiku-win.el (haiku--selection-type-to-mime): Handle
regular symbols.
(gui-backend-get-selection): Handle special type `TARGETS'.
(gui-backend-set-selection): Always clear clipboard.
* src/haiku_select.cc (BClipboard_get_targets): New function.
(BClipboard_set_data): New argument `clear'. All callers
changed.
(BClipboard_set_system_data)
(BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data): New argument `clear'.
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): New functions.
* src/haikuselect.c (haiku_selection_data_1): New function.
(Fhaiku_selection_targets): New function.
(Fhaiku_selection_put): Allow controlling if the clipboard is
cleared.
(syms_of_haikuselect): New symbols and subrs.
* src/haikuselect.h (BClipboard_set_system_data)
(BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data): New argument `clear'.
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): New functions.
2021-11-24 12:58:39 +00:00
Michael Albinus
7878c7f596
* admin/notes/emba (Emacs jobset): Remove stage slow.
...
* test/infra/Makefile.in (subdir_template): Add rule.
* test/infra/gitlab-ci.yml (.job-template): Remove changes section.
(.build-template, .gnustep-template, .filenotify-gio-template):
(.native-comp-template): Adapt changes section.
(.test-template): Add needs. Adapt artifacts paths.
(stages): Remove slow.
(test-all-inotify): Move up. Change stage to normal. Remove timeout.
(test-filenotify-gio, test-gnustep, test-native-comp-speed0):
Move needs up.
* test/infra/test-jobs.yml: Regenerate.
2021-11-24 13:43:32 +01:00
Lars Ingebrigtsen
fdafaf5e41
Fix min-width end condition handling
...
* src/xdisp.c (handle_display_prop): Fix check for min-width ends
-- they may be consecutive.
2021-11-24 12:44:55 +01:00
Po Lu
d30cdbbde4
Correct adjustments to frame widths in events
...
* src/haiku_support.cc (EmacsWindow.FrameResized)
(EmacsWindow.Zoom): Adjust widths to fit into the correct
coordinate system.
2021-11-24 11:16:44 +00:00
Po Lu
3a8e4f13fa
Remove unused arguments to EmacsView.AfterResize
...
* src/haiku_support.cc (EmacsView.AfterResize): Remove
unused arguments.
(BView_resize_to): Stop passing unused arguments.
2021-11-24 11:16:44 +00:00
Lars Ingebrigtsen
a13b437c81
Add support for the min-width display property
...
* doc/lispref/display.texi (Display Property): Document
get-display-property.
(Other Display Specs): Document min-width property.
* src/dispextern.h (struct it): Add fields for min-width handling.
* src/xdisp.c (find_display_property, get_display_property): New
helper functions.
(display_min_width): Insert stretch glyphs based on the min width.
(Fget_display_property): New defun.
(handle_display_prop): Handle min-width ends.
(handle_single_display_spec): Handle min-width starts.
2021-11-24 11:55:58 +01:00
Gregory Heytings
8efee422e1
Re-enable the disabledForeground X resource.
...
* doc/emacs/xresources.texi (Lucid Resources): Document the resource.
Also document the 'cursor' resource (bug#52052).
* lwlib/xlwmenu.c (make_drawing_gcs): Re-enable the use of the
disabledForeground resource. The use of this X resource was disabled
without reason in commit ef93458b2f by overwriting its value with the
value of the foreground resource.
2021-11-24 11:55:58 +01:00
Alan Third
7e3c2b553f
Allow NS to handle non-text clipboard contents
...
* src/nsselect.m (ns_get_foreign_selection): Handle non-plain text
clipboard entries.
(ns_string_from_pasteboard): Remove EOL conversion.
(syms_of_nsselect): Define QTARGETS.
2021-11-24 10:41:25 +00:00
Po Lu
e754973d4d
Clear past end of frame on Haiku
...
* src/haiku_support.c (EmacsWindow.FrameResized): Delete
size adjustment.
* src/haikuterm.c (haiku_clear_frame): Clear one pixel
past the end of the frame.
2021-11-24 09:56:29 +00:00
Po Lu
7394c0fe35
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
2021-11-24 09:39:58 +00:00
Po Lu
3219518e5c
Fix 1 pixel wide border in frames on Haiku
...
* src/haiku_support.cc (EmacsWindow.FrameResized): Add 1 to
pixel widths.
* src/haikuterm.c (haiku_read_socket): Use `lrint' to round
widths.
2021-11-24 09:38:26 +00:00
Lars Ingebrigtsen
3a2eee6f74
Fix string-glyph-split infloop
...
* lisp/emacs-lisp/subr-x.el (string-glyph-split): Fix infloop when
applied to (string-glyph-split "✈️ 🌍 ") (bug#52067).
2021-11-24 08:27:22 +01:00
Gregory Heytings
d63fc69b19
Pass options from make to configure through a variable.
...
* GNUmakefile (configure): Use the variable.
* INSTALL.REPO: Document the variable (bug#51965).
2021-11-24 07:58:11 +01:00
Stefan Kangas
d112c75f53
Merge from origin/emacs-28
...
756b8a5f1b Fix typos in documentation
38fdeaef46 ; * etc/DEBUG: Fix last change.
2021-11-24 07:00:27 +01:00
Po Lu
c484b749f2
Fix mouse-wheel-text-scale
...
* lisp/mwheel.el (mouse-wheel-text-scale): Test for alternative
events correctly.
2021-11-24 09:49:39 +08:00
Po Lu
dc0ed8818b
Remove extraneous code left over from the ftbe font driver
...
* src/haikuterm.c (syms_of_haikuterm): Remove dead code.
2021-11-24 01:46:33 +00:00