1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 22:11:21 -08:00
Commit graph

156541 commits

Author SHA1 Message Date
Alan Mackenzie
71249b774a Correct indentation of opening brace in xdisp.c, which isn't at start of defun
* xdisp.c (calc_pixel_width_or_height): indent the opening brace of a
substatement correctly.  It's previous position, in column 0, caused
indentation errors in C Mode.
2022-05-17 10:31:15 +00:00
Po Lu
38dfe9d2f7 Fix unused function warning on X
* src/xsettings.c (xg_settings_key_valid_p): Surround with
HAVE_PGTK and HAVE_GSETTINGS.
2022-05-17 18:18:32 +08:00
Pieter van Prooijen
1a6a4614ce Fix font options compilation with gsettings disabled
* src/xsettings.c (xsettings_get_font_options): Return a font_options
even if gsettings is not enabled.
2022-05-17 18:15:18 +08:00
Po Lu
e9ad64ef92 Rewrite Haiku frame geometry code to handle decorator frames
* doc/lispref/frames.texi (Frame Layout): Document changes to
Haiku frame layout.

* src/haiku_support.cc (class EmacsWindow, MoveToIncludingFrame)
(EmacsMoveTo, MakeFullscreen): Move to an offset including the
decorator frames.
(be_get_window_decorator_dimensions):
(be_get_window_decorator_frame): New functions.

* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_update_after_decoration_change): New
function.
(haiku_create_frame, haiku_set_undecorated)
(haiku_set_override_redirect): Call that function.
(frame_geometry): Actually calculate frame geometry based on
decorator and frame sizes.

* src/haikuterm.c (haiku_coords_from_parent): Use frame width
instead.
(haiku_read_socket): Set left and top positions based on
decorator width and height.
* src/haikuterm.h (struct haiku_output): New field `frame_x' and
`frame_y'.
2022-05-17 09:59:20 +00:00
Lars Ingebrigtsen
dc239872cc Fix package-quickstart breakage
* lisp/emacs-lisp/package.el (package-quickstart-refresh): Work
around syntax-ppss now clobbering match data (but it's not clear
whether that's supposed to be allowed) (bug#55447).
2022-05-17 11:48:12 +02:00
Lars Ingebrigtsen
608afd6e4e Improve Finternal__define_uninitialized_variable erroring
* src/eval.c (Finternal__define_uninitialized_variable): Say what
symbol we're bugging out on for easier debugging.
2022-05-17 11:06:33 +02:00
Lars Ingebrigtsen
90dccb0f00 Fix edebug-tests test failure after prin1 change
* lisp/emacs-lisp/ert-x.el (ert--make-print-advice): Fix test
failures in edebug-tests.
2022-05-17 10:09:58 +02:00
Po Lu
803041e014 Remove extra EmacsPopUpMenu class
* src/haiku_support.cc (class EmacsPopUpMenu): Delete class that
does nothing.
(BPopUpMenu_new): Use BPopUpMenu directly.
(BMenu_add_title): Clean up coding style.
2022-05-17 03:11:23 +00:00
Po Lu
316fbc8ccb Add more cursor bitmaps on Haiku
* src/haikufns.c (cursor_bitmaps_for_id): Add vertd, horizd and
hand bitmaps.
2022-05-17 02:51:42 +00:00
Po Lu
e52159d0dc Let XTread_socket read events for all non-DND displays
* src/xterm.c (XTread_socket): Allow reading events from
displays other than the DND display during drag-and-drop.
2022-05-17 09:21:19 +08:00
Po Lu
164ff4a012 Fix byte swapping of some drag-and-drop messages
* src/xterm.c (SWAPCARD16, SWAPCARD32): Actually swap the data
instead of just calling bswap_32/bswap_16.
2022-05-17 09:10:46 +08:00
Po Lu
3939a72fcb Fix detection of wheel movement during drag-and-drop
* src/xterm.c (x_dnd_send_position): Don't treat Button8 as the
mouse wheel.
2022-05-16 21:47:39 +08:00
kobarity
c44908c059 Fix Python highlighting of some assignment statements
* lisp/progmodes/python.el (python-rx): Limit not-simple-operator
to a single line (bug#51362).
2022-05-16 15:40:17 +02:00
Lars Ingebrigtsen
ed71839c33 Add new user option compilation-hidden-output
* doc/emacs/building.texi (Compilation Mode): Document it.
* lisp/progmodes/compile.el (compilation-hidden-output): New user
option.
(compilation-filter): Use it.
(compilation--hide-output): New function.
2022-05-16 15:30:50 +02:00
Lars Ingebrigtsen
f5ee56c5ea Don't expose Vprint_variable_mapping to Lisp
* src/print.c: Don't expose Vprint_variable_mapping to the Lisp
world, because it really should be immutable.
(print_create_variable_mapping): Initialization moved here from
syms_of_print.
(print_bind_overrides): Call it.
(syms_of_print): Protect the mapping variable.
2022-05-16 15:01:08 +02:00
Tassilo Horn
5a6e727ddb ; Fix Wrong type argument: number-or-marker-p, (4) in cycle-spacing 2022-05-16 14:27:04 +02:00
Lars Ingebrigtsen
006fd29ca1 Revert "Make TAB work in makefile mode when transient mark mode is on"
This reverts commit a4c96147d1.

This change made hitting RET after an assignment insert a TAB character
(bug#55446).
2022-05-16 14:24:41 +02:00
Lars Ingebrigtsen
bf22068aee Improve newsticker file name handling and printing
* lisp/net/newst-backend.el (newsticker--images-dir)
(newsticker--icons-dir, newsticker--cache-dir): Don't use concat
to construct file names.
(newsticker-download-images, newsticker-download-enclosures): Ditto.
(newsticker--cache-save-feed): Bind print-level etc when printing.

* lisp/net/newst-treeview.el (newsticker-treeview-save): Ditto.

This patch was mostly written by mailj2@protonmail.com, but was then
rewritten by me, and has some contributions from Xavier Capaldi (which
doesn't need copyright assignment).
2022-05-16 14:05:18 +02:00
Eli Zaretskii
0e88398632 ; Fix documentation of 'cycle-spacing'
* etc/NEWS:
* doc/emacs/killing.texi (Deletion): Fix wording and punctuation
of the documentation of 'cycle-spacing'.
2022-05-16 14:50:27 +03:00
Eli Zaretskii
de26ad23d5 ; * doc/emacs/frames.texi (Tooltips): Fix punctuation and wording. 2022-05-16 14:37:36 +03:00
Po Lu
1f76f50a04 Document recent tooltip changes on NS
* doc/emacs/frames.texi (Tooltips):
* etc/NEWS: Announce that non-system tooltips are now available
on Nextstep.
2022-05-16 17:29:50 +08:00
Tassilo Horn
e7a8136e34 ; cycle-spacing-actions: Add forgotten arg modifier - as customize choice 2022-05-16 10:08:40 +02:00
Andrea Corallo
2ba42e596a ; Fix two mail addresses
;* lisp/emacs-lisp/comp.el: Fix author's mail address.
;* lisp/emacs-lisp/comp-cstr.el: Likewise.
2022-05-16 09:54:15 +02:00
Po Lu
b8cfe8fa75 Improve error checking in `haiku-roster-launch'
* src/haikuselect.c (Fhaiku_roster_launch): Signal error if
FILE-OR-TYPE doesn't exist or ARGS does not apply.
2022-05-16 07:17:16 +00:00
Tassilo Horn
42e4d6b8ce Improve cycle-spacing and bind it to M-SPC by default
* lisp/bindings.el (esc-map): Bind M-SPC to cycle-spacing instead of
just-one-space.
* lisp/simple.el (delete-space--internal): New function.
(delete-horizontal-space): Use it.
(delete-all-space): New command.
(just-one-space): Implement on its own instead of calling
cycle-spacing with a special flag.
(cycle-spacing--context): Make it a plist instead of a list.  Adapt
docstring accordingly.
(cycle-spacing-actions): New user option.
(cycle-spacing): Rewrite so that it performs the actions in
cycle-spacing-actions instead of the hard-coded ones.
* doc/emacs/killing.texi (characters): Mention and add a variable
index entry for cycle-spacing-actions.
* etc/NEWS: Document that M-SPC is now cycle-spacing instead of
just-one-space.
2022-05-16 08:33:15 +02:00
Stefan Kangas
1fc1d8b889 Merge from origin/emacs-28
f928330fa8 Update to Org 9.5.3-6-gef41f3
007bf9a34c Hide temporary FUSE files in Tramp
5dbaddc729 ; Fix some typos
2022-05-16 06:30:38 +02:00
Stefan Kangas
0651bc6d17 ; Merge from origin/emacs-28
The following commit was skipped:

950dab21e3 * test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt ...
2022-05-16 06:30:38 +02:00
Stefan Kangas
5ac5d00479 Merge from origin/emacs-28
48201ce8de ; * lisp/electric.el (electric-indent-mode): Fix a typo.
2022-05-16 06:30:38 +02:00
Po Lu
44e5339e82 Improve safety of handling unsupported drop events on X
* src/keyboard.c (kbd_buffer_get_event):
* src/xterm.c (handle_one_xevent): Check that the event frame is
still live after calling arbitrary Lisp code.
2022-05-16 11:05:32 +08:00
Po Lu
a57687dc0e Clean up Haiku code after file panel changes
* src/haiku_support.cc:
* src/haiku_support.h: Stop including pthread.h and specpdl_ref.

* src/haikumenu.c (run_menu_bar_help_event): Ignore invalid help
events instead of aborting.
2022-05-16 01:37:27 +00:00
Po Lu
af4a0d7ad6 ; Remove extraneous debugging code
* src/xterm.c (handle_one_xevent): Remove extra debugging code.
2022-05-16 09:22:50 +08:00
Po Lu
dd05eb4048 Handle pointer axes changing along with scroll valuators
* xterm.c (x_get_scroll_valuator_delta): Set valuator_return to
NULL if no valuator was found.
(handle_one_xevent): Assume pointer axes might've changed if no
scroll valuator was found but valuators were set when handling
motion events.
2022-05-16 09:18:33 +08:00
Kyle Meyer
f928330fa8 Update to Org 9.5.3-6-gef41f3 2022-05-15 17:49:34 -04:00
Stefan Kangas
cd5fcf10c6 Minor clarification of package-update-all docstring
* lisp/emacs-lisp/package.el (package-update-all): Clarify
docstring slightly.  (Bug#55408)
2022-05-15 21:38:48 +02:00
Augusto Stoffel
2b3f3d421a Make minibuffer lazy highlight setup buffer-local where appropriate
* lisp/isearch.el (minibuffer-lazy-highlight-setup): Modify hooks
buffer-locally, so that recursive minibuffers are not affected by the
special behavior of lazy-highlight.  Also make
'isearch-filter-predicate' buffer-local, so that isearch in the
minibuffer is not affected by the region filter (bug#55110).
2022-05-15 21:44:53 +03:00
Eli Zaretskii
4cba465c58 ; * lisp/international/fontset.el (otf-script-alist): Fix typos. 2022-05-15 19:08:08 +03:00
Eli Zaretskii
d4ae418691 ; Improve documentation of the OVERRIDES argument to prin1
* src/print.c (Fprin1, syms_of_print):
* etc/NEWS:
* doc/lispref/streams.texi (Output Functions, Output Overrides):
Fix typos and cross-references, and improve wording.
2022-05-15 19:02:46 +03:00
Simen Heggestøyl
4aa8115855 Recognize some more SCSS selectors
* lisp/textmodes/css-mode.el (css--selector-regexp): Recognize some
more SCSS selectors.

* test/lisp/textmodes/css-mode-resources/scss-selectors.txt: Add tests
for them.
2022-05-15 16:42:56 +02:00
Simen Heggestøyl
f171a36c0a Fix warning suppression in (S)CSS mode tests
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-selectors)
(scss-mode-test-selectors): Fix warning suppression.
2022-05-15 16:05:24 +02:00
Lars Ingebrigtsen
cfedc2872e Fix native-comp type of prin1-to-string
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix type
of prin1-to-string.
2022-05-15 15:41:46 +02:00
Lars Ingebrigtsen
a517f3d759 Adjust more prin1-to-string callers
* src/w32.c (check_windows_init_file):
* src/comp.c (Lisp_Object):
(emit_lisp_obj_reloc_lval):
(emit_lisp_obj_rval):
(emit_mvar_rval):
(emit_limple_insn):
(emit_static_object): Adjust prin1-to-string callers.
2022-05-15 15:37:12 +02:00
Lars Ingebrigtsen
aa95b2a47d Add OVERRIDES argument to prin1/prin1-to-string
* doc/lispref/streams.texi (Output Functions): Document it.
(Output Overrides): New node.

* src/process.c (Faccept_process_output):
* src/print.c (debug_print, print_error_message):
* src/pdumper.c (print_paths_to_root_1, decode_emacs_reloc):
* src/lread.c (readevalloop):
* src/eval.c (internal_lisp_condition_case):
* src/editfns.c (styled_format): Adjust prin1/prin1-to-string
callers.

* src/print.c (Fprin1): Take an OVERRIDES parameter.
(print_bind_overrides, print_bind_all_defaults): New functions.
(Fprin1_to_string): Take an OVERRIDES parameter.
2022-05-15 15:29:38 +02:00
Michael Albinus
007bf9a34c Hide temporary FUSE files in Tramp
* lisp/net/tramp-fuse.el (tramp-fuse-remove-hidden-files): New defsubst.
(tramp-fuse-handle-directory-files)
(tramp-fuse-handle-file-name-all-completions): Use it.
2022-05-15 15:09:26 +02:00
Po Lu
22873b5415 Make Haiku stipple display slightly faster
* src/haikuterm.c (haiku_draw_stipple_background): Draw tiled
bitmap to end of stipple instead of the end of the frame.
2022-05-15 12:44:59 +00:00
Lars Ingebrigtsen
0da7689b16 Don't freeze Emacs on colour codes in sccs-mode
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Don't
freeze Emacs on #ffffff #ffffff, and be more strict in parsing
selectors (bug#53203).
2022-05-15 14:13:14 +02:00
Simen Heggestøyl
b26574d7d7 Update CSS Multi-column Layout Module properties
* lisp/textmodes/css-mode.el (css-property-alist): Update CSS
Multi-column Layout Module properties.
2022-05-15 12:57:51 +02:00
Simen Heggestøyl
dfefe5cb31 ; * lisp/textmodes/css-mode.el: Fix link
* lisp/textmodes/css-mode.el (css-property-alist): Fix link to CSS
Flexible Box Layout Module.
2022-05-15 12:57:49 +02:00
Simen Heggestøyl
137720ee6e Update CSS Box Alignment Module properties
* lisp/textmodes/css-mode.el (css-property-alist): Update properties.
2022-05-15 12:57:46 +02:00
Simen Heggestøyl
2214f42202 Add all to CSS property list
* lisp/textmodes/css-mode.el (css-property-alist): Add new property
`all` from the CSS Cascading and Inheritance Level 3 module.
2022-05-15 12:57:38 +02:00
Po Lu
ade35760a5 Fix use of more invalid keys in PGTK GSettings code
* src/xsettings.c (apply_gsettings_font_hinting):
(apply_gsettings_font_rgba_order): Test for key existence before
using it.
2022-05-15 17:38:56 +08:00