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.
This commit is contained in:
parent
ca42ff5f0e
commit
1cbf2655db
16 changed files with 153 additions and 49 deletions
|
@ -139,6 +139,7 @@
|
|||
(make-nearby-temp-file . tramp-handle-make-nearby-temp-file)
|
||||
(make-process . tramp-handle-make-process)
|
||||
(make-symbolic-link . tramp-handle-make-symbolic-link)
|
||||
(memory-info . tramp-handle-memory-info)
|
||||
(process-attributes . tramp-handle-process-attributes)
|
||||
(process-file . tramp-sshfs-handle-process-file)
|
||||
(rename-file . tramp-sshfs-handle-rename-file)
|
||||
|
@ -214,7 +215,8 @@ arguments to pass to the OPERATION."
|
|||
(with-parsed-tramp-file-name default-directory nil
|
||||
(with-tramp-connection-property (tramp-get-process v) "remote-path"
|
||||
(with-temp-buffer
|
||||
(process-file "getconf" nil t nil "PATH")
|
||||
(let (process-file-side-effects)
|
||||
(process-file "getconf" nil t nil "PATH"))
|
||||
(split-string
|
||||
(progn
|
||||
;; Read the expression.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue