1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 23:40:39 -08:00
Commit graph

179554 commits

Author SHA1 Message Date
Michael Albinus
d6a7b0cd33 Tramp code cleanup
* lisp/net/tramp.el (tramp-use-absolute-autoload-file-names)
(tramp-skeleton-file-name-all-completions)
(tramp-parse-auth-sources, tramp-parse-file, tramp-parse-netrc):
* lisp/net/tramp-cache.el (tramp-parse-connection-properties):
* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
Use `seq-uniq'.

* lisp/net/tramp.el (tramp-register-foreign-file-name-handler):
* lisp/net/tramp-fuse.el (tramp-fuse-handle-directory-files):
Use `seq-union'.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test17-insert-directory):
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Use `seq-union'.
(tramp-test42-utf8): Use `seq-uniq' and `tramp-compat-seq-keep'.
2025-09-15 18:26:50 +02:00
Michael Albinus
72c19d0f39 Improve check for netrc tokens
* doc/misc/auth.texi (Help for users): Mention also "#" inside tokens.

* lisp/auth-source.el (auth-source-netrc-create): Better check for
token format.

* test/lisp/auth-source-tests.el (auth-source-backend-parse-json):
New test.
(auth-source-test-netrc-create-secret): Extend test.
2025-09-15 11:43:52 +02:00
Paul Eggert
897d32285f Fix incorrect timezones for London and Paris
Also, replace obsolete city name "Bangalore" with "Delhi",
and improve doc strings.
* lisp/time.el (zoneinfo-style-world-list)
(legacy-style-world-list): Evidently "Bangalore" was chosen for
Asia/Kolkata to avoid confusion about "Calcutta" vs "Kolkata".
However, it has similar confusion with "Bengaluru".
Use "Delhi" instead, as Delhi is larger, its name has not changed
for some time, and proposals to change its name have so far failed.
See: Sharma MS. Vijay Goel wants Delhi renamed as Dilli, but historians
say it will only spell trouble. Times of India. 2019-07-25.
(zoneinfo-style-world-list): Update doc string. “Posix-style” was
ambiguous as TZDB-style strings are specified only by POSIX.1-2024,
so use “TZDB-style” instead. Say “AREA/LOCATION” to be consistent.
If AREA/LOCATION is unsupported, Emacs signals an error on NetBSD
so don’t imply that some other timezone will be used.
(legacy-style-world-list): Remove ("GMT0BST" "London") and ("CET-1CDT"
"Paris"). These are wrong because neither London nor Paris follow
US DST rules.  Instead, use ("GMT0BST,M3.5.0/1,M10.5.0" "London")
and ("CET-1CEST,M3.5.0,M10.5.0/3" "Paris") if they work, and omit
London and Paris entries otherwise.
2025-09-14 10:14:58 -07:00
Eli Zaretskii
04342d3654 * lisp/net/shr.el (shr-tag-sub): Handle BOB (bug#79448). 2025-09-14 18:24:31 +03:00
Andreas Schwab
d37a55c0c8 * lisp/calc/calc.el (calc): Ony substitute binding of
calc-help-prefix after calc-ext has been loaded.
2025-09-14 13:10:08 +02:00
Mattias Engdegård
cb17a8bbf3 Use linear arrays in ispell test to work with old bash
* test/lisp/textmodes/ispell-resources/fake-aspell-new.bash:
Avoid using associative arrays since they are not available
in old bash versions that come with some systems (bug#79177).
2025-09-14 12:40:09 +02:00
Mattias Engdegård
01e7d537b0 ; ispell-tests: use require instead of load 2025-09-14 11:31:53 +02:00
Mattias Engdegård
3300f2f40a ; * test/lisp/dom-tests.el: silence obsoletion warnings 2025-09-14 11:31:53 +02:00
Mattias Engdegård
c2a20f65d3 ; * test/lisp/net/tramp-tests.el: silence function-quoting warning 2025-09-14 11:31:53 +02:00
Eli Zaretskii
dd9f185bf6 ; Improve discoverability of tree-sitter related functionality
* doc/lispref/positions.texi (List Motion):
* doc/lispref/modes.texi (Major Mode Conventions, Major Modes)
(Parser-based Font Lock, Parser-based Indentation): Improve
indexing and cross-references to tree-sitter related stuff.
2025-09-14 09:53:16 +03:00
Eli Zaretskii
0dd6e5f642 Fix gdb-mi startup when asking user about debuginfod
* lisp/progmodes/gdb-mi.el (gdb-init-1): Delay processing of GDB
responses while waiting for the user to answer the question about
enabling debuginfod.  (Bug#79403)
2025-09-14 08:55:44 +03:00
Eli Zaretskii
28fecf40ef ; * lisp/time.el (zoneinfo-style-world-list): Doc fix (bug#437). 2025-09-14 08:22:45 +03:00
Eli Zaretskii
6f9a46f926 Fix 'ucs-normalize' tests following Unciode 17.0 import
* lisp/international/ucs-normalize.el
(ucs-normalize-composition-exclusions): Doc fix.

* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1): Update to _really_
match Unicode 17.0.

* admin/notes/unicode: Update instructions.
2025-09-14 07:34:41 +03:00
James Thomas
7cdaab61c4 (eww-switch-to-buffer): Prefer seq- functions to cl-
* lisp/net/eww.el (eww-switch-to-buffer): Don't reverse the list
of buffers since it doesn't do what we want any way (bug#79084).
2025-09-13 18:27:21 -04:00
Eli Zaretskii
83b623ea3a Fix 'define-globalized-minor-mode' when :variable is used
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Fix a typo (bug#79412).
2025-09-13 22:23:12 +03:00
Eli Zaretskii
fd5d35407a Fix Unicode-related tests
* test/lisp/international/mule-tests.el
(mule-cmds-tests--ucs-names-missing-names): Update no-name regions
of codepoints to Unicode 17.0.

* lisp/international/mule-cmds.el (ucs-names): Fix comments.

* admin/notes/unicode: Update instructions.
2025-09-13 17:52:30 +03:00
Eli Zaretskii
125b3588c9 Merge from origin/emacs-30
4745456677 ; * lisp/dired-x.el (dired-find-subdir): Doc fix (bug#794...
0832e5fec5 ; * lisp/vc/vc.el (vc-print-root-log): Improve docstring ...
2fafcdbf6a ; Minor copyedits in src/editfns.c
2025-09-13 07:23:12 -04:00
Eli Zaretskii
4745456677 ; * lisp/dired-x.el (dired-find-subdir): Doc fix (bug#79440). 2025-09-13 13:47:04 +03:00
James Thomas
0832e5fec5 ; * lisp/vc/vc.el (vc-print-root-log): Improve docstring (bug#79439). 2025-09-13 13:37:13 +03:00
Vincenzo Pupillo
abfd8a454a Add support for PHP 8.5 in 'php-ts-mode.el'
* lisp/progmodes/php-ts-mode.el: Doc string update.
(php-ts-mode--language-source-alist): PHP grammar update.
(php-ts-mode-find-sibling-rules): Doc string fix.
(php-ts-mode--parent-html-heuristic): Handled the case where there
is no HTML between two blocks of PHP code.
(php-ts-mode--array-element-heuristic): Fix typo.
(php-ts-mode--pipe-heuristic): New function that handle PHP's new
pipe operator.
(php-ts-mode--indent-styles): Removed commented code.  More
accurate indentation of ‘member_call_expression’.  Use of new
function to handle pipe operator indentation.  New rule for
indenting ‘property_hook_list’.
(php-ts-mode--test-yield-from-p): New predicate to check whether
the 'yield from' keyword is supported by the PHP grammar.
(php-ts-mode--test-pipe-p): New predicate to check whether the
‘pipe’ operator is supported by the PHP grammar.
(php-ts-mode--keywords): Use the new predicate
'php-ts-mode--test-yield-from-p'.  Now it is a var instead of a
const.
(php-ts-mode--operators): Use the new predicate
'php-ts-mode--test-pipe-p'.  Now it is a var instead of a const.
(php-ts-mode--font-lock-settings): New rules for
'nullsafe_member_access_expression', 'callable' primitive type.
New rule for the 'php_end_tag' if supported by the grammar.
More precise rules for 'scoped_call_expression' and
'member_call_expression'.
(php-ts-mode--inferior-php-process): Removed this unnecessary
variable.
(inferior-php-ts-mode-startup): Removed the use of
'php-ts-mode--inferior-php-process'.
(php-ts-mode-inferior--write-history): Removed the use of
'php-ts-mode--inferior-php-process'.
(Bug#79339)
2025-09-13 12:41:55 +03:00
Eli Zaretskii
d02181e39f ; * lisp/emacs-lisp/ring.el (ring-convert-sequence-to-ring): Bug#79330. 2025-09-13 12:06:35 +03:00
Eli Zaretskii
92fa2b60c6 Fix 'kill-region' when buffer has been changed outside of Emacs
* lisp/subr.el (read-char-choice): Let-bind 'last-command' to
prevent it from being overwritten by 'recursive-edit'.
(Bug#79388)
2025-09-13 11:56:15 +03:00
Alcor
4d91665367
Fix parsing single-digit color codes in rcirc
* lisp/net/rcirc.el (rcirc-color-attributes)
(rcirc-remove-markup-codes): Handle single-digit color codes correctly.
2025-09-13 10:45:41 +02:00
Spencer Baugh
603a685ad1 Allow disabling of reloading files on doc read failure
Reloading a byte-compiled file when we fail to fetch some
docstring in it is not guaranteed to work and can cause
subtle bugs which are worse than simply not having a
docstring.  Add 'documentation-dynamic-reload' variable to
allow disabling this behavior.  See the discussion in
https://lists.gnu.org/archive/html/emacs-devel/2025-08/msg00304.html
for more details.
* src/doc.c (syms_of_doc): Add 'documentation-dynamic-reload'.
(Fdocumentation, Fdocumentation_property): Check value of
'documentation-dynamic-reload'.
2025-09-13 10:33:20 +03:00
Michael Albinus
9430638e48 * lisp/comint.el (comint-password-prompt-regexp): Join two entries. 2025-09-13 09:22:26 +02:00
Andre A. Gomes
fe9b1fa014 Make comint understand SSH proxy password phrases
* lisp/comint.el (comint-password-prompt-regexp):
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Add SSH proxy password phrase.  (Bug#79424)
2025-09-13 09:16:25 +02:00
Michael Albinus
bfeffc4436 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2025-09-12 16:49:40 +02:00
Michael Albinus
59c7ee29dc ; Fix last change
* test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el:
* test/lisp/textmodes/ispell-tests/ispell-tests.el: Fix declare-function.
2025-09-12 16:49:08 +02:00
Sean Whitton
4418a37c5d ; log-edit.el: Insert missing required cl-lib. 2025-09-12 15:41:38 +01:00
Sean Whitton
2ee74aca55 Delete obsolete log-edit-beginning-of-line
* lisp/vc/log-edit.el (message): No longer require.
(log-edit-beginning-of-line): Delete.  No longer required now
that Log Edit buffers use fields for headers.  (In combination
with the new fields, this binding led to C-a behaving strangely
for summaries with colons in them.)
(log-edit-mode-map): Unbind it.
2025-09-12 15:40:35 +01:00
Sean Whitton
85b991a62d ; vc-git--log-edit-summary-check: Use and-let*. 2025-09-12 15:32:19 +01:00
Sean Whitton
2817720083 ; vc-prepare-patch: Minor code improvements
* lisp/vc/vc.el (vc-prepare-patch): Use ngettext.  Avoid using
dolist's RESULT for side-effect.
2025-09-12 15:31:56 +01:00
Sean Whitton
1372061200 ; vc-diff-outgoing: Fix calling 'working-revision' backend function. 2025-09-12 15:26:44 +01:00
Michael Albinus
1b4e4fda5e Fix last change
* test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el:
* test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el:
* test/lisp/textmodes/ispell-tests/ispell-international-ispell-tests.el:
* test/lisp/textmodes/ispell-tests/ispell-tests.el: Fix load argument.
2025-09-12 16:18:26 +02:00
Lockywolf
4846ec4871 Add tests to ispell.el interactive functions
* lisp/textmodes/ispell.el (ispell-accept-output): Fix variable init.

* test/lisp/textmodes/ispell-resources/fake-aspell-new.bash:
Update mock aspell to be able to serve all tests.

* test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el:
(ispell/aspell/ispell-word/english/correct): Implement.
(ispell/aspell/ispell-word/english/incorrect): Implement.
(ispell/aspell/ispell-word/english/wrong-language): Implement.

* test/lisp/textmodes/ispell-tests/ispell-hunspell-tests.el
Fix byte compilation errors.

* test/lisp/textmodes/ispell-international-ispell-tests.el
Fix byte compilation errors.

* test/lisp/textmodes/ispell-tests/ispell-tests-common.el
(with-ispell-global-dictionary): Implement a macro to
set and restore ispell.el's global dictionary.

* test/lisp/textmodes/ispell-tests/ispell-tests.el:
(ispell/ispell-buffer-local-words/ispell-words-keyword): Fix CI run.
(ispell/ispell-accept-buffer-local-defs/simple): Fix skip condition.
(ispell/ispell--run-on-word/default): Fix skip condition.
(ispell/ispell-word/default/check-only/correct): Fix global variable.
(ispell/ispell-word/default/check-only/correct/add-init): Fix
global variable.
(ispell/ispell-word/default/check-only/incorrect): Fix skip condition.
(ispell/ispell-region/incorrect): Fix postcondition.
(ispell/ispell-call-process/simple): Fix emacs path.
(ispell/ispell-call-process/simple-writable): Fix emacs path.
(ispell/ispell-call-process-region/cat-empty): Fix emacs path.
(ispell/ispell-call-process-region/cat-random): Fix emacs path.
(ispell/ispell-kill-ispell): Implement.
(ispell/ispell/buffer): Implement.
(ispell/ispell/region): Implement.
(ispell/ispell-change-dictionary): Implement.
(ispell/ispell-comments-and-strings/correct): Implement.
(ispell/ispell-comments-and-strings/incorrect): Implement.
(ispell/ispell-comment-or-string-at-point): Implement.
(ispell/ispell-pdict-save): Implement.
(ispell/ispell-pdict-save/force): Implement.
(ispell/ispell-pdict-save/modified): Implement.
(ispell/ispell-pdict-save/unmodified): Implement.
(ispell/ispell-lookup-words/simple): Implement.
(ispell/ispell-complete-word/ispell-completion-at-point): Implement.
(ispell/ispell-complete-word-interior-frag/simple): Implement.
(ispell/ispell-minor-mode/simple): Implement.
(ispell/ispell-message/correct): Implement.
(ispell/ispell-message/incorrect): Implement.
2025-09-12 16:02:48 +02:00
Eli Zaretskii
307405a72c Add new scripts to the default fontset
* lisp/international/fontset.el (setup-default-fontset): Add 4
scripts new in Unicode 17.0.
2025-09-12 16:08:40 +03:00
Michael Albinus
c90536efe8 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2025-09-12 12:44:34 +02:00
Liu Hui
e41eae39ad Tramp: Refactor environment variable filtering to a separate function
* lisp/net/tramp.el (tramp-local-environment-variable-p):
New function.  (Bug#79413)
(tramp-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
(tramp-sh-handle-process-file):
* lisp/net/tramp-androidsu.el
(tramp-androidsu-handle-make-process):
Use `tramp-local-environment-variable-p'.
2025-09-12 12:43:54 +02:00
Philip Kaludercic
4c27866df9
; * lisp/emacs-lisp/timeout.el: Bump version header to 2.1
This is done to reflect the same version as in the upstream
repository, thus avoiding accidental upgrades:

6d31046c5b
2025-09-12 12:35:56 +02:00
Michael Albinus
26ad23addb Introduc auth-source-ignore-non-existing-file
* lisp/auth-source.el (auth-source-ignore-non-existing-file):
Rename it from `auth-source-ignore-empty-file'.
(auth-source-backends-parser-file): Use it.

* doc/misc/auth.texi (Help for users):
* etc/NEWS:
* test/lisp/auth-source-tests.el (auth-source-validate-backend)
(auth-source-test-netrc-create-secret):
Use `auth-source-ignore-non-existing-file'.
2025-09-12 12:29:30 +02:00
Michael Albinus
43f507f430 Minor edits in tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards)
(tramp-test26-interactive-file-name-completion):
Prefer #'string-lessp over 'string<.
(tramp--test-ange-ftp-p, tramp-test47-read-password)
(tramp-test47-read-otp-password): Use function read syntax.
2025-09-12 12:21:48 +02:00
Mattias Engdegård
464216ca73 ; even less test log spam from load 2025-09-12 10:41:43 +02:00
Philip Kaludercic
0bf5898f20
Update timeout to 2f3ebb53
See https://github.com/karthink/timeout/commit/f3ebb5.
2025-09-11 23:25:46 +02:00
Eli Zaretskii
1d6ec2a040 ; * etc/NEWS: Fix last change. 2025-09-11 19:30:19 +03:00
Eli Zaretskii
5579d32a41 Update to Unicode 17.0
* test/manual/BidiCharacterTest.txt:
* admin/unidata/BidiBrackets.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/IVD_Sequences.txt:
* admin/unidata/IdnaMappingTable.txt:
* admin/unidata/NormalizationTest.txt:
* admin/unidata/PropertyValueAliases.txt:
* admin/unidata/ScriptExtensions.txt:
* admin/unidata/Scripts.txt:
* admin/unidata/SpecialCasing.txt:
* admin/unidata/UnicodeData.txt:
* admin/unidata/confusables.txt:
* admin/unidata/emoji-data.txt:
* admin/unidata/emoji-sequences.txt:
* admin/unidata/emoji-test.txt:
* admin/unidata/emoji-variation-sequences.txt:
* admin/unidata/emoji-zwj-sequences.txt: Import from Unicode 17.0.

* etc/NEWS:
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1)
(ucs-normalize-tests--failing-lines-part2):
* lisp/international/mule-cmds.el (ucs-names):
* lisp/international/fontset.el (script-representative-chars)
(otf-script-alist):
* lisp/international/characters.el:
* admin/unidata/blocks.awk: Update for Unicode 17.0.
2025-09-11 18:00:42 +03:00
Stefan Monnier
569fa594e2 Rearrange tramp.el in order to avoid bootstrap problems
* lisp/net/tramp.el (tramp-compat, tramp-message)
(tramp-integration, trampver): Require them later.
(top): Use `eval-and-compile' modifying `macro-declarations-alist'.
(tramp-register-file-name-handlers): Don't fail during bootstrap
before `tramp-loaddefs.el' is built.
2025-09-11 12:26:47 +02:00
Stefan Monnier
2954234f8f (scheme-mode-variables): Fix bug#79282
* lisp/progmodes/scheme.el (scheme-mode-variables): Re-install
`lisp-font-lock-syntactic-face-function` mistakenly removed
in commit 0a5cfeeecb.
2025-09-10 19:05:15 -04:00
Mattias Engdegård
d859ac4183 Make bytecomp-tests cease warn and error to stdout
They were caused by compilation errors going to 'display-warning'
which prints a duplicate of the message to stdout when running
noninteractively.

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--log-warning-for-byte-compile)
(bytecomp-tests--with-warnings): New.  Wrap around compilation calls in
this file.
2025-09-10 14:35:48 +02:00
Mattias Engdegård
f4d0a2560a Remove unused and broken source inline code path
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): We can
assume that non-compiled functions are from another file at this point
and remove an unused code branch which didn't actually work with
interpreted function objects anyway.
2025-09-10 12:11:53 +02:00
Stefan Monnier
014036980e ; * lisp/net/tramp-compat.el (top): Use read syntax #' for `functionp'. 2025-09-10 11:13:45 +02:00