1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
Commit graph

179299 commits

Author SHA1 Message Date
Philip Kaludercic
c2bbad0a18 * etc/package-autosuggest.eld: Update file 2025-09-02 15:51:10 +02:00
Philip Kaludercic
37b89edc77 * admin/scrape-elpa.el (scrape-elpa): Sort output 2025-09-02 15:50:38 +02:00
Philip Kaludercic
055ee29eb4 Merge remote-tracking branch 'origin/feature/package-autosuggest' into scratch/split-package.el 2025-09-02 14:51:09 +02:00
Philip Kaludercic
218eab3f99 Remove package-core runtime dependency on cl-lib
* lisp/package/package-core.el (package--reload-previously-loaded):
Rewrite expression using 'cl-remove-if-not' with handwritten loop.
2025-09-02 12:25:13 +02:00
Philip Kaludercic
7035b923bc Merge remote-tracking branch 'origin/master' into scratch/split-package.el 2025-08-16 16:22:24 +02:00
Philip Kaludercic
65000280ac Move 'package-installed-p' to package-core
* lisp/package/package-install.el (package-installed-p): Remove
function from here...
* lisp/package/package-core.el (package-installed-p): ...to
here.  This check can be done without using any functionality
needed to actually install a package.
2025-08-16 16:20:47 +02:00
Sean Whitton
d4c9f08f26 vc-test--with-author-identity: Handle Mercurial
* test/lisp/vc/vc-tests/vc-tests.el (vc-hg-global-switches):
Declare.
(vc-test--with-author-identity): Handle Mercurial.
2025-08-16 14:12:04 +01:00
Sean Whitton
78d569e524 * lisp/vc/vc-hg.el (vc-hg-checkin): Fix on MS-Windows (bug#79024). 2025-08-16 14:12:04 +01:00
Sean Whitton
18b87fab35 ; vc-git-command, vc-hg-command: Comments about MS-Windows encoding. 2025-08-16 12:58:22 +01:00
Eli Zaretskii
eb8d0d7afe Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2025-08-16 14:41:41 +03:00
Eli Zaretskii
4983985b80 ; Fix last change (bug#77544)
* lisp/whitespace.el (whitespace-style): Bump :version.  Doc fix.
(whitespace-page-delimiter): Add :version.
(whitespace-page-delimiters-mode): Doc fix.
2025-08-16 14:40:39 +03:00
Michael Albinus
3516479b58 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2025-08-16 13:37:04 +02:00
Michael Albinus
25380c8e14 Merge from origin/emacs-30
964741d40e * lisp/net/tramp-sh.el (tramp-get-remote-touch): Simplify.
6a018a2d7e Improve use of "touch" in Tramp
2025-08-16 13:35:53 +02:00
Michael Albinus
cb32d5ef59 ; Merge from origin/emacs-30
The following commit was skipped:

4a3b6daf76 Sync with Tramp 2.7.4-pre
2025-08-16 13:35:52 +02:00
Michael Albinus
4cb84d3a78 Merge from origin/emacs-30
f8a206937c executable-interpret: Handle remote file names
c17168ebed ; * admin/make-tarball.txt: Fix typo and add details.
2025-08-16 13:35:50 +02:00
Michael Albinus
8a6fdffed2 ; Merge from origin/emacs-30
The following commit was skipped:

34f35407eb Bump Emacs version to 30.2.50
2025-08-16 13:35:48 +02:00
Michael Albinus
8700cd24ca Merge from origin/emacs-30
636f166cfc ; * make-dist: Include ELisp hierarchy diagram in tarball...
2025-08-16 13:35:47 +02:00
Michael Albinus
cf45a3fd79 ; Merge from origin/emacs-30
The following commit was skipped:

1514695b7d ; Update lisp/ldefs-boot.el.  Do not merge to master.
2025-08-16 13:35:45 +02:00
Michael Albinus
ea1157f68f Merge from origin/emacs-30
8960e3af81 Update files for Emacs 30.2
ebeca61755 * admin/admin.el (set-version): Fix handling of official ...
2025-08-16 13:35:43 +02:00
Michael Albinus
6d95df628c ; Merge from origin/emacs-30
The following commit was skipped:

8ddef0ad4d Bump Emacs version
2025-08-16 13:35:42 +02:00
Michael Albinus
839f416de7 Merge from origin/emacs-30
49d64bfb1a ; * etc/NEWS: Update for Emacs 30.2.
4b90b6e7ce ; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fi...
2025-08-16 13:35:00 +02:00
Elías Gabriel Pérez
997461f484 whitespace-mode: New style to prettify page delimiters characters.
This new style for 'whitespace-style' displays the page
delimiter characters "^L" as pretty horizontal lines.  (Bug#77544)

This also add a new minor mode to toggle these visualization.

* lisp/whitespace.el (whitespace-style): Add page-delimiters
option.
(whitespace-page-delimiter): New face.
(whitespace--page-delimiters-keyword): New variable.
(whitespace-page-delimiters-mode): New minor mode.
(whitespace-style-face-p, whitespace-color-on): Rework for
display the page-delimiters.
2025-08-16 14:34:10 +03:00
Eli Zaretskii
5124157263 ; * lisp/minibuffer.el (completion-eager-update): Doc fix. 2025-08-16 14:28:42 +03:00
Spencer Baugh
4d90bdb385 Add support for updating *Completions* as you type
Add support for updating the *Completions* buffer as you type,
controlled by a new completion metadata symbol 'eager-update'
and a new defcustom 'completion-eager-update'.

You can configure a completion category to update *Completions*
as you type by setting 'completion-category-overrides'
appropriately; or set 'completion-eager-update' to t to always
update *Completions* as you type.

This is similar to the recently added 'completion-eager-display'.

* lisp/minibuffer.el (completion-eager-update): Add new
defcustom defaulting to 'auto.  (Bug#77649)
(completion--eager-update-p, completions--background-update)
(completions--post-command-update): Add.
(completions--after-change): Call
'completions--post-command-update' via 'post-command-hook'.
(minibuffer-completion-help): Check 'completion-eager-update'
and install 'completions--after-change'.
(completion-help-at-point): Call 'completion--eager-update-p'
if ONLY-IF-EAGER is non-nil.
* etc/NEWS: Announce completion-eager-update.  Reword the
announcement of 'completion-eager-display' for consistency.
2025-08-16 14:23:26 +03:00
Michael Albinus
964741d40e * lisp/net/tramp-sh.el (tramp-get-remote-touch): Simplify. 2025-08-16 12:59:06 +02:00
Toru TSUNEYOSHI
6a018a2d7e Improve use of "touch" in Tramp
* lisp/net/tramp-sh.el (tramp-get-remote-touch): Set connection
property "touch-h".
(tramp-sh-handle-set-file-times): Use it.
2025-08-16 12:56:09 +02:00
Manuel Giraud
cc37d199b0 Handle 'lexical-binding' cookie in nnrss output
* lisp/gnus/nnrss.el (nnrss-save-server-data)
(nnrss-save-group-data): Add a 'lexical-binding' cookie.
* lisp/gnus/nnrss.el (nnrss-read-server-data)
(nnrss-read-group-data): Allow missing 'lexical-binding' cookie.
(Bug#79199)
2025-08-16 13:49:19 +03:00
Eli Zaretskii
034d755f2f ; * src/process.c (set_proc_thread): Fix assertion. 2025-08-16 13:28:52 +03:00
Michael Albinus
4a3b6daf76 Sync with Tramp 2.7.4-pre
* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.

* lisp/net/tramp-cmds.el (tramp-cleanup-connection):
Use read syntax #' for `tramp-timeout-session',

* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
Set "connected" property in time.

* lisp/net/tramp-sh.el (tramp-timeout-session):
Add ;;;###tramp-autoload cookie.

* lisp/net/tramp.el (tramp-barf-if-file-missing): Do not raise an
error when not connected.  (Bug#78572)
(tramp-file-name-handler): Do not force the backtrace.
(tramp-connectable-p): Check also, whether initial handshake is finished.
(tramp-skeleton-directory-files)
(tramp-skeleton-directory-files-and-attributes)
(tramp-skeleton-set-file-modes-times-uid-gid): Rearrange sending
`file-missing' error.
(tramp-handle-access-file, tramp-handle-unlock-file):
Use `tramp-connectable-p'.
(tramp-skeleton-file-name-all-completions): Filter out "" hits.
(Bug#79173)

* test/lisp/net/tramp-tests.el (project-mode-line-format)
(project-mode-line): Declare.
(tramp-test48-session-timeout): New test.
(tramp-test49-auto-load, tramp-test49-delay-load)
(tramp-test49-recursive-load, tramp-test49-remote-load-path)
(tramp-test50-without-remote-files, tramp-test51-unload): Rename.
2025-08-16 12:26:19 +02:00
Eli Zaretskii
9985e71eb7 ; Stabilize a Windows-specific process-test
* test/src/process-tests.el (process-sentinel-interrupt-event):
Improve stability of results, and show all of the results.
2025-08-16 13:11:19 +03:00
Eli Zaretskii
c93be71e45 Make sure 'make-process' locks the process to the current thread
* src/process.c (set_proc_thread): New function.
(Fset_process_thread, create_process): Use it.
2025-08-16 13:01:01 +03:00
Spencer Baugh
37325ed5a9 Zero fd_callback_info when deleting an fd
.waiting_thread and .thread could be left set to non-NULL values
in a deleted fd_callback_info entry.  These would never be
cleared by e.g. clear_waiting_thread_info since that only clears
fd_callback_info entries up to max_desc.  Clear fd_callback_info
entirely when deleting an entry.

* src/process.c (clear_fd_callback_data): Add.
(delete_write_fd, delete_keyboard_wait_descriptor): Call
clear_fd_callback_data. (bug#79201)
(delete_read_fd): Remove duplicated clearing code.
(deactivate_process): Remove duplicate recompute_max_desc.
2025-08-16 12:51:35 +03:00
Eli Zaretskii
406140df33 ; Skip a process-test that is unreliable on MS-Windows
* test/src/process-tests.el
(process-tests/multiple-threads-waiting): Skip on MS-Windows.
2025-08-16 12:04:59 +03:00
john muhl
ff05a689e3 (diff--font-lock-prettify): Fix fringe width test
* lisp/vc/diff-mode.el (diff--font-lock-prettify):
Use 'window-fringes' instead of the 'left-fringe' frame parameter
since the former returns an integer on both GUI and TTY frames.
2025-08-16 04:59:49 -04:00
Philip Kaludercic
1becd0e95d Move 'pacakge-get-version' to package-core
* lisp/package/package-core.el (package-get-version): Remove the
function.
* lisp/package/package-menu.el (package-get-version): Add the
function to this file, as it doesn't actually depend on any
package-menu state.  It is also useful to have the function
here, as it allows the compiler to only have to (auto-)load this
file when the function is expanded as compile-time.
2025-08-16 10:40:21 +02:00
Eli Zaretskii
01e351de60 Reject non-nil non-number REPEAT in 'run-with-timer'
* lisp/emacs-lisp/timer.el (run-at-time, run-with-timer): Reject
non-nil REPEAT if it is not a non-negative number.  (Bug#79227)
Doc fixes.

* test/lisp/emacs-lisp/timer-tests.el (timer-test-repeat-arg): New
test.
2025-08-16 10:53:12 +03:00
Matthew Tromp
2987022976 Delete overlays from Flymake backends that no longer exist
Fix for bug#78862: previously, when starting eglot, existing flymake
diagnostics in the buffer would persist until flymake was completely
restarted (like by running 'flymake-mode' twice).  This change adds
logic to 'flymake-start' to delete all diagnostics and their overlays
from any backend that is no longer in 'flymake-diagnostic-functions'.
* lisp/progmodes/flymake.el (flymake-start): Remove overlays from
backends that no longer exist.
2025-08-15 17:46:42 +03:00
Eli Zaretskii
764999bd8d ; * lisp/register.el (register-alist, jump-to-register): Doc fix (bug#79243). 2025-08-15 17:40:46 +03:00
Eli Zaretskii
46b22304b0 Update description of buffer-in-register
* doc/lispref/text.texi (Registers): Update register-in-buffer
form.  (Bug#79243)
2025-08-15 13:46:40 +03:00
Juri Linkov
d99354720b ; * test/infra/Dockerfile.emba: Fix warning about casing not matching. 2025-08-14 20:59:15 +03:00
Juri Linkov
0ac3a1f26c New user option 'treesit-enabled-modes' (bug#79180)
* lisp/treesit.el (treesit-enabled-modes): New user option.
* src/treesit.c (treesit-major-mode-remap-alist): New variable.

* lisp/progmodes/c-ts-mode.el:
* lisp/progmodes/csharp-mode.el:
* lisp/progmodes/java-ts-mode.el:
* lisp/progmodes/js.el:
* lisp/progmodes/json-ts-mode.el:
* lisp/progmodes/ruby-ts-mode.el:
* lisp/progmodes/sh-script.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/mhtml-ts-mode.el:
* lisp/textmodes/toml-ts-mode.el:
Add ts-mode mapping to 'treesit-major-mode-remap-alist'
for ts-modes that already have the corresponding non-ts mode
association in 'auto-mode-alist'.

* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode-maybe):
* lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode-maybe):
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode-maybe):
* lisp/progmodes/go-ts-mode.el (go-ts-mode-maybe)
(go-mod-ts-mode-maybe, go-work-ts-mode-maybe):
* lisp/progmodes/heex-ts-mode.el (heex-ts-mode-maybe):
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-maybe):
* lisp/progmodes/php-ts-mode.el (php-ts-mode-maybe):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode-maybe):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode-maybe)
(tsx-ts-mode-maybe):
* lisp/textmodes/markdown-ts-mode.el (markdown-ts-mode-maybe):
* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode-maybe):
Add a wrapper function to 'auto-mode-alist'
for ts-modes that have no corresponding non-ts mode.
Also add a mapping to 'treesit-major-mode-remap-alist'
for the case when a non-ts mode is installed from an external
source to be able to customize it with 'treesit-enabled-modes'.
2025-08-14 19:40:08 +03:00
Zhengyi Fu
f8a206937c executable-interpret: Handle remote file names
* lisp/progmodes/executable.el (executable-interpret): Use
`file-local-name' to get the local file name component from
`buffer-file-name'.  (Bug#79233)

Copyright-paperwork-exempt: yes
2025-08-14 17:08:36 +02:00
Elijah Gabe Pérez
97e2e90519 Fix lua-ts-mode-tests.el
* test/lisp/progmodes/lua-ts-mode-tests.el
(lua-ts-test-auto-close-block-comments): Skip when needed.
2025-08-14 16:29:45 +02:00
Sean Whitton
fb5e6c6bb7 vc-git-modify-change-comment: Bind c-s-f-w for command arguments too
* lisp/vc/vc-git.el (vc-git-modify-change-comment): Bind
coding-system-for-write to locale-coding-system around the call
to vc-git-command on MS-Windows.  The temporary file name could
contain non-ASCII, e.g. the user's username.
2025-08-14 14:56:07 +01:00
Sean Whitton
ea7aee894d vc-buffer-sync-fileset: Reorder some checks for speed (bug#79137)
* lisp/vc/vc.el (vc-buffer-sync-fileset): Check whether a
buffer's file is in one of our directories before checking
whether it exists on disk.  This should mean far fewer system
calls overall (bug#79137).
2025-08-14 14:50:09 +01:00
Eli Zaretskii
c17168ebed ; * admin/make-tarball.txt: Fix typo and add details. 2025-08-14 15:13:07 +03:00
Po Lu
e9800cabff Fix generation of defvars defined by easy-mmode and company in loaddefs.el
* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Restore previously existing
conditions for recursing on macroexpansions when processing
easy-mmode and related macros.
2025-08-14 19:34:28 +08:00
Sean Whitton
02f5a075dc vc-hg-checkin-patch: Fix several issues
* lisp/vc/vc-hg.el (vc-hg-checkin-patch): Use
make-nearby-temp-file.  Protect the async process with
vc-wait-for-process-before-save.  Don't call vc-checkin-hook
here, instead return a (async . #<process>) list so that
vc-finish-logentry does it.
2025-08-14 11:54:33 +01:00
Eli Zaretskii
34f35407eb Bump Emacs version to 30.2.50
* README:
* configure.ac:
* exec/configure.ac:
* java/AndroidManifest.xml.in (Version-code):
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 30.2.50.

* etc/NEWS: Add headers for Emacs 30.2.
2025-08-14 06:46:32 -04:00
Eli Zaretskii
636f166cfc ; * make-dist: Include ELisp hierarchy diagram in tarballs (bug#76441). 2025-08-14 05:04:03 -04:00