1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

174891 commits

Author SHA1 Message Date
Eli Zaretskii
1224e5fd96 ; * lisp/files.el (revert-buffer-restore-functions): Doc fix (bug#78124). 2025-04-29 21:28:01 +03:00
Eli Zaretskii
79e7eeb329 ; Improve documentation of 'format-time-string'
* doc/lispref/os.texi (Time Parsing): Fix documentation of week
numbers for %U, %V and %W.  (Bug#78096)
2025-04-29 11:19:19 +03:00
Eli Zaretskii
2838b64fc8 ; * lisp/textmodes/text-mode.el (text-mode-variant): Fix last change. 2025-04-29 10:47:35 +03:00
Eli Zaretskii
9adb05422e ; Improve obsolescence of 'text-mode-variant'
* lisp/textmodes/text-mode.el (text-mode-variant): Improve
obsolescence announcement text.

* doc/lispref/modes.texi (Example Major Modes): Update example.
(Bug#78125).
2025-04-29 10:09:54 +03:00
Eli Zaretskii
4858d81848 ; * lisp/files.el (revert-buffer-restore-functions): Doc fix. 2025-04-29 09:39:34 +03:00
Eli Zaretskii
2a8e223b8d ; Mention early-init file in Emacs FAQ for Windows
* doc/misc/efaq-w32.texi (Location of init file, Init file):
Mention the early-init file.  Suggested by David Hedlund
<davidh@gnu.org>.
2025-04-29 09:05:28 +03:00
Jake Forster
14c707b42d ; Isearch: Fix key bindings in docstrings
* lisp/isearch.el (isearch-allow-motion)
(isearch-motion-changes-direction): Use isearch-mode-map for
commands in docstrings (bug#78118).

Copyright-paperwork-exempt: yes
2025-04-29 09:10:30 +08:00
Po Lu
aa1b55d521 Fix the Android build
* java/README.res: Move from java/res/README, as the AAPT does
not permit non-resource files in resource directories.
2025-04-27 21:08:48 +08:00
Eli Zaretskii
d394cd73d1 Avoid infinite recursion under 'rectangle-mark-mode'
* lisp/rect.el (rectangle--region-beginning)
(rectangle--region-end): Avoid infinite recursion.  Patch by Alcor
<alcor@tilde.club>.  Do not merge to master.  (Bug#77973)
2025-04-27 10:08:38 +03:00
Sean Whitton
b5967dda32 ; * doc/misc/ert.texi (Introduction): Be more Lisp-specific. 2025-04-27 11:59:17 +08:00
Sean Bright
be4819bd57 Include additional version metadata during Windows install
* admin/nt/dist-build/emacs.nsi: Add DisplayIcon, DisplayVersion, and
  Publisher values to the Uninstall registry key.

Copyright-paperwork-exempt: yes
2025-04-26 14:21:21 -05:00
Stephen Gildea
1f520db97b * doc/emacs/files.texi (Time Stamp Customization): Typo. 2025-04-25 18:37:39 -07:00
Sean Whitton
d824b66c24 ; * doc/emacs/search.texi (Isearch Yank): Improve flow. 2025-04-24 20:38:51 +08:00
Sean Whitton
62b284f915 ; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard. 2025-04-24 20:15:50 +08:00
Eli Zaretskii
49ea1f64c7 ; Improve documentation of 'modifier-bar-mode'
* doc/emacs/custom.texi (Modifier Keys):
* doc/emacs/frames.texi (Tool Bars):
* lisp/tool-bar.el (modifier-bar-mode): Improve documentation of
'modifier-bar-mode'.
2025-04-24 12:32:02 +03:00
Eli Zaretskii
a975232c0f ; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021). 2025-04-24 12:07:56 +03:00
Eli Zaretskii
29142dab31 ; * doc/misc/efaq-w32.texi (MinGW-w64): Fix punctuation (bug#78005). 2025-04-23 16:18:26 +03:00
Sean Whitton
4cd4a801d8 ; * java/res/README: Note origin of emacs_wrench.png. 2025-04-20 09:22:06 +08:00
Spencer Baugh
cc52c1e1d0 Backport: fix flymake margin indicator fallback logic
Backport 861e7f8b60 to fix bug#77313, so
that fringe indicators are once again reliably the default on frames
that support them.

Do not merge to master.

* lisp/progmodes/flymake.el (flymake-indicator-type)
(flymake-mode): Fix margin fallback behavior.
2025-04-19 17:37:40 +03:00
Michael Albinus
2a45f0bceb * lisp/progmodes/heex-ts-mode.el (heex-ts): Fix :group name. 2025-04-19 09:41:58 +02:00
Konstantin Kharlamov
9750333dde
Fix typescript-ts-mode indentation (bug#77803)
Don't align variable names to their declaratory expression.

Before this commit in code like:

    const a = 1,
          b = 2;

the b would get indented to `const'.  Similarly for `var' and
`let'. The expected behavior instead is getting indented to
`typescript-ts-mode-indent-offset'.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Indent identifiers declarations to
`typescript-ts-mode-indent-offset'.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
(Lexical and variable declarations): Update test accordingly.
2025-04-18 16:40:06 -07:00
Yuan Fu
ef8bfe90b7
Handle offset in treesit--update-ranges-local (bug#77848)
* lisp/treesit.el:
(treesit--update-ranges-local): Add OFFSET parameter.
(treesit-update-ranges): Pass offset to
treesit--update-ranges-local.
2025-04-18 16:24:11 -07:00
kobarity
4dcd66abd5 Disable echo back instead of setting tty to raw in Inferior Python
* lisp/progmodes/python.el (python-shell-setup-code): Change the
Python setup code.  (Bug#76943)

(cherry picked from commit 4c5c20ddc2)
2025-04-18 14:53:20 +02:00
Eli Zaretskii
01d4eb3dd4 ; Improve doc string of 'insert-char'
* src/editfns.c (Finsert_char): Doc fix.  Suggested by Lactose ‎
<lactose@allthingslinux.org> (bug#77889).
2025-04-18 14:10:19 +03:00
Michael Albinus
93ad8407ed * admin/notes/emba: Fix docker build instruction. 2025-04-18 09:31:54 +02:00
Sean Whitton
b901290ae7 * doc/lispref/text.texi (Margins): Grammar fix.
Author:
2025-04-18 14:31:50 +08:00
Eli Zaretskii
16855c89dd Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2025-04-18 08:03:48 +03:00
Eli Zaretskii
275712a18c ; Improve documentation of 'help-fns-edit-variable'
* lisp/help-fns.el (help-fns-edit-variable)
(help-enable-variable-value-editing): Doc fixes.

(cherry picked from commit bf737dc42a)
2025-04-16 11:14:57 +03:00
Michael Albinus
8792d3431b Backport: Fix tree-sitter tests on Emba
* test/infra/Dockerfile.emba: Use tree-sitter-rust v0.23.3 in
order to match ABI version of libtree-sitter0.

(cherry picked from commit 788c9cfb62)
2025-04-16 10:14:25 +02:00
Eli Zaretskii
2b535a9c77 ; Improve documentation of some functions in files-x.el
* lisp/files-x.el (modify-file-local-variable)
(modify-file-local-variable-prop-line)
(add-file-local-variable-prop-line)
(delete-file-local-variable-prop-line, add-file-local-variable)
(delete-file-local-variable): Document the effect of INTERACTIVE
argument.
2025-04-15 16:58:50 +03:00
Wojciech Siewierski
45cf832ac7 Fix deleting the first line of calc trail
* lisp/calc/calc-trail.el (calc-trail-kill): Remove the check
preventing the removal of the first trail line, which is no
longer relevant since commit 8e1376a391.  (Bug#77816)
2025-04-15 11:56:44 +03:00
Po Lu
74e25c9413 Fix file descriptor leaks on arm Android
* exec/loader-aarch64.s (_start):

* exec/loader-armeabi.s (_start): Fix thinko.
Do not merge to master.
2025-04-13 19:02:04 +08:00
Eli Zaretskii
22b646efe3 ; Fix a typo in proced.el
* lisp/proced.el (proced-filter): Fix a typo.  Reported by Armin
Darvish <armindarvish@gmail.com>.  (Bug#77713)

(cherry picked from commit 3a13fb2069)
2025-04-13 12:39:13 +03:00
Stefan Monnier
1741812535 lisp/help.el (help-form-show): Improve last change (bug#77118)
Fill the buffer from within the `with-output-to-temp-buffer`, as before.
2025-04-12 11:11:38 -04:00
Stephen Berman
d3c39fb522 Fix display of keys in 'help-form' buffers (bug#77118)
* lisp/help.el (help-form-show): Use 'insert' instead of 'princ'
so that keys in 'help-form' are displayed with 'help-key-binding' face.
2025-04-12 12:01:50 +02:00
Eli Zaretskii
6509cc20a9 Improve documentation of 'user-emacs-directory'
* doc/emacs/custom.texi (Find Init): Document the effect of
'user-emacs-directory' on native compilation.  Advise against
changing the value of 'user-emacs-directory' in init files.
(Bug#77745)
2025-04-12 09:52:04 +03:00
Sean Whitton
3f06059730 Update remarks on name prefixes in coding conventions
* doc/lispref/tips.texi (Coding Conventions): Say that it's okay
to put the name prefix later for defining constructs, rather
than explicitly instructing the reader to do so.  Condense the
recommendation to err on the side of prepending the name prefix.
2025-04-12 11:05:45 +08:00
Eli Zaretskii
e966ff9759 ; * doc/emacs/files.texi (Image Mode): Fix a typo (bug#77723). 2025-04-11 11:33:26 +03:00
Eli Zaretskii
378bea99b1 ; Fix doc strings of a few Dired commands
* lisp/dired-aux.el (dired-do-chown, dired-do-touch)
(dired-do-chgrp, dired-do-chmod): Doc fix.  (Bug#77650)
2025-04-09 14:25:29 +03:00
Jeremy Bryant
30fb2ac07a ; * CONTRIBUTE: Clarify single-line commit should end with a period. 2025-04-08 13:43:16 +03:00
Sean Whitton
417d14a95e ; * admin/MAINTAINERS: Complete the handover of VC
Changed agreed with Dmitry Gutov <dmitry@gutov.dev>.
2025-04-06 19:03:41 +08:00
Michael Albinus
bb756b195a ; Fix typo in Tramp
* lisp/net/tramp-cache.el (with-tramp-saved-connection-property):
Fix typo.
2025-04-06 09:11:06 +02:00
Eli Zaretskii
684adc07c2 ; Fix a recent backport
* lisp/progmodes/typescript-ts-mode.el
(treesit-node-child-by-field-name, treesit-node-match-p)
(treesit-node-type): Declare.  Do not merge to master.
2025-04-05 15:09:20 +03:00
Michael Albinus
99d70ce6c2 Fix Tramp problem with loooongish file names
* lisp/net/tramp-sh.el (tramp-readlink-file-truename): New defconst.
(tramp-bundle-read-file-names): Use new %m and %q format specifiers.
(tramp-sh-handle-file-truename): Use `tramp-readlink-file-truename'.
(tramp-bundle-read-file-names, tramp-get-remote-readlink): Simplify.
(tramp-expand-script): Add format specifiers %m and %q for test
commands.  Addapt readlink call.
Reported by Stacey Marshall <stacey.marshall@gmail.com>.
2025-04-04 14:29:00 +02:00
Yuan Fu
9869aa1a10
Tighten the criteria for a defun in typescript-ts-mode (bug#77369)
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--defun-type-regexp): New
variable (backported from master).
(typescript-ts-mode--defun-predicate): New function.
(typescript-ts-base-mode): Use new predicate.
2025-04-03 16:51:26 -07:00
Stephen Berman
ae7f65f3f9 Fix obsolete documentation of desktop library
* doc/emacs/misc.texi (Saving Emacs Sessions): Replace
documentation of the long-deleted user option
'desktop-clear-preserve-buffers-regexp' with documentation of
'desktop-clear-preserve-buffers'.
2025-04-03 16:53:35 +02:00
Michael Albinus
fd5f817882 Improve Tramp's initial warnings
* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Adapt comment.

* lisp/net/tramp-compat.el (tramp-warning): Declare and use it.

* lisp/net/tramp-message.el (tramp-warning): Declare `indent'.
2025-04-03 14:57:06 +02:00
Michael Albinus
1e865a2f28 Explain, how to suppress Tramp warnings
* doc/misc/tramp.texi (Frequently Asked Questions): Remove double item.
(Traces and Profiles): Mention `warning-suppress-types'.  (Bug#77422)
2025-04-02 18:37:22 +02:00
Stephen Gildea
a096207474 printed manuals: xrefs in and out of "Preparing Patches"
Fix two cases of links where the on-line manual is one document but the
manual is split into separate documents for printing:

* doc/emacs/package.texi (Fetching Package Sources): fix printed link to
"Preparing Patches" to point to separate document.
* doc/emacs/vc1-xtra.texi (Preparing Patches): fix printed link to
"Directory Variables" to point to separate document.
2025-04-01 09:02:08 -07:00
Michael Albinus
3f9ac99fc7 Fix Tramp's file-attributes cache
* lisp/net/tramp-adb.el (tramp-adb-handle-file-executable-p):
Check also for sticky bit.
(tramp-adb-handle-file-readable-p): Simplify.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-executable-p):
Check also for sticky bit.  Force `file-attributes' check.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-executable-p):
Check also for sticky bit.
(tramp-sh-handle-file-readable-p)
(tramp-sh-handle-file-writable-p): Simplify.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-executable-p):
Check also for sticky bit.
(tramp-sudoedit-handle-file-readable-p)
(tramp-sudoedit-handle-file-writable-p): Simplify.

* lisp/net/tramp.el (tramp-use-file-attributes): Fix docstring.
(tramp-handle-file-readable-p, tramp-handle-file-writable-p):
Force `file-attributes' check.  Use `file-truename' for symbolic links.
(tramp-check-cached-permissions): New optional argument FORCE.
Fix symlink check.  Check also for sticky bit.  (Bug#77402)

* test/lisp/net/tramp-tests.el
(tramp-test20-file-modes-without-file-attributes)
(tramp-test21-file-links-without-file-attributes): New tests.
2025-04-01 15:24:44 +02:00