Po Lu
5cab2684c0
* src/nsterm.m (Vns_scroll_event_delta_factor): Fix doc string.
2021-11-30 21:10:36 +08:00
Po Lu
f3bb2b80b4
Add `ns-scroll-event-delta-factor'
...
* src/nsterm.m (- mouseDown): Take delta factor into account.
(Vns_scroll_event_delta_factor): New variable.
* lisp/cus-start.el: Add option.
2021-11-30 13:41:16 +08:00
Po Lu
a59deef359
Allow non-float values in x-scroll-event-delta-factor
...
* src/xterm.c (handle_one_xevent): Use XFLOATINT instead of
XFLOAT_DATA.
2021-11-30 09:46:25 +08:00
Alan Third
50379fb78d
Fix build on macOS
...
* src/nsterm.h (NSPasteboardTypeMultipleTextSelection):
(NSPasteboardTypePNG): These are already defined on macOS 10.6 and
above and aren't used at all in GNUstep.
2021-11-29 22:11:04 +00:00
Alan Third
67676bb5a0
Fix NS port text decorations (bug#52156)
...
* src/nsterm.m (ns_draw_text_decoration): Set the correct colors for
decorations other than underline.
(ns_draw_glyph_string): Remove superfluous color setting call.
2021-11-29 21:58:42 +00:00
Andreas Schwab
6943786b5c
Avoid undefined behaviour when copying part of structure
...
* src/dispnew.c (copy_row_except_pointers): Don't use address of
subobject as starting point.
2021-11-29 10:30:10 +01:00
Po Lu
618070d4b4
Allow customizing the pixel delta of wheel events on X
...
* lisp/cus-start.el: Add `x-scroll-event-delta-factor'.
* src/xterm.c (handle_one_xevent): Apply scroll event
delta factor to wheel events with pixel data.
(Vx_scroll_event_delta_factor): New user option.
2021-11-29 15:37:41 +08:00
Po Lu
a1aa9cbf57
Make overhangs in ftcrfont work on Haiku
...
* src/ftcrfont.c (ftcrfont_draw): Dump left overhang clipping
on Haiku and always set `background_filled_p'.
2021-11-29 07:12:25 +00:00
Stefan Kangas
d648874110
Merge from origin/emacs-28
...
c4daff9cf8 * Makefile.in (PREFERRED_BRANCH): Now emacs-28.
bca57086be ; Remove an obsolete comment
455b64c336 * src/coding.c (Fdecode_coding_region, Fencode_coding_regi...
2021-11-29 07:00:25 +01:00
Po Lu
390361cb24
Update XKB map on MappingNotify
...
* src/xterm.c (handle_one_xevent): Update XKB map when X
tells us the keyboard map has been updated.
2021-11-29 12:39:16 +08:00
Karl Fogel
bca57086be
; Remove an obsolete comment
...
* src/editfns.c (Ftranspose_regions): Remove an obsolete comment about
memmove, following up to commit 72af86bd8c of 8 Jul 2010 by Andreas
Schwab and commit 354f9f0fc6 of 23 Feb 2016 by Fredrik Bergroth,
both of which added calls to memmove.
2021-11-28 13:34:57 -06:00
Eli Zaretskii
455b64c336
* src/coding.c (Fdecode_coding_region, Fencode_coding_region): Doc fix.
2021-11-28 20:18:16 +02:00
Po Lu
3ce591804b
Fix xwidget popups on XI2 again
...
* src/xwidget.c (xwidget_button_1): Release seat grab.
2021-11-28 13:43:19 +08:00
Po Lu
bd321f78eb
Fix xwidget popups on XI2
...
* src/gtkutil.c (xg_is_menu_window): Determine whether wdesc
is a menu generated by a menu bar more reliably.
* src/xwidget.c (xwidget_button_1): Release all XI2 grabs on
click.
2021-11-28 13:14:13 +08: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
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
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
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
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
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
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
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
Andreas Schwab
92d1bb3e38
* src/emacs.c (usage_message): Fix name of --seccomp option.
2021-11-25 20:06:59 +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
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
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
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
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
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
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
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
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
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
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
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
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
b4fb381d8d
; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.
2021-11-23 14:37:53 +02: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