summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Extend memory-info for remote systemsMichael Albinus2022-11-2711-3/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Add memory-info. * doc/lispref/internals.texi (Garbage Collection): memory-info can also retrieve values from remote systems. * etc/NEWS: Document changes in memory-info. Fix typos. * lisp/files.el (warn-maybe-out-of-memory): Ensure local memory info. * lisp/net/tramp.el (tramp-handle-memory-info): New defun. (tramp-file-name-for-operation) * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist) * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add 'memory-info'. * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-exec-path): Let-bind `process-file-side-effects'. * src/alloc.c (Fmemory_info): Support remote systems. (Qmemory_info): Declare. * test/lisp/net/tramp-tests.el (tramp-test31-memory-info): New test.
* Consistently refer to VC packages as suchPhilip Kaludercic2022-11-272-12/+12
| | | | | | | * lisp/emacs-lisp/package-vc.el: Replace instances of "source package" in comments and docstrings. * lisp/emacs-lisp/package.el: Replace instances of "source package" in comments and docstrings.
* Fix xref interaction with which-func (bug#59575)Juanma Barranquero2022-11-271-0/+11
| | | | | | | * lisp/progmodes/xref.el (xref--add-log-current-defun): New function. (xref--xref-buffer-mode): Assign it buffer-locally to `add-log-current-defun-function'.
* Fix xref to correctly display Windows absolute filenamesJuanma Barranquero2022-11-271-1/+1
| | | | | | * lisp/progmodes/xref.el (xref--group-name-for-display): Use `file-name-absolute-p' instead of faking it. (Discussed in bug#59628.)
* Remove compatibility code in csharp-modeTheodor Thornhill2022-11-271-73/+2
| | | | | | | * lisp/progmodes/csharp-mode.el (c-basic-matchers-before): Remove invalid string check for Emacs 27. (version=): Remove compatibility hack for string handling in CC Mode in Emacs 27.1. (Bug#59602)
* ; Fix recent documentation changes in treesit.elEli Zaretskii2022-11-271-11/+12
| | | | | * lisp/treesit.el (treesit-font-lock-level) (treesit-font-lock-recompute-features): Doc fixes.
* ; * lisp/progmodes/sh-script.el (sh--redirect-bash-ts-mode): Doc fix.Eli Zaretskii2022-11-271-1/+1
|
* Add js-ts-mode to eglot-server-programsTheodor Thornhill2022-11-271-1/+1
| | | | | * lisp/progmodes/eglot.el (eglot-server-programs): Add js-ts-mode as an alternative. (Bug#59252)
* Improve describe-text-properties displayStefan Kangas2022-11-271-2/+3
| | | | | | * lisp/descr-text.el (describe-property-list): Don't propertize white space with the 'help-argument-name' face. This improves display slightly when that face has an underline.
* Make typescript-ts-mode not fallback to js-modeYuan Fu2022-11-261-10/+2
| | | | | | | | | 1. js-mode might not be able to handle typescript file 2. Now that we use separate modes for tree-sitter modes, not falling back makes tree-sitter modes more consistent * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Remove the fallback code.
* Make bash-ts-mode fall back to sh-mode if the file isn't in BashYuan Fu2022-11-261-18/+40
| | | | | | | | | * lisp/progmodes/sh-script.el (sh--guess-shell): Take out into a new function. (sh-base-mode): Use the new function. (bash-ts-mode): Update docstring. (sh--redirect-recursing): New variable. (sh--redirect-bash-ts-mode): New function.
* Correctly fontify types in typeof() expression in csharp-ts-modeJostein Kjønigsen2022-11-261-1/+2
| | | | | * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): Add new pattern.
* Reorganize treesit-font-lock-feaure-list's to the new level schemeYuan Fu2022-11-267-25/+29
| | | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--base-mode) * lisp/progmodes/csharp-mode.el (csharp-ts-mode) * lisp/progmodes/java-ts-mode.el (java-ts-mode) * lisp/progmodes/js.el (js-ts-mode) * lisp/progmodes/python.el (python-ts-mode) * lisp/progmodes/sh-script.el (bash-ts-mode) * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Reorganized treesit-font-lock-feature-list.
* Add treesit-font-lock-levelYuan Fu2022-11-261-13/+27
| | | | | | | | | | This replaces font-lock-maximum-decoration and allows us to disable the busiest fontification level by default. * lisp/treesit.el (treesit-font-lock-level): New variable. (treesit-font-lock-feature-list) (treesit-font-lock-settings): Change docstring. (treesit-font-lock-recompute-features): Use the new variable.
* Partially fix some python tests (bug#59477)Yuan Fu2022-11-261-1/+3
| | | | | | | | | | | | | | | | | | | This fixes python-font-lock-assignment-statement-multiline-1 python-font-lock-assignment-statement-multiline-2 python-font-lock-assignment-statement-multiline-3 python-font-lock-assignment-statement-multiline-4 python-font-lock-assignment-statement-multiline-5 python-font-lock-assignment-statement-multiline-6 but leaves python-tests--fill-long-first-line unfixed. * lisp/progmodes/python.el (python-mode): Add the missing setup.
* Improve robustness of server.el testsJim Porter2022-11-262-2/+8
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert--insert-infos): Allow 'message' to be a function that is called when inserting the info. (ert-info): Update docstring to describe using a function for MESSAGE-FORM. * lisp/server.el (server-start): Log when the server is starting. * test/lisp/server-tests.el (server-tests/can-create-frames-p): New constant. Use it to skip tests that need to create frames. (server-tests/start-emacsclient): Rename to... (server-tests/start-client): ... this, and set the process's buffer. (server-tests/with-server): Put the server file in a temporary directory so we don't conflict with real Emacs servers. (server-tests/with-client): New macro... (server-tests/server-start/stop-prompt-with-client) (server-tests/emacsclient/server-edit) (server-tests/emacsclient/create-frame) (server-tests/emacsclient/create-frame): ... use it. (server-tests/server-start/stop-prompt-with-client): Simplify.
* Remove mentions of create-directory nnmaildir settingEric Abrahamsen2022-11-261-15/+6
| | | | | | | * lisp/gnus/nnmaildir.el (nnmaildir-open-server): The 'create-directory server parameter should have been removed entirely, and supplanted by 'target-prefix. Remove check for old parameter. * doc/misc/gnus.texi (Maildir): Delete mention from manual.
* ; Fix typosStefan Kangas2022-11-261-1/+1
|
* In project-find-file and the like, add absolute file name to historyAugusto Stoffel2022-11-261-5/+9
| | | | | * lisp/progmodes/project.el (project--read-file-cpd-relative): Add absolute file name to history.
* Improve documentation of some posn-* functionsEli Zaretskii2022-11-261-3/+4
| | | | | | | * lisp/subr.el (posn-object-x-y): Doc fix. * doc/lispref/commands.texi (Click Events): More accurate documentation of what are DX and DY in POSITION.
* Fix generation of autoloads on MS-WindowsEli Zaretskii2022-11-261-15/+20
| | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--file-load-name): Handle the case when FILE and OUTFILE don't share any common ancestor directory. (Bug#59507)
* ; Fix some typosMichael Heerdegen2022-11-261-1/+1
| | | | | * doc/emacs/programs.texi (Programming Language Doc): * lisp/wid-edit.el (lazy): Fix typos.
* ; Add doc string to 'ucs-normalize-string'Eli Zaretskii2022-11-261-0/+1
| | | | | * lisp/international/ucs-normalize.el (ucs-normalize-string): Add a doc string. (Bug#59603)
* Use substitute-command-keys in Info-index errorStefan Kangas2022-11-261-6/+9
| | | | | | * lisp/info.el (info--ensure-not-in-directory-node): New helper function using substitute-command-keys for error message. (Info-index, Info-virtual-index): Use it.
* eglot-server-programs: ts-mode -> typescript-ts-modeBrian Leung2022-11-261-1/+1
| | | | | * lisp/progmodes/eglot.el (eglot-server-programs): Fix name of 'typescript-ts-mode' after rename from 'ts-mode'. (Bug#59589)
* ; * lisp/progmodes/csharp-mode.el: Add Commentary.Stefan Kangas2022-11-261-0/+4
|
* ; Fix comment-end in treesit-simple-indent-presetsYuan Fu2022-11-251-2/+4
| | | | * lisp/treesit.el (treesit-simple-indent-presets): Fix comment-end.
* ; * lisp/progmodes/csharp-mode.el: Add author and maintainer.Yuan Fu2022-11-251-0/+2
|
* Rename ts-mode to typescript-ts-modeTheodor Thornhill2022-11-261-39/+39
| | | | | | | * lisp/progmodes/typescript-ts-mode.el: Rename from 'ts-mode' to 'typescript-ts-mode'. Rename all symbols to match new prefix. * etc/NEWS: Mention the new mode name. Ref: https://lists.gnu.org/r/emacs-devel/2022-11/msg01587.html
* Rename ts-mode.el to typescript-ts-mode.elTheodor Thornhill2022-11-261-0/+0
| | | | | * lisp/progmodes/ts-mode.el: Move from here... * lisp/progmodes/typescript-ts-mode.el: ...to here.
* Drop project--value-in-dirDmitry Gutov2022-11-251-17/+5
| | | | | | | | | | | | | | | Drop the project--value-in-dir mechanics, where the user could edit the value in .dir-locals.el and have it applied instantly without reverting the current buffer. It made working in remote buffers with enable-remote-dir-locals non-nil slower, which doesn't seem worth it for a minor improvement of an infrequent operation. Also less compexity overall. * lisp/progmodes/project.el (project-try-vc, project-files) (project--vc-list-files, project-ignores, project-buffers): Use the user options directly. (project--vc-merge-submodules-p, project--value-in-dir): Delete functions.
* ; * lisp/server.el (server-start): Fix a typo in a warning message.Jim Porter2022-11-251-1/+1
|
* ; lisp/progmodes/which-func.el: Mark emacs-devel as maintainer.Stefan Kangas2022-11-251-4/+4
|
* ; * lisp/progmodes/which-func.el: Remove obsolete commentJuanma Barranquero2022-11-251-10/+0
|
* Disable auth-source-pass-extra-query-keywords by defaultF. Jason Park2022-11-252-5/+6
| | | | | | | | | | | | | | | | * doc/misc/auth.texi: Mention subdomain matching in `auth-source-pass-extra-query-keywords' section. * etc/NEWS: Mention the loss of traditional auth-source-pass features when `auth-source-pass-extra-query-keywords' is enabled. * lisp/auth-source-pass (auth-source-pass-extra-query-keywords): Set default to nil. Mention domain matching in doc string. (auth-source-pass--match-regexp): Allow username to contain "@". * lisp/erc/erc-compat.el: (erc-compat--29-auth-source-pass--retrieve-parsed): Adjust regexp. * test/lisp/auth-source-pass-tests.el (auth-source-pass-extra-query-keywords--suffixed-user): make plain username more email-like. (Bug#58985.)
* ; * lisp/progmodes/python.el (treesit-node-prev-sibling): Declare.Eli Zaretskii2022-11-251-1/+1
|
* ; Fix doc strings in xref.elEli Zaretskii2022-11-251-8/+10
| | | | | * lisp/progmodes/xref.el (xref-history-storage) (xref-global-history, xref-window-local-history): Doc fixes.
* Fix regex errors in csharp-modeTheodor Thornhill2022-11-251-2/+2
| | | | | | | | * lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Repetition errors in regex. (csharp-compilation-re-xbuild-warning): Make regex match regex for xbuild-error.
* CC Mode: Fix the "asymmetry rule" for fontifying a type followed by *Alan Mackenzie2022-11-251-2/+5
| | | | | | | | | | This fixes bug #59427. We now handle correctly the case when a parenthesis follows the * which is ambiguously a multiplication or indirection operator. Also, we don't recognise a type thus found as a found type - the evidence is too weak. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Fix CASE 17.5 as above.
* Show package name in package-vc--unpack promptDaanturo2022-11-251-1/+1
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Display the package name when asking whether to overwrite its previous checkout. (Bug#59548)
* ; Remove unused variable treesit-imenu-functionStefan Kangas2022-11-251-8/+0
| | | | | * lisp/treesit.el (treesit-imenu-function): Remove unused variable. (Bug#59475)
* Don't explicitly delete client frames when killing Emacs anywayJim Porter2022-11-241-53/+77
| | | | | | | | | | | | | | | | This eliminates a useless error prompt when killing Emacs from a client frame when there are no other frames (bug#58877). * lisp/server.el (server-running-external): New error. (server--file-name): New function... (server-eval-at): ... use it. (server-start): Factor out server stopping code into... (server-stop): ... here. (server-force-stop): Use 'server-stop', and tell it not to delete frames. * test/lisp/server-tests.el (server-tests/server-force-stop/keeps-frames): New test.
* Make ibuffer directory filter buffer awareGabriel do Nascimento Ribeiro2022-11-251-4/+6
| | | | | * lisp/ibuf-ext.el (define-ibuffer-filter): Make ibuffer directory filter buffer aware for buffer not visiting files. (Bug#59165)
* Add support for window-local xref historyAckerley Tng2022-11-251-33/+84
| | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-history-storage): New user option (bug#59381). (xref--make-xref-history): New function. (xref--history): Use it. (xref-global-history, xref-window-local-history): New function. (xref--get-history): New function. (xref--push-backward, xref--push-forward) (xref-push-marker-stack, xref-go-back, xref-go-forward) (xref-clear-marker-stack, xref-marker-stack-empty-p) (xref-forward-history-empty-p): Use it.
* Bind Buffer-menu-view-other-window to "O"Stefan Kangas2022-11-251-9/+9
| | | | | | * lisp/buff-menu.el (Buffer-menu-mode-map): Bind 'Buffer-menu-view-other-window' to "O". (Buffer-menu-mode): Clean up docstring. (Bug#59280)
* ; * lisp/net/goto-addr.el (goto-address-at-point): Fix last commit.Stefan Kangas2022-11-251-6/+6
|
* Allow goto-address-at-point to use secondary browserGabriel do Nascimento Ribeiro2022-11-251-14/+17
| | | | | | * lisp/net/goto-addr.el (goto-address-at-point): Call `browse-url-button-open-url', so a prefix argument uses `browse-url-secondary-browser-function'. (Bug#59443)
* Fix easy menu separator in oldXMenuManuel Giraud2022-11-251-4/+7
| | | | | * lisp/emacs-lisp/easymenu.el (easy-menu-convert-item-1): Replace a string of dash with a menu separator as the doc says. (Bug#59370)
* Improve csharp-ts-mode fontificationJostein Kjønigsen2022-11-241-0/+12
| | | | | * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): Add more pattern for definition feature.
* Improve python-ts-mode fontification (bug#59534)Yuan Fu2022-11-241-5/+20
| | | | | * lisp/progmodes/python.el (python--treesit-operators): Add operators. (python--treesit-fontify-string): Fontify BOF docstrings.