]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 months agoElisp manual: Mention 'write-region' for saving the buffer
Jeremy Bryant [Thu, 30 Nov 2023 23:14:46 +0000 (23:14 +0000)]
Elisp manual: Mention 'write-region' for saving the buffer

* doc/emacs/files.texi (Save Commands):  Mention
'write-region'.  (Bug#67313)

11 months agoDocument, that PROCESS of signal-process can be a string
Michael Albinus [Thu, 30 Nov 2023 13:37:40 +0000 (14:37 +0100)]
Document, that PROCESS of signal-process can be a string

* doc/lispref/processes.texi (Signals to Processes) [signal-process]:
* src/process.c (Fsignal_process): Document, that PROCESS can be a
string.

11 months agoFix typescript-ts-mode indentation for switch statements
nverno [Mon, 27 Nov 2023 16:55:23 +0000 (08:55 -0800)]
Fix typescript-ts-mode indentation for switch statements

* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Add
indentation rule for switch case and default keywords.  (Bug#67488)

11 months agoRepair `tab-first-completion` (bug#67158)
Aymeric Agon-Rambosson [Sat, 25 Nov 2023 15:07:49 +0000 (10:07 -0500)]
Repair `tab-first-completion` (bug#67158)

Copyright-paperwork-exempt: yes

* lisp/indent.el (indent-for-tab-command): Use `syntax-class` to fix
longstanding thinko introduced back in 2020 in commit 64c851166442.
Rework the check for `syn` because TAB always completed when
`tab-first-completion` had value `word-or-paren` or `word-or-paren-or-punct`.

(cherry picked from commit c20226a1ef5fbdfd3e71e2ef8654ee19994c0f2f)

11 months agoFix behavior of 'split-root-window-*' with 'C-u'
Eli Zaretskii [Wed, 29 Nov 2023 14:14:03 +0000 (16:14 +0200)]
Fix behavior of 'split-root-window-*' with 'C-u'

* lisp/window.el (split-root-window-below)
(split-root-window-right): Fix the 'interactive' form to work with
raw 'C-u' as well.  (Bug#67459)
(split-window-below, split-window-right, split-root-window-below)
(split-root-window-right): Doc fix.

11 months ago; * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Fix last change.
Eli Zaretskii [Wed, 29 Nov 2023 13:04:49 +0000 (15:04 +0200)]
; * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Fix last change.

11 months agoAdd more text to clarify the behavior of 'with-current-buffer'
Xiyue Deng [Wed, 29 Nov 2023 01:44:31 +0000 (17:44 -0800)]
Add more text to clarify the behavior of 'with-current-buffer'

* doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Expand
description of 'with-current-buffer'.  (Bug#67521)

Copyright-paperwork-exempt: yes

11 months agoFix example in Emacs user manual
Eli Zaretskii [Mon, 27 Nov 2023 13:03:22 +0000 (15:03 +0200)]
Fix example in Emacs user manual

* doc/emacs/custom.texi (Init Rebinding): Fix syntax of example.
Reported by silarakta <silarakta@protonmail.com>.  (Bug#67474)

11 months ago; Fix recent change in 'c-ts-mode'
Eli Zaretskii [Mon, 27 Nov 2023 12:21:19 +0000 (14:21 +0200)]
; Fix recent change in 'c-ts-mode'

* lisp/progmodes/c-ts-mode.el (c-ts-mode--prev-line-match)
(c-ts-mode--indent-styles): Fix wording of strings and comments.

11 months ago; Fix typo in Gnus manual (bug#67469).
Daniel Martín [Sun, 26 Nov 2023 23:22:20 +0000 (00:22 +0100)]
; Fix typo in Gnus manual (bug#67469).

11 months agoMention Titankey in Tramp, which has passed the tests
Michael Albinus [Mon, 27 Nov 2023 07:34:56 +0000 (08:34 +0100)]
Mention Titankey in Tramp, which has passed the tests

* doc/misc/tramp.texi (Frequently Asked Questions):
* lisp/net/tramp.el (tramp-security-key-confirm-regexp):
Mention also Titankey.

11 months agoFix c-ts-mode indentation after if/else (bug#67417)
Yuan Fu [Mon, 27 Nov 2023 01:42:51 +0000 (17:42 -0800)]
Fix c-ts-mode indentation after if/else (bug#67417)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--prev-line-match): New function.
(c-ts-mode--indent-styles): Add a rule for the empty line after
if/else/for/etc.

11 months agoFix indentation for else clause in c-ts-mode (bug#67417)
Yuan Fu [Mon, 27 Nov 2023 00:38:41 +0000 (16:38 -0800)]
Fix indentation for else clause in c-ts-mode (bug#67417)

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Add indentation for children of
else_clause.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts:
(Name): Add test for else-break.  Also make the test such that it
needs to indent correctly from scratch (rather than maintaining the
already correct indentation.)

11 months agoEnsure that directory is expanded in package-vc-checkout
Joseph Turner [Sat, 25 Nov 2023 22:57:45 +0000 (14:57 -0800)]
Ensure that directory is expanded in package-vc-checkout

* lisp/emacs-lisp/package-vc.el (package-vc-checkout): Expand
DIRECTORY.  (Bug#66115)

11 months ago* etc/PROBLEMS: Add entry about pinentry with gpgsm. (Bug#67012)
Ulrich Müller [Sat, 25 Nov 2023 14:26:52 +0000 (15:26 +0100)]
* etc/PROBLEMS: Add entry about pinentry with gpgsm.  (Bug#67012)

11 months ago; * admin/authors.el (authors-aliases): Add Noah Peart.
Eli Zaretskii [Sat, 25 Nov 2023 09:48:38 +0000 (11:48 +0200)]
; * admin/authors.el (authors-aliases): Add Noah Peart.

11 months agotypescript-ts-mode: Add missing 'operator' to treesit-font-lock-features
nverno [Fri, 24 Nov 2023 15:18:26 +0000 (07:18 -0800)]
typescript-ts-mode: Add missing 'operator' to treesit-font-lock-features

* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode):
Add operator to treesit-font-lock-feature-list (bug#67433).

11 months agoExtend D-Bus doc and test
Michael Albinus [Fri, 24 Nov 2023 15:34:26 +0000 (16:34 +0100)]
Extend D-Bus doc and test

* doc/misc/dbus.texi (Register Objects): Adapt doc of
dbus-unregister-service.

* test/lisp/net/dbus-tests.el (dbus--test-register-service):
Extend test.

11 months agoDo not unregister a D-Bus service which is a unique name
Michael Albinus [Fri, 24 Nov 2023 10:09:15 +0000 (11:09 +0100)]
Do not unregister a D-Bus service which is a unique name

* lisp/net/dbus.el (dbus-unregister-service): Check, whether
SERVICE is a known name.  (Bug#67386)

11 months agoFix byte-compilation warnings about 'sqlite-rollback'
Eli Zaretskii [Fri, 24 Nov 2023 07:30:53 +0000 (09:30 +0200)]
Fix byte-compilation warnings about 'sqlite-rollback'

* lisp/sqlite.el (sqlite-transaction, sqlite-commit)
(sqlite-rollback): Declare.
* lisp/emacs-lisp/multisession.el (sqlite-commit)
(sqlite-transaction): Remove declaration.

11 months agoMake python-ts-mode's syntax-highlighting more standardized
Dmitry Gutov [Thu, 23 Nov 2023 22:00:32 +0000 (00:00 +0200)]
Make python-ts-mode's syntax-highlighting more standardized

This was brought up in a Reddit discussion.

* lisp/progmodes/python.el (python--treesit-fontify-variable):
Use font-lock-variable-use-face (since it applies to references).
(python-ts-mode): Move 'property' from 3rd to 4th
treesit-font-lock-level.

11 months ago; Improve documentation of desktop.el in user manual
Eli Zaretskii [Thu, 23 Nov 2023 15:56:50 +0000 (17:56 +0200)]
; Improve documentation of desktop.el in user manual

* doc/emacs/misc.texi (Saving Emacs Sessions): Mention saving
minibuffer history via desktop.el.

11 months agoFix "Text is read-only" on backspacing initial Calc input
George Kuzler [Thu, 23 Nov 2023 00:45:55 +0000 (19:45 -0500)]
Fix "Text is read-only" on backspacing initial Calc input

Immediately after `calc-mode' opens the minibuffer for input
(because you typed a digit, "e", etc), pressing backspace
should clear the minibuffer and return you to the *Calculator*
buffer.  Instead, it leaves the minibuffer as-is and prints the
message "Text is read-only"; this is because the function used,
`erase-buffer', tries to erase the read-only minibuffer prompt.
Using `delete-minibuffer-contents' fixes this, since it doesn't
attempt to delete the prompt.
* lisp/calc/calc.el (calcDigit-backspace): Use
`delete-minibuffer-contents' instead of `erase-buffer'.  (Bug#67395)

Copyright-paperwork-exempt: yes

11 months agoAdd a doc string to simple.el (bug#67355)
Jeremy Bryant [Tue, 21 Nov 2023 23:27:44 +0000 (23:27 +0000)]
Add a doc string to simple.el (bug#67355)

* lisp/simple.el (kill-buffer--possibly-save): Add doc string.

11 months ago; Improve function documentation tips
Eli Zaretskii [Thu, 23 Nov 2023 15:26:09 +0000 (17:26 +0200)]
; Improve function documentation tips

* doc/lispref/tips.texi (Documentation Tips): Clarify the good
style of descriptions in doc strings.

11 months agoMention "visual line" in user manual
Eli Zaretskii [Thu, 23 Nov 2023 14:56:10 +0000 (16:56 +0200)]
Mention "visual line" in user manual

* doc/emacs/display.texi (Visual Line Mode):
* doc/emacs/basic.texi (Continuation Lines, Moving Point): Mention
"visual line".  (Bug#67382)

11 months ago; * doc/lispref/minibuf.texi (Programmed Completion): Improve indexing.
Eli Zaretskii [Thu, 23 Nov 2023 14:43:17 +0000 (16:43 +0200)]
; * doc/lispref/minibuf.texi (Programmed Completion): Improve indexing.

11 months agoAllow listing Emoji from a read-only buffer
Eli Zaretskii [Thu, 23 Nov 2023 14:07:31 +0000 (16:07 +0200)]
Allow listing Emoji from a read-only buffer

* lisp/international/emoji.el (emoji-list): Don't barf here if the
original buffer is read-inly...
(emoji-list-select): ...barf here instead.  (Bug#67400)
(emoji-list): Doc fix.

11 months agoFix CRLF handling in Tramp (don't merge)
Michael Albinus [Wed, 22 Nov 2023 12:29:19 +0000 (13:29 +0100)]
Fix CRLF handling in Tramp (don't merge)

* lisp/net/tramp-sh.el (tramp-send-command-and-read): Use 'space'
instead of 'blank' in rx expression, in order to handle also CR
and alike.  Reported by Dominique Quatravaux
<dominique@quatravaux.org>.

11 months agoAnnotate java-ts-mode-test-movement with expected result
Dmitry Gutov [Tue, 21 Nov 2023 14:08:09 +0000 (16:08 +0200)]
Annotate java-ts-mode-test-movement with expected result

Do not merge to master.

11 months agoBackport: Add more java indentation tests
Theodor Thornhill [Mon, 6 Feb 2023 08:36:08 +0000 (09:36 +0100)]
Backport: Add more java indentation tests

* test/lisp/progmodes/java-ts-mode-resources/indent.erts: Use default
indent offset, and tweak the indentation examples.

(cherry picked from commit dbe7803aa1e8249bd70f67f25f19aedabeb9cc22)

11 months agoBackport: Add test for java indentation (bug#61115)
Theodor Thornhill [Fri, 3 Feb 2023 08:09:49 +0000 (09:09 +0100)]
Backport: Add test for java indentation (bug#61115)

* test/lisp/progmodes/java-ts-mode-resources/indent.erts: Add new test
case.

(cherry picked from commit 229d0772e235f51812ed8020a31f9a8de366c7ba)

11 months agotypescript-ts-mode: Support indentation for conditionals without braces
Noah Peart [Tue, 21 Nov 2023 13:59:48 +0000 (15:59 +0200)]
typescript-ts-mode: Support indentation for conditionals without braces

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Support indentation for
conditionals without braces (bug#67031).

* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
(Statement indentation without braces): New test.

11 months agoBackport: Add some basic tests for java-ts-mode and typescript-ts-mode
Theodor Thornhill [Mon, 16 Jan 2023 13:33:27 +0000 (14:33 +0100)]
Backport: Add some basic tests for java-ts-mode and typescript-ts-mode

* test/lisp/progmodes/java-ts-mode-resources/indent.erts: New file
with tests for indentation.
* test/lisp/progmodes/java-ts-mode-resources/movement.erts: New file
with tests for movement.
* test/lisp/progmodes/java-ts-mode-tests.el: New tests.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts: New
file with tests for indentation.
* test/lisp/progmodes/typescript-ts-mode-tests.el: New tests.

(cherry picked from commit c8dd37b16c574beda900d4ee48ac7b4ab4a2ee56)

11 months agoFix 'with-sqlite-transaction' when BODY fails
Eli Zaretskii [Tue, 21 Nov 2023 13:36:22 +0000 (15:36 +0200)]
Fix 'with-sqlite-transaction' when BODY fails

* lisp/sqlite.el (with-sqlite-transaction): Don't commit changes
if BODY errors out.  Roll back the transaction if committing
fails.  (Bug#67142)

* etc/NEWS:
* doc/lispref/text.texi (Database): Document the error handling in
'with-sqlite-transaction'.

11 months ago; * doc/emacs/cmdargs.texi (Initial Options): Fix last change.
Eli Zaretskii [Tue, 21 Nov 2023 12:40:27 +0000 (14:40 +0200)]
; * doc/emacs/cmdargs.texi (Initial Options): Fix last change.

11 months ago; Mention that -x and --script ignore file-locals
Eli Zaretskii [Tue, 21 Nov 2023 12:23:38 +0000 (14:23 +0200)]
; Mention that -x and --script ignore file-locals

* doc/emacs/cmdargs.texi (Initial Options): Document that --script
and -x ignore file-local variables.  (Bug#67321)

11 months ago; * doc/emacs/search.texi (Special Isearch): More accurate text.
Eli Zaretskii [Mon, 20 Nov 2023 19:38:55 +0000 (21:38 +0200)]
; * doc/emacs/search.texi (Special Isearch): More accurate text.

11 months agoFix wording in ELisp Intro manual
Richard Stallman [Sun, 19 Nov 2023 10:14:36 +0000 (12:14 +0200)]
Fix wording in ELisp Intro manual

* doc/lispintro/emacs-lisp-intro.texi (Lisp macro): Improve
wording in description of 'unless'.  (Bug#67185)

11 months agoAdd missing python-ts-mode keyword (bug#67015)
Yuan Fu [Sat, 18 Nov 2023 19:01:08 +0000 (11:01 -0800)]
Add missing python-ts-mode keyword (bug#67015)

* lisp/progmodes/python.el (python--treesit-keywords): Add "not in".

11 months agoFix string-pixel-width with global setting of display-line-numbers
Dmitry Gutov [Sat, 18 Nov 2023 16:35:18 +0000 (18:35 +0200)]
Fix string-pixel-width with global setting of display-line-numbers

* lisp/emacs-lisp/subr-x.el (string-pixel-width):
Instead of checking for display-line-numbers-mode, set the
display-line-numbers variable to nil (bug#67248).

11 months agoDocument changes in 'edmacro-parse-keys'
Eli Zaretskii [Sat, 18 Nov 2023 09:52:48 +0000 (11:52 +0200)]
Document changes in 'edmacro-parse-keys'

* lisp/edmacro.el (edmacro-parse-keys): Add a comment for forcing
output to be a vector.
(read-kbd-macro): Adjust the doc string to changes in
'edmacro-parse-keys'.  (Bug#67182)

11 months agoAdd 2 SQLite extensions to allow-list.
Eli Zaretskii [Sat, 18 Nov 2023 09:11:04 +0000 (11:11 +0200)]
Add 2 SQLite extensions to allow-list.

* src/sqlite.c (Fsqlite_load_extension): Add 2 Free Software
extensions to the allow-list.  For the details, see
https://lists.gnu.org/archive/html/emacs-devel/2023-11/msg00234.html.

11 months ago* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Be more verbose.
Michael Albinus [Fri, 17 Nov 2023 17:17:28 +0000 (18:17 +0100)]
* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Be more verbose.

11 months agoMake Tramp aware of completion-regexp-list (don't merge)
Michael Albinus [Fri, 17 Nov 2023 17:16:58 +0000 (18:16 +0100)]
Make Tramp aware of completion-regexp-list (don't merge)

* lisp/net/tramp.el (tramp-skeleton-file-name-all-completions):
New defmacro.
(tramp-completion-handle-file-name-all-completions):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-name-all-completions):
* lisp/net/tramp-crypt.el (tramp-crypt-handle-file-name-all-completions):
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-name-all-completions):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
* lisp/net/tramp-smb.el (tramp-smb-handle-file-name-all-completions):
* lisp/net/tramp-sudoedit.el
(tramp-sudoedit-handle-file-name-all-completions): Use it.

11 months ago; * doc/lispref/debugging.texi (Debugging): Add cross-references.
Eli Zaretskii [Fri, 17 Nov 2023 12:28:13 +0000 (14:28 +0200)]
; * doc/lispref/debugging.texi (Debugging): Add cross-references.

11 months ago; doc/lispref/debugging.texi: Add reference to Profiler docs (bug#67236).
Ihor Radchenko [Fri, 17 Nov 2023 09:47:46 +0000 (11:47 +0200)]
; doc/lispref/debugging.texi: Add reference to Profiler docs (bug#67236).

11 months agoAdd 5 docstrings to abbrev.el (bug#67153)
Jeremy Bryant [Wed, 15 Nov 2023 23:15:46 +0000 (23:15 +0000)]
Add 5 docstrings to abbrev.el (bug#67153)

* lisp/abbrev.el (prepare-abbrev-list-buffer, add-abbrev)
(inverse-add-abbrev, abbrev--describe)
(abbrev--possibly-save): Add doc strings.

11 months ago; Clarify wording about arguments in doc strings
Eli Zaretskii [Fri, 17 Nov 2023 07:04:20 +0000 (09:04 +0200)]
; Clarify wording about arguments in doc strings

* doc/lispref/tips.texi (Documentation Tips): Clarify "important
arguments".  (Bug#67217)

11 months ago; Improve cross-references in description of 'pcase'
Eli Zaretskii [Thu, 16 Nov 2023 19:55:10 +0000 (21:55 +0200)]
; Improve cross-references in description of 'pcase'

* doc/lispref/control.texi (pcase Macro, Backquote Patterns):
Improve cross-references.

12 months ago; * src/editfns.c (Fline_beginning_position): Doc fix.
Eli Zaretskii [Thu, 16 Nov 2023 09:30:48 +0000 (11:30 +0200)]
; * src/editfns.c (Fline_beginning_position): Doc fix.

12 months ago; Improve indexing in ELisp manual
Eli Zaretskii [Thu, 16 Nov 2023 06:24:13 +0000 (08:24 +0200)]
; Improve indexing in ELisp manual

* doc/lispref/tips.texi (Documentation Tips, Coding Conventions)
(Key Binding Conventions, Programming Tips, Compilation Tips)
(Warning Tips, Comment Tips, Library Headers): Improve indexing.

12 months agoFix CBZ file detection in doc-view-mode
Morgan Smith [Sun, 12 Nov 2023 17:31:39 +0000 (12:31 -0500)]
Fix CBZ file detection in doc-view-mode

* lisp/doc-view.el (doc-view-set-doc-type): Fix CBZ file
detection.  (Bug#67133)

This fix is almost identical to the previous fix for ODF file
detection in bug#54947 which resulted in commit
b3ff4905388834994ff26d9d033d6bc62b094c1c

12 months ago* lisp/progmodes/eglot.el (eglot-server-programs): Fix previous commit.
João Távora [Wed, 15 Nov 2023 10:12:03 +0000 (04:12 -0600)]
* lisp/progmodes/eglot.el (eglot-server-programs): Fix previous commit.

(cherry picked from commit 58d9e735e721ecf0187a5e15eefc7641112ace0b)

12 months ago; * doc/misc/eglot.texi (Eglot Commands): Fix typos (bug#67159).
Eli Zaretskii [Tue, 14 Nov 2023 19:14:48 +0000 (21:14 +0200)]
; * doc/misc/eglot.texi (Eglot Commands): Fix typos (bug#67159).

Reported by Alfie John <alfie@rustjobs.com>.

12 months agoEglot: Send standard :language-id for typescript-language-server
João Távora [Tue, 14 Nov 2023 00:06:24 +0000 (00:06 +0000)]
Eglot: Send standard :language-id for typescript-language-server

bug#67150

* lisp/progmodes/eglot.el (eglot-server-programs): Update
language-id for languages handled by typescript-language-server.

(cherry picked from commit 1fe949888057b0275da041288709bd5690501974)

12 months agoTypofix in the doc/lispref/modes.texi
Zajcev Evgeny [Tue, 14 Nov 2023 10:32:57 +0000 (13:32 +0300)]
Typofix in the doc/lispref/modes.texi

12 months ago; Fix 'add-face-text-property' shortdoc
Eshel Yaron [Sun, 12 Nov 2023 20:42:25 +0000 (21:42 +0100)]
; Fix 'add-face-text-property' shortdoc

* lisp/emacs-lisp/shortdoc.el (text-properties): Add missing
':no-eval' keyword.  (Bug#67138)

12 months agoFix spell-checking email message with citations
Eli Zaretskii [Tue, 14 Nov 2023 13:14:01 +0000 (15:14 +0200)]
Fix spell-checking email message with citations

This became broken 7 years ago, when the 'boundp condition was
removed, and with it an important unrelated part of the code.
* lisp/textmodes/ispell.el (ispell-message): Fix cite-regexp.

12 months agoPass only the local parts of Eshell's $PATH to 'tramp-remote-path'
Xiaoyue Chen [Sun, 12 Nov 2023 20:04:02 +0000 (12:04 -0800)]
Pass only the local parts of Eshell's $PATH to 'tramp-remote-path'

* lisp/eshell/esh-proc.el (eshell-gather-process-output): Get the
local part of the $PATH (bug#67126).

Do not merge to master.

Copyright-paperwork-exempt: yes

12 months agoAdd two doc strings to cl-extra.el
Jeremy Bryant [Sun, 12 Nov 2023 15:07:23 +0000 (15:07 +0000)]
Add two doc strings to cl-extra.el

* lisp/emacs-lisp/cl-extra.el (cl--random-time)
(cl-find-class): Add docstrings.  (Bug#66949)

12 months agoImprove documentation of read syntax and printed representation
Eli Zaretskii [Sat, 11 Nov 2023 10:02:24 +0000 (12:02 +0200)]
Improve documentation of read syntax and printed representation

* doc/lispref/objects.texi (Syntax for Strings): Describe in more
detail how to specify special characters in string literals.
(Printed Representation, Character Type, Nonprinting Characters):
Improve information and add cross-references about printed
representation and read syntax.  (Bug#67033)

12 months ago; * doc/lispref/modes.texi (Other Font Lock Variables): Add link.
Eli Zaretskii [Sat, 11 Nov 2023 09:05:58 +0000 (11:05 +0200)]
; * doc/lispref/modes.texi (Other Font Lock Variables): Add link.

12 months ago; * lisp/dired.el (dired-use-ls-dired): Doc fix (bug#67053).
Eli Zaretskii [Sat, 11 Nov 2023 06:47:22 +0000 (08:47 +0200)]
; * lisp/dired.el (dired-use-ls-dired): Doc fix (bug#67053).

12 months agoImprove documentation of signaling errors in batch mode
Eli Zaretskii [Thu, 9 Nov 2023 08:33:28 +0000 (10:33 +0200)]
Improve documentation of signaling errors in batch mode

* doc/lispref/control.texi (Signaling Errors)
(Processing of Errors):
* doc/lispref/os.texi (Batch Mode):
* doc/lispref/debugging.texi (Invoking the Debugger):
* lisp/emacs-lisp/debug.el (debug):
* src/eval.c (Fsignal):
* lisp/subr.el (error): Document more prominently that signaling
an unhandled error in batch mode kills Emacs.  Better
documentation of backtrace in batch mode.

12 months agoFix treesit-simple-indent-presets docstring (bug#67007)
Yuan Fu [Thu, 9 Nov 2023 07:46:32 +0000 (23:46 -0800)]
Fix treesit-simple-indent-presets docstring (bug#67007)

* lisp/treesit.el (treesit-simple-indent-presets): Fix docstring.
* doc/lispref/modes.texi (Parser-based Indentation): Fix example.

12 months agoPrevent an infinite loop in todo-mode (bug#66994)
Stephen Berman [Wed, 8 Nov 2023 23:13:06 +0000 (00:13 +0100)]
Prevent an infinite loop in todo-mode (bug#66994)

* lisp/calendar/todo-mode.el (todo-item-start): Moving an item to
a todo file (with `C-u m') that had not yet been read into a
buffer puts point at the beginning of the file, from where it is
impossible to reach todo-item-start by this function, so don't try
in that case.

12 months agoFix cmake-ts-mode indentation (Bug#66845) emacs-29
Randy Taylor [Wed, 1 Nov 2023 02:08:25 +0000 (22:08 -0400)]
Fix cmake-ts-mode indentation (Bug#66845)

* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--indent-rules):
Support versions v0.3.0 and v0.4.0 of the grammar.
(cmake-ts-mode--font-lock-compatibility-fe9b5e0): Fix docstring.

12 months agoUpdate to Org 9.6.11
Kyle Meyer [Mon, 6 Nov 2023 02:46:42 +0000 (21:46 -0500)]
Update to Org 9.6.11

12 months ago; * lisp/bindings.el (right-word, left-word): Doc fix.
Eli Zaretskii [Sat, 4 Nov 2023 15:46:27 +0000 (17:46 +0200)]
; * lisp/bindings.el (right-word, left-word): Doc fix.

12 months ago; Document core input events problems with XInput2
Po Lu [Sat, 4 Nov 2023 11:03:27 +0000 (13:03 +0200)]
; Document core input events problems with XInput2

* etc/PROBLEMS: Document problems with XInput2 and core input
events.  (Bug#66765)

12 months agoSuggest alternative reason for ERT test duplication error
Mattias Engdegård [Fri, 3 Nov 2023 17:06:04 +0000 (18:06 +0100)]
Suggest alternative reason for ERT test duplication error

* lisp/emacs-lisp/ert.el (ert-set-test): Amend error message;
maybe the redefinition was caused by a file loaded twice.
(Bug#66782)

Suggested by Xiyue Deng.

(cherry picked from commit 425d23fbeaede81ab4f50b4073949cc1c8a3fbd0)

12 months agoFix description of 'Package-Requires' library header
Eli Zaretskii [Sat, 4 Nov 2023 07:59:45 +0000 (09:59 +0200)]
Fix description of 'Package-Requires' library header

* doc/lispref/tips.texi (Library Headers): Update the description
of the 'Package-Requires' header.  (Bug#66677)

12 months ago; * doc/misc/tramp.texi (FUSE setup): Fix typo.
Michael Albinus [Tue, 31 Oct 2023 16:32:23 +0000 (17:32 +0100)]
; * doc/misc/tramp.texi (FUSE setup): Fix typo.

12 months ago* lisp/emacs-lisp/cl-lib.el (cl--defalias): Improve&fix docstring
Stefan Monnier [Mon, 30 Oct 2023 22:50:47 +0000 (18:50 -0400)]
* lisp/emacs-lisp/cl-lib.el (cl--defalias): Improve&fix docstring

12 months agoAdd two docstrings in cl-lib.el
Jeremy Bryant [Sun, 29 Oct 2023 21:56:54 +0000 (21:56 +0000)]
Add two docstrings in cl-lib.el

* lisp/emacs-lisp/cl-lib.el (cl--set-buffer-substring)
(cl--defalias): Add docstrings.  (Bug#66828)

12 months agoFix Tramp (don't merge)
Michael Albinus [Fri, 27 Oct 2023 13:09:41 +0000 (15:09 +0200)]
Fix Tramp (don't merge)

* lisp/net/tramp.el (tramp-read-id-output): Identifiers can contain "-".

12 months ago; Fix typo
Michael Albinus [Thu, 26 Oct 2023 14:12:16 +0000 (16:12 +0200)]
; Fix typo

12 months ago* doc/misc/tramp.texi (Traces and Profiles): Fix indentation. (don't merge)
Michael Albinus [Thu, 26 Oct 2023 13:59:24 +0000 (15:59 +0200)]
* doc/misc/tramp.texi (Traces and Profiles): Fix indentation.  (don't merge)

12 months ago* doc/misc/tramp.texi (Traces and Profiles): Fix indentation. (Don't merge)
Michael Albinus [Wed, 25 Oct 2023 17:21:05 +0000 (19:21 +0200)]
* doc/misc/tramp.texi (Traces and Profiles): Fix indentation.  (Don't merge)

12 months agoFix guessing commands for zstandard archives in Dired
Eli Zaretskii [Wed, 25 Oct 2023 13:32:01 +0000 (16:32 +0300)]
Fix guessing commands for zstandard archives in Dired

* lisp/dired-aux.el (dired-guess-shell-alist-default): Fix
zstdandard commands.  (Bug#66532)

12 months agoFix eglot.texi (JSONRPC objects in Elisp) example
Matthew Woodcraft [Sun, 15 Oct 2023 18:50:26 +0000 (19:50 +0100)]
Fix eglot.texi (JSONRPC objects in Elisp) example

* doc/misc/eglot.texi (JSONRPC objects in Elisp): Correct the
example.  (Bug#66569)

Copyright-paperwork-exempt: yes

12 months ago; Fix one author's name.
Eli Zaretskii [Wed, 25 Oct 2023 13:14:39 +0000 (16:14 +0300)]
; Fix one author's name.

12 months ago* doc/man/emacsclient.1: Fix --tramp option.
Michael Albinus [Wed, 25 Oct 2023 10:24:34 +0000 (12:24 +0200)]
* doc/man/emacsclient.1: Fix --tramp option.

12 months agoImprove `nsm-protocol-check--3des-cipher` docstring
Stefan Kangas [Tue, 24 Oct 2023 23:06:27 +0000 (01:06 +0200)]
Improve `nsm-protocol-check--3des-cipher` docstring

* lisp/net/nsm.el (nsm-protocol-check--3des-cipher): Update
docstring to reflect current NIST policy.

12 months agoRecognize backslash in `dns-mode` quoted values
Lassi Kortela [Sat, 21 Oct 2023 10:10:50 +0000 (13:10 +0300)]
Recognize backslash in `dns-mode` quoted values

* lisp/textmodes/dns-mode.el (dns-mode-syntax-table): Recognize
backslash as an escape character.  (Bug#66660)

(cherry picked from commit e6f05e189db73a0f0b29f987381ffef61a409232)

12 months agoMake `dns-mode` fontify quoted values correctly
Stefan Kangas [Tue, 5 Sep 2023 21:06:21 +0000 (23:06 +0200)]
Make `dns-mode` fontify quoted values correctly

* lisp/textmodes/dns-mode.el (dns-mode-syntax-table): Fontify
quoted values correctly.  (Bug#62214)
Suggested by Trent W. Buck <trentbuck@gmail.com>.

(cherry picked from commit c586d984f279aa61de4f5dfc4f6df660188dd0f6)

12 months ago; Fix broken links to gmane.org
Stefan Kangas [Tue, 24 Oct 2023 07:37:21 +0000 (09:37 +0200)]
; Fix broken links to gmane.org

12 months agoChange news.gmane.org to news.gmane.io
Stefan Kangas [Mon, 23 Oct 2023 22:37:23 +0000 (00:37 +0200)]
Change news.gmane.org to news.gmane.io

* admin/notes/emba:
* doc/misc/gnus.texi (Group Parameters)
(Non-ASCII Group Names, Filling In Threads)
(Selection Groups, Spam Package Configuration Examples)
(Terminology):
* lisp/gnus/gnus-group.el (gnus-useful-groups):
* lisp/gnus/gnus-sum.el (gnus-fetch-old-headers):
* lisp/gnus/spam-report.el (spam-report-gmane-use-article-number)
(spam-report-gmane-internal):
* test/lisp/gnus/gnus-group-tests.el (gnus-short-group-name):
Change news.gmane.org to news.gmane.io.
Ref: https://news.gmane.io/

12 months agoFix minor defcustom issues in Gnus (Bug#66715)
Mauro Aranda [Mon, 23 Oct 2023 21:04:25 +0000 (18:04 -0300)]
Fix minor defcustom issues in Gnus (Bug#66715)

* lisp/gnus/gnus-art.el (gnus-button-prefer-mid-or-mail): Allow
function and add :tag to const values.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bookmark-inline-details):
Fix docstring.
* lisp/gnus/gnus-sum.el (gnus-simplify-subject-fuzzy-regexp): Allow a
single regexp as value.
* lisp/gnus/message.el (message-indent-citation-function): Allow a
single function as value.
(message-mail-alias-type): Allow for a list of options as value.
(message-dont-reply-to-names): Allow a function as value.
* lisp/gnus/spam-report.el (spam-report-url-ping-function): Fix
default value for the function widget.

12 months ago; * doc/misc/gnus.texi: Fix unmatched quote in gnus doc. (Bug#66710)
Lin Sun [Mon, 23 Oct 2023 05:00:01 +0000 (05:00 +0000)]
; * doc/misc/gnus.texi: Fix unmatched quote in gnus doc.  (Bug#66710)

12 months agoMinor connection-local variables fixes
Michael Albinus [Mon, 23 Oct 2023 15:07:17 +0000 (17:07 +0200)]
Minor connection-local variables fixes

* doc/emacs/custom.texi (Connection Variables): Warn about
specifying the same variable twice.

* lisp/files-x.el (connection-local-get-profiles): Normalize criteria.

12 months agoMake Dired honor `insert-directory-program´ with globs
Stefan Kangas [Mon, 23 Oct 2023 11:57:28 +0000 (13:57 +0200)]
Make Dired honor `insert-directory-program´ with globs

Starting with commit 6f6639d6ed6c6314b2643f6c22498fc2e23d34c7
(Bug#27631), Dired stopped respecting the value of
'insert-directory-program' when using directory wildcards/globs.

* lisp/dired.el (dired-insert-directory): Honor the value of
'insert-directory-program' when using directory wildcards.

12 months agoFix typo in url-privacy-level :type
Morgan J. Smith [Sun, 22 Oct 2023 19:43:46 +0000 (21:43 +0200)]
Fix typo in url-privacy-level :type

* lisp/url/url-vars.el (url-privacy-level): Fix typo in
:type.  (Bug#66613)

12 months ago* lisp/vc/log-view.el (log-view-mode-menu): Quote derived modes (bug#66686).
Juri Linkov [Sun, 22 Oct 2023 17:59:52 +0000 (20:59 +0300)]
* lisp/vc/log-view.el (log-view-mode-menu): Quote derived modes (bug#66686).

12 months ago* lisp/tab-bar.el: Fix the close button with auto-width (bug#66678).
Petteri Hintsanen [Sun, 22 Oct 2023 17:39:16 +0000 (20:39 +0300)]
* lisp/tab-bar.el: Fix the close button with auto-width (bug#66678).

(tab-bar-auto-width): Take into account the length of tab-bar-close-button
more than one character: " x".
Don't merge to master.

12 months agoFix State button for customize-icon (Bug#66635)
Mauro Aranda [Thu, 19 Oct 2023 11:46:35 +0000 (08:46 -0300)]
Fix State button for customize-icon (Bug#66635)

* lisp/cus-edit.el (custom-icon-action): New function.
(custom-icon): Use it as the :action.  Otherwise, clicking the State
button is a noop.  Remove irrelevant stuff from the docstring and
comment out some copy-pasta.
(custom-icon-extended-menu): New variable, the menu to show upon
:action.
(custom-icon-set): Really redraw the widget with the new settings.
Comment out strange call to custom-variable-backup-value.
(custom-icon-save): New function.

* lisp/emacs-lisp/icons.el (icons--merge-spec): Fix call to plist-get
and avoid infloop.

12 months ago; Another Texinfo fix
Eli Zaretskii [Sun, 22 Oct 2023 11:05:53 +0000 (14:05 +0300)]
; Another Texinfo fix

* doc/lispintro/emacs-lisp-intro.texi (Counting function
definitions):  Fix Texinfo 7.1 warning.

12 months ago; Fix Texinfo warnings
Eli Zaretskii [Sun, 22 Oct 2023 09:21:08 +0000 (12:21 +0300)]
; Fix Texinfo warnings

* doc/misc/wisent.texi (Grammar format):
* doc/misc/efaq.texi (Not writing files to the current directory):
* doc/misc/ede.texi:
* doc/lispref/errors.texi (Standard Errors): Fix warnings emitted
by makeinfo 7.1.

12 months agoFix the use of adaptive-fill-regexp in treesit indent preset
Yuan Fu [Sun, 22 Oct 2023 04:08:44 +0000 (21:08 -0700)]
Fix the use of adaptive-fill-regexp in treesit indent preset

* lisp/treesit.el (treesit-simple-indent-presets):
adaptive-fill-regexp don't have a capture group (the group in the
default value is supposed to be a non-capture group), so don't use the
group. Also, in the second diff hunk, replace looking-at with
looking-at-p so it doesn't override match data that we use later.