Vincenzo Pupillo [Mon, 25 Nov 2024 10:06:02 +0000 (11:06 +0100)]
Support PHP 8.4 and more reliable indentation (bug#74525)
Added support for PHP 8.4 property hook. More reliable CSS and
Javascript syntax indentation when there are attributes in
<script> and <style>.
* lisp/progmodes/php-ts-mode.el:
(php-ts-mode--language-source-alist): Switch to the latest php
grammar.
(php-ts-mode--js-css-tag-bol): CSS and Javascript indentation is
now more more reliable in different formatting styles.
(php-ts-mode--test-property-hook-clause-p): New function that
tests property_hook support.
(php-ts-mode--font-lock-settings): Use the new function.
(php-ts-mode--colorize-css-value): The function now behaves
exactly like the one in css-ts-mode.
(php-ts-mode--feature-list): Changed the list to match
css-ts-mode.
Martin Rudalics [Thu, 28 Nov 2024 17:53:45 +0000 (18:53 +0100)]
Don't inadvertently reset frame scroll bar sizes (Bug#74435)
* src/frame.c (gui_set_scroll_bar_width)
(gui_set_scroll_bar_height): When the new size equals the old one
do not reset size to default size (Bug#74435).
Mike Kupfer [Tue, 26 Nov 2024 00:52:05 +0000 (16:52 -0800)]
Mention special variables in lexical binding documentation
* doc/lispref/variables.texi (Lexical Binding): Briefly mention
special variables and their semantics. (Bug#74540)
Eli Zaretskii [Thu, 28 Nov 2024 14:55:26 +0000 (16:55 +0200)]
Allow to go back to using 'ruby-mode' after loading 'ruby-ts-mode'
* lisp/progmodes/ruby-ts-mode.el (major-mode-remap-defaults):
Remap 'ruby-mode' to 'ruby-ts-mode'. Add commentary.
* lisp/progmodes/ruby-mode.el (major-mode-remap-defaults): Remove
any remappings of ruby-mode'.
* lisp/progmodes/c-ts-mode.el: Fix a typo in a comment. (Bug#74339)
Stefan Kangas [Sun, 24 Nov 2024 10:27:19 +0000 (11:27 +0100)]
Delete obsolete section in admin/notes/repo
* admin/notes/repo: Delete section "How to merge changes from emacs-24
to master", which is documented in admin/notes/git-workflow. Also
delete out-of-date autoload advice.
Joost Kremers [Mon, 11 Nov 2024 22:38:49 +0000 (23:38 +0100)]
Improve documentation for 'while-let'
* doc/lispref/control.texi (Conditionals): Reorganise describing
what's overlapping between the macros (and between the macros
and let*), and then improve the documentation for 'while-let'.
Yuan Fu [Sun, 24 Nov 2024 05:39:40 +0000 (21:39 -0800)]
Remove mention of treesit-defun-prefer-top-level (bug#74474)
treesit-defun-prefer-top-level is removed before Emacs 29
released and was replaced by treesit-defun-tactic. These
statements that set it doesn't do anything other than introduce
confusion, so we should remove them.
* lisp/progmodes/c-ts-mode.el (c-ts-base-mode):
* lisp/progmodes/js.el (js-ts-mode):
* lisp/progmodes/php-ts-mode.el (php-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-base-mode):
Remove statements setting treesit-defun-prefer-top-level.
Aaron Jensen [Sun, 17 Nov 2024 04:54:59 +0000 (20:54 -0800)]
Fix NS non-native fullscreen on initial frame load (bug#59790)
* src/nsterm.m ([EmacsView toggleFullScreen:]): Reset fs_is_native
Eli Zaretskii [Sun, 24 Nov 2024 09:27:00 +0000 (11:27 +0200)]
Fix user options for listing and marking diary files
* lisp/calendar/diary-lib.el (diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook): Add Chinese functions to the
list of variable's options. (Bug#74498)
john muhl [Sat, 23 Nov 2024 20:08:21 +0000 (14:08 -0600)]
Avoid loading 'rx' at runtime in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-inferior-lua):
Replace 'rx-to-string' and substitution with 'rx' and 'literal'.
(Bug#74499)
(cherry picked from commit
e71d714a815e1088f8cfe946b1e431356ec85b24)
Eli Zaretskii [Sat, 23 Nov 2024 20:14:57 +0000 (22:14 +0200)]
Make 'jsonrpc-default-request-timeout' a defcustom
* lisp/jsonrpc.el (jsonrpc-default-request-timeout): New
defcustom, replaces a defconst.
(jsonrpc): New customization group.
* etc/NEWS: Announce the change. (Bug#74338)
Juri Linkov [Sat, 23 Nov 2024 18:27:39 +0000 (20:27 +0200)]
; Improve example of display-buffer-alist category in ELisp Reference
* doc/lispref/windows.texi (Choosing Window): Use 'add-to-list'
and add an example how to override display-buffer-alist entries
such as 'inhibit-same-window' by matching the window
using the 'category' condition (bug#74457).
Eli Zaretskii [Sat, 23 Nov 2024 13:05:17 +0000 (15:05 +0200)]
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)
Laurence Warne [Thu, 21 Nov 2024 17:26:25 +0000 (17:26 +0000)]
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.
Eli Zaretskii [Thu, 21 Nov 2024 15:47:22 +0000 (17:47 +0200)]
; 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)
Andrea Corallo [Thu, 21 Nov 2024 15:02:37 +0000 (16:02 +0100)]
; * lisp/term/w32-win.el (tree-sitter--library-abi): Declare to rm warning.
Andrea Corallo [Thu, 14 Nov 2024 00:01:08 +0000 (01:01 +0100)]
; Better clarify function types in C-h f (bug#73626)
* doc/emacs/help.texi (Name Help): Better clarify function types.
Andrea Corallo [Wed, 13 Nov 2024 23:20:13 +0000 (00:20 +0100)]
; 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.
Eli Zaretskii [Thu, 21 Nov 2024 12:55:38 +0000 (14:55 +0200)]
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.
Eli Zaretskii [Thu, 21 Nov 2024 10:28:26 +0000 (12:28 +0200)]
; 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)
Eli Zaretskii [Thu, 21 Nov 2024 09:47:07 +0000 (11:47 +0200)]
; 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)
Eli Zaretskii [Thu, 21 Nov 2024 07:43:34 +0000 (09:43 +0200)]
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)
Eli Zaretskii [Mon, 18 Nov 2024 19:25:18 +0000 (21:25 +0200)]
; 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.
Eli Zaretskii [Mon, 18 Nov 2024 18:54:15 +0000 (20:54 +0200)]
; Avoid assertion violations in "temacs -Q"
* src/lread.c (build_load_history): Use Fequal to compare strings.
Stefan Monnier [Mon, 18 Nov 2024 15:10:00 +0000 (10:10 -0500)]
lisp/progmodes/c-ts-mode.el: Demote loading c-ts-mode as a configuration
See bug#74367.
Martin Rudalics [Sat, 16 Nov 2024 16:30:29 +0000 (17:30 +0100)]
; 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).
F. Jason Park [Tue, 15 Oct 2024 02:32:16 +0000 (19:32 -0700)]
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
1854f2751e3f73e1e5f12f6de993b6357de1766b)
Do not merge to master.
Michael Albinus [Sat, 16 Nov 2024 12:35:30 +0000 (13:35 +0100)]
; etc/NEWS: Fix example indentation.
Eli Zaretskii [Sat, 16 Nov 2024 09:47:34 +0000 (11:47 +0200)]
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)
Stefan Kangas [Sat, 16 Nov 2024 06:21:59 +0000 (07:21 +0100)]
; Fix typo in recent change
Robert Pluim [Fri, 15 Nov 2024 15:28:55 +0000 (16:28 +0100)]
Improve 'which-key-special-keys' docstring
* lisp/which-key.el (which-key-special-keys): Explain the format
and use 'setopt'.
Laurence Warne [Fri, 15 Nov 2024 15:22:52 +0000 (16:22 +0100)]
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').
Joseph Turner [Sat, 9 Nov 2024 19:15:25 +0000 (11:15 -0800)]
* lisp/subr.el (read-number): Document collision with 'format-prompt'.
Robert Pluim [Fri, 15 Nov 2024 09:47:23 +0000 (10:47 +0100)]
; 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.
Robert Pluim [Wed, 13 Nov 2024 16:10:57 +0000 (17:10 +0100)]
; 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.
Vincenzo Pupillo [Thu, 7 Nov 2024 11:55:50 +0000 (12:55 +0100)]
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
john muhl [Sat, 9 Nov 2024 17:01:45 +0000 (11:01 -0600)]
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.
Andrew De Angelis [Sun, 10 Nov 2024 15:13:17 +0000 (10:13 -0500)]
; Update the xwidgets-on-NS text due to fixing bug#60703
* etc/TODO: Update the xwidgets-on-NS text (bug#74295).
john muhl [Sun, 10 Nov 2024 17:26:33 +0000 (11:26 -0600)]
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)
Eshel Yaron [Mon, 11 Nov 2024 18:45:10 +0000 (19:45 +0100)]
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).
Stefan Monnier [Wed, 13 Nov 2024 16:39:05 +0000 (11:39 -0500)]
* lisp/files.el (require-with-check): Fix last fix (bug#74289)
Stefan Monnier [Sun, 10 Nov 2024 21:50:36 +0000 (16:50 -0500)]
lisp/files.el (require-with-check): Fix bug#74091.
Eli Zaretskii [Sun, 10 Nov 2024 18:49:45 +0000 (20:49 +0200)]
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)
Michael Albinus [Sun, 10 Nov 2024 11:35:15 +0000 (12:35 +0100)]
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.
Eli Zaretskii [Sun, 10 Nov 2024 09:48:34 +0000 (11:48 +0200)]
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.
Eli Zaretskii [Sun, 10 Nov 2024 08:56:40 +0000 (10:56 +0200)]
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)
Eli Zaretskii [Sat, 9 Nov 2024 12:02:06 +0000 (14:02 +0200)]
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)
Eli Zaretskii [Sat, 9 Nov 2024 11:33:21 +0000 (13:33 +0200)]
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.
Eli Zaretskii [Sat, 9 Nov 2024 09:55:49 +0000 (11:55 +0200)]
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)
Eli Zaretskii [Fri, 8 Nov 2024 08:03:35 +0000 (10:03 +0200)]
; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752).
Tim Ruffing [Thu, 7 Nov 2024 02:09:09 +0000 (03:09 +0100)]
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)
Eli Zaretskii [Thu, 7 Nov 2024 17:34:43 +0000 (19:34 +0200)]
; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241).
Mattias EngdegÄrd [Wed, 6 Nov 2024 12:29:23 +0000 (13:29 +0100)]
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
9ee9154247454c18f9f75d0d32592b817d7e977a)
Robert Pluim [Tue, 5 Nov 2024 12:51:21 +0000 (13:51 +0100)]
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'.
Robert Pluim [Tue, 5 Nov 2024 11:33:49 +0000 (12:33 +0100)]
; 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.
Eli Zaretskii [Mon, 4 Nov 2024 19:34:25 +0000 (21:34 +0200)]
; Fix typo and indexing in the ELisp manual
* doc/lispref/display.texi (Image Descriptors): Fix typo and indexing.
(Defining Images): Fix indexing.
Michael Albinus [Mon, 4 Nov 2024 13:24:21 +0000 (14:24 +0100)]
; Instrument proced-tests.el further
* test/lisp/proced-tests.el
(proced--assert-process-valid-cpu-refinement): Explain also Lisp errors.
Michael Albinus [Sun, 3 Nov 2024 14:48:19 +0000 (15:48 +0100)]
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.
Eli Zaretskii [Fri, 1 Nov 2024 14:39:39 +0000 (16:39 +0200)]
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)
Dmitry Gutov [Fri, 1 Nov 2024 00:32:10 +0000 (02:32 +0200)]
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
94a9e40e82d4180563d7bddfa0cc6c8990824f8d)
Dmitry Gutov [Mon, 28 Oct 2024 03:53:16 +0000 (05:53 +0200)]
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
29b30eb49f8bd8bad4f9e24dd56f32d62bf70121)
Stephen Berman [Thu, 31 Oct 2024 09:46:27 +0000 (10:46 +0100)]
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
f6c359cb66a0e9b851e3467b1ba9cab7efa8f744)
Yuan Fu [Thu, 31 Oct 2024 01:18:50 +0000 (18:18 -0700)]
Fix undefined variable in previous commit (bug#73900)
I somehow thought allow-auto-fill is a global variable that's
used by cc. But it's not. It's just a function param used by
c-indent-new-comment-line.
* lisp/progmodes/c-ts-common.el:
(c-ts-common-comment-indent-new-line): Remove reference to
allow-auto-fill.
Yuan Fu [Tue, 29 Oct 2024 07:27:34 +0000 (00:27 -0700)]
Fix c-ts-common-comment-indent-new-line (bug#73900)
* lisp/progmodes/c-ts-common.el:
(c-ts-common-comment-indent-new-line): Delete trailing
whitespace before inserting newline. The insert-line-break
function is the same as in c-indent-new-comment-line.
Yuan Fu [Tue, 29 Oct 2024 02:30:52 +0000 (19:30 -0700)]
Fix the call to treesit-thing-defined-p
* lisp/treesit.el (treesit-defun-at-point): Add the necessary
2nd argument.
Juri Linkov [Wed, 30 Oct 2024 18:32:28 +0000 (20:32 +0200)]
Backport: Call tab-bar-tab-post-open-functions during tabs initialization
* lisp/tab-bar.el (tab-bar-tabs): Run the hook
'tab-bar-tab-post-open-functions' after creating the first tab
in the selected frame's tab-bar list of tabs (bug#74087).
Suggested by Ship Mints <shipmints@gmail.com>.
(cherry picked from commit
2c062dfdf50970766db179ccbad7ce71c541cd72)
Laurence Warne [Wed, 30 Oct 2024 14:12:13 +0000 (15:12 +0100)]
Work on proced-tests.el
* test/lisp/proced-tests.el
(proced--assert-process-valid-cpu-refinement-explainer): New function
for explaining refinement test failures in greater detail.
Eli Zaretskii [Tue, 29 Oct 2024 14:27:51 +0000 (16:27 +0200)]
; * doc/lispref/frames.texi (Yanking Media): Add index entry.
Stefan Monnier [Tue, 29 Oct 2024 02:40:15 +0000 (22:40 -0400)]
* lisp/files.el (require-with-check): Be a bit more lenient (bug74040)
Stefan Monnier [Tue, 29 Oct 2024 02:14:10 +0000 (22:14 -0400)]
(with-peg-rules): Fix references to rulesets (bug#74018)
PEG rules get "compiled" to functions with name `peg-rule <RULE>`.
`define-peg-ruleset` instead defines it PEG rules with name
`peg-rule <RULESET> <RULE>`, so that they can be made visible
by `with-peg-rules` simply by adding local aliases from
`peg-rule <RULE>` to `peg-rule <RULESET> <RULE>`.
Apparently when I added `define-peg-ruleset` I somehow failed to
install some of the corresponding code in `with-peg-rules`, so
the aliases were not installed, making it "impossible" to use
rulesets.
[ I still have no idea how this happened and/or where
the missing code went, so I "recreated" it. ]
* lisp/progmodes/peg.el (with-peg-rules): Install the aliases
for the rulesets.
(peg--translate-rule-body): Try and preserve
location info when emitting a warning.
* test/lisp/progmodes/peg-tests.el (peg-test-myrules): New ruleset.
(peg-test-ruleset): New test.
Eli Zaretskii [Mon, 28 Oct 2024 19:11:50 +0000 (21:11 +0200)]
; * etc/NEWS: Fix typo (bug#74066).
Stefan Monnier [Sun, 27 Oct 2024 18:52:25 +0000 (14:52 -0400)]
Tweak doc w.r.t to "void function" (bug#73886)
* doc/lispref/functions.texi (Function Cells): Avoid talking
about the function cell being void.
* src/data.c (Fboundp, Ffmakunbound, Fsymbol_function):
Don't suggest that "void" can be considered as a kind of value.
Laurence Warne [Sun, 27 Oct 2024 15:50:20 +0000 (16:50 +0100)]
Fix flakey proced refine tests (Bug#73441)
* test/lisp/proced-tests.el (proced-refine-test)
(proced-refine-with-update-test): Use the much simpler CPU refinement
for testing 'proced-refine'. The previous tests made the incorrect
assumption that refining on the PID of process A only filtered the
buffer to contain process A and its children, whereas in actuality
the children of process A's children, their children, and so on will
also be shown.
(proced-update-preserves-pid-at-point-test): Mark as unstable.
Eli Zaretskii [Sun, 27 Oct 2024 14:07:08 +0000 (16:07 +0200)]
Another 'void' update
* doc/lispref/symbols.texi (Symbol Components): Another update due
to the change in 'void' function implementation. (Bug#73886)
Eli Zaretskii [Sun, 27 Oct 2024 11:41:24 +0000 (13:41 +0200)]
Fix doc string of 'wdired-use-dired-vertical-movement'
* lisp/wdired.el (wdired-use-dired-vertical-movement): Remove the
incorrect reference to 'track-eol'. (Bug#73917)
Eli Zaretskii [Sun, 27 Oct 2024 11:16:36 +0000 (13:16 +0200)]
Update the documentation of void functions
* doc/lispref/functions.texi (Function Cells):
* src/data.c (Ffboundp, Ffmakunbound, Fsymbol_function): Update
documentation to the changes of how void functions are represented
since Emacs 24.5. (Bug#73886)
Sean Whitton [Sun, 27 Oct 2024 10:56:31 +0000 (18:56 +0800)]
; * lisp/vc/log-edit.el (log-edit-diff-function): Grammar fix.
Stefan Kangas [Sun, 27 Oct 2024 06:49:32 +0000 (07:49 +0100)]
; Fix typos
Sean Whitton [Sun, 27 Oct 2024 03:37:42 +0000 (11:37 +0800)]
Backport some docstring updates, warn about upcoming obsolescence
Try to save people some time if they're developing on Emacs 30.x.
Do not merge to master.
* lisp/subr.el (if-let*, when-let*, if-let, when-let): Move
docstring text around so that if-let* and when-let* descriptions
no longer refer to if-let and when-let. Note that if-let and
when-let will be marked obsolete, and recommend if-let*,
when-let* and and-let* for new code.
Michael Albinus [Sat, 26 Oct 2024 16:55:46 +0000 (18:55 +0200)]
; Remove proced-tests.el instrumentation (Do not merge with master)
Stefan Monnier [Sat, 26 Oct 2024 15:12:32 +0000 (11:12 -0400)]
* lisp/editorconfig.el (editorconfig--get-indentation): Fix bug#73991
Andrea Corallo [Sat, 26 Oct 2024 10:09:36 +0000 (12:09 +0200)]
Update 'ldefs-boot.el' (don't merge)
* lisp/ldefs-boot.el: Update.
Andrea Corallo [Sat, 26 Oct 2024 09:41:45 +0000 (11:41 +0200)]
Bump Emacs version to 30.0.92
* nt/README.W32: Update Emacs version.
* msdos/sed2v2.inp: Likewise.
* exec/configure.ac: Likewise.
* configure.ac: Likewise.
* README: Likewise.
Andrea Corallo [Sat, 26 Oct 2024 09:38:39 +0000 (11:38 +0200)]
; * etc/AUTHORS: Update.
Andrea Corallo [Sat, 26 Oct 2024 09:38:10 +0000 (11:38 +0200)]
; * ChangeLog.4: Update.
Eli Zaretskii [Fri, 25 Oct 2024 10:34:53 +0000 (13:34 +0300)]
Skip *.dylib files in 'loaddefs-generate'
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Add .dylib
to extensions of files that are skipped. (Bug#74001)
Vincenzo Pupillo [Wed, 23 Oct 2024 18:45:48 +0000 (20:45 +0200)]
Highlight namespace name in "use" clause.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--font-lock-settings):
New rule to highlight namespace name in "use" clause. (Bug#73975)
Sean Whitton [Thu, 24 Oct 2024 07:39:34 +0000 (15:39 +0800)]
; * lisp/loadup.el: Improve file abstract
Eli Zaretskii [Thu, 24 Oct 2024 05:42:29 +0000 (08:42 +0300)]
; * doc/lispref/control.texi (Conditionals): Fix markup.
Sean Whitton [Thu, 24 Oct 2024 04:10:09 +0000 (12:10 +0800)]
Update special conditionals documentation
* doc/lispref/control.texi (Conditionals): Document if-let* and
when-let*, not if-let and when-let. Document and-let*.
Michael Albinus [Wed, 23 Oct 2024 15:01:08 +0000 (17:01 +0200)]
; * test/lisp/proced-tests.el (proced--within-buffer): Instrument macro.
Do not merge with master
Sean Whitton [Wed, 23 Oct 2024 02:53:02 +0000 (10:53 +0800)]
; Improve comment from last change
Sean Whitton [Wed, 23 Oct 2024 01:07:06 +0000 (09:07 +0800)]
Document and-let* vs. when-let* usage convention
* lisp/subr.el (and-let*): Document and/and-let*
vs. when/when-let* usage convention (some discussion in
bug#73853).
(when-let*): Add cross-reference to and-let*.
Jim Porter [Tue, 22 Oct 2024 16:43:00 +0000 (09:43 -0700)]
Fix error when splicing Eshell globs and a glob expands to itself
This could happen when 'eshell-extended-glob' determines that a "glob"
is not really a glob. This mainly happens for remote file names with a
"~" in them, like "/ssh:remote:~/file.txt".
* lisp/eshell/em-glob.el (eshell-extended-glob): Return a list when
'eshell-glob-splice-results' is non-nil.
* test/lisp/eshell/em-glob-tests.el
(em-glob-test/expand/splice-results)
em-glob-test/expand/no-splice-results): Extend tests.
Stefan Monnier [Tue, 22 Oct 2024 16:35:18 +0000 (12:35 -0400)]
* etc/package-keyring.gpg: Update expiration and add new key
Eli Zaretskii [Mon, 21 Oct 2024 17:42:01 +0000 (20:42 +0300)]
Avoid crashes when scrolling images under winner-mode
* src/window.c (window_scroll_pixel_based): Fix calculation of a
window's vscroll. (Bug#73933)
Eli Zaretskii [Mon, 21 Oct 2024 15:32:07 +0000 (18:32 +0300)]
; * doc/lispref/display.texi (Fontsets): Clarify wording.
Eli Zaretskii [Mon, 21 Oct 2024 10:04:18 +0000 (13:04 +0300)]
; * doc/lispref/display.texi (Fontsets): Fix typo.
Eli Zaretskii [Mon, 21 Oct 2024 10:01:53 +0000 (13:01 +0300)]
; Add indexing for 'use-default-font-for-symbols'
* doc/emacs/mule.texi (Modifying Fontsets):
* doc/lispref/display.texi (Fontsets): Index
'use-default-font-for-symbols'.
Eli Zaretskii [Sun, 20 Oct 2024 19:39:53 +0000 (22:39 +0300)]
* src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914).