1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-28 01:00:52 -07:00
Commit graph

177253 commits

Author SHA1 Message Date
Stefan Kangas
b5fe170240 ; Fix my last commit 2025-03-02 19:46:15 +01:00
Juri Linkov
888a2b5394 Adapt recent css-ts-mode changes to mhtml-ts-mode
* lisp/textmodes/css-mode.el (css--treesit-thing-settings):
(css-ts-mode--outline-predicate): New variables.
(css-ts-mode): Set treesit-outline-predicate.

* lisp/textmodes/mhtml-ts-mode.el (mhtml-ts-mode--treesit-thing-settings):
Use css--treesit-thing-settings and css--treesit-defun-type-regexp.
(mhtml-ts-mode): Use 'css-ts-mode--outline-predicate' for
'treesit-aggregated-outline-predicate'.
2025-03-02 20:44:40 +02:00
Juri Linkov
a5e82110b0 Improve treesit settings for css-ts-mode (bug#73404)
* lisp/textmodes/css-mode.el (css--treesit-settings): Add
"@supports" and '(at_keyword)' to 'keyword', 'keyframe_block' to
'selector', 'keyframes_name' to 'query'.
(css--treesit-defun-name): Support "keyframe_block",
"keyframes_statement" and "supports_statement" as well.
(css--treesit-simple-imenu-settings): Add "keyframes_statement",
"keyframe_block", "supports_statement".
(css--treesit-defun-type-regexp): Add "keyframe_block".
(css-ts-mode): Add 'treesit-thing-settings'.
2025-03-02 20:07:21 +02:00
Stefan Kangas
1b77e94bcc ; Move python.el Maintainer header further up
This is more consistent with our common practices.
2025-03-02 18:53:27 +01:00
Stefan Kangas
538ab57dc5 Bump python.el package version to 0.29
* lisp/progmodes/python.el: Bump package version to 0.29.
2025-03-02 18:53:09 +01:00
Stefan Kangas
0cff855690 Bump python.el requirement to Emacs 29.1
* lisp/progmodes/python.el: Require Emacs 26.3, flymake 1.0 and
project 0.1.  (Bug#75526)
2025-03-02 18:49:37 +01:00
Stefan Kangas
fad9b7dce7 Don't warn when calling hl-lock-mode from init file
This was a compatibility kluge introduced in Emacs 22.1, twenty years
ago.  It's fair to assume that any former Emacs 21 user have seen this
warning already, and will have updated their init file.  So remove it.

* lisp/hi-lock.el (hi-lock-mode): Don't warn when calling plain
hi-lock-mode from init file.
(hi-lock-archaic-interface-message-used)
(hi-lock-archaic-interface-deduce): Remove associated variables.
2025-03-02 18:45:03 +01:00
Eli Zaretskii
8937dee9e4 New commands to convert ASCII to fullwidth characters and back
* lisp/textmodes/text-mode.el (text-mode--fullwidth-table): New
variable.
(text-mode--get-fullwidth-table): New internal function.
(fullwidth-region, halfwidth-region, fullwidth-word)
(halfwidth-word): New commands.  (Bug#71822)

* etc/NEWS: Announce new commands.
2025-03-02 15:25:53 +02:00
Po Lu
e34d7a7c4e ; Adapt more tests for Android
* test/infra/android/test-controller.el (ats-eval): Document new
values of ats-eval.
(ats-run-test): Report conditions where tests induce Emacs to
exit.

* test/lisp/erc/resources/erc-tests-common.el
(erc-tests-common-kill-buffers): Bind
kill-buffer-query-functions to nil.
2025-03-02 21:02:10 +08:00
Po Lu
749e33bb48 Specifically report attempts to exit Emacs during test execution
* test/infra/android/test-driver.el (ats-in-eval): Fix typo in
doc string.
(ats-eval-as-printed, ats-eval-serial, ats-eval-do-decode):
Render buffer-local.
(ats-executing-form): New variable.
(ats-process-filter): Bind the same around `eval'.
(ats-kill-emacs-function): New function; register it to execute
when Emacs exits.
2025-03-02 21:02:10 +08:00
Stefan Kangas
e4d8095c3d Fix a vc test for Breezy by setting $HOME
* test/lisp/vc/vc-tests.el (vc--fix-home-for-bzr): New macro.
(vc-test--create-repo, vc-test--register, vc-test--working-revision)
(vc-test--checkout-model, vc-test--rename-file)
(vc-test--version-diff): Fix test for Breezy by setting HOME to a
temporary directory.  (Bug#70195)
2025-03-02 13:37:34 +01:00
Po Lu
c73003ade1 Don't byte compile early-init.el
* test/infra/android/early-init.el (frame-initialize): Remove
redundant debugging printouts.
2025-03-02 19:23:44 +08:00
Po Lu
8e007f7990 ; * test/infra/android/test-driver.el: Don't byte-compile. 2025-03-02 19:15:48 +08:00
Po Lu
ecbb080865 Exclude files under `infra' from automatic testing
* test/Makefile.in (ELFILES): Exclude files within `infra'.
Reported by Stefan Kangas <skangas@gmail.com>.
2025-03-02 19:11:10 +08:00
Stefan Kangas
c4232a08f1 ; Silence byte-compiler in Android tests 2025-03-02 09:19:54 +01:00
Po Lu
2ba2157a61 ; * lisp/treesit.el: Silence byte-compiler. 2025-03-02 16:08:30 +08:00
Po Lu
a8988ce800 Run Android tests in the initial frame
* test/infra/android/early-init.el: New file.

* test/infra/android/test-controller.el (ats-connect): Upload
`early-init.el' to the staging directory and configure that
directory as the Emacs instance's initialization directory.
(ats-run-test): Always append to the test buffer.  Execute tests
within terminal-frame.
(ats-run-all-tests): Gracefully respond to errors.
(ats-cmd-error): New function.
(ats-execute-tests-batch): Accept a number of command line
arguments.
2025-03-02 16:05:04 +08:00
Po Lu
7fcb01e76b Enable kmacro-call-macro to function in some circumstances
* lisp/kmacro.el (kmacro-call-macro): Enable to function when
the selected frame's terminal is different from that most
recently consulted by the event loop.
2025-03-02 16:05:04 +08:00
Stefan Kangas
558e6792c0 ; Add Maintainer header to loaddefs-gen.el 2025-03-02 06:45:53 +01:00
Stefan Kangas
b7fdddc86b Mark echistory.el as obsolete
* lisp/obsolete/echistory.el: Add Obsolete-since header.
* etc/TODO: Delete echistory.
* etc/NEWS: Announce above obsoletion.  (Bug#76506)
2025-03-02 06:33:46 +01:00
Stefan Kangas
6f8c4581ea Move echistory.el to lisp/obsolete
* lisp/echistory.el: Move from here...
* lisp/obsolete/echistory.el: ...to here.  (Bug#76506)
2025-03-02 06:32:35 +01:00
Stefan Kangas
33222bd000 Document apply-partially as inefficient
* doc/lispref/functions.texi (Calling Functions): Document that it is
less inefficient than a regular 'lambda'.
* lisp/subr.el (apply-partially): Adjust documentation like above and
remove compiler macro.
Ref: https://lists.gnu.org/r/emacs-devel/2025-03/msg00024.html
2025-03-02 05:57:27 +01:00
Stefan Kangas
eff5a3e43b Bump python.el requirement to Emacs 26.3
* lisp/progmodes/python.el: Require Emacs 26.3, flymake 1.0 and
project 0.1.  (Bug#75526)
2025-03-02 05:40:27 +01:00
Pranshu Sharma
d6dd9dd066 Pass buffer as object in gnus-highlight-selected-tree
* lisp/gnus/gnus-salt.el (gnus-highlight-selected-tree): Correctly
pass buffer object instead of string.  (Bug#75557)
2025-03-02 05:02:23 +01:00
Stefan Kangas
735eace97b Make package-install accept a string as well
* lisp/emacs-lisp/package.el (package-install): Allow passing a string
instead of a symbol.  (Bug#72160)
(package-upgrade): Improve docstring.

* test/lisp/emacs-lisp/package-tests.el
(package-test-install-single-from-archive/string-type): New test.
2025-03-02 04:19:35 +01:00
Stefan Kangas
38782e684b Improve use-package error message on wrong type
* lisp/use-package/use-package-core.el (use-package): Improve error
message when passed the wrong type.  (Bug#72160)
2025-03-02 04:07:48 +01:00
David Ponce
be8a7c9c88 Simplify and speed up widget-get implementation
* lisp/wid-edit.el (widget-get): Simplify and speed up.
Ref: https://lists.gnu.org/r/emacs-devel/2025-03/msg00010.html
2025-03-02 02:42:37 +01:00
Stefan Kangas
49e3ef3437 ; Add test for last change
* test/lisp/wid-edit-tests.el
(widget-test-editable-field-widget-get/put): Check return value of
widget-put.  (Bug#76664)
2025-03-02 02:18:30 +01:00
David Ponce
5b13541858 Correctly return passed value from widget-put
* lisp/wid-edit.el (widget-get-indirect): Return passed value to stay
consistent with old C implementation.  (Bug#76664)
2025-03-02 02:18:26 +01:00
Stefan Kangas
10f11d730e ; * etc/symbol-releases.eld: Add missing symbols. 2025-03-02 01:59:13 +01:00
Pip Cet
1e84a87676 Improve instructions for running with -fsanitize=address (bug#76393)
* etc/DEBUG (ASAN_OPTIONS): Add 'detect_stack_use_after_return=0'
requirement.  Remove obsolete unexec commentary.
2025-03-01 21:39:23 +00:00
Daniel Colascione
3545988740 Make Emacs respond to NS activation clicks
* src/nsterm.m (acceptsFirstMouse): Opt into receiving mouse events that
activate the window. (bug#76629)
2025-03-01 12:55:15 -05:00
Eli Zaretskii
6a2f6056c5 Provide tool-tip display delays on TTY frames
* lisp/tooltip.el (tooltip-show, tooltip-hide)
(tooltip-show-help): Support delayed tool-tip display on TTY
frames as well.  (Bug#76653)

* etc/NEWS: Announce the behavior change.
2025-03-01 17:16:08 +02:00
Eli Zaretskii
503622a101 ; * etc/NEWS.30: Fix last merge. 2025-03-01 10:09:16 -05:00
Eli Zaretskii
2095d0fcc6 Merge from origin/emacs-30
0460177451 ; * lisp/progmodes/java-ts-mode.el (treesit-node-end): De...
8481170eb2 Fix 'M-q' in 'makefile-mode'
44a770b871 ; Improve documentation of 'rmail-movemail-program'

# Conflicts:
#	lisp/progmodes/java-ts-mode.el
2025-03-01 10:02:41 -05:00
Eli Zaretskii
5eb67a2100 ; Merge from origin/emacs-30
The following commit was skipped:

3998dea566 ; Cleanup sexp things in 'lua-ts-mode'
2025-03-01 10:01:54 -05:00
Eli Zaretskii
da584ad6fb Merge from origin/emacs-30
b531bbf73e Fix go-ts-mode const_spec highlighting (Bug#76330)
bd1d6761f4 ; Document what happens when 'display' and 'invisible' pr...
526eeedf88 keymaps.texi: Move "Changing Key Bindings" section up
7ec6531c7b keymaps.texi: Move "Key Sequences" section down
8b80401127 Improve process-get/process-put docstrings
73c646b777 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ...
0af5c57499 Fix recent change in diff-no-select
c8cec840d7 Prevent rare freeze on Android 4.2 through 4.4
2025-03-01 10:01:54 -05:00
Eli Zaretskii
4442cd5b7d ; Merge from origin/emacs-30
The following commit was skipped:

c8cec840d7 Prevent rare freeze on Android 4.2 through 4.4
2025-03-01 10:01:53 -05:00
Eli Zaretskii
a7e75dbabd Merge from origin/emacs-30
5247da2e3c * lisp/proced.el (proced-<): Check, that NUM1 and NUM2 ar...
2025-03-01 10:01:53 -05:00
Eli Zaretskii
f7e1fa88a1 ; Merge from origin/emacs-30
The following commits were skipped:

0d89aa6b6c ; * src/keymap.c: Fix last change (bug#75219).
b3181a8071 Fix mouse-2 clicks on mode line and header line
2025-03-01 10:01:53 -05:00
Eli Zaretskii
a242d9a48f Merge from origin/emacs-30
6f5c322f59 Recommend secure-hash in md5 docstring
1352b184f3 Improve docstring of add-hook and remove-hook
2025-03-01 10:01:53 -05:00
Eli Zaretskii
7fde605d3d ; Merge from origin/emacs-30
The following commit was skipped:

dbae1fc69f * lisp/subr.el (read-key): Add 'tab-line' (bug#76408).
2025-03-01 10:01:53 -05:00
Eli Zaretskii
095ba1b674 Merge from origin/emacs-30
62b3d3136f Fix fns-tests-collate-strings failure with musl
840c682458 ; (completion-preview-complete): Fix bug#76606
fa42626a6a ; Fix indentation in cl.texi example
7ff806da49 ; Fix my last commit
2025-03-01 10:01:52 -05:00
Eli Zaretskii
25dc3b2dde ; Merge from origin/emacs-30
The following commit was skipped:

706426f966 Fix setup of coding-systems on MS-Windows
2025-03-01 10:01:52 -05:00
Eli Zaretskii
6c411de542 Merge from origin/emacs-30
f88dc0f2f9 ; Fix documentation of 'buffer-text-pixel-size'
734986349f ; Minor Android documentation improvements
a90da89903 ; Fix up emacs-lisp-mode docstring
58c7acb555 ; Fix completion-fail-discreetly docstring typo.
02c830ba22 Fix ert-font-lock macro signatures
0c6b8643ae Fix a typo in 'window_text_pixel_size'
8a8c25eacc ; Add Rudolf Schlatte to authors.el
94c0ea39a5 * doc/misc/efaq.texi (New in Emacs 30): Fix typo.  (Bug#7...
0be5f9115e ; * etc/images/README (Files): Add an entry for last-page...
63adf9dcf5 ; Reflow some cl-lib docstrings
99253f7970 ; * etc/TODO: New section "Make it easier to contribute".

# Conflicts:
#	lisp/emacs-lisp/cl-macs.el
2025-03-01 10:01:09 -05:00
Eli Zaretskii
140e7aebc0 ; Merge from origin/emacs-30
The following commit was skipped:

d63b27a416 Upgrade out-of-date VC package dependencies
2025-03-01 09:59:08 -05:00
Eli Zaretskii
612b6df608 Merge from origin/emacs-30
563b6f9451 Constant highlighting no longer captures Java annotations
e15dcb2db5 Improve wording of lsh docstring
0cc651acdd ; * admin/check-doc-strings: Add note for future developm...
3c9b1c3cd1 Don't document deleted xwidget functions
9e9b78dda9 ; Improve lsh and ash documented argument names
2025-03-01 09:59:08 -05:00
Eli Zaretskii
27297d20d9 ; Merge from origin/emacs-30
The following commits were skipped:

7744119025 Use a persistent directory as default directory in diff
ac7f2054b5 Sync build-aux/update-copyright from Gnulib
2025-03-01 09:59:08 -05:00
Eli Zaretskii
b9c9bc2039 Merge from origin/emacs-30
e9c9ed1f46 Minor refactoring in admin/admin.el
a8b1726487 ; * admin/make-tarball.txt: Copy edits.
2025-03-01 09:59:08 -05:00
Eli Zaretskii
975567f987 ; Merge from origin/emacs-30
The following commit was skipped:

2db182ce0b Bump Emacs version to 30.1.50
2025-03-01 09:59:07 -05:00