aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add script admin/run-codespell and supporting filesscratch/codespellStefan Kangas2023-12-106-0/+1707
| | | | | | | | | * admin/codespell/README: * admin/codespell/codespell.dictionary: * admin/codespell/codespell.exclude: * admin/codespell/codespell.ignore: * admin/codespell/codespell.rc: * admin/run-codespell: New files.
* ; Fix typosStefan Kangas2023-12-102-2/+2
|
* ; Fix typos in ChangeLog filesStefan Kangas2023-12-1023-425/+425
|
* ; * lisp/progmodes/c-ts-mode.el (c-ts-mode--else-heuristic): Doc fix.Eli Zaretskii2023-12-101-2/+2
|
* Fix c-ts-mode indent heuristic (bug#67417)Yuan Fu2023-12-101-15/+15
| | | | | | | | | | | This is a continuation of the first two patches for bug#67417. The c-ts-mode--prev-line-match heuristic we added is too broad, so for now we are just adding a very specific heuristic for the else case. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--prev-line-match): Remove function. (c-ts-mode--else-heuristic): New function. (c-ts-mode--indent-styles): Use c-ts-mode--else-heuristic.
* Fix c-ts-mode indentation (bug#67357)nverno2023-12-102-3/+68
| | | | | | | | | | | | | | | | | | | 1. In a compund_statement, we indent the first sibling against the parent, and the rest siblings against their previous sibling. But this strategy falls apart when the first sibling is not on its own line. We should regard the first sibling that is on its own line as the "first sibling"", and indent it against the parent. 2. In linux style, in a do-while statement, if the do-body is bracket-less, the "while" keyword is indented to the same level as the do-body. It should be indented to align with the "do" keyword instead. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--no-prev-standalone-sibling): New function. (c-ts-mode--indent-styles): Use c-ts-mode--no-prev-standalone-sibling. Add while keyword indent rule. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New tests.
* Add font-locking for hash-bang lines in typescript-ts-mode.nverno2023-12-101-1/+1
| | | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Add font-lock for hash bang line.
* Add font-locking for hash-bang lines in js-ts-modenverno2023-12-101-1/+1
| | | | | * lisp/progmodes/js.el (js--treesit-font-lock-settings): Add font-lock for hash bang line.
* ruby-mode: Better detect regexp vs division (bug#67569)Dmitry Gutov2023-12-092-3/+21
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Add grouping around methods from the whitelist. (ruby-syntax-propertize): Also look for spaces around the slash.
* ; Minor copyedits in description of ':box' face propertyEli Zaretskii2023-12-091-7/+7
| | | | | | * doc/lispref/display.texi (Face Attributes): Rearrange description of ':box' attributes. Suggested by Arash Esbati <arash@gnu.org>. (Bug#67713)
* Fix dragging mode line on text terminals with a mouse (bug#67457)Jared Finder2023-12-092-4/+12
| | | | | | | * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix the 'event-kind' property of mouse-movement symbols emitted by xt-mouse. * lisp/term/linux.el (terminal-init-linux): Call 'gpm-mouse-mode' to set up the terminal for the mouse, if needed.
* ; * doc/lispref/processes.texi (Network): Fix wording and punctuation.Eli Zaretskii2023-12-091-13/+15
|
* (rust-ts-mode): Set electric-indent-charsChristophe TROESTLER2023-12-081-0/+4
| | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode): Set electric-indent-chars (bug#67701).
* js-ts-mode: Highlight function parameters inside destructuringDmitry Gutov2023-12-081-1/+4
| | | | | * lisp/progmodes/js.el (js--treesit-font-lock-settings): Highlight function parameters declared using destructuring syntax.
* js-ts-mode: Highlight property shorthands in assignmentsDmitry Gutov2023-12-081-2/+4
| | | | | | * lisp/progmodes/js.el (js--treesit-lhs-identifier-query): Match property shorthands (which turn into variable reference). (js--treesit-fontify-assignment-lhs): Use the matches.
* (js--treesit-font-lock-settings): Highlight parameters in function expressionDmitry Gutov2023-12-081-8/+1
| | | | | | | * lisp/progmodes/js.el (js--treesit-font-lock-settings): Highlight parameters in a function expression (the node type 'function'). Make the matcher for 'formal_parameters' independent of the parent, that just created duplication.
* (js--treesit-font-lock-settings): Remove some duplicatesDmitry Gutov2023-12-081-7/+1
| | | | | | * lisp/progmodes/js.el (js--treesit-font-lock-settings): Remove queries from 'function' that duplicate entries in 'definition' (one of them with a typo).
* ; Another fix of doc string of 'message-mail-user-agent' (bug#67638).Eli Zaretskii2023-12-051-6/+7
|
* ; * lisp/gnus/message.el (message-mail-user-agent): Doc fix (bug#67638).Eli Zaretskii2023-12-051-3/+6
|
* ; * doc/lispref/files.texi (Changing Files): Fix last change.Eli Zaretskii2023-12-041-4/+4
|
* Don't claim to signal an error when deleting a nonexisting file.Philipp Stephani2023-12-041-3/+4
| | | | | | | | | The behavior has changed in commit 1a65afb7ecc2a52127d6164bad19313440237f9d to no longer signal an error on ENOENT. * doc/lispref/files.texi (Changing Files): Fix documentation about error reporting.
* * lisp/indent.el (indent-rigidly): Improve prompt (bug#67620).Eli Zaretskii2023-12-041-1/+1
|
* ; Fix typosStefan Kangas2023-12-0360-73/+73
|
* rust-ts-mode--comment-docstring: Handle block doc commentsChristophe Troestler2023-12-031-1/+1
| | | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--comment-docstring): Handle block doc comments. Inhibit match-data modification.
* rust-ts-mode--comment-docstring: Fix/improve the previous changeChristophe TROESTLER2023-12-021-3/+3
| | | | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--comment-docstring): Match also "inner" line docs. Stop rebinding 'end' and use the argument's value in the 'treesit-fontify-with-override' call.
* ; Fix doc string punctuation in ruby-ts-mode.el.Eli Zaretskii2023-12-021-2/+2
|
* Fix 'Info-goto-node-web' when NODE is given in various formsEli Zaretskii2023-12-021-7/+22
| | | | | | | | * lisp/info.el (Info-goto-node-web): Support all forms of node input, per 'Info-read-node-name's documentation, and extract FILENAME from NODE if given there. Default NODE to "Top" if not provided by the user. (Bug#67531) (Info-url-for-node): Support browsing the "Top" node.
* Fix setting cursor when the window's op line has 'line-prefix'Eli Zaretskii2023-12-021-2/+4
| | | | | * src/xdisp.c (set_cursor_from_row): Skip glyphs that come from a string if their 'avoid_cursor_p' flag is set. (Bug#67486)
* Drop extra parenthesis in example code in Emacs Lisp IntroductionXiyue Deng2023-12-021-2/+2
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Small buffer case): Drop trailing unmatched parenthesis. (Bug#67576) Copyright-paperwork-exempt: yes
* rust-ts-mode: appropriately fontify doc stringsChristophe Troestler2023-12-021-1/+12
| | | | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--comment-docstring): New function. (rust-ts-mode--font-lock-settings): Use it (https://lists.gnu.org/archive/html/emacs-devel/2023-12/msg00019.html).
* Fix example code in Emacs Lisp Introduction manualXiyue Deng2023-12-011-6/+6
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Optional Arguments): Fix indentation in an example. (Bug#67559) Copyright-paperwork-exempt: yes
* Fix example in Emacs Lisp Intro manualEli Zaretskii2023-12-011-4/+5
| | | | | | * doc/lispintro/emacs-lisp-intro.texi (beginning-of-buffer opt arg): Fix indentation in example. Reported by Xiyue Deng <manphiz@gmail.com>. (Bug#67560)
* ; * doc/emacs/files.texi (Save Commands): Fix last change.Eli Zaretskii2023-12-011-2/+2
|
* Elisp manual: Mention 'write-region' for saving the bufferJeremy Bryant2023-12-011-0/+4
| | | | | * doc/emacs/files.texi (Save Commands): Mention 'write-region'. (Bug#67313)
* Document, that PROCESS of signal-process can be a stringMichael Albinus2023-11-302-0/+5
| | | | | | * doc/lispref/processes.texi (Signals to Processes) [signal-process]: * src/process.c (Fsignal_process): Document, that PROCESS can be a string.
* Fix typescript-ts-mode indentation for switch statementsnverno2023-11-292-0/+20
| | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Add indentation rule for switch case and default keywords. (Bug#67488)
* Repair `tab-first-completion` (bug#67158)Aymeric Agon-Rambosson2023-11-291-15/+9
| | | | | | | | | | | 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)
* Fix behavior of 'split-root-window-*' with 'C-u'Eli Zaretskii2023-11-291-6/+8
| | | | | | | | * 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.
* ; * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Fix last change.Eli Zaretskii2023-11-291-3/+3
|
* Add more text to clarify the behavior of 'with-current-buffer'Xiyue Deng2023-11-291-1/+5
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Expand description of 'with-current-buffer'. (Bug#67521) Copyright-paperwork-exempt: yes
* Fix example in Emacs user manualEli Zaretskii2023-11-271-2/+2
| | | | | * doc/emacs/custom.texi (Init Rebinding): Fix syntax of example. Reported by silarakta <silarakta@protonmail.com>. (Bug#67474)
* ; Fix recent change in 'c-ts-mode'Eli Zaretskii2023-11-271-3/+3
| | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--prev-line-match) (c-ts-mode--indent-styles): Fix wording of strings and comments.
* ; Fix typo in Gnus manual (bug#67469).Daniel Martín2023-11-271-1/+1
|
* Mention Titankey in Tramp, which has passed the testsMichael Albinus2023-11-272-3/+4
| | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): * lisp/net/tramp.el (tramp-security-key-confirm-regexp): Mention also Titankey.
* Fix c-ts-mode indentation after if/else (bug#67417)Yuan Fu2023-11-261-0/+16
| | | | | | | * 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.
* Fix indentation for else clause in c-ts-mode (bug#67417)Yuan Fu2023-11-262-0/+21
| | | | | | | | | | * 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.)
* Ensure that directory is expanded in package-vc-checkoutJoseph Turner2023-11-261-0/+1
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc-checkout): Expand DIRECTORY. (Bug#66115)
* * etc/PROBLEMS: Add entry about pinentry with gpgsm. (Bug#67012)Ulrich Müller2023-11-251-0/+10
|
* ; * admin/authors.el (authors-aliases): Add Noah Peart.Eli Zaretskii2023-11-251-0/+1
|
* typescript-ts-mode: Add missing 'operator' to treesit-font-lock-featuresnverno2023-11-241-1/+1
| | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Add operator to treesit-font-lock-feature-list (bug#67433).