emacs.git
13 months ago; * lisp/loadup.el: Improve file abstract
Sean Whitton [Thu, 24 Oct 2024 07:39:34 +0000 (15:39 +0800)]
; * lisp/loadup.el: Improve file abstract

13 months ago; * doc/lispref/control.texi (Conditionals): Fix markup.
Eli Zaretskii [Thu, 24 Oct 2024 05:42:29 +0000 (08:42 +0300)]
; * doc/lispref/control.texi (Conditionals): Fix markup.

13 months agoUpdate special conditionals documentation
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*.

13 months ago; * test/lisp/proced-tests.el (proced--within-buffer): Instrument macro.
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

13 months ago; Improve comment from last change
Sean Whitton [Wed, 23 Oct 2024 02:53:02 +0000 (10:53 +0800)]
; Improve comment from last change

13 months agoDocument and-let* vs. when-let* usage convention
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*.

13 months agoFix error when splicing Eshell globs and a glob expands to itself
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.

13 months ago* etc/package-keyring.gpg: Update expiration and add new key
Stefan Monnier [Tue, 22 Oct 2024 16:35:18 +0000 (12:35 -0400)]
* etc/package-keyring.gpg: Update expiration and add new key

13 months agoAvoid crashes when scrolling images under winner-mode
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)

13 months ago; * doc/lispref/display.texi (Fontsets): Clarify wording.
Eli Zaretskii [Mon, 21 Oct 2024 15:32:07 +0000 (18:32 +0300)]
; * doc/lispref/display.texi (Fontsets): Clarify wording.

13 months ago; * doc/lispref/display.texi (Fontsets): Fix typo.
Eli Zaretskii [Mon, 21 Oct 2024 10:04:18 +0000 (13:04 +0300)]
; * doc/lispref/display.texi (Fontsets): Fix typo.

13 months ago; Add indexing for 'use-default-font-for-symbols'
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'.

13 months ago* src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914).
Eli Zaretskii [Sun, 20 Oct 2024 19:39:53 +0000 (22:39 +0300)]
* src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914).

13 months ago* test/Makefile.in: Do not show emacs-module-tests.log by default.
Michael Albinus [Sun, 20 Oct 2024 09:35:06 +0000 (11:35 +0200)]
* test/Makefile.in: Do not show emacs-module-tests.log by default.

13 months agoFix 'php-ts-mode': better indentation and font locking
Vincenzo Pupillo [Thu, 10 Oct 2024 14:06:37 +0000 (16:06 +0200)]
Fix 'php-ts-mode': better indentation and font locking

Incomplete compound_statement or colon_block (statement-group
without a closing brace or closing keyword) that are not inside
a function or method are not recognized as such by tree-sitter-php.
A new function 'php-ts-mode--open-statement-group-heuristic'
handles this case.  Font locking of magic methods and better
support for alternative control structure syntax.
Support for latest grammar version.
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Updated grammar version.
(php-ts-mode--possibly-braceless-keyword-re): Regular expression
for braceless keyword.
(php-ts-mode--open-statement-group-heuristic): New function.
(php-ts-mode--parent-html-bol): Use the new function and doc fix.
(php-ts-mode--parent-html-heuristic): Use the new function and doc
fix.
(php-ts-mode--indent-styles): Use the new function and add
'colon_block' support.
(php-ts-mode--class-magic-methods): New predefined magic methods
list.
(php-ts-mode--test-namespace-name-as-prefix-p): Doc fix.
(php-ts-mode--test-namespace-aliasing-clause-p): Fix the test and
doc.
(php-ts-mode--test-namespace-use-group-clause-p): Doc fix.
(php-ts-mode--test-visibility-modifier-operation-clause-p): New
function for the new asymmetric property visibility feature of
PHP 8.4.
(php-ts-mode--font-lock-settings): Font lock for class magic methods
and alternative syntax.  Better font lock for 'instanceof'.  Use
'font-lock-function-call-face' for scoped and member call expression.
(bug#73779)

13 months ago* lisp/auth-source.el (read-passwd): Remove entry from `post-command-hook'.
Michael Albinus [Sat, 19 Oct 2024 10:36:32 +0000 (12:36 +0200)]
* lisp/auth-source.el (read-passwd): Remove entry from `post-command-hook'.

13 months agoNew FAQ about Ctrl keys on xterm
Eli Zaretskii [Sat, 19 Oct 2024 09:14:06 +0000 (12:14 +0300)]
New FAQ about Ctrl keys on xterm

* doc/misc/efaq.texi
(Some Ctrl-modified keys do not work on xterm): New section
(bug#73813).

13 months agoAutoload 'message-narrow-to-headers-or-head' in mml.el
Eli Zaretskii [Sat, 19 Oct 2024 08:57:09 +0000 (11:57 +0300)]
Autoload 'message-narrow-to-headers-or-head' in mml.el

* lisp/gnus/mml.el (message-narrow-to-headers-or-head): Autoload
it.  (Bug#73815)

13 months ago* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Fix bug#73766
Stefan Monnier [Fri, 18 Oct 2024 18:55:40 +0000 (14:55 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Fix bug#73766

Do not merge to `master`.

13 months agoLocate password icon in global-mode-string
Michael Albinus [Fri, 18 Oct 2024 15:47:43 +0000 (17:47 +0200)]
Locate password icon in global-mode-string

* doc/emacs/mini.texi (Passwords): Precise the location of the
password icon.

* doc/lispref/minibuf.texi (Reading a Password): The password icon
is added to global-mode-string.

* lisp/auth-source.el (read-passwd--mode-line-buffer): Remove.
(read-passwd--hide-password): Fix docstring.
(read-passwd-toggle-visibility): Don't use
`read-passwd--mode-line-buffer'.  Check for `read-passwd-mode'.
Force update in all mode lines.
(read-passwd-mode): Set `read-passwd--mode-line-icon' in
`global-mode-string'.  (Bug#73768)

13 months ago; Fix last documentation change
Eli Zaretskii [Fri, 18 Oct 2024 12:46:17 +0000 (15:46 +0300)]
; Fix last documentation change

* doc/misc/efaq.texi (Colors on a TTY):
* doc/lispref/frames.texi (Font and Color Parameters):
* doc/emacs/cmdargs.texi (Colors X): More accurate documentation
of TTY color modes and 'tty-color-mode' frame parameter.
(Bug#73813)

13 months agoExplain tty-color-mode frame parameter more.
Robert Pluim [Fri, 18 Oct 2024 09:22:52 +0000 (11:22 +0200)]
Explain tty-color-mode frame parameter more.

* doc/emacs/cmdargs.texi (Colors X): Explain that tty color
support is dynamic.
* doc/lispref/frames.texi (Font and Color Parameters): Explain
that 'tty-color-mode' can be changed on the fly.
* doc/misc/efaq.texi (Colors on a TTY): Explain how to disable
'tty-color-mode', either at startup or dynamically.

14 months ago; * src/doc.c (Ftext_quoting_style): Make doc string agree with code.
Mattias Engdegård [Thu, 17 Oct 2024 12:06:20 +0000 (14:06 +0200)]
; * src/doc.c (Ftext_quoting_style): Make doc string agree with code.

14 months ago(track-changes--after): Fix problem found in bug#73041
Stefan Monnier [Thu, 17 Oct 2024 15:39:19 +0000 (11:39 -0400)]
(track-changes--after): Fix problem found in bug#73041

When calling `track-changes--before` (e.g. because of a missing
b-f-c or for some other reason), it sets `track-changes--before-end`
to the right value so we shouldn't increment it right after.
Also, we should update `track-changes--buffer-size` before
calling `track-changes--before` so it doesn't risk signaling
a spurious inconsistency.

* lisp/emacs-lisp/track-changes.el (track-changes--after):
Update `track-changes--buffer-size` earlier, and don't increment
`track-changes--before-end` when we call `track-changes--before`.

14 months agoFix Eshell's evaluation of empty 'progn' forms
Jim Porter [Wed, 16 Oct 2024 17:44:35 +0000 (10:44 -0700)]
Fix Eshell's evaluation of empty 'progn' forms

Do not merge to master.

* lisp/eshell/esh-cmd.el (eshell-do-eval): Make sure we evaluate to
'nil' for 'progn' forms with no body (bug#73722).

14 months ago; (select-safe-coding-system-interactively): Say "safely encode".
Eli Zaretskii [Wed, 16 Oct 2024 06:04:02 +0000 (09:04 +0300)]
; (select-safe-coding-system-interactively): Say "safely encode".

14 months ago; * lisp/icomplete.el (icomplete-in-buffer): Doc fix (bug#73820).
Eli Zaretskii [Wed, 16 Oct 2024 05:32:02 +0000 (08:32 +0300)]
; * lisp/icomplete.el (icomplete-in-buffer): Doc fix (bug#73820).

14 months ago; * doc/lispref/display.texi (Face Attributes): Fix typo (bug#73824).
Eli Zaretskii [Wed, 16 Oct 2024 04:59:59 +0000 (07:59 +0300)]
; * doc/lispref/display.texi (Face Attributes): Fix typo (bug#73824).

14 months ago* lisp/progmodes/c-ts-mode.el (treesit-node-eq): Declare to silence warning.
Andrea Corallo [Tue, 15 Oct 2024 19:27:47 +0000 (21:27 +0200)]
* lisp/progmodes/c-ts-mode.el (treesit-node-eq): Declare to silence warning.

14 months ago* admin/notes/emba: Docker builds do not run in a worktree.
Michael Albinus [Tue, 15 Oct 2024 15:36:56 +0000 (17:36 +0200)]
* admin/notes/emba: Docker builds do not run in a worktree.

14 months ago* lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix (bug#73817).
Ulrich Müller [Tue, 15 Oct 2024 12:06:49 +0000 (14:06 +0200)]
* lisp/calc/calc-ext.el (math-approx-sqrt-e): Doc fix (bug#73817).

14 months ago: Revert a mistaken change
Eli Zaretskii [Tue, 15 Oct 2024 12:39:11 +0000 (15:39 +0300)]
: Revert a mistaken change

* lisp/net/dictionary.el (dictionary-word-definition-face): Revert
a mistakenly installed change.

14 months ago; * doc/emacs/search.texi (Word Search): Spelling fixes.
Robert Pluim [Tue, 15 Oct 2024 08:16:22 +0000 (10:16 +0200)]
; * doc/emacs/search.texi (Word Search): Spelling fixes.

14 months agoFix c-ts-mode--anchor-prev-sibling (bug#73661)
Yuan Fu [Tue, 15 Oct 2024 02:31:12 +0000 (19:31 -0700)]
Fix c-ts-mode--anchor-prev-sibling (bug#73661)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--anchor-prev-sibling):  Fix parentheses and use a
slightly more efficient function.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Replace
the tab in the test code with spaces.

14 months agoFix formatting of long keyboard macros by 'list-keyboard-macros'.
Earl Hyatt [Sun, 13 Oct 2024 17:44:18 +0000 (13:44 -0400)]
Fix formatting of long keyboard macros by 'list-keyboard-macros'.

* lisp/kmacro.el (kmacro-menu--refresh): Include the second
argument of 'format-kbd-macro' so that the formatted keyboard
macro is on a single line.  (Bug#73797)

14 months ago; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (bug#73709).
Eli Zaretskii [Sun, 13 Oct 2024 15:29:34 +0000 (18:29 +0300)]
; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (bug#73709).

14 months agoMerge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Michael Albinus [Sun, 13 Oct 2024 14:03:07 +0000 (16:03 +0200)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30

14 months ago* doc/emacs/mini.texi (Passwords): Mention password visibility.
Michael Albinus [Sun, 13 Oct 2024 14:01:38 +0000 (16:01 +0200)]
* doc/emacs/mini.texi (Passwords): Mention password visibility.

14 months ago; * doc/emacs/search.texi (Word Search): Document 'dictionary-search'.
Eli Zaretskii [Sat, 12 Oct 2024 07:17:10 +0000 (10:17 +0300)]
; * doc/emacs/search.texi (Word Search): Document 'dictionary-search'.

14 months ago; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.
Eli Zaretskii [Sat, 12 Oct 2024 05:44:28 +0000 (08:44 +0300)]
; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.

14 months ago; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve documentation.
Andrea Corallo [Fri, 11 Oct 2024 13:26:28 +0000 (15:26 +0200)]
; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve documentation.

14 months ago; More accurate documentation of 'file-newer-than-file-p'
Eli Zaretskii [Thu, 10 Oct 2024 08:03:48 +0000 (11:03 +0300)]
; More accurate documentation of 'file-newer-than-file-p'

* doc/lispref/files.texi (File Attributes):
* src/fileio.c (Ffile_newer_than_file_p): Say the comparison uses
the last-modification times.  (Bug#73709)

14 months agoFix c-ts-mode indentation for initializer lists (bug#73661)
Jørgen Kvalsvik [Fri, 4 Oct 2024 19:38:33 +0000 (21:38 +0200)]
Fix c-ts-mode indentation for initializer lists (bug#73661)

The intentation behavior differed between c-mode/c++-mode
and *-ts-mode for initializer lists where the first element was
not at beginning-of-line.  The anchor-prev-sibling function gave
up and returned nil, but it should (probably) anchor on the
first element in the initializer list, such as this:

return { v1, v2, ...,
         y1, y2, ... };

c-ts-mode behaved better and figured out how to align, but I
added a test for a similar compound literal to prevent
regressions.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--anchor-prev-sibling):
Anchor at first sibling unless bol is found.

* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New
initializer list and compound literal test.

Copyright-paperwork-exempt: yes

14 months agoAvoid segfaults in Rmail-MIME
Eli Zaretskii [Wed, 9 Oct 2024 13:21:08 +0000 (16:21 +0300)]
Avoid segfaults in Rmail-MIME

Rmail-MIME decodes text of email, including removal of
CR characters, but that can segfault if the text of some
MIME part is empty.
* src/coding.c (decode_coding_raw_text):
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text): Don't
attempt to decode empty text region.

14 months agoEglot: use :immediate t when resolving completions (bug#73279)
Brennan Vincent [Wed, 9 Oct 2024 11:30:30 +0000 (06:30 -0500)]
Eglot: use :immediate t when resolving completions (bug#73279)

Copyright-paperwork-exempt: Yes

* lisp/progmodes/eglot.el (eglot-completion-at-point): Tweak
eglot--request call.

14 months agoEglot: minor changes to doc and docstrings
João Távora [Wed, 9 Oct 2024 11:26:27 +0000 (06:26 -0500)]
Eglot: minor changes to doc and docstrings

* doc/misc/eglot.texi (Quick Start): Tweak.
(Setting Up LSP Servers): Tweak.
(Customizing Eglot): Clarify eglot-connect-hook and
eglot-initialized-hook.

* lisp/progmodes/eglot.el (eglot-connect-hook)
(eglot-server-initialized-hook): Rework docstring.

14 months agoRevert "Set treesit-primary-parser for tree-sitter modes"
Yuan Fu [Wed, 9 Oct 2024 00:33:11 +0000 (17:33 -0700)]
Revert "Set treesit-primary-parser for tree-sitter modes"

This reverts commit ed57faafc74e0810b492841deccb3cdc77a258ff.

14 months agoRemove duplicate indent rules in elixir-ts-mode
Yuan Fu [Tue, 8 Oct 2024 00:27:13 +0000 (17:27 -0700)]
Remove duplicate indent rules in elixir-ts-mode

* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): There are
two forms adding heex-ts--indent-rules, remove one of them.

14 months agoSet treesit-primary-parser for tree-sitter modes
Yuan Fu [Tue, 8 Oct 2024 00:24:32 +0000 (17:24 -0700)]
Set treesit-primary-parser for tree-sitter modes

I debated whether to do this, since technically speaking it's
not needed for single-language modes.  But ultimately it's
better to be explicit and set a good example with builtin modes.

* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode):
* lisp/progmodes/csharp-mode.el (csharp-ts-mode):
* lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode):
* lisp/progmodes/go-ts-mode.el (go-ts-mode):
(go-mod-ts-mode):
* lisp/progmodes/heex-ts-mode.el (heex-ts-mode):
* lisp/progmodes/java-ts-mode.el (java-ts-mode):
* lisp/progmodes/json-ts-mode.el (json-ts-mode):
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode):
* lisp/progmodes/python.el (python-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode):
* lisp/progmodes/sh-script.el:
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode):
(tsx-ts-mode):
* lisp/textmodes/css-mode.el (css-ts-mode):
* lisp/textmodes/html-ts-mode.el (html-ts-mode):
* lisp/textmodes/toml-ts-mode.el (toml-ts-mode):
* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode): Set
treesit-primary-parser.

14 months ago; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capitalisation.
Sean Whitton [Sun, 6 Oct 2024 05:38:57 +0000 (13:38 +0800)]
; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capitalisation.

14 months agoDelete XIE X extension from TODO
Stefan Kangas [Sat, 5 Oct 2024 23:47:50 +0000 (01:47 +0200)]
Delete XIE X extension from TODO

According to Wikipedia, XIE "is no longer included in the X11 reference
distribution, having been removed with X11R6.7 in 2004."
Ref: https://en.wikipedia.org/wiki/X_Image_Extension

* etc/TODO: Delete item to use XIE X extension.

14 months ago; * lisp/progmodes/csharp-mode.el (treesit-query-compile): Declare.
Eli Zaretskii [Sat, 5 Oct 2024 11:38:48 +0000 (14:38 +0300)]
; * lisp/progmodes/csharp-mode.el (treesit-query-compile): Declare.

14 months ago; * lisp/window.el (switch-to-prev-buffer-skip-regexp): Doc fix (bug#73545).
Eli Zaretskii [Sat, 5 Oct 2024 10:30:30 +0000 (13:30 +0300)]
; * lisp/window.el (switch-to-prev-buffer-skip-regexp): Doc fix (bug#73545).

14 months agoRestore comment/string check for 'electric-layout-mode'
Morgan Willcock [Tue, 24 Sep 2024 18:33:11 +0000 (19:33 +0100)]
Restore comment/string check for 'electric-layout-mode'

This reverts an accidental change which allowed
'electric-layout-mode' to insert newlines inside strings and
comments.  The new behavior can be obtained by setting the
new variable 'electric-layout-allow-in-comment-or-string' to a
non-nil value.
* lisp/electric.el (electric-layout-allow-in-comment-or-string):
New variable to determine whether inserting newlines is
permitted within comments or strings.
(electric-layout-post-self-insert-function-1): Restore the
previous default behavior of not inserting newlines within
comments or strings.

14 months agoUpdate Arni Magnusson's email address
Stefan Kangas [Sat, 5 Oct 2024 00:24:30 +0000 (02:24 +0200)]
Update Arni Magnusson's email address

* .mailmap:
* doc/lispref/ChangeLog.1:
* doc/misc/ChangeLog.1:
* lisp/ChangeLog.16:
* lisp/ChangeLog.17:
* lisp/progmodes/bat-mode.el: Update email address of
Arni Magnusson.  (Bug#73631)

14 months agoFix python-ts-mode-map docstring
Stefan Kangas [Fri, 4 Oct 2024 23:58:46 +0000 (01:58 +0200)]
Fix python-ts-mode-map docstring

* lisp/progmodes/python.el (python-ts-mode-map): Fix docstring.

14 months agoNormalize "Commentary" section in eudc.el
Stefan Kangas [Fri, 4 Oct 2024 22:45:54 +0000 (00:45 +0200)]
Normalize "Commentary" section in eudc.el

* lisp/net/eudc.el: Normalize "Commentary" section to make
'M-x describe-package RET eudc RET' more useful.

14 months agoExpand email abbrevs in X-Debbugs-Cc header.
Eli Zaretskii [Fri, 4 Oct 2024 13:32:13 +0000 (16:32 +0300)]
Expand email abbrevs in X-Debbugs-Cc header.

* lisp/mail/mailabbrev.el (mail-abbrev-mode-regexp):
* lisp/mail/mailalias.el (mail-address-field-regexp)
(mail-complete-alist): Add "X-Debbugs-Cc" to headers where email
aliases should be expanded, for compatibility with emacsbug.el.

14 months agoFix 'list-tags' when invoked from a non-file buffer
Eli Zaretskii [Fri, 4 Oct 2024 11:39:50 +0000 (14:39 +0300)]
Fix 'list-tags' when invoked from a non-file buffer

This use case was broken by the improvement that attempts to
offer the current buffer's file name as the default file whose
tags to list.
* lisp/progmodes/etags.el
(tags--get-current-buffer-name-in-tags-file): Doc fix.  Return nil
if no file is associated with the current buffer, and avoid
signaling an error if 'buffer-file-name' returns nil.  (Bug#37611)
(list-tags): Doc fix.  Signal an error if the user specifies no
file name at the prompt.

* doc/emacs/maintaining.texi (List Identifiers): Fix wording of
the documentation of 'list-tags'.

14 months agocount-windows: Fix reference to walk-windows
Sean Whitton [Fri, 4 Oct 2024 09:28:38 +0000 (17:28 +0800)]
count-windows: Fix reference to walk-windows

* lisp/window.el (count-windows): Refer to walk-windows for the
precise meaning of both the MINIBUF and ALL-FRAMES arguments,
not just the ALL-FRAMES argument.  In both functions, these
arguments are both passed through to window-list-1.

14 months ago* lisp/info-look.el (mapc): Add use-package manual's index.
Stefan Kangas [Thu, 3 Oct 2024 21:52:55 +0000 (23:52 +0200)]
* lisp/info-look.el (mapc): Add use-package manual's index.

14 months ago; * ChangeLog.4: Fix attribution of one change.
Sean Whitton [Thu, 3 Oct 2024 10:39:16 +0000 (18:39 +0800)]
; * ChangeLog.4: Fix attribution of one change.

14 months agoUpdate csharp-ts-mode font-lock (bug#73369)
Yuan Fu [Fri, 20 Sep 2024 08:16:44 +0000 (01:16 -0700)]
Update csharp-ts-mode font-lock (bug#73369)

Adapt to the latest c-sharp grammar.

* lisp/progmodes/csharp-mode.el:
(csharp-ts-mode--test-this-expression):
(csharp-ts-mode--test-interpolated-string-text):
(csharp-ts-mode--test-type-constraint):
(csharp-ts-mode--test-type-of-expression):
(csharp-ts-mode--test-name-equals):
(csharp-ts-mode--test-if-directive):
(csharp-ts-mode--test-method-declaration-type-field): New
functions.
(csharp-ts-mode--type-field): New variable.
(csharp-ts-mode--font-lock-settings): Fix font-lock rules.

14 months ago; * doc/lispref/variables.texi (Creating Buffer-Local): Fix wording.
Eli Zaretskii [Wed, 2 Oct 2024 05:47:29 +0000 (08:47 +0300)]
; * doc/lispref/variables.texi (Creating Buffer-Local): Fix wording.

14 months ago; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docstring.
Sean Whitton [Wed, 2 Oct 2024 04:06:46 +0000 (12:06 +0800)]
; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docstring.

14 months ago; * admin/MAINTAINERS: Take VC subsystem, add note about handovers
Sean Whitton [Wed, 2 Oct 2024 01:21:11 +0000 (09:21 +0800)]
; * admin/MAINTAINERS: Take VC subsystem, add note about handovers

Based on discussion with the head maintainers and Dmitry by private mail.

14 months ago; rcirc-update-activity-string: Justify some existing behaviour
Sean Whitton [Wed, 2 Oct 2024 01:18:35 +0000 (09:18 +0800)]
; rcirc-update-activity-string: Justify some existing behaviour

14 months agoFix inconsistency in value of rcirc-activity-string
Sean Whitton [Wed, 2 Oct 2024 01:15:46 +0000 (09:15 +0800)]
Fix inconsistency in value of rcirc-activity-string

* lisp/net/rcirc.el (rcirc-update-activity-string): Consistently
don't display anything if there aren't any IRC connections.

14 months agoRevert "; Minor clarification in variables.texi"
Stefan Kangas [Tue, 1 Oct 2024 22:12:34 +0000 (00:12 +0200)]
Revert "; Minor clarification in variables.texi"

This reverts commit 44156c2140772fa04ebbc0a488a85f0741e0c2ef.

14 months ago; Minor clarification in variables.texi
Stefan Kangas [Tue, 1 Oct 2024 20:09:42 +0000 (22:09 +0200)]
; Minor clarification in variables.texi

* doc/lispref/variables.texi (Creating Buffer-Local): Add comma to make
reference clearer.

14 months agoTag interactive commands in 'lua-ts-mode'
john muhl [Sat, 13 Jul 2024 23:36:38 +0000 (18:36 -0500)]
Tag interactive commands in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts-send-buffer)
(lua-ts-send-file, lua-ts-send-region): Mark inferior interaction
commands that are only relevant in Lua buffers.  (Bug#73586)

14 months ago; * lisp/info-look.el: Add two more links.
Stefan Kangas [Tue, 1 Oct 2024 19:24:09 +0000 (21:24 +0200)]
; * lisp/info-look.el: Add two more links.

14 months agoMention LSP acronym in eglot defgroup docstring
Stefan Kangas [Mon, 30 Sep 2024 22:24:23 +0000 (00:24 +0200)]
Mention LSP acronym in eglot defgroup docstring

* lisp/progmodes/eglot.el (eglot): Improve defgroup description by
mentioning the LSP acronym, for users that might be searching for that.

14 months agoChange :group of 'eglot' defgroup to 'tools'
Stefan Kangas [Mon, 30 Sep 2024 22:15:08 +0000 (00:15 +0200)]
Change :group of 'eglot' defgroup to 'tools'

In 'M-x customize', Eglot fits in better in "Programming -> Tools", with
the likes of Flymake and Gud, than it does in "Applications", with ERC
and Newsticker.

* lisp/progmodes/eglot.el (eglot): Change :group of defgroup to 'tools'.

14 months agoRemove out-of-date documentation from python.el
Stefan Kangas [Mon, 30 Sep 2024 18:37:27 +0000 (20:37 +0200)]
Remove out-of-date documentation from python.el

* lisp/progmodes/python.el: Remove out-of-date documentation about
automatic indentation; 'electric-indent-mode' is enabled by default in
Emacs 24.4 or later, so this is no longer an issue.

14 months agoFix executing commands in Eshell using "env" with no local variables
Jim Porter [Wed, 25 Sep 2024 18:59:32 +0000 (11:59 -0700)]
Fix executing commands in Eshell using "env" with no local variables

* lisp/eshell/esh-var.el (eshell/env): Throw 'eshell-replace-command' as
needed.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/local-variables/env/no-locals): New test (bug#73479).

14 months agoFix a typo in the calendar manual
Gautier Ponsinet [Sun, 29 Sep 2024 11:00:05 +0000 (14:00 +0300)]
Fix a typo in the calendar manual

* doc/emacs/calendar.texi (Calendar Unit Motion): Add a missing
parenthesis.  (Bug#73555)

14 months ago; Fix a thinko in sieve-manage.el
Eli Zaretskii [Sun, 29 Sep 2024 12:42:21 +0000 (15:42 +0300)]
; Fix a thinko in sieve-manage.el

* lisp/net/sieve-manage.el (sieve-manage--append-to-log): Fix
thinko.  (Bug#54154)

14 months ago; * nt/INSTALL: Update MinGW notes URL. (Bug#73528)
Eli Zaretskii [Sat, 28 Sep 2024 12:36:06 +0000 (15:36 +0300)]
; * nt/INSTALL: Update MinGW notes URL.  (Bug#73528)

14 months ago; Fix last changes in php-ts-mode.el
Eli Zaretskii [Sat, 28 Sep 2024 12:06:44 +0000 (15:06 +0300)]
; Fix last changes in php-ts-mode.el

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--test-namespace-name-as-prefix-p)
(php-ts-mode--test-namespace-aliasing-clause-p)
(php-ts-mode--test-namespace-use-group-clause-p): Doc fixes.
(treesit-query-compile): Declare.

14 months agoRequire ert-x for use by 'ert-font-lock-deftest-file'
Morgan Willcock [Tue, 24 Sep 2024 19:19:08 +0000 (20:19 +0100)]
Require ert-x for use by 'ert-font-lock-deftest-file'

This fixes a void-function error when 'ert-font-lock-deftest-file'
is called when ert-x has not already been loaded.
* lisp/emacs-lisp/ert-font-lock.el (ert): Require ert-x so that
'ert-resource-file' is available for use within
'ert-font-lock-deftest-file'.  (Bug#73254)

14 months ago; * admin/authors.el (authors-aliases): Don't ignore "one.last.kiss".
Eli Zaretskii [Sat, 28 Sep 2024 09:28:24 +0000 (12:28 +0300)]
; * admin/authors.el (authors-aliases): Don't ignore "one.last.kiss".

14 months agoFix php-ts-mode font-lock for latest PHP grammar (bug#73516)
Vincenzo Pupillo [Fri, 27 Sep 2024 11:07:06 +0000 (13:07 +0200)]
Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)

Version 0.23 of the PHP grammar introduced some changes that
affect the font lock.

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Update php, html, js and css
grammars version.
(php-ts-mode--parent-html-heuristic): Fix docstring
(php-ts-mode--test-namespace-name-as-prefix-p): New function.
(php-ts-mode--test-namespace-aliasing-clause-p): New function.
(php-ts-mode--test-namespace-use-group-clause-p): New function.
(php-ts-mode--font-lock-settings): Use the new functions.

14 months agoeieio.texi: Fix bug#73505
Stefan Monnier [Fri, 27 Sep 2024 14:35:18 +0000 (10:35 -0400)]
eieio.texi: Fix bug#73505

* doc/misc/eieio.texi (Introduction): Remove "missing features" which
aren't missing any more.
(Generics, Methods): Delete sections.
(Inheritance): Adjust reference accordingly.
(Static Methods): Merge into the parent node.
(Writing Methods): Refer to the ELisp manual for `cl-defmethod/defgeneric`.

14 months ago; cperl-mode.el: Fix an invalid face specification
Harald Jörg [Thu, 26 Sep 2024 13:20:01 +0000 (15:20 +0200)]
; cperl-mode.el: Fix an invalid face specification

* lisp/progmodes/cperl-mode.el (cperl-method-call): Avoid doubly
quoting the parent face.  This made htmlize-buffer fail.

14 months ago; Recommend GNU Find for 'find-dired'
Eli Zaretskii [Thu, 26 Sep 2024 07:30:56 +0000 (10:30 +0300)]
; Recommend GNU Find for 'find-dired'

* lisp/find-dired.el (find-dired): Doc fix (bug#73455).

14 months ago; * lisp/filesets.el (filesets-homepage): Fix URL.
Stefan Kangas [Thu, 26 Sep 2024 00:10:16 +0000 (02:10 +0200)]
; * lisp/filesets.el (filesets-homepage): Fix URL.

14 months agoDelete duplicated line in Viper refcard
Andrés Ramírez [Wed, 25 Sep 2024 23:50:52 +0000 (01:50 +0200)]
Delete duplicated line in Viper refcard

* etc/refcards/viperCard.tex: Delete duplicated line.  (Bug#73480)

Copyright-paperwork-exempt: yes

14 months agoFix Tramp shortdoc integration
Michael Albinus [Wed, 25 Sep 2024 17:43:07 +0000 (19:43 +0200)]
Fix Tramp shortdoc integration

* lisp/net/tramp-integration.el (tramp-syntax): Declare.
(shortdoc): Check, that Tramp has `default' syntax.

14 months ago* lisp/imenu.el (imenu-flatten): More limitations in docstring (bug#73117)
Juri Linkov [Wed, 25 Sep 2024 17:14:12 +0000 (20:14 +0300)]
* lisp/imenu.el (imenu-flatten): More limitations in docstring (bug#73117)

14 months agoremember-data-file: Don't unconditionally call set-visited-file-name
Sean Whitton [Wed, 25 Sep 2024 15:02:53 +0000 (16:02 +0100)]
remember-data-file: Don't unconditionally call set-visited-file-name

* lisp/textmodes/remember.el (remember-data-file): Don't
unconditionally call set-visited-file-name.

14 months agoAlign columns in which-key with wide characters properly
Thomas Voss [Wed, 25 Sep 2024 00:17:49 +0000 (02:17 +0200)]
Align columns in which-key with wide characters properly

In the case that a character takes up multple columns (such as
`…' when used as a truncation character), make sure that the
columns are still aligned properly.
* lisp/which-key.el (which-key--pad-column): Use `string-width'
instead of `length'.  (Bug#73463)

Copyright-paperwork-exempt: yes

14 months agobibtex-mode: fix patch bibtex validation for non-file buffers
Roland Winkler [Wed, 25 Sep 2024 04:14:27 +0000 (23:14 -0500)]
bibtex-mode: fix patch bibtex validation for non-file buffers

14 months agoDocument 'buttonize-region' in manual
Robert Pluim [Tue, 24 Sep 2024 15:03:49 +0000 (17:03 +0200)]
Document 'buttonize-region' in manual

It was added in emacs-29, but never added to the lisp reference
manual.

* doc/lispref/display.texi (Making Buttons): Document
'buttonize-region'.

14 months ago; * lisp/yank-media.el (yank-media-handler): Fix docstring typo.
Robert Pluim [Tue, 24 Sep 2024 15:02:21 +0000 (17:02 +0200)]
; * lisp/yank-media.el (yank-media-handler): Fix docstring typo.

14 months agoUse black-on-white by default for doc-view-svg-face.
Tassilo Horn [Mon, 23 Sep 2024 16:50:29 +0000 (18:50 +0200)]
Use black-on-white by default for doc-view-svg-face.

* lisp/doc-view.el (doc-view-svg-face): Define black on white as
default value instead of using the current theme's values.
* etc/NEWS: Adjust entry for doc-view-svg-face.

14 months agoetags-regen-file-extensions: Enable for more extensions
Dmitry Gutov [Mon, 23 Sep 2024 18:35:00 +0000 (21:35 +0300)]
etags-regen-file-extensions: Enable for more extensions

* lisp/progmodes/etags-regen.el (etags-regen-file-extensions):
Add more extensions, but remove "a".  From the ones recognized by
etags, also omit "t", "ml", "l", "def" and "inc", see
https://lists.gnu.org/archive/html/emacs-devel/2024-09/msg00735.html.
(etags-regen--all-files): Use 'string-match-p' for performance.
Bind 'case-fold-search' to t to match extensions in any case.

14 months ago; Fix last change
Eli Zaretskii [Mon, 23 Sep 2024 14:13:31 +0000 (17:13 +0300)]
; Fix last change

* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Fix last change (bug#73427).  Suggested by
Mattias Engdegård <mattias.engdegard@gmail.com>.

14 months ago; Improve documentation of 'append'
Eli Zaretskii [Mon, 23 Sep 2024 11:41:34 +0000 (14:41 +0300)]
; Improve documentation of 'append'

* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Improve documentation of 'append'.  (Bug#73427)

14 months agoUpdate and improve UI of sql-read-product (bug#73412)
Stephen Berman [Sat, 21 Sep 2024 20:23:11 +0000 (22:23 +0200)]
Update and improve UI of sql-read-product (bug#73412)

* lisp/progmodes/sql.el (sql-read-product): In invocation of
completing-read use format-prompt and make deprecated argument
INITIAL-INPUT nil.
(sql-set-product, sql-product-interactive): In invocation of
sql-read-product adjust prompt to use of format-prompt.