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

152127 commits

Author SHA1 Message Date
Po Lu
08d1c40507 Fix typos in configure.ac
* configure.ac: Fix typos in wording of XInput 2 options.
2021-11-28 10:11:53 +08:00
Po Lu
3c2afa66a2 Make `pixel-scroll-precision-scroll-up' work better with overlays
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up):
Just set vscroll when on overlay.
2021-11-28 09:06:11 +08:00
Michael Albinus
338f780237 Simplify use of artifacts in emba files
* test/infra/gitlab-ci.yml (.test-template): Re-insert.
(test-all-inotify, test-filenotify-gio, test-gnustep)
(test-native-comp-speed0):
* test/infra/Makefile.in (subdir_template): Use it when
appropriate.  Remove artifacts.

* test/infra/test-jobs.yml: Regenerate.
2021-11-27 16:53:05 +01:00
Stefan Monnier
8d67a70e97 * test/src/comp-tests.el: Rework last patch
Move `require`s out of `eval-when-compile` if the functions are called
at run-time.
Don't use #' to quote symbols (i.e. at those places where a lambda
expression couldn't be used).
Don't pre-load comp-test-45603.el and comp-test-pure.el any more.

(comp-deftest pure): Use `declare-function` after loading `comp-test-pure.el`
to silence the byte-compiler.
2021-11-27 10:10:43 -05:00
Eli Zaretskii
a89731a78c Avoid assertion violations in --enable-checking builds
* src/xdisp.c (gui_produce_glyphs): Make sure character glyphs
don't trigger assertion violation due to negative ascent or
descent.  This was reporte dto happen with some fonts used by the
xfont backend.
2021-11-27 17:09:51 +02:00
Po Lu
f97539876a Improve documentation of wheel events
* doc/lispref/commands.texi (Misc Events): Add missing
parameters to `wheel-up' and `wheel-down'.
2021-11-27 20:48:25 +08:00
Po Lu
f9457b8b01 Fix pixel scroll for overlays and text in display properties
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down):
Just set vscroll if we're scrolling through an overlay or
something to that effect.
2021-11-27 20:09:33 +08:00
Eli Zaretskii
6072370db7 ; Improve doc string of 'glyphless-char-display-control'
* lisp/international/characters.el
(glyphless-char-display-control): Doc fix.
2021-11-27 09:02:12 +02:00
Po Lu
828a193066 Set motion event time when handling XI2 motion events
* src/xterm.c (handle_one_xevent): Set motion event time when
handling XI_Motion.
2021-11-27 14:57:59 +08:00
Po Lu
3dc9eb8bbd Remove GC prone call in `pixel-point-and-height-at-unseen-line'
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Remove call to unnecessary call to `beginning-of-visual-line'.
2021-11-27 14:10:49 +08:00
Po Lu
141425ce3b Make `pixel-scroll-precision-scroll-up' slightly more robust
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up):
Subtract from existing vscroll if feasible.
2021-11-27 13:46:35 +08:00
Po Lu
d329014574 Make `pixel-scroll-precision-scroll-up' use existing logic
* lisp/pixel-scroll.el (pixel-point-at-unseen-line): Rewrite
to use `pixel-point-and-height-at-unseen-line'.
(pixel-point-and-height-at-unseen-line): New function.
(pixel-scroll-precision-scroll-up): Use existing logic
to determine unseen line position.
2021-11-27 13:03:54 +08:00
Stephen Gildea
b0ef00f370 time-stamp-tests.el: Test more formats
* test/lisp/time-stamp-tests.el (time-stamp-format-ignored-modifiers):
Additional testing with illegal formats, including "%".
(time-stamp-format-multiple-conversions): Add a test with "%%%".
2021-11-26 20:48:45 -08:00
Po Lu
f1116f45bc Set initial tab bar parameter on NS
* src/nsfns.m (Fx_create_frame): Initialize `tab-bar-lines'
frame parameter during frame creation.
2021-11-27 08:34:51 +08:00
Alan Third
9721dcf275 Silence NS warnings
* src/nsterm.m ([EmacsView mouseDown:]): Move variables into the block
where they're used.
2021-11-26 19:57:07 +00:00
Stephen Gildea
11860f89a5 * test/src/comp-tests.el: Eliminate byte-compiler warnings (Bug#52105). 2021-11-26 08:51:38 -08:00
Robert Pluim
dd6b151c25 Specify initial values for glyphless-char-display-control elements
* lisp/international/characters.el (glyphless-char-display-control):
Specify :value for all the elements, since nil is not a valid value.
2021-11-26 15:59:50 +01:00
Michael Albinus
051e49fe3c Adapt test/infra/gitlab-ci.yml
* test/infra/gitlab-ci.yml (test-all-inotify)
(test-filenotify-gio, test-gnustep, test-native-comp-speed0):
Add or adapt artifacts.
2021-11-26 15:41:22 +01:00
Lars Ingebrigtsen
57bb675cde Add new face `gnus-header'
* lisp/gnus/gnus-art.el (gnus-header): New face.
(gnus-header-from, gnus-header-subject, gnus-header-newsgroups)
(gnus-header-name, gnus-header-content): Inherit from this new face.
2021-11-26 15:26:18 +01:00
Eli Zaretskii
c32e8bdc23 ; * etc/NEWS: Fix wording of a recently-added entry. 2021-11-26 15:50:46 +02:00
Robert Pluim
43a595788d Adjust custom-face-attributes for 'regular' weight
Following the changes to support "medium" weight fonts, the weight for
"normal" fonts is now reported as 'regular', which caused
customize-face to display faces as lisp-expressions, since it didn't
recognize that.  This has been corrected.

* lisp/cus-face.el (custom-face-attributes): Recognize 'regular' as a
weight.
2021-11-26 14:29:32 +01:00
Lars Ingebrigtsen
3f843b25dc Add an intermediary face for mode lines: `mode-line-active'
* doc/emacs/display.texi (Standard Faces): Document the new face.

* lisp/faces.el (mode-line-active): New face.
(mode-line): Don't inherit from vaiable-pitch.

* src/xfaces.c (lookup_basic_face, realize_basic_faces)
(syms_of_xfaces):
* src/xdisp.c (window_box_height, window_text_pixel_size)
(display_mode_lines, Fformat_mode_line):
* src/dispextern.h (CURRENT_MODE_LINE_ACTIVE_FACE_ID_3)
(CURRENT_MODE_LINE_ACTIVE_FACE_ID, enum face_id): Rename from
*MODE_LINE_FACE_ID to *MODE_LINE_ACTIVE_FACE_ID.
2021-11-26 14:19:24 +01:00
Po Lu
5d6e1c749a Move the precision pixel scrolling feature to pixel-scroll.el
* etc/NEWS: Update NEWS entry for 'pixel-scroll-precision-mode'

* lisp/better-pixel-scroll.el: Remove file.

* src/pixel-scroll.el (x-coalesce-scroll-events): New variable
declaration.
(pixel-scroll-precision-mode-map): New variable.
(pixel-scroll-precision-scroll-down):
(pixel-scroll-precision-scroll-up):
(pixel-scroll-precision): New functions.
(pixel-scroll-precision-mode): New minor mode.
2021-11-26 21:06:22 +08:00
Po Lu
673eadaeb5 Explain confusing aspects of XInput 2 scroll wheel reporting
* src/xterm.c (x_init_master_valuators): Explain how XInput 2
reports scroll wheel movement.

(handle_one_xevent): Explain why XI2 scroll valuators
are reset after each enter events.
2021-11-26 21:06:22 +08:00
Dmitry Gutov
824d31e3bf Remove empty lines from stash read prompt
* lisp/vc/vc-git.el (vc-git-stash-read): Pass OMIT-NULLS (bug#52119).
(vc-git-stash-list): Simplify.
2021-11-26 16:03:30 +03:00
Po Lu
c56e05b968 Make XInput 2 builds work without cairo
* src/xterm.c: Move some defines around so XI2 code doesn't
get ifdef'd out if Cairo is disabled.
2021-11-26 17:54:24 +08:00
Robert Pluim
3e40a56d52 ; * lisp/cus-face.el: Remove duplicated width entry. 2021-11-26 09:35:25 +01:00
Stefan Kangas
62d7ddb57c 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...
2021-11-26 07:17:21 +01:00
Po Lu
09c28ca073 Fix sign of pixel scroll events on Haiku
* src/haikuterm.c (haiku_read_socket): Fix sign of scroll
events.
2021-11-26 06:13:27 +00:00
Po Lu
8887213dcf 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.
2021-11-26 13:33:39 +08:00
Po Lu
897a101cd3 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.
2021-11-26 13:21:48 +08:00
Po Lu
fc8b87d904 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.
2021-11-26 13:07:54 +08:00
Po Lu
db3fbe884f Add `better-pixel-scroll-mode'
* etc/NEWS: Announce `better-pixel-scroll-mode'.
* lisp/better-pixel-scroll.el: New file.
2021-11-26 11:06:43 +08:00
Alan Third
9d37be3522 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.
2021-11-25 21:04:50 +00:00
Eli Zaretskii
cfaf681d3d ; * src/emacs.c (main): Add commentary about command-line processing. 2021-11-25 22:31:47 +02:00
Eli Zaretskii
4cd6bc8809 ; * src/font.c: Comment about synchronizing with cus-face.el. 2021-11-25 21:55:38 +02:00
Eli Zaretskii
aa3a74d9a1 Update 'custom-face-attributes'
* lisp/cus-face.el (custom-face-attributes): Synchronize with
tables in font.c.
2021-11-25 21:29:21 +02:00
Andreas Schwab
92d1bb3e38 * src/emacs.c (usage_message): Fix name of --seccomp option. 2021-11-25 20:06:59 +01:00
Eli Zaretskii
0c44b8edb4 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)
2021-11-25 20:54:07 +02:00
Eli Zaretskii
7f14723aa2 ; * etc/NEWS: Fix entry about reverting to old 'mode-line' face. 2021-11-25 20:17:58 +02:00
Stephen Gildea
d24ad504fc 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.
2021-11-25 10:14:01 -08:00
Robert Pluim
96f58718a0 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.
2021-11-25 18:12:39 +01:00
Robert Pluim
b711847f59 * doc/misc/flymake.texi: Correct local variable mode specification 2021-11-25 18:12:39 +01:00
Robert Pluim
3dcb629f6a 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.
2021-11-25 18:12:39 +01:00
Michael Albinus
223c956fc6 ; * admin/MAINTAINERS: Add test/infra/* 2021-11-25 16:44:12 +01:00
Michael Albinus
1b12af26ea 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.
2021-11-25 16:24:19 +01:00
Robert Pluim
4d16a2f737 Fix pdf generation with Texinfo 6.7
* doc/lispref/display.texi (Size of Displayed Text): Put @group inside
@example (bug#52102).
2021-11-25 15:29:00 +01:00
Lars Ingebrigtsen
6e5fd99139 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.
2021-11-25 15:14:22 +01:00
Lars Ingebrigtsen
f1606047c4 Indent `closure' forms better
* lisp/emacs-lisp/lisp-mode.el (closure): Indent `closure' forms
better (bug#52063).
2021-11-25 14:41:45 +01:00
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