summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* dockerfile-ts-mode: Prevent empty categories in imenu (Bug#63759)Randy Taylor2023-05-311-2/+3
| | | | | * lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode--imenu): Don't include empty categories.
* Brush up doc strings and terminology in plstore.elJens Schmidt2023-05-311-18/+52
| | | | | | | | | | | | * lisp/plstore.el (plstore-encoded, plstore-passphrase-callback-function) (plstore--init-from-buffer, plstore-revert, plstore-close) (plstore--merge-secret, plstore--decrypt, plstore--match, plstore-find) (plstore-get, plstore-put, plstore-delete, plstore--insert-buffer) (plstore-save, plstore--encode, plstore--decode) (plstore--write-contents-functions, plstore-mode-decoded) (plstore-mode): Brush up doc strings and documentation in general. Fix terminology, in particular spurious occurences of all uppercase "PLSTORE". (Bug#63627)
* Add internal documentation on plstore.elJens Schmidt2023-05-311-2/+131
| | | | | * lisp/plstore.el: Add internal documentation and some words of warning in the user documentation. (Bug#63627)
* Add compact_constructor_declaration font-locking to java-ts-modeTheodor Thornhill2023-05-301-0/+3
| | | | | * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): New pattern.
* * lisp/tmm.el (tmm-completion-delete-prompt): Add more checks (bug#63754).Juri Linkov2023-05-291-1/+2
| | | | | | In case when 'completions-header-format' is nil, the first 'mouse-face' property is at the beginning of the buffer. So first use 'get-text-property' at point-min.
* Allow to disable the DWIMish behavior of 'x' in package menuEli Zaretskii2023-05-291-1/+14
| | | | | | | | * lisp/emacs-lisp/package.el (package-menu-use-current-if-no-marks): New defcustom. (package-menu-execute): Use it. (Bug#62563) * etc/NEWS: Announce the new option.
* Allow dired to invoke secondary browserRobert Pluim2023-05-291-3/+10
| | | | | | | | | | | 'browse-url-of-dired-file' always invokes the primary browser, but sometimes it's handy to call a different browser, which is why 'browse-url-secondary-browser-function' exists. * lisp/net/browse-url.el (browse-url-of-dired-file): Call 'browse-url-secondary-browser-function' when invoked with a prefix argument. * etc/NEWS: Announce the change.
* Add a binding for enriched-toggle-markupRobert Pluim2023-05-291-0/+1
| | | | | | * lisp/textmodes/enriched.el (enriched-mode-map): Bind 'enriched-toggle-markup' to 'M-o m'. * etc/NEWS: Announce the change.
* Fix order of tmm-menubar when 'tmm-mid-prompt' is nilEli Zaretskii2023-05-291-3/+5
| | | | | | * lisp/tmm.el (tmm-prompt): Reverse 'tmm-km-list' when 'tmm-mid-prompt' is nil, to present the menu in the correct order. Suggested by Thiago Melo <tmdmelo@gmail.com>.
* Fix regression when saving tramp-default-proxies-alist (Do not merge)Michael Albinus2023-05-291-19/+23
| | | | | * lisp/net/tramp.el (tramp-add-hops): Suppress `signal-hook-function'. Save `tramp-default-proxies-alist' only when changed.
* Save the tree-sitter grammar recipe when installing a grammarYuan Fu2023-05-281-18/+24
| | | | | | | Raised in bug#63750, but not the main subject of it. * lisp/treesit.el (treesit-install-language-grammar): Save the recipe to treesit-language-source-alist when installation is successful.
* A better fix for "Fix cancellation of Wdired"Michael Heerdegen2023-05-281-3/+2
| | | | | | * lisp/wdired.el (wdired-abort-changes): Call `dired-build-subdir-alist' instead of `dired-revert'. (Bug#63676)
* ; * lisp/minibuffer.el (completions-header-format): Doc fix.Eli Zaretskii2023-05-271-5/+8
|
* Fix tmm-menubar when 'tmm-completion-prompt' is nilEli Zaretskii2023-05-271-3/+21
| | | | | | | | | * lisp/tmm.el (tmm-prompt): Handle nil value of 'tmm-mid-prompt'. (tmm-completion-delete-prompt): Don't rely on the exact text of the completion heading line, as it is now a customizable format string, and can be nil, meaning no heading line is inserted at all. Instead, search for the first character of the menu based on text properties used for it. (Bug#63754)
* ; * lisp/progmodes/project.el: avoid warning in loaddefs.Mattias EngdegÄrd2023-05-261-1/+1
| | | | (cherry picked from commit 1eb5faa26113afe5895955a74594e3d7cf6ffe98)
* Use 'font-lock-extend-region-functions' in python-modekobarity2023-05-261-15/+19
| | | | | | | | * lisp/progmodes/python.el (python-font-lock-extend-region): Change arguments and return value for 'font-lock-extend-region-functions'. (python-mode): Change from 'font-lock-extend-after-change-region-function' to 'font-lock-extend-region-functions'. (Bug#63622)
* Fix python-info-docstring-pkobarity2023-05-261-5/+2
| | | | | | | | | | | | | * lisp/progmodes/python.el (python-info-docstring-p): Stop using python-rx string-delimiter. * test/lisp/progmodes/python-tests.el (python-font-lock-escape-sequence-bytes-newline) (python-font-lock-escape-sequence-hex-octal) (python-font-lock-escape-sequence-unicode) (python-font-lock-raw-escape-sequence): Mark as expected failures until another bug in 'python-info-docstring-p' is corrected. (python-info-docstring-p-7): New test. (Bug#63622)
* Fix cancellation of WdiredEli Zaretskii2023-05-261-0/+3
| | | | | * lisp/wdired.el (wdired-abort-changes): Call 'dired-revert'. Patch by Stephen Berman <stephen.berman@gmx.net>. (Bug#63676)
* ; Minor fixes in documentation of recently-changed VC commandsEli Zaretskii2023-05-262-14/+37
| | | | | | | | | | * lisp/vc/vc.el (vc-print-branch-log, vc-create-branch) (vc-create-tag, vc-retrieve-tag, vc-switch-branch): Doc fixes. * lisp/vc/vc-hooks.el (vc-menu-map): Minor wording change in :help text. * doc/emacs/maintaining.texi (VC Change Log, Creating Branches): Minor wording and markup changes.
* * lisp/progmodes/project.el: Move :safe from defcustom to autoload (bug#63469)Juri Linkov2023-05-251-12/+12
| | | | | | | | (project-vc-ignores, project-vc-merge-submodules) (project-vc-include-untracked, project-vc-name) (project-vc-extra-root-markers, project-kill-buffers-display-buffer-list): Autoload the line that puts 'safe-local-variable' property on defcustom symbol instead of using the :safe keyword.
* * lisp/vc/vc-annotate.el (vc-annotate-mode-menu): Quote vc-annotate-backend.Juri Linkov2023-05-251-1/+1
| | | | | When unquoted it might get the nil value when vc-annotate.el is loaded in non-vc-controlled buffer (bug#63689).
* Add vc-create/switch/print-branch to menu and update documentation (bug#63690)Juri Linkov2023-05-252-1/+11
| | | | | | | | | | | | | * doc/emacs/maintaining.texi (VC Change Log): Add 'C-x v b l' (vc-print-branch-log). (Creating Branches): Add @kindex and @findex for vc-create-branch. (Switching Branches): Add @kindex and @findex for vc-switch-branch. * lisp/vc/vc-hooks.el (vc-menu-map): Add menu items for new commands vc-create-branch and vc-switch-branch, and also vc-print-branch-log. * lisp/vc/vc.el (vc-print-branch-log): Improve docstring.
* Make last Tramp change less invasiveMichael Albinus2023-05-251-9/+11
| | | | | | * lisp/net/tramp.el (tramp-dissect-file-name): Revert last change. (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory): Let-bind `tramp-default-proxies-alist'.
* ; Fix last change.Eli Zaretskii2023-05-251-1/+1
|
* ; * lisp/menu-bar.el (popup-menu): Doc fix.Eli Zaretskii2023-05-251-3/+4
|
* Fix 'use-dialog-box-p' and friendsEli Zaretskii2023-05-231-2/+5
| | | | | | | | | | | | | | | * lisp/subr.el (use-dialog-box-p): Use dialog boxes also when invoked from some window-system gesture. (Bug#63655) (y-or-n-p): Fix the description in the doc string of conditions under which a dialog box will be used. * src/fns.c (Fyes_or_no_p): Use the same condition for dialog boxes as in 'use-dialog-box-p'. Fix the description in the doc string of conditions under which a dialog box will be used. * doc/lispref/minibuf.texi (Multiple Queries, Yes-or-No Queries): Fix the description of conditions under which a dialog box will be used.
* Avoid duplicates when adding package dirs to load-pathStefan Monnier2023-05-231-1/+6
| | | | | | | | Do not merge to master, we're going to delete this code there. * lisp/emacs-lisp/package.el (package-activate-1): Check if the path we're about to add is already in 'load-path', since package autoload files have been updating 'load-path' for a decade.
* Avoid duplicate load-path entry when generating package autoloadsRobert Pluim2023-05-231-2/+6
| | | | | | | | | 'file-name-directory' produces a path ending in '/', so that needs to be run through 'directory-file-name' to avoid duplicate entries in 'load-path'. (Bug#63625) * lisp/emacs-lisp/package.el (package-generate-autoloads): Call 'directory-file-name' on the directory of 'load-file-name'.
* ; * lisp/progmodes/project.el (project-switch-use-entire-map): Doc fix.Eli Zaretskii2023-05-221-4/+5
|
* Fix visiting HTML files encoded in iso-2022 variantsEli Zaretskii2023-05-221-6/+10
| | | | | | * lisp/international/mule.el (sgml-xml-auto-coding-function) (sgml-html-meta-auto-coding-function): Handle coding-systems whose coding-system-type is iso-2022. (Bug#63644)
* Support 'isearch-allow-scroll' in 'pixel-scroll-precision-mode'Eli Zaretskii2023-05-221-0/+7
| | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision) (pixel-scroll-down, pixel-scroll-up): Put the 'scroll-command' property on these commands. (Bug#63640)
* shr: allow moving between adjacent anchorsAndreas Schwab2023-05-221-1/+2
| | | | | * lisp/net/shr.el (shr-urlify): Put shr-tab-stop only over first position.
* Fix multihop file name expansion in TrampMichael Albinus2023-05-221-3/+5
| | | | | * lisp/net/tramp.el (tramp-dissect-file-name): Set hop to nil if NODEFAULT. (Bug#63578)
* Preserve mark in comint-history-isearchJens Schmidt2023-05-211-0/+2
| | | | | | | | This preserves mark in `comint-history-isearch-backward' and friends, which tend to set the mark on completion of the isearch to unexpected positions. * lisp/comint.el (comint-history-isearch-end): Set `isearch-opoint' to point. (Bug#63616)
* Fix systemd unit completion for old versions of systemdLiu Hui2023-05-201-1/+2
| | | | | * lisp/pcmpl-linux.el (pcmpl-linux--systemd-units): Use '--no-legend' for compatibility with older versions of systemctl. (Bug#63411)
* Fix Skeletons menu-bar menu in Python modesEli Zaretskii2023-05-201-2/+4
| | | | | | | * lisp/progmodes/python.el (python-mode, python-ts-mode): Call 'python-skeleton-add-menu-items' here, not in 'python-base-mode', since the "Python" menu is not yet set up in the latter. (Bug#63598)
* Fix c-ts-mode--top-level-declaratorYuan Fu2023-05-201-1/+1
| | | | | * lisp/progmodes/c-ts-mode.el: (c-ts-mode--top-level-declarator): Don't use treesit-node-match-p.
* Improve c-ts-mode font-lock for function names (bug#63390)Yuan Fu2023-05-191-0/+20
| | | | | | | | | | When a function definition has preproc directives in its body, it can't correctly parse into a function_definition. This fix tries to recognize this case and highlight the function_declarator correctly. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--font-lock-settings): New rule. (c-ts-mode--top-level-declarator): New function.
* * lisp/tab-bar.el: Don't use 'minibuffer-selected-window' (bug#62427).Juri Linkov2023-05-191-6/+6
| | | | | | (tab-bar-select-tab, tab-bar-new-tab-to): Use 'window-minibuffer-p' instead of 'minibuffer-selected-window'. And switch to 'get-mru-window' instead of 'minibuffer-selected-window'.
* Split windows horizontally in places that use split to create a new window.Juri Linkov2023-05-192-2/+3
| | | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-to): * lisp/window.el (window-state-put): To create a new window, split horizontally instead of vertically. Use 'window-safe-min-width' for the SIZE arg of 'split-window'. (bug#62592)
* ; * lisp/emacs-lisp/benchmark.el (benchmark-progn): Fix declare form.Eli Zaretskii2023-05-181-1/+1
|
* ; * lisp/simple.el (async-shell-command): Add commentary about 3rd arg.Eli Zaretskii2023-05-181-0/+4
|
* Clarify misleading comment in isearch.elJens Schmidt2023-05-181-3/+3
| | | | | | | | | | Clarify a misleading comment in isearch.el as to whether frame events should exit an isearch or not (Bug#62032, Bug#41338 for background information). * lisp/isearch.el (isearch-mode-map): Replace the misleading comment. (Bug#62032) Copyright-paperwork-exempt: yes
* Improve documentation of package-menu commandsEli Zaretskii2023-05-181-51/+59
| | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi (Package Menu): Document that some package-menu filters accept lists of values interactively. * lisp/emacs-lisp/package.el (package-menu-execute) (package-menu-hide-package, package-menu-describe-package) (package-menu-mark-delete, package-menu-mark-install) (package-menu-mark-unmark, package-menu-backup-unmark) (package-menu-quick-help, package-menu-get-status) (package-menu--find-upgrades, package-menu-mark-upgrades) (package-menu-filter-by-archive) (package-menu-filter-by-description) (package-menu-filter-by-keyword) (package-menu-filter-by-name-or-description) (package-menu-filter-by-name, package-menu-filter-by-status) (package-menu-filter-by-version, package-menu-filter-marked) (package-menu-describe-package): Doc fixes.
* Fix M-x completion-predicate under python-ts-modeBasil L. Contovounesios2023-05-171-2/+2
| | | | | | | * lisp/progmodes/python.el (python--completion-predicate) (python-shell--completion-predicate): Filter M-x completion based on python-base-mode instead of python-mode. This allows for python-ts-mode as well (bug#63552).
* * Account for `byte-compile-warnings' during native compilation (bug#63302).Andrea Corallo2023-05-171-0/+2
| | | | | * lisp/emacs-lisp/comp.el (comp-final, comp-run-async-workers): Forward `byte-compile-warnings' to child processes.
* Avoid duplicate VC packages in 'package-selected-packages'Philip Kaludercic2023-05-161-3/+5
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Check if 'package-selected-packages' already contains the package name. (bug#63338)
* * lisp/tab-bar.el (tab-bar-new-tab-to): Set 'window-side' to nil (bug#62427).Juri Linkov2023-05-151-1/+3
| | | | This is still needed for the case when tab-bar-new-tab-choice is 'window'.
* ; Better warning message when loading tree-sitter failsEli Zaretskii2023-05-151-1/+4
| | | | | | * lisp/treesit.el (treesit-ready-p): Improve diagnostics on MS-Windows when the tree-sitter library cannot be loaded at run time.
* Update to Org 9.6.6Kyle Meyer2023-05-143-54/+55
|