]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; * lisp/cus-face.el: Remove duplicated width entry.
Robert Pluim [Fri, 26 Nov 2021 08:35:25 +0000 (09:35 +0100)]
; * lisp/cus-face.el: Remove duplicated width entry.

3 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 26 Nov 2021 06:17:21 +0000 (07:17 +0100)]
Merge from origin/emacs-28

cfaf681d3d ; * src/emacs.c (main): Add commentary about command-line ...
4d16a2f737 Fix pdf generation with Texinfo 6.7
a22c9a34bd Fix 'posn-at-point' near some overlays
d1aa552d11 ; * CONTRIBUTE: No cleanups on release branches, even in d...
588caf0b27 * lisp/repeat.el (repeat-post-hook): Add check symbolp rep...

3 years agoFix sign of pixel scroll events on Haiku
Po Lu [Fri, 26 Nov 2021 06:13:27 +0000 (06:13 +0000)]
Fix sign of pixel scroll events on Haiku

* src/haikuterm.c (haiku_read_socket): Fix sign of scroll
events.

3 years agoMake tab bar option visible in the menu bar on NS
Po Lu [Fri, 26 Nov 2021 05:33:39 +0000 (13:33 +0800)]
Make tab bar option visible in the menu bar on NS

* lisp/menu-bar.el (menu-bar-showhide-menu): Make
`showhide-tab-bar' visible on NS as well.

3 years agoMake pixel scrolling through images at the first line smoother
Po Lu [Fri, 26 Nov 2021 05:21:48 +0000 (13:21 +0800)]
Make pixel scrolling through images at the first line smoother

* lisp/better-pixel-scroll.el (better-pixel-scroll-scroll-up):
Try to reset vscroll if already vscrolled.

3 years agoDon't perform pixel scrolling when window is hscrolled
Po Lu [Fri, 26 Nov 2021 05:07:54 +0000 (13:07 +0800)]
Don't perform pixel scrolling when window is hscrolled

* lisp/better-pixel-scroll.el (better-pixel-scroll): Call
mwheel-scroll instead if window is hscrolled.

3 years agoAdd `better-pixel-scroll-mode'
Po Lu [Fri, 26 Nov 2021 00:41:39 +0000 (08:41 +0800)]
Add `better-pixel-scroll-mode'

* etc/NEWS: Announce `better-pixel-scroll-mode'.
* lisp/better-pixel-scroll.el: New file.

3 years agoFix selection for old GNUstep and GCC
Alan Third [Thu, 25 Nov 2021 20:58:37 +0000 (20:58 +0000)]
Fix selection for old GNUstep and GCC

* src/nsselect.m (ns_get_foreign_selection): Remove language features
not yet supported by GCC.  Be more selective with which pasteboard
types we use.
* src/nsterm.h: Set up some more #defines for deprecated variables.

3 years ago; * src/emacs.c (main): Add commentary about command-line processing.
Eli Zaretskii [Thu, 25 Nov 2021 20:31:47 +0000 (22:31 +0200)]
; * src/emacs.c (main): Add commentary about command-line processing.

3 years ago; * src/font.c: Comment about synchronizing with cus-face.el.
Eli Zaretskii [Thu, 25 Nov 2021 19:55:38 +0000 (21:55 +0200)]
; * src/font.c: Comment about synchronizing with cus-face.el.

3 years agoUpdate 'custom-face-attributes'
Eli Zaretskii [Thu, 25 Nov 2021 19:29:21 +0000 (21:29 +0200)]
Update 'custom-face-attributes'

* lisp/cus-face.el (custom-face-attributes): Synchronize with
tables in font.c.

3 years ago* src/emacs.c (usage_message): Fix name of --seccomp option.
Andreas Schwab [Thu, 25 Nov 2021 19:05:21 +0000 (20:05 +0100)]
* src/emacs.c (usage_message): Fix name of --seccomp option.

3 years agoFix handling of '--dump-file' command-line option
Eli Zaretskii [Thu, 25 Nov 2021 18:54:07 +0000 (20:54 +0200)]
Fix handling of '--dump-file' command-line option

* lisp/startup.el (command-line-1): Handle "--dump-file" and
"--seccomp" if they are left on the command-line.  (Bug#52106)

3 years ago; * etc/NEWS: Fix entry about reverting to old 'mode-line' face.
Eli Zaretskii [Thu, 25 Nov 2021 18:17:58 +0000 (20:17 +0200)]
; * etc/NEWS: Fix entry about reverting to old 'mode-line' face.

3 years agoMH-E: support Mailutils "folders +/"
Stephen Gildea [Thu, 25 Nov 2021 18:12:30 +0000 (10:12 -0800)]
MH-E: support Mailutils "folders +/"

* lisp/mh-e/mh-utils.el (mh-sub-folders-parse):
Support Mailutils style of "folders +/" output.
* test/lisp/mh-e/mh-utils.el:
Test "folders +/" with GNU Mailutils 3.13.91 and later.

3 years agoCorrect the :inherit property on some faces
Robert Pluim [Thu, 25 Nov 2021 17:07:04 +0000 (18:07 +0100)]
Correct the :inherit property on some faces

Otherwise M-x customize-face will show them as lisp-expressions rather
than nice widgets.

* lisp/ansi-color.el (ansi-color-bold):
(ansi-color-italic):
(ansi-color-underline):
* lisp/faces.el (mode-line): Don't quote the face we're inheriting
from.

3 years ago* doc/misc/flymake.texi: Correct local variable mode specification
Robert Pluim [Thu, 25 Nov 2021 16:53:27 +0000 (17:53 +0100)]
* doc/misc/flymake.texi: Correct local variable mode specification

3 years agoDon't display redundant 'see' in info-mode
Robert Pluim [Thu, 25 Nov 2021 14:55:40 +0000 (15:55 +0100)]
Don't display redundant 'see' in info-mode

* lisp/info.el (Info-fontify-node): Don't show 'see' when displaying
the result of "(See @ref" or "also @ref", but leave "Also @ref" alone.

3 years ago; * admin/MAINTAINERS: Add test/infra/*
Michael Albinus [Thu, 25 Nov 2021 15:44:12 +0000 (16:44 +0100)]
; * admin/MAINTAINERS: Add test/infra/*

3 years agoTag a test from process-tests.el as :unstable on emba.
Michael Albinus [Thu, 25 Nov 2021 15:24:19 +0000 (16:24 +0100)]
Tag a test from process-tests.el as :unstable on emba.

* test/src/process-tests.el (process-tests/multiple-threads-waiting):
Tag it as :unstable on emba.

3 years agoFix pdf generation with Texinfo 6.7
Robert Pluim [Thu, 25 Nov 2021 14:29:00 +0000 (15:29 +0100)]
Fix pdf generation with Texinfo 6.7

* doc/lispref/display.texi (Size of Displayed Text): Put @group inside
@example (bug#52102).

3 years agoAdd temporary mode-line-position change
Lars Ingebrigtsen [Thu, 25 Nov 2021 14:14:22 +0000 (15:14 +0100)]
Add temporary mode-line-position change

* lisp/bindings.el (mode-line-position): Add interim solution to
make `min-width' work here; this should be fixed for real in the
display_line machinery somewhere.

3 years agoIndent `closure' forms better
Lars Ingebrigtsen [Thu, 25 Nov 2021 13:23:58 +0000 (14:23 +0100)]
Indent `closure' forms better

* lisp/emacs-lisp/lisp-mode.el (closure): Indent `closure' forms
better (bug#52063).

3 years agoFix 'posn-at-point' near some overlays
Eli Zaretskii [Thu, 25 Nov 2021 13:06:08 +0000 (15:06 +0200)]
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)

3 years agoFix scroll wheel reporting on NS
Po Lu [Thu, 25 Nov 2021 11:02:32 +0000 (19:02 +0800)]
Fix scroll wheel reporting on NS

* src/nsterm.m (- mouseDown): Clear scroll wheel
accumulators.

3 years agoDefine a face for shr text
Lars Ingebrigtsen [Wed, 24 Nov 2021 21:01:21 +0000 (22:01 +0100)]
Define a face for shr text

* lisp/net/shr.el (shr-text): New face.
(shr-insert): Use it instead of hard-coding `variable-pitch'.

3 years ago; * CONTRIBUTE: No cleanups on release branches, even in docs.
Eli Zaretskii [Thu, 25 Nov 2021 08:43:35 +0000 (10:43 +0200)]
; * CONTRIBUTE: No cleanups on release branches, even in docs.

3 years ago* lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.
Narendra Joshi [Thu, 25 Nov 2021 07:58:53 +0000 (09:58 +0200)]
* lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.

Copyright-paperwork-exempt: yes

3 years agoSet serial when filtering XI_KeyPress events
Po Lu [Thu, 25 Nov 2021 05:20:56 +0000 (13:20 +0800)]
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.

3 years agoAdd support for pixel wheel deltas on NS
Po Lu [Thu, 25 Nov 2021 03:01:19 +0000 (11:01 +0800)]
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

3 years agomh-utils-tests: 'mh-sub-folders-actual' coverage
Stephen Gildea [Thu, 25 Nov 2021 02:38:24 +0000 (18:38 -0800)]
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.

3 years agoFix tab-line cycling when using buffer groups (bug#52050)
Matt Kramer [Wed, 24 Nov 2021 19:41:52 +0000 (21:41 +0200)]
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

3 years ago; Merge from origin/emacs-28
Eli Zaretskii [Wed, 24 Nov 2021 19:36:30 +0000 (21:36 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

0854453 Revert "Use @pxref when necessary"

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Wed, 24 Nov 2021 19:36:28 +0000 (21:36 +0200)]
Merge from origin/emacs-28

b4f47d2 Use @pxref when necessary

3 years ago; Merge from origin/emacs-28
Eli Zaretskii [Wed, 24 Nov 2021 19:36:27 +0000 (21:36 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

764ffa7 Backport Tramp fixes, don't merge

3 years agoSome optimizations for emba jobs
Michael Albinus [Wed, 24 Nov 2021 19:27:34 +0000 (20:27 +0100)]
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.

3 years agoRevert "Use @pxref when necessary"
Eli Zaretskii [Wed, 24 Nov 2021 19:27:15 +0000 (21:27 +0200)]
Revert "Use @pxref when necessary"

This reverts commit b4f47d2ee2203a9f22bebeb3d09e0fb3fce2f65e.
Cleanups should not be done on the release branch: that's
unnecessary risk.

3 years agoRemove APPEND argument from add-display-text-property
Lars Ingebrigtsen [Wed, 24 Nov 2021 19:10:14 +0000 (20:10 +0100)]
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.

3 years agoFix min-width problem with "overlapping" regions
Lars Ingebrigtsen [Wed, 24 Nov 2021 19:04:25 +0000 (20:04 +0100)]
Fix min-width problem with "overlapping" regions

* src/xdisp.c (handle_display_prop): Fix problem with overlapping
regions.

3 years ago* lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.
Juri Linkov [Wed, 24 Nov 2021 18:46:53 +0000 (20:46 +0200)]
* 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).

3 years agoAdd new function 'add-display-text-property'
Lars Ingebrigtsen [Wed, 24 Nov 2021 18:38:41 +0000 (19:38 +0100)]
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.

3 years agoChange eshell-mode mode-line-format insinuation
Lars Ingebrigtsen [Wed, 24 Nov 2021 17:38:14 +0000 (18:38 +0100)]
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.

3 years agoFix documentation of 'min-width' display spec.
Eli Zaretskii [Wed, 24 Nov 2021 17:19:21 +0000 (19:19 +0200)]
Fix documentation of 'min-width' display spec.

* doc/lispref/display.texi (Other Display Specs): Clarify
documentation of the 'min-width' display spec.

3 years ago* lisp/vcursor.el (vcursor-get-char-count): Preserve point
Narendra Joshi [Wed, 24 Nov 2021 16:58:03 +0000 (11:58 -0500)]
* lisp/vcursor.el (vcursor-get-char-count): Preserve point

Copyright-paperwork-exempt: yes

3 years agoUse @pxref when necessary
Robert Pluim [Wed, 24 Nov 2021 16:28:45 +0000 (17:28 +0100)]
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.

3 years agoFix typo in display_min_width comment
Lars Ingebrigtsen [Wed, 24 Nov 2021 16:29:39 +0000 (17:29 +0100)]
Fix typo in display_min_width comment

* src/xdisp.c (display_min_width): Fix typo in comment.

3 years agoMake min-width of the U:-- wider
Lars Ingebrigtsen [Wed, 24 Nov 2021 16:12:21 +0000 (17:12 +0100)]
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.

3 years agoBackport Tramp fixes, don't merge
Michael Albinus [Wed, 24 Nov 2021 15:54:59 +0000 (16:54 +0100)]
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'.

3 years agomh-utils-tests: Add new tests of "folders +/"
Stephen Gildea [Wed, 24 Nov 2021 15:27:18 +0000 (07:27 -0800)]
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.

3 years ago; * etc/NEWS: Fix recently added entries.
Eli Zaretskii [Wed, 24 Nov 2021 14:34:25 +0000 (16:34 +0200)]
; * etc/NEWS: Fix recently added entries.

3 years agoMinor fixes for a recent commit
Eli Zaretskii [Wed, 24 Nov 2021 14:19:25 +0000 (16:19 +0200)]
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.

3 years agoAdd sample of -fanalyzer output (bug#51882)
Mattias Engdegård [Wed, 24 Nov 2021 14:05:07 +0000 (15:05 +0100)]
Add sample of -fanalyzer output (bug#51882)

* etc/compilation.txt (file): Add fragment of GCC diagnostics from
-fanalyzer (from Philip Kaludercic).

3 years agoTighten `gnu` compile regexp further
Mattias Engdegård [Wed, 24 Nov 2021 09:21:49 +0000 (10:21 +0100)]
Tighten `gnu` compile regexp further

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
The -fanalyzer ASCII art does not contain tabs.

3 years agoUse a proportional font for the mode line
Lars Ingebrigtsen [Wed, 24 Nov 2021 13:48:13 +0000 (14:48 +0100)]
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'.

3 years agoMake display_min_width work from the mode line
Lars Ingebrigtsen [Wed, 24 Nov 2021 13:43:37 +0000 (14:43 +0100)]
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.

3 years ago; Fix syntax error in generated test/infra/test-jobs.yml
Michael Albinus [Wed, 24 Nov 2021 13:47:55 +0000 (14:47 +0100)]
; Fix syntax error in generated test/infra/test-jobs.yml

3 years ago* admin/unidata/emoji-zwj.awk: Quote functions properly.
Robert Pluim [Mon, 22 Nov 2021 16:42:03 +0000 (17:42 +0100)]
* admin/unidata/emoji-zwj.awk: Quote functions properly.

3 years agoMake `yank-media' work on Haiku
Po Lu [Wed, 24 Nov 2021 12:48:01 +0000 (12:48 +0000)]
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.

3 years ago* admin/notes/emba (Emacs jobset): Remove stage slow.
Michael Albinus [Wed, 24 Nov 2021 12:43:32 +0000 (13:43 +0100)]
* 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.

3 years agoFix min-width end condition handling
Lars Ingebrigtsen [Wed, 24 Nov 2021 11:44:45 +0000 (12:44 +0100)]
Fix min-width end condition handling

* src/xdisp.c (handle_display_prop): Fix check for min-width ends
-- they may be consecutive.

3 years agoCorrect adjustments to frame widths in events
Po Lu [Wed, 24 Nov 2021 11:15:06 +0000 (11:15 +0000)]
Correct adjustments to frame widths in events

* src/haiku_support.cc (EmacsWindow.FrameResized)
(EmacsWindow.Zoom): Adjust widths to fit into the correct
coordinate system.

3 years agoRemove unused arguments to EmacsView.AfterResize
Po Lu [Wed, 24 Nov 2021 11:03:58 +0000 (11:03 +0000)]
Remove unused arguments to EmacsView.AfterResize

* src/haiku_support.cc (EmacsView.AfterResize): Remove
unused arguments.
(BView_resize_to): Stop passing unused arguments.

3 years agoAdd support for the min-width display property
Lars Ingebrigtsen [Wed, 24 Nov 2021 10:55:53 +0000 (11:55 +0100)]
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.

3 years agoRe-enable the disabledForeground X resource.
Gregory Heytings [Wed, 24 Nov 2021 07:54:37 +0000 (08:54 +0100)]
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 ef93458b2f8 by overwriting its value with the
value of the foreground resource.

3 years agoAllow NS to handle non-text clipboard contents
Alan Third [Tue, 23 Nov 2021 20:56:44 +0000 (20:56 +0000)]
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.

3 years agoClear past end of frame on Haiku
Po Lu [Wed, 24 Nov 2021 09:56:29 +0000 (09:56 +0000)]
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.

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Po Lu [Wed, 24 Nov 2021 09:39:58 +0000 (09:39 +0000)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years agoFix 1 pixel wide border in frames on Haiku
Po Lu [Wed, 24 Nov 2021 09:38:26 +0000 (09:38 +0000)]
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.

3 years agoFix string-glyph-split infloop
Lars Ingebrigtsen [Wed, 24 Nov 2021 07:27:22 +0000 (08:27 +0100)]
Fix string-glyph-split infloop

* lisp/emacs-lisp/subr-x.el (string-glyph-split): Fix infloop when
applied to (string-glyph-split "✈️🌍") (bug#52067).

3 years agoPass options from make to configure through a variable.
Gregory Heytings [Wed, 24 Nov 2021 06:58:11 +0000 (07:58 +0100)]
Pass options from make to configure through a variable.

* GNUmakefile (configure): Use the variable.

* INSTALL.REPO: Document the variable (bug#51965).

3 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 24 Nov 2021 06:00:27 +0000 (07:00 +0100)]
Merge from origin/emacs-28

756b8a5f1b Fix typos in documentation
38fdeaef46 ; * etc/DEBUG: Fix last change.

3 years agoFix mouse-wheel-text-scale
Po Lu [Wed, 24 Nov 2021 01:49:39 +0000 (09:49 +0800)]
Fix mouse-wheel-text-scale

* lisp/mwheel.el (mouse-wheel-text-scale): Test for alternative
events correctly.

3 years agoRemove extraneous code left over from the ftbe font driver
Po Lu [Wed, 24 Nov 2021 01:46:33 +0000 (01:46 +0000)]
Remove extraneous code left over from the ftbe font driver

* src/haikuterm.c (syms_of_haikuterm): Remove dead code.

3 years agoUse only effective modifiers when handling XI2 button events
Po Lu [Wed, 24 Nov 2021 01:09:45 +0000 (09:09 +0800)]
Use only effective modifiers when handling XI2 button events

* src/xterm.c (handle_one_xevent): Use mods.effective when
constructing button events.

3 years agoAdapt artifacts paths in emba testjobs
Michael Albinus [Tue, 23 Nov 2021 15:25:41 +0000 (16:25 +0100)]
Adapt artifacts paths in emba testjobs

* test/infra/Makefile.in (subdir_template): Adapt artifacts paths.

* test/infra/test-jobs.yml: Regenerate.

3 years agoFix typos in documentation
Takesi Ayanokoji [Tue, 23 Nov 2021 14:30:23 +0000 (23:30 +0900)]
Fix typos in documentation

* doc/lispref/anti.texi:
* doc/misc/efaq.texi: Fix typos.

Copyright-paperwork-exempt: yes

3 years ago; * etc/DEBUG: Fix last change.
Eli Zaretskii [Tue, 23 Nov 2021 14:25:48 +0000 (16:25 +0200)]
; * etc/DEBUG: Fix last change.

3 years agoMerge from origin/emacs-28
Eli Zaretskii [Tue, 23 Nov 2021 13:11:14 +0000 (15:11 +0200)]
Merge from origin/emacs-28

bdb489a ; * etc/DEBUG: Adjust instructions for libgccjit reproducer.
b4fb381 ; * src/xdisp.c (produce_stretch_glyph): Avoid compilation wa...

3 years ago; * etc/DEBUG: Adjust instructions for libgccjit reproducer.
Eli Zaretskii [Tue, 23 Nov 2021 12:44:45 +0000 (14:44 +0200)]
; * etc/DEBUG: Adjust instructions for libgccjit reproducer.

3 years ago; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.
Eli Zaretskii [Tue, 23 Nov 2021 12:37:53 +0000 (14:37 +0200)]
; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.

3 years agoPrefer locate-user-emacs-file in gitmerge.el
Stefan Kangas [Tue, 23 Nov 2021 10:39:21 +0000 (11:39 +0100)]
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'.

3 years agoFix compilation with XInput 2 but without XKB
Po Lu [Tue, 23 Nov 2021 09:57:09 +0000 (17:57 +0800)]
Fix compilation with XInput 2 but without XKB

* src/xterm.c (handle_one_xevent): Remove extraneous
conditional.

3 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 23 Nov 2021 07:49:49 +0000 (08:49 +0100)]
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

3 years agoOnly reset scroll valuators on real enter events
Po Lu [Tue, 23 Nov 2021 03:08:45 +0000 (11:08 +0800)]
Only reset scroll valuators on real enter events

* src/xterm.c (handle_one_xevent): Test event detail and mode
before resetting scroll valuators.

3 years agoFix delay between tool bar clicks and visual feedback
Po Lu [Tue, 23 Nov 2021 01:20:15 +0000 (01:20 +0000)]
Fix delay between tool bar clicks and visual feedback

* src/haikuterm.c (haiku_read_socket): Redisplay after tool
bar click.

3 years agoFix XI2 keysym translation
Po Lu [Tue, 23 Nov 2021 01:01:33 +0000 (09:01 +0800)]
Fix XI2 keysym translation

* src/xterm.c (handle_one_xevent): Handle XI_KeyPress events
that can't be translated into strings.

3 years ago* lisp/subr.el (event-start, event-end): Handle `(menu-bar)` events
Stefan Monnier [Mon, 22 Nov 2021 19:23:26 +0000 (14:23 -0500)]
* lisp/subr.el (event-start, event-end): Handle `(menu-bar)` events

* lisp/net/browse-url.el (browse-url-interactive-arg): Simplify accordingly

3 years ago* lisp/textmodes/flyspell.el: Pop up the menu under cursor from keyboard.
Juri Linkov [Mon, 22 Nov 2021 19:05:15 +0000 (21:05 +0200)]
* 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).

3 years agosrc/indent.c, src/xdisp.c: Questions about with_echo_area_buffer_unwind_data
Stefan Monnier [Mon, 22 Nov 2021 19:06:14 +0000 (14:06 -0500)]
src/indent.c, src/xdisp.c: Questions about with_echo_area_buffer_unwind_data

3 years ago; Remove "needs" from emba jobs
Michael Albinus [Mon, 22 Nov 2021 18:40:56 +0000 (19:40 +0100)]
; Remove "needs" from emba jobs

3 years ago* lisp/tab-bar.el: 'C-x t RET' creates a new tab for non-existent tab name.
Juri Linkov [Mon, 22 Nov 2021 18:15:28 +0000 (20:15 +0200)]
* 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).

3 years agoSimplify `gnu` compilation-mode regexp
Mattias Engdegård [Mon, 22 Nov 2021 18:07:32 +0000 (19:07 +0100)]
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.

3 years agoFix '(space :relative-width N)' display spec w/non-ASCII chars
Eli Zaretskii [Mon, 22 Nov 2021 18:00:48 +0000 (20:00 +0200)]
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.

3 years ago* lisp/tab-bar.el (tab-bar-history-old-minibuffer-depth): Remove variable.
Juri Linkov [Mon, 22 Nov 2021 17:57:59 +0000 (19:57 +0200)]
* 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).

3 years ago* lisp/proced.el (proced-sort-header): Fix event positions (bug#1779).
Juri Linkov [Mon, 22 Nov 2021 17:39:28 +0000 (19:39 +0200)]
* lisp/proced.el (proced-sort-header): Fix event positions (bug#1779).

The logic was copied from 'tabulated-list-col-sort'.

3 years ago; Fix error in artifacts paths of emba jobs
Michael Albinus [Mon, 22 Nov 2021 15:47:23 +0000 (16:47 +0100)]
; Fix error in artifacts paths of emba jobs

3 years agoAdapt emba jobs
Michael Albinus [Mon, 22 Nov 2021 15:33:16 +0000 (16:33 +0100)]
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.

3 years ago; Improve recent NEWS entry
Stefan Kangas [Mon, 22 Nov 2021 15:27:55 +0000 (16:27 +0100)]
; Improve recent NEWS entry

* etc/NEWS: Improve recently added entry on substitution of
literal key sequences.  Thanks to Eli Zaretskii <eliz@gnu.org>.

3 years ago; Further minor simplification of rx form in bytecomp.el
Stefan Kangas [Mon, 22 Nov 2021 15:11:45 +0000 (16:11 +0100)]
; 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>.

3 years agoImprove recently installed documentation
Eli Zaretskii [Mon, 22 Nov 2021 15:05:40 +0000 (17:05 +0200)]
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.