1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00
Commit graph

152061 commits

Author SHA1 Message Date
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
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
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
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
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
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
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