diff options
| author | Michael Albinus | 2022-11-27 16:57:03 +0100 |
|---|---|---|
| committer | Michael Albinus | 2022-11-27 16:57:03 +0100 |
| commit | 1cbf2655db40cd474411b77ece57a287eb85ea2c (patch) | |
| tree | 51c1eb45d553033f76e7d36837cfbaa20778c7b2 /doc/lispref | |
| parent | ca42ff5f0ee757f0a70f603863c83e85eef683b9 (diff) | |
| download | emacs-1cbf2655db40cd474411b77ece57a287eb85ea2c.tar.gz emacs-1cbf2655db40cd474411b77ece57a287eb85ea2c.zip | |
Extend memory-info for remote systems
* 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.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/files.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/internals.texi | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 183b2786eae..4b45d89f9d0 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -3383,7 +3383,7 @@ first, before handlers for jobs such as remote file access. | |||
| 3383 | @code{make-nearby-temp-file}, | 3383 | @code{make-nearby-temp-file}, |
| 3384 | @code{make-process}, | 3384 | @code{make-process}, |
| 3385 | @code{make-symbolic-link},@* | 3385 | @code{make-symbolic-link},@* |
| 3386 | @code{process-attributes}, @code{process-file}, | 3386 | @code{memory-info}, @code{process-attributes}, @code{process-file}, |
| 3387 | @code{rename-file}, @code{set-file-acl}, @code{set-file-modes}, | 3387 | @code{rename-file}, @code{set-file-acl}, @code{set-file-modes}, |
| 3388 | @code{set-file-selinux-context}, @code{set-file-times}, | 3388 | @code{set-file-selinux-context}, @code{set-file-times}, |
| 3389 | @code{set-visited-file-modtime}, @code{shell-command}, | 3389 | @code{set-visited-file-modtime}, @code{shell-command}, |
| @@ -3445,7 +3445,7 @@ first, before handlers for jobs such as remote file access. | |||
| 3445 | @code{make-nearby-temp-file}, | 3445 | @code{make-nearby-temp-file}, |
| 3446 | @code{make-process}, | 3446 | @code{make-process}, |
| 3447 | @code{make-symbolic-link}, | 3447 | @code{make-symbolic-link}, |
| 3448 | @code{process-attributes}, @code{process-file}, | 3448 | @code{memory-info}, @code{process-attributes}, @code{process-file}, |
| 3449 | @code{rename-file}, @code{set-file-acl}, @code{set-file-modes}, | 3449 | @code{rename-file}, @code{set-file-acl}, @code{set-file-modes}, |
| 3450 | @code{set-file-selinux-context}, @code{set-file-times}, | 3450 | @code{set-file-selinux-context}, @code{set-file-times}, |
| 3451 | @code{set-visited-file-modtime}, @code{shell-command}, | 3451 | @code{set-visited-file-modtime}, @code{shell-command}, |
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index 4640b6d7591..c4e724d761c 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi | |||
| @@ -622,6 +622,9 @@ a certain kind of object. See the documentation string for details. | |||
| 622 | @defun memory-info | 622 | @defun memory-info |
| 623 | This functions returns an amount of total system memory and how much | 623 | This functions returns an amount of total system memory and how much |
| 624 | of it is free. On an unsupported system, the value may be @code{nil}. | 624 | of it is free. On an unsupported system, the value may be @code{nil}. |
| 625 | |||
| 626 | If @code{default-directory} points to a remote host, memory | ||
| 627 | information of that host is returned. | ||
| 625 | @end defun | 628 | @end defun |
| 626 | 629 | ||
| 627 | @defvar gcs-done | 630 | @defvar gcs-done |