Commit graph

174465 commits

Author SHA1 Message Date
Eli Zaretskii
e14007ad63 Update MS-Windows build instructions
* nt/INSTALL.W64:
* nt/README.W32: Update the name of the MSYS2 libtree-sitter
distribution.  Reported by Nerd <hiweedmandriva3@163.com>.
(Bug#74429)
2024-11-23 15:05:17 +02:00
Laurence Warne
74a972cace Skip proced refine tests on Darwin
* test/lisp/proced-tests.el (proced-refine-test)
(proced-refine-with-update-test): Skip if the system is Darwin.
2024-11-22 09:36:31 +01:00
Eli Zaretskii
c50ce03afc ; Fix recent additions to the manuals
* doc/lispref/objects.texi (Type Specifiers):
* doc/lispref/functions.texi (Declare Form):
* doc/emacs/help.texi (Name Help): Fix wording and markup.
(Bug#73626)
2024-11-21 17:47:22 +02:00
Andrea Corallo
c818c5bbaf ; * lisp/term/w32-win.el (tree-sitter--library-abi): Declare to rm warning. 2024-11-21 16:09:09 +01:00
Andrea Corallo
b71d3b2f52 ; Better clarify function types in C-h f (bug#73626)
* doc/emacs/help.texi (Name Help): Better clarify function types.
2024-11-21 15:39:27 +01:00
Andrea Corallo
59b3eae481 ; Introduce type specifiers to the elisp manual (bug#73626)
* doc/lispref/objects.texi (Programming Types): Add 'Type Specifiers' entry.
(Type Specifiers): Add node.
* doc/lispref/functions.texi (Declare Form): Add 'Type Specifiers'
reference.
2024-11-21 15:38:15 +01:00
Eli Zaretskii
83fc3cf53a Future-proof loading tree-sitter library on MS-Windows
* src/treesit.c (syms_of_treesit) <tree-sitter--library-abi>: New
internal variable.

* lisp/term/w32-win.el (dynamic-library-alist): Use
'tree-sitter--library-abi' to select a proper libtree-sitter DLL
version.
2024-11-21 14:55:38 +02:00
Eli Zaretskii
3eb3018682 ; Improve documentation of 'category' in display-buffer actions
* doc/lispref/windows.texi (Choosing Window)
(Buffer Display Action Alists): Add cross-references.
* doc/lispref/buffers.texi (Buffer List):

* lisp/subr.el (buffer-match-p): Improve documentation of
'category' condition.  (Bug#74361)
2024-11-21 12:28:26 +02:00
Eli Zaretskii
4d80c4f485 ; More accurate documentation of 'set-mark-command'
* doc/emacs/mark.texi (Setting Mark, Global Mark Ring): Explain
that activating an existing mark doesn't set a new mark, and
doesn't push the mark onto the global mark ring.  (Bug#74438)
2024-11-21 11:47:07 +02:00
Eli Zaretskii
70dd5705e1 Fix overriding 'c-ts-mode' by 'c-mode'
* lisp/progmodes/c-ts-mode.el: Remove all c- and c++-mode
associations from 'major-mode-remap-defaults' before installing
entries that remap to 'c-ts-mode' and 'c++-ts-mode'.  (Bug#74339)
2024-11-21 09:43:34 +02:00
Eli Zaretskii
331610aef0 ; Improve vc-dir help-echo
* lisp/vc/vc-git.el (vc-git-stash-shared-help)
(vc-git-stash-list-help, vc-git-stash-menu-map): Improve help-echo
text.
2024-11-18 21:25:18 +02:00
Eli Zaretskii
9c484d5101 ; Avoid assertion violations in "temacs -Q"
* src/lread.c (build_load_history): Use Fequal to compare strings.
2024-11-18 20:54:15 +02:00
Stefan Monnier
8dc9dfdc38 lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration
See bug#74367.
2024-11-18 10:10:00 -05:00
Martin Rudalics
426bce8a67 ; In PROBLEMS mention issue with .Xresources on Gnome desktop (Bug#73244)
* etc/PROBLEMS: Mention issue with specifying frame size in
.Xresources when running Emacs on Gnome desktop (Bug#73244).
2024-11-16 17:30:29 +01:00
F. Jason Park
6036e0dadf Backport: Don't autoload erc-modules
* doc/misc/erc.texi (Modules): Recommend using `describe-variable'
instead of `customize-option' because the latter needs the symbol to be
loaded.
* lisp/erc/erc.el (erc-modules): Remove autoload cookie because it
caused customizations for this option to load the main library.  This
reverts the thrust of bb894845 "Teach customize-option about
erc-modules", which was added in ERC 5.6 and Emacs 30.  The motivation
for the original offending change was to allow new users to run M-x
customize-option RET erc-modules RET immediately after startup instead
of M-x customize-group RET, followed by an I-search.  (Bug#73812)

(Cherry picked from commit 1854f2751e)

Do not merge to master.
2024-11-16 08:17:46 -08:00
Michael Albinus
fc52cb8d74 ; etc/NEWS: Fix example indentation. 2024-11-16 13:35:30 +01:00
Eli Zaretskii
8181680062 Improve the documentation of major-mode remapping
* etc/NEWS (example):
* doc/emacs/files.texi (Reverting):
* doc/emacs/modes.texi (Choosing Modes): Improve the documentation
of 'major-mode-remap-alist' and mode remapping.  (Bug#74339)
2024-11-16 11:47:34 +02:00
Stefan Kangas
0856360d80 ; Fix typo in recent change 2024-11-16 07:22:48 +01:00
Robert Pluim
d4f81f716a Improve 'which-key-special-keys' docstring
* lisp/which-key.el (which-key-special-keys): Explain the format
and use 'setopt'.
2024-11-15 16:31:08 +01:00
Laurence Warne
926d47ab2c Don't error in Proced tests if %CPU is a NaN
* test/lisp/proced-tests.el (proced--cpu-at-point): New function.
(proced--assert-process-valid-cpu-refinement)
(proced-refine-test, proced-refine-with-update-test): If %CPU for any
process visited is a NaN skip the test.
(proced-update-preserves-pid-at-point-test): Fix typo in comment.
(proced--assert-process-valid-cpu-refinement-explainer): Add process
attributes to the explainer along with tweaking how the process %CPU is
obtained to account for circumstances where it's not numeric (most
notably '-nan').
2024-11-15 16:22:52 +01:00
Joseph Turner
c29c54410e * lisp/subr.el (read-number): Document collision with 'format-prompt'. 2024-11-15 14:28:51 +02:00
Robert Pluim
68337106f9 ; Fix TRAMP manual indexing
* doc/misc/tramp.texi (Inline methods):
(External methods):
(GVFS-based methods):
(FUSE-based methods):
(Customizing Methods):
(Remote shell setup):
(Change file name syntax):
(Archive file names):
(Frequently Asked Questions): Make sure @item comes after
@cindex and similar indexing commands.
2024-11-15 11:32:30 +01:00
Robert Pluim
8f6ff233ef ; TRAMP manual spelling and grammar fixes
* doc/misc/tramp.texi (FUSE-based methods):
(Firewalls):
(Predefined connection information):
(Remote programs):
(Remote shell setup):
(Ssh setup):
(Home directories):
(Remote processes):
(Renaming remote files):
(Archive file names):
(Bug Reports):
(Frequently Asked Questions): Use "can" instead of "could" where
it makes sense.
2024-11-14 13:56:04 +01:00
Vincenzo Pupillo
f69f54c454 Improve font-locking and indentation in 'php-ts-mode'
* lisp/progmodes/php-ts-mode.el (php-ts-mode--language-source-alist):
Updated to latest version of PHP grammar.
(php-ts-mode--indent-styles): 'namespace_use_declaration' is now
correctly indented.
(php-ts-mode--operators): Support of the "argument unpacking
operator".
(php-ts-mode--font-lock-settings): 'nullsafe_member_call_expression'
is now highlighted correctly.
(php-ts-mode--comment-indent-new-line): Delete trailing whitespace
before inserting newline (see bug#73900 for more information).
Bug#74239
2024-11-14 10:47:51 +02:00
john muhl
27aacbd172 Fix some 'lua-ts-mode' options (Bug#74235)
* lisp/progmodes/lua-ts-mode.el (lua-ts-luacheck-program):
(lua-ts-inferior-program): Switch to 'file' type and remove 'nil'
as a choice.
(lua-ts-inferior-lua): Ensure 'lua-ts-inferior-program' is set.
2024-11-14 10:23:49 +02:00
Andrew De Angelis
a0613372a7 ; Update the xwidgets-on-NS text due to fixing bug#60703
* etc/TODO: Update the xwidgets-on-NS text (bug#74295).
2024-11-14 10:19:09 +02:00
john muhl
d592832504 Improve comment indenting in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Align single line comments with the surrounding context.
(lua-ts--comment-first-sibling-matcher): Check that comment is
the first sibling.
(lua-ts--multi-line-comment-start): New function.
* test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
Add tests.  (Bug#74298)
2024-11-14 10:14:46 +02:00
Eshel Yaron
6bc44ccf28 Update 'xref-num-matches-found' when reverting *xref* buffer
* lisp/progmodes/xref.el (xref--insert-xrefs):
Update 'xref-num-matches-found' here...
(xref--show-xref-buffer): ...instead of here (bug#74313).
2024-11-14 04:26:54 +02:00
Stefan Monnier
8afcfed825 * lisp/files.el (require-with-check): Fix last fix (bug#74289) 2024-11-13 11:39:05 -05:00
Stefan Monnier
3496234c8e lisp/files.el (require-with-check): Fix bug#74091. 2024-11-10 16:50:36 -05:00
Eli Zaretskii
90c97d3fac Fix handling of permanent-local variables in 'kill-all-local-variables'
The original implementation went too far and caused unexpected
results.
* src/buffer.c (reset_buffer_local_variables): Second argument is
now 'int', and can be 0, 1, or 2.
(Fkill_all_local_variables): Call 'reset_buffer_local_variables'
with 2nd argument 2 if KILL-PERMANENT is non-nil.  (Bug#74091)
2024-11-10 20:49:45 +02:00
Michael Albinus
c96e576090 Precise password cache in Tramp
* doc/misc/tramp.texi (Password handling):
Describe auth-source-cache-expiry and auth-source-do-cache instead
of password-cache-expiry and password-cache.  (Bug#74105)

* lisp/net/tramp.el (tramp-read-passwd): Check for `auth-sources'
being non-nil.
2024-11-10 12:35:15 +01:00
Eli Zaretskii
3954e8d9bb Fix picture-mode with full-width characters
* lisp/textmodes/picture.el (picture-insert): Don't rely on
'move-to-column' to move to the column that is its argument: this
might be false when full-width characters are involved.
2024-11-10 11:48:34 +02:00
Eli Zaretskii
7dabfe9465 Fix movement to the left in picture-mode
* lisp/textmodes/picture.el (picture-insert): Measure width by
counting columns on display, not by using 'string-width', because
the latter is inaccurate when TABs are involved.  (Bug#74255)
2024-11-10 10:56:40 +02:00
Eli Zaretskii
dbcd9d782c Fix documentation and error message of adding local variables
* lisp/files-x.el (add-file-local-variable)
(add-file-local-variable-prop-line): Doc fixes.
(add-file-local-variable): Improve the user-error text.  (Bug#74267)
2024-11-09 14:02:06 +02:00
Eli Zaretskii
94bf7ad797 Document the 'display-line-numbers-disable' property
* doc/lispref/display.texi (Overlay Properties):
* doc/lispref/text.texi (Special Properties): Document
'display-line-numbers-disable'.  Fix indexing.
2024-11-09 13:33:21 +02:00
Eli Zaretskii
b1be0f2ba6 Document issues with 'use-package's ':custom' and byte compilation
* doc/misc/use-package.texi (User options): Warn against
byte-compiling init files that use ':custom'.  (Bug#73609)
2024-11-09 11:55:49 +02:00
Eli Zaretskii
775970a783 ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752). 2024-11-08 10:03:35 +02:00
Tim Ruffing
9149aa89ee Fix display of compositions when font style changes (Cairo backend)
* src/ftcrfont.c (ftcrhbfont_end_hb_font): Don't persist the
result of 'cairo_ft_scaled_font_lock_face' in violation of the
API contract.  (Bug#73752)
2024-11-08 09:56:54 +02:00
Eli Zaretskii
3bf00777be ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). 2024-11-07 19:34:43 +02:00
Mattias Engdegård
e88309eef3 Fix wrong value of when and unless with empty body (bug#74215)
* lisp/subr.el (when, unless): Return nil when the body is empty.
Reported by Brennan Vincent.
* test/lisp/subr-tests.el (subr-test-when): Add test cases.

(cherry picked from commit 9ee9154247)
2024-11-06 15:27:33 +02:00
Robert Pluim
3231af3727 Improve 'open-network-stream' documentation.
* doc/lispref/processes.texi (Network): Correct explanation of
':warn-unless-encrypted'.  Document ':error' return keyword.
* lisp/net/network-stream.el (open-network-stream): Improve
':return-list' documentation.  Document ':error'.  Correct
explanation of ':warn-unless-encrypted'.
2024-11-05 13:51:21 +01:00
Robert Pluim
fb55431c44 ; Fix typos in case-conversion descriptions
* doc/lispref/nonascii.texi (Character Properties): Fix typos.
* doc/lispref/strings.texi (Case Conversion): Fix typos.
(Case Tables): Fix typos.
2024-11-05 12:33:49 +01:00
Eli Zaretskii
83f095d1fd ; Fix typo and indexing in the ELisp manual
* doc/lispref/display.texi (Image Descriptors): Fix typo and indexing.
(Defining Images): Fix indexing.
2024-11-04 21:34:25 +02:00
Michael Albinus
37b1799c9e ; Instrument proced-tests.el further
* test/lisp/proced-tests.el
(proced--assert-process-valid-cpu-refinement): Explain also Lisp errors.
2024-11-04 14:24:21 +01:00
Michael Albinus
03fa832b4d Improve Tramp documentation on direct async processes
* doc/misc/tramp.texi (Remote processes): Add another example
enabling direct async processes based on method name.  (Bug#74105)

* etc/NEWS: Rephrase Tramp entry on direct async processes.
2024-11-03 15:48:19 +01:00
Eli Zaretskii
f7b85fe986 Improve documentation of letter-case conversions
* doc/lispref/nonascii.texi (Character Properties):
* doc/lispref/strings.texi (Case Conversion, Case Tables):
Document that special-casing rules override the case-table
conversions.  (Bug#74155)
2024-11-01 16:39:39 +02:00
Dmitry Gutov
0f9d48e99c project-tests: Add test assertion for bug#73801
* test/lisp/progmodes/project-tests.el
(project-vc-extra-root-markers-supports-wildcards): End with a
check that we didn't cache a wrong value for parent (bug#73801).

(cherry picked from commit 94a9e40e82)
2024-11-01 02:35:08 +02:00
Dmitry Gutov
b4b0d5a853 project-try-vc: Fix the "sometimes wrong cache" issue
* lisp/progmodes/project.el (project-try-vc--search):
Extract from 'project-try-vc'.
(project-try-vc): Use it.
(project-try-vc--search): Call itself recursively directly, to
avoid creating invalid cache entry (bug#73801).

(cherry picked from commit 29b30eb49f)
2024-11-01 02:34:36 +02:00
Stephen Berman
8113b5c562 Fix bugs in dabbrev-expand (bug#74090)
* lisp/dabbrev.el (dabbrev-expand): Use the buffer where the
expansion was found when setting the internal variables used to
determine the next expansion or a replacement expansion.

* test/lisp/dabbrev-tests.el (ert-x): Require for
'ert-with-temp-directory', 'ert-resource-directory' and
'ert-resource-file'.
(with-dabbrev-test): New macro.
(dabbrev-expand-test-same-buffer-{1,2,3,4})
(dabbrev-expand-test-other-buffer-{1,2,3,4})
(dabbrev-expand-test-minibuffer-{1,2,3,4}): New tests.

* test/lisp/dabbrev-resources/dabbrev-expand.el:
* test/lisp/dabbrev-resources/INSTALL_BEGIN: New test resources.

(cherry picked from commit f6c359cb66)
2024-10-31 12:12:25 +01:00