summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add selector_expression indentation ruleTheodor Thornhill2023-06-231-0/+1
| | | | * lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules): New rule.
* Add "nixd" LSP server to EglotEli Zaretskii2023-06-221-1/+1
| | | | | * lisp/progmodes/eglot.el (eglot-server-programs): Add "nixd". Patch by Brian Leung <leungbk@posteo.net>. (Bug#64214)
* Fix building --with-native-compilation=aot from release tarballEli Zaretskii2023-06-221-0/+36
| | | | | | | | | | | * lisp/Makefile.in (%.eln): Pattern rule for AOT native compilation. (compile-eln-targets, compile-eln-aot): New targets for AOT native compilation. * src/Makefile.in (../native-lisp): If NATIVE_COMPILATION_AOT is set, also native-compile all the other Lisp files. (Bug#64167)
* Disable target-async by default in gdb-mi.elEli Zaretskii2023-06-211-2/+4
| | | | | * lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Disable until bug#63084 is fixed. (Bug#64186)
* Revert "Fix parsing of dn line if WITHDN is non-nil"Filipp Gunbin2023-06-201-11/+1
| | | | | | This reverts commits 71b27779a9a and d2246b26275, because they change the return value of "ldap-search" in an incompatible way. The fix (a different one) will be done on master instead (bug#64089).
* Don't truncate filenames with "emacs.el" in themEli Zaretskii2023-06-201-1/+1
| | | | | | * lisp/emacs-lisp/find-func.el (find-function-search-for-symbol): Avoid false positives when looking for "emacs.el" matches the likes of "emacs.elpa". (Bug#64143)
* Improve documentation of 'minibuffer-message'Eli Zaretskii2023-06-201-7/+17
| | | | | | | | | | * doc/lispref/minibuf.texi (Minibuffer Misc): Clarify that 'minibuffer-message' behaves like 'message' if called from a buffer that is not a minibuffer. * lisp/minibuffer.el (minibuffer-message) (set-minibuffer-message, clear-minibuffer-message): Doc fixes. (Bug#64165)
* Eglot: again fix positions of coinciding inlay hint overlays (bug#64101)João Távora2023-06-191-4/+4
| | | | | | | | | | This bug originated from the previous fix, and is reproducible on non Mac OS platforms, as long as the very latest version (at time of writing) of the rust-analyzer server is used. * lisp/progmodes/eglot.el (eglot--update-hints-1): Reverse priorities when pegging overlays after (i.e. when before-string is used).
* * lisp/ldefs-boot.el: Regenerate.Eli Zaretskii2023-06-181-18/+59
|
* Fix documentation of :predicate in 'define-globalized-minor-mode'Eli Zaretskii2023-06-181-2/+5
| | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Document that :predicate creates a customizable user option. (Bug#64048)
* Revert "Fix some tree-sitter :match regexps"Basil L. Contovounesios2023-06-175-15/+12
| | | | | | | | | | This reverts commit 95091b77f0bbb2ae1aa94ef4a413626e7d434d58 of 2023-06-17, mistakenly pushed to emacs-29. The patch will be installed on master instead, and backported later, after Emacs 29.1 is released (bug#64019). Do not merge to master.
* Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29Michael Albinus2023-06-175-12/+15
|\
| * Fix some tree-sitter :match regexpsBasil L. Contovounesios2023-06-175-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The shy groups were caught by modified versions of the GNU ELPA packages xr and relint: - https://github.com/mattiase/xr/pull/6 - https://github.com/mattiase/relint/pull/14 * lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query): Quote special character in regexp. * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): * lisp/progmodes/js.el (js--plain-method-re): (js--treesit-font-lock-settings): * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Replace character alternative [\\d], which matches '\' or 'd', with the most likely intention [0-9]. Fix shy groups mistyped as optional colons. Remove unneeded numbered :match group in rust-ts-mode (bug#64019).
* | Require ls-lisp in Tramp only when neededMichael Albinus2023-06-173-3/+7
|/ | | | | | | | | | | * lisp/net/tramp-compat.el (ls-lisp): Require only on MS Windows. (Bug#64124) * lisp/net/tramp-sh.el (ls-lisp-use-insert-directory-program): Declare. (tramp-sh-handle-insert-directory): Simplify. * lisp/net/tramp.el (ls-lisp-use-insert-directory-program): Declare. (tramp-handle-insert-directory): Require ls-lisp. Simplify.
* Eglot: fix relative position of coinciding inlay hint overlays (bug#64101)João Távora2023-06-171-4/+6
| | | | | | | | Only seems to happen on certain platforms, like Mac OS. Reason unknown reason so far, but this defensive fix seems safe. * lisp/progmodes/eglot.el (eglot--update-hints-1): Explicitly put priority in inlay hint overalys.
* Fix documentation of comment-dwim (bug#64104)Eli Zaretskii2023-06-171-2/+7
| | | | | | | * lisp/newcomment.el (comment-dwim): Doc fix. * doc/emacs/programs.texi (Comment Commands): More accurate description of what 'M-;' does when there's no active region.
* ; * lisp/net/ldap.el (ldap-search-internal): Fix last change. (Bug#64089)Eli Zaretskii2023-06-171-1/+1
|
* Fix parsing of dn line if WITHDN is non-nilJens Schmidt2023-06-171-1/+11
| | | | | | | Function `ldap-search' errors out with `wrong-type-argument listp' when called with WITHDN non-nil. * lisp/net/ldap.el (ldap-search-internal): Parse the dn line correctly so that `ldap-search' can grok it. (Bug#64089)
* Consider 'dired-kill-when-opening-new-dired-buffer' in mouse clicksEli Zaretskii2023-06-151-2/+9
| | | | | * lisp/dired.el (dired-mouse-find-file): Honor the value of 'dired-kill-when-opening-new-dired-buffer'. (Bug#64079)
* Improve documentation of 'declare' formsEli Zaretskii2023-06-151-1/+4
| | | | | | | | | * lisp/simple.el (read-extended-command-predicate): Mention the '(declare completion ...' form in the doc string. * doc/lispref/functions.texi (Declare Form): Clarify 'completion-predicate' and 'modes'; add cross-references. (Bug#64045)
* Improve tree-sitter docsBasil L. Contovounesios2023-06-131-19/+37
| | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/positions.texi (List Motion): Incorporate more accurate description of treesit-defun-type-regexp from '(elisp) Tree-sitter Major Modes', replacing that duplicate entry (bug#64018). * doc/lispref/parsing.texi (Parsing Program Source) (Language Grammar, Using Parser, Retrieving Nodes) (Accessing Node Information, Pattern Matching, Multiple Languages): (Tree-sitter Major Modes): * doc/lispref/modes.texi (Parser-based Font Lock): Improve wording, grammar, punctuation, and markup. Fix typos. (Parser-based Indentation): Ditto. Document indent rule presets field-is, catch-all, nth-sibling, grand-parent, and great-grand-parent. * lisp/treesit.el (treesit-simple-indent-presets): Mention field-is, catch-all, nth-sibling, grand-parent, great-grand-parent in docstring. (treesit-major-mode-setup, treesit-explore-mode): Improve docstring/commentary grammar.
* Fix bol/bos anchors in tree-sitter :match regexpsBasil L. Contovounesios2023-06-138-16/+17
| | | | | | | | | | | | | | | | | Further regexp fixes to follow separately (bug#64019#29). * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--font-lock-settings): * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): * lisp/progmodes/js.el (js--treesit-font-lock-settings): * lisp/progmodes/python.el (python--treesit-settings): * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): * lisp/progmodes/sh-script.el (sh-mode--treesit-settings): * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): * test/src/treesit-tests.el (treesit-query-api): Anchor :match regexps at beginning/end of string, not line.
* ; Fix last change in tex-mode.elEli Zaretskii2023-06-131-1/+1
| | | | | * lisp/textmodes/tex-mode.el (tex-cmd-doc-view): Remove the second argument. (Bug#63956)
* * lisp/subr.el (with-restriction): Tweak indent ruleStefan Monnier2023-06-122-2/+2
|
* ; Fix previous changeRobert Pluim2023-06-121-1/+1
| | | | | * lisp/window.el (display-tex-shell-buffer-action): Fix default value's type. (Bug#63956)
* Fix setting region in the minibufferEli Zaretskii2023-06-121-3/+3
| | | | | * lisp/minibuffer.el (minibuffer-beginning-of-buffer): Fix setting region. (Bug#64022)
* Fix tex-mode display-buffer issuesEli Zaretskii2023-06-112-3/+11
| | | | | | | * lisp/window.el (display-tex-shell-buffer-action): New defcustom. * lisp/textmodes/tex-mode.el (tex-display-shell) (tex-cmd-doc-view, tex-recenter-output-buffer): Use it. (Bug#63956)
* Avoid errors in 'apropos-documentation' after 'eval-buffer'Eli Zaretskii2023-06-101-1/+2
| | | | | * lisp/apropos.el (apropos--map-preloaded-atoms): Support the case where an element of 'load-history' has nil as its car. (Bug#63881)
* Don't ding when completion succeededMorgan Smith2023-06-101-3/+5
| | | | | | | | * lisp/minibuffer.el (minibuffer-completion-help): Ensure 'ding' is not called on a successful completion. Ensure 'ding' is not called on a failure if 'completion-fail-discreetly' is set. Also change "No completions" to "No match" as that is what is used elsewhere. (Bug#63913)
* Revert "* package.el (package--get-activatable-pkg): Prefer source packages"Eli Zaretskii2023-06-081-12/+4
| | | | | | This reverts commit fb87d5008e21d1bc03547c1edf2280fb4cb8311e. It caused problems when new versions of packages are installed without deleting old versions. (Bug#63757)
* ; Update my mail addressAndrea Corallo2023-06-082-2/+2
| | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el: Update author mail. * lisp/emacs-lisp/comp.el: Likewise. * src/comp.c: Likewise. * test/lisp/emacs-lisp/comp-cstr-tests.el: Likewise. * test/src/comp-resources/comp-test-funcs-dyn.el: Likewise. * test/src/comp-resources/comp-test-funcs.el: Likewise. * test/src/comp-resources/comp-test-pure.el: Likewise. * test/src/comp-tests.el: Likewise.
* Fix connection-local user options handling (bug#63300)Michael Albinus2023-06-081-7/+19
| | | | | | * lisp/files-x.el (connection-local-set-profiles) (connection-local-set-profile-variables): Avoid saving the changed user option to file unless triggered explicitly by user. (Bug#63300)
* Fix `emacs-lisp-native-compile-and-load' for C-h f (bug#58314)Andrea Corallo2023-06-062-12/+27
| | | | | | | | | * lisp/emacs-lisp/comp.el (comp-write-bytecode-file): New function spilling code from `batch-byte+native-compile'. (batch-byte+native-compile): Make use of. * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Produce the elc file and ask to have it loaded.
* Add 'infer' as a keyword to typescript-ts-mode (bug#63880)Theodor Thornhill2023-06-061-1/+1
| | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--keywords): New keyword.
* Revert changes to the order in which package descs are loadedPhilip Kaludercic2023-06-041-1/+1
| | | | | | * lisp/emacs-lisp/package.el (package-load-all-descriptors): Remove NOSORT argument to 'directory-files', reverting back to the behaviour as of Emacs 28. (Bug#63757)
* Handle point in last file-name component in minibuffer completionSpencer Baugh2023-06-041-4/+6
| | | | | | | | | | | | | | This is a followup to commit e338a8ac41d4a9fd798dda90275abe75ac071335 (Handle point not at EOB in minibuffer-choose-completion). That commit added a heuristic, but the heuristic was insufficient: It still had the original wrong behavior when completing the last file-name component (i.e., the completion category is 'file' and there's no slash after point). This patch makes the heuristic cover that case as well. * lisp/minibuffer.el (minibuffer-next-completion) (minibuffer-choose-completion): If in file completion and there's no slash after point, clear what's after point when we complete. (Bug#62700)
* Avoid asking redundant question in emacsbug.elEli Zaretskii2023-06-031-6/+10
| | | | | | * lisp/mail/emacsbug.el (report-emacs-bug-hook): Don't ask the question about saving email setup if we cannot save it anyway. (Bug#63816)
* typescript-ts-mode: Add a rule for function_signatureDmitry Gutov2023-06-031-1/+2
| | | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Add a rule for function_signature (bug#63867)
* ; Fix last changeEli Zaretskii2023-06-031-2/+4
| | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--syntax-propertize): Doc fix. (Bug#63708)
* Fix apostrophe handling in rust-ts-mode and go-ts-mode (Bug#63708)Йордан Миладинов2023-06-032-2/+13
| | | | | | | | | | | * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--syntax-propertize): Treat apostrophes as strings if used to define character literals. Treat LT and GT as pairs if used to define type parameters (formerly they were treated as pairs only for type arguments). * lisp/progmodes/go-ts-mode.el (go-ts-mode--syntax-table): Treat apostrophes as strings if used to define rune literals. Copyright-paperwork-exempt: yes
* Fix 'python-util-clone-local-variables'Eli Zaretskii2023-06-031-1/+2
| | | | | | * lisp/progmodes/python.el (python-util-clone-local-variables): Avoid signaling an error when a local variable is unbound. Patch by Ernesto Alfonso <erjoalgo@gmail.com>. (Bug#63818)
* Revert "Enhance Python font-lock to support multilines"kobarity2023-06-031-34/+15
| | | | | | | | | | | | | | | | | This reverts commit 4915ca5dd4245a909c046e6691e8d4a1919890c8. We have found that there are performance issues when editing a large file. The issue can be reproduced as follows: 1. emacs -Q 2. Open large Python file (e.g. turtle.py in Python) 3. Near the top of the buffer, enter open paren and some characters. The above commit extends the region to be font-locked using `python-nav-end-of-statement'. However, if there are unbalanced parens, it may move point to the end of the buffer. This causes almost the entire buffer to be font-locked, which is not acceptable for large files.
* Update to Transient v0.4.1Jonas Bernoulli2023-06-021-6/+13
|
* Avoid errors in 'delete-forward-char' deleting static compositionsEli Zaretskii2023-06-021-1/+2
| | | | | * lisp/simple.el (delete-forward-char): Fix recognition of static compositions. (Bug#63837)
* Make VS-15 and VS-16 compositions work correctlyRobert Pluim2023-06-021-1/+1
| | | | | | | | | | | There is a conflict between forward matching and backward matching composition rules involving the same codepoint, which can cause the backward matching ones not to be invoked. Ensure that VS-15 (U+FE0E) and VS-16 (U+FE0F) are composed by forward matching rules instead in order to avoid this issue. * admin/unidata/emoji-zwj.awk: Add rules for CHAR+VS-15 and CHAR+VS-16. * lisp/composite.el: remove backward matching rule for VS-15. (Bug#63731)
* Fix project-name for vc-aware backend in non-file buffersDmitry Gutov2023-06-021-2/+2
| | | | | | * lisp/progmodes/project.el (project-name): Make sure project-vc-name is picked up from dir-locals in all non-file-visiting buffers too (mentioned in bug#63469).
* ; Fix 'package-install-upgrade-built-in' check for package menuPhilip Kaludercic2023-05-311-2/+2
| | | | | | | | | * lisp/emacs-lisp/package.el (package-menu--find-upgrades): Use correct check to verify if a built-in packages in the package menu can be upgraded or not. This change improves upon a faulty assumption from ba2c76fa2bc3aabfda7d1d09cc5148f3f9d8e08e. (Bug#63587)
* Add type_predicate 'is' as keyword in typescript-ts-mode (bug#63810)Theodor Thornhill2023-05-311-1/+1
| | | | | * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--keywords): New keyword 'is'.
* Fix infloop in info-look.elEli Zaretskii2023-05-311-1/+5
| | | | | * lisp/info-look.el (info-lookup-guess-gdb-script-symbol): Fix infloop when there are no completions. (Bug#63808)
* Fix several todo-mode.el item editing bugs (bug#63811)Stephen Berman2023-05-311-130/+168
| | | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-insert-item--basic): With insertion type 'here', ensure item is inserted on the todo-mode line where the command was invoked. (todo-edit-item--cat, todo-edit-item--pos): New variables. (todo-edit-item--text): Restrict the scope of nil-valued buffer-read-only to the functions that change buffer text. If user moved point while editing a single-line todo item or a done item comment, or while inserting a done item comment, restore point, and for comments, make sure the done items section is displayed. For multiline items, set the new variables so todo-edit-quit can use them. (todo-edit-quit): Use the values of the new variables to restore point in the todo-mode buffer if it had been moved while editing. (todo-edit-item--header): Avoid clobbering match data when editing a todo item header.