summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAge
* Update CMake support due to upstream changes (bug#64922)Vincenzo Pupillo2023-07-29
| | | | | | | | | | | | | | A recent change in tree-sitter-cmake grammar support for CMake (commit fe9b5e0), now put arguments are wrapped in a new argument_list node. To support the old and new version of the grammar, a new function was added on which string syntax highlighting now depends. * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--font-lock-compatibility-fe9b5e0): Indent helper function to handle different tree-sitter-cmake version. * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--font-lock-settings): Use the new function to handle the new argument_list node.
* Remove nullptr named node from c++-ts-mode (bug#64818)Theodor Thornhill2023-07-24
| | | | | | | | | | | | The nullptr node was changed from a named node to an unnamed node upstream[0], which caused font locking to break. As this is a small enough regression, no compat code is required. * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Remove node no longer in use. [0]: https://github.com/tree-sitter/tree-sitter-c/commit/c75868f8b508ae32a0c8490da91bb31b2b96430e
* Make compat check also check typescriptTheodor Thornhill2023-07-24
| | | | | | | | | | * lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode--font-lock-compatibility-bb1f97b): Add argument so that we run the 'treesit-query-capture' when the language is 'typescript', not only 'tsx'. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Use supplied argument.
* ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.emacs-29.1-rc1Eli Zaretskii2023-07-23
|
* ; * lisp/progmodes/typescript-ts-mode.el (treesit-query-capture): Declare.Eli Zaretskii2023-07-23
|
* Update JSX support due to upstream changes (bug#64647)Vincenzo Pupillo2023-07-22
| | | | | | | | | | | | | | | | | | A recent change in tree-sitter-javascript grammar support for JSX (commit bb1f97b), changed two things: 1. renamed nested_identifier to member_expression 2. removed jsx_fragment, jsx_text is used instead * lisp/progmodes/js.el (js-jsx--treesit-indent-compatibility-bb1f97b): Indent helper function to handle different tree-sitter-javascript version. * lisp/progmodes/js.el (js--treesit-indent-rules): Use the new function to handle both jsx_fragment and jsx_text. * lisp/progmodes/js.el (js-jsx--treesit-font-lock-compatibility-bb1f97b): Font lock helper function for handle different tree-sitter-javascript version. * lisp/progmodes/js.el (js--treesit-font-lock-settings): Use the new function to handle both nested_identifier and member_expression.
* Update TSX support due to upstream changes (bug#64647)Vincenzo Pupillo2023-07-22
| | | | | | | | | | | | | | | | | | | | A recent change in tree-sitter-typescript grammar support for TSX (commit b893426), changed two things: 1. renamed nested_identifier to member_expression 2. removed jsx_fragment, jsx_text is used instead * lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode--indent-compatibility-b893426): Indent helper function to handle different tree-sitter-typescript version. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): use the new function to handle both jsx_fragment and jsx_text. * lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode--font-lock-compatibility-bb1f97b): Font lock helper function for handle different tree-sitter-typescript version. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Use the new function to handle both nested_identifier and member_expression.
* ; Fix customization form of 'bookmark-watch-bookmark-file'Eli Zaretskii2023-07-22
| | | | | * lisp/bookmark.el (bookmark-watch-bookmark-file): Fix the doc string and the customization type. (Bug#64790)
* ; * lisp/subr.el (ignore, always): Doc fixes. (Bug#64776)Eli Zaretskii2023-07-22
|
* Fix typo in pre-filter for underline propertyMauro Aranda2023-07-20
| | | | * lisp/cus-face.el (custom-face-attributes): Fix typo (Bug#64347)
* Fix typos and ommissions in cus-edit.elPo Lu2023-07-20
| | | | * lisp/cus-edit.el (custom-display): Add missing display types.
* ; Improve accuracy of out-out-order message insertionPhilip Kaludercic2023-07-17
| | | | | * lisp/net/rcirc.el (rcirc-print): Do not ignore the return value of 'next-single-property-change'.
* ; Improve robustness of package-report-bugSpencer Baugh2023-07-16
| | | | | | | | | * lisp/emacs-lisp/package.el (package-report-bug): Do not assume that every entry in 'custom-current-group-alist' has a non-nil entry for a filename. It is possible for a group to not be associated with any file, e.g. when a 'defgroup' form is evaluated using 'eval-expression'. (bug#64543)
* ; * lisp/simple.el (kill-new): Fix a typo. (Bug#64423)Eli Zaretskii2023-07-15
|
* Ignore quit while getting interprogram paste in kill-newSpencer Baugh2023-07-15
| | | | | | | | | | | | | | | | | | | | | | | On X, if the current selection owner is not responding to selection requests, the user may want to take ownership of the selection. The obvious way to do this is to kill some text (which a user might also be doing just as part of normal editing at the time the selection owner becomes nonresponsive). However, if save-interprogram-paste-before-kill is non-nil, then killing text will hang until the user quits, and this quit will abort the entire kill-new, preventing the user from taking ownership of the selection. Now instead if the user quits while we are attempting to retrieve the selection from hanging owner, we will proceed to take ownership of the selection as normal, resolving the problem. (One example of a selction owner that might not be responding to selection requests is another instance of Emacs itself; while Emacs is blocked in call-process or Lisp execution, it currently does not respond to selection requests.) * lisp/simple.el (kill-new): Ignore quit while getting interprogram paste (bug#64423)
* * lisp/progmodes/gdb-mi.el: Fix interactive invocation of 'gud-go'.Wang Diancheng2023-07-15
| | | | | | Bug#64590. Copyright-paperwork-exempt: yes
* ; * lisp/paren.el (show-paren-function): Fix last change (bug#64547).Eli Zaretskii2023-07-15
|
* ; * lisp/progmodes/sql.el (sql-interactive-mode): Remove FIXME (bug#64602).YugaEgo2023-07-14
|
* ; * lisp/emacs-lisp/lisp.el (raise-sexp): Fix typo in doc string.Eli Zaretskii2023-07-12
|
* Fix show-paren-mode when the parentheses is partially visibleEli Zaretskii2023-07-10
| | | | | | * lisp/paren.el (show-paren-function): Support the case where the open paren is partially visible, but enough so to not consider it "off-screen". (Bug#64547)
* ; Improve documentation of with-restrictionGregory Heytings2023-07-09
| | | | | | | * lisp/subr.el (with-restriction): * doc/lispref/positions.texi (Narrowing): Make it clear that the argument is evaluated and that the result of the evaluation must not be nil.
* Merge branch 'scratch/bug64391' into emacs-29Gregory Heytings2023-07-08
|\
| * Add internal function to enter a labeled restrictionGregory Heytings2023-07-06
| | | | | | | | | | | | | | | | | | | | | | | | * src/editfns.c (Finternal__labeled_narrow_to_region): New function. A specific function is necessary to avoid unnecessary slowdowns when 'narrow-to-region'/'widen' are called in a loop. (Fnarrow_to_region): Remove the call to Fset, which has been moved into Finternal__labeled_narrow_to_region. (labeled_narrow_to_region): Use the new function. (syms_of_editfns): Add the symbol of the new function. * lisp/subr.el (internal--with-restriction): Use the new function.
* | * lisp/net/tramp.el (tramp-get-buffer-string): Stabilize.Michael Albinus2023-07-08
| |
* | Fix stale cache in Tramp (don't merge)Michael Albinus2023-07-08
|/ | | | | * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly): Flush cache in time.
* ; * lisp/dired.el (dired-no-confirm): Doc fix. (Bug#64493)Eli Zaretskii2023-07-06
|
* ; Improve documentation of key-binding commandsEli Zaretskii2023-07-06
| | | | | | | | | * doc/lispref/keymaps.texi (Key Binding Commands): Improve the documentation of arguments expected by key binding commands. * lisp/keymap.el (keymap-set, keymap-global-set) (keymap-local-set, keymap-global-unset, keymap-local-unset) (keymap-unset, key-parse): Doc fixes.
* Improve natnump shortdocRobert Pluim2023-07-04
| | | | | | * lisp/emacs-lisp/shortdoc.el (number): Make it clear that zero satisfies 'natnump'. Move 'natnump' next to 'cl-plusp' to highlight the difference between them.
* * lisp/progmodes/grep.el (rgrep): Fix docstring.Juri Linkov2023-07-03
| | | | | Instead of the incorrect key `M-c' produce the right key with \\<read-regexp-map>\\[read-regexp-toggle-case-fold].
* Include a help-echo for flymake's modeline countersSpencer Baugh2023-07-03
| | | | | | | This helps clarify what each of these numbers mean. This is inspired by 'compilation-mode-line-errors' which does the same. * lisp/progmodes/flymake.el (flymake--mode-line-counter): Add help-echo to mode line properties. (Bug#64424)
* Avoid errors in completion due to 'completion-regexp-list'Eli Zaretskii2023-07-02
| | | | | | | | | | * doc/lispref/minibuf.texi (Basic Completion): * src/minibuf.c (syms_of_minibuf) <completion-regexp-list>: Document that global non-nil settings of 'completion-regexp-list' are not safe. * lisp/minibuffer.el (completion-pcm--merge-completions): Avoid errors in 'try-completion' when PREFIX is nil. (Bug#64351)
* ; * lisp/register.el (register-val-describe): Doc fix.Eli Zaretskii2023-07-02
|
* ; Fix two typos in recent changes in the manualMichael Heerdegen2023-07-02
| | | | | * doc/lispref/text.texi (Property Search): * lisp/register.el (register-preview-function): Fix typos.
* C Mode: Don't fontify foo globally as type due to "struct foo"Alan Mackenzie2023-07-01
| | | | | | | This fixes bug#64322. * lisp/progmodes/cc-langs.el (c-typeless-decl-kwds): Make the entry for c-mode nil.
* * lisp/rect.el (rectangle--duplicate-right): Fix rectangle dup bug.Mattias Engdegård2023-07-01
| | | | This is a necessary adjustment to changes to rect.el in Emacs 29.
* ; * lisp/bookmark.el (bookmark-bmenu-locate): Doc fix (bug#64370).Eli Zaretskii2023-07-01
|
* ; Fix last changeEli Zaretskii2023-07-01
| | | | | | * lisp/menu-bar.el (menu-bar-file-menu, menu-bar-search-menu) (menu-bar-replace-menu, menu-bar-project-menu) (menu-bar-buffers-menu-command-entries): Fix help-echo text (bug#63469).
* Add project command entries to the menu-barSpencer Baugh2023-07-01
| | | | | | | | | | | | | | | | This will make it easier for new users to learn these increasingly important and useful commands. (Bug#63469) * lisp/menu-bar.el (menu-bar-file-menu): Add project-dired and project-find-file entries. (menu-bar-search-menu): Add project-find-regexp entry. (menu-bar-replace-menu): Add project-query-replace regexp entry. (menu-bar-shell-commands-menu): Add project-shell entry. (menu-bar-buffers-menu-command-entries): Add project-switch-to-buffer and project-list-buffer entries. (menu-bar-project-menu): Add. (menu-bar-tools-menu): Add "Project" submenu, and also project-compile entry and change text for compile entry.
* ; Improve documentation of text-property-search-* functionsEli Zaretskii2023-07-01
| | | | | | | * doc/lispref/text.texi (Property Search): Improve wording and markup. * lisp/emacs-lisp/text-property-search.el (text-property-search-forward) (text-property-search-backward): Doc fixes. (Bug#64367)
* ; Improve doc strings in register.elEli Zaretskii2023-06-30
| | | | | | | | | | | | | * lisp/register.el (register-preview-delay) (register-describe-oneline, register-preview-default) (register-preview-function, register-preview, point-to-register) (window-configuration-to-register) (frame-configuration-to-register, jump-to-register) (register-val-jump-to, number-to-register, increment-register) (view-register, list-registers, register-val-describe) (insert-register, register-val-insert, copy-to-register) (append-to-register, prepend-to-register) (copy-rectangle-to-register): Doc fixes.
* Improve documentation of registersEli Zaretskii2023-06-30
| | | | | | | | | | | | | | | * doc/lispref/text.texi (Registers): Document buffers in registers. Mention "frameset" as another name for "frame configuration". * doc/emacs/regs.texi (Registers, Configuration Registers) (File and Buffer Registers): Clarify and improve wording. Add cross-references and indexing. (Configuration Registers): Rename the section to a more accurate name. (Bug#64354) * lisp/register.el (jump-to-register, point-to-register) (register-alist, frame-configuration-to-register): Doc fixes. (Bug#64353)
* Use a temporary buffer in nnagent-request-set-mark (bug#64117)Andrew G Cohen2023-06-30
| | | | | | | | | | | Commit cb12a84f2c519a48dd87453c925e3bc36d9944db inadvertently removed the use of a temporary buffer in nnagent-request-set-mark. Bug and fix reported by Jens Schmidt <jschmidt4gnu@vodafonemail.de> * lisp/gnus/nnagent.el (nnagent-request-set-mark): Restore the use of a temporary buffer that was inadvertently removed. (cherry picked from commit 5075d752773c31d959272a7e2b73b1dc38ba184c)
* ; * lisp/calculator.el (calculator-need-3-lines): Fix last change.Eli Zaretskii2023-06-29
|
* Support cons cell as value of ':line-width' box attributejohn muhl2023-06-29
| | | | | | | | * lisp/calculator.el (calculator-need-3-lines): Support values of a face's ':line-width' box attribute that are cons cells. (Bug#64344) Copyright-paperwork-exempt: yes
* ; * lisp/misc.el (duplicate-line-final-position): Fix last doc change.Eli Zaretskii2023-06-29
| | | | | Repeat after me: "The first line of a doc string must be a single complete sentence."
* ; * lisp/misc.el (duplicate-line-final-position): doc precisionMattias Engdegård2023-06-29
|
* ; Fix documentation of ':box' face attributeEli Zaretskii2023-06-29
| | | | | * lisp/faces.el (set-face-attribute): Update the documentation of WIDTH in the :box face attribute. (Bug#64344)
* * lisp/misc.el (duplicate-line-final-position): New defcustom (bug#64185).Juri Linkov2023-06-29
| | | | | | | | | * lisp/misc.el (duplicate-line): Use it. * test/lisp/misc-tests.el (misc--duplicate-line): Add tests for duplicate-line-final-position. Don't merge to master.
* Make js-beginning-of-defun return non-nil on successDaniel Martín2023-06-29
| | | | | | | | | | | | | The docstring of 'beginning-of-defun-function' says that the function shall return non-nil when it found the beginning of a defun. This is specially important because the calling code decides when to move point depending on the return value. * lisp/progmodes/js.el (js-beginning-of-defun) (js--beginning-of-defun-flat): Return non-nil when the beginning of a defun is found. (Bug#64283) * test/lisp/progmodes/js-tests.el (js-mode-end-of-defun): Add a unit test.
* Tree-sitter use with-silent-modifications like jit-lock (bug#64321)Yuan Fu2023-06-27
| | | | | | * lisp/treesit.el (treesit--font-lock-notifier): Use with-silent-modifications when marking modified text to be fontified by jit-lock. This is what jit-lock itself does.