aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Albinus2018-06-20 12:13:56 +0200
committerMichael Albinus2018-06-20 12:13:56 +0200
commit6f649e77b8512f73b17f03fd795beea9965c4029 (patch)
treec52a6a8413dab1e9af36d975869f16019230ad53 /etc
parent3a47f3921bdaaf7b7d80dc3be05a5f1b1f2501eb (diff)
downloademacs-6f649e77b8512f73b17f03fd795beea9965c4029.tar.gz
emacs-6f649e77b8512f73b17f03fd795beea9965c4029.zip
Implement command completion in remote shells. (Bug#31704)
* doc/lispref/files.texi (Locating Files): Describe optional argument REMOTE of `executable-find'. (Magic File Names): Add `exec-path'. * doc/lispref/processes.texi (Subprocess Creation): Describe function `exec-path'. * doc/misc/tramp.texi (Remote programs): Explain refresh of search paths by `tramp-cleanup-this-connection'. * etc/NEWS: Mention 'exec-path' and 'executable-find'. * lisp/files.el (exec-path): New defun. (executable-find): Add optional argument REMOTE. * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix'. (shell--command-completion-data): Use `(exec-path)'. (Bug#31704) * lisp/net/ange-ftp.el (exec-path): * lisp/net/tramp.el (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-gvfs.el (tramp-gvfs-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) <exec-path>: Add handler. * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path): New defun. (tramp-adb-maybe-open-connection): Do not set "remote-path" connection property. * lisp/net/tramp-compat.el (tramp-compat-exec-path): New defun. * lisp/net/tramp-sh.el (tramp-sh-handle-exec-path): New defun. * lisp/net/tramp.el (tramp-eshell-directory-change): Use it. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test38-make-nearby-temp-file) (tramp-archive-test41-file-system-info) (tramp-archive-test43-auto-load) (tramp-archive-test43-delay-load): Rename. * test/lisp/net/tramp-tests.el (tramp-test34-exec-path): New test. (tramp-test36-make-auto-save-file-name) (tramp-test37-find-backup-file-name) (tramp-test38-make-nearby-temp-file) (tramp-test39-special-characters) (tramp-test39-special-characters-with-stat) (tramp-test39-special-characters-with-perl) (tramp-test39-special-characters-with-ls, tramp-test40-utf8) (tramp-test40-utf8-with-stat, tramp-test40-utf8-with-perl) (tramp-test40-utf8-with-ls, tramp-test41-file-system-info) (tramp-test42-asynchronous-requests, tramp-test43-auto-load) (tramp-test43-delay-load, tramp-test43-recursive-load) (tramp-test43-remote-load-path, tramp-test44-unload): Rename.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS18
1 files changed, 13 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 632627b241d..709c446849b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -145,6 +145,14 @@ regular expression was previously invalid, but is now accepted:
145--- 145---
146** The German prefix and postfix input methods now support Capital sharp S. 146** The German prefix and postfix input methods now support Capital sharp S.
147 147
148+++
149** The new function 'exec-path' returns a directory list from a remote host.
150
151+++
152** Function 'executable-find' supports an optional argument REMOTE.
153This triggers to search a program name on the remote host indicated by
154'default-directory'.
155
148 156
149* Editing Changes in Emacs 27.1 157* Editing Changes in Emacs 27.1
150 158
@@ -436,7 +444,6 @@ It can be used to set any buffer as the next one to be used by
436This means that pressing C-M-SPACE now selects the entire tree by 444This means that pressing C-M-SPACE now selects the entire tree by
437default, and not just the opening element. 445default, and not just the opening element.
438 446
439
440** Eshell 447** Eshell
441 448
442--- 449---
@@ -454,11 +461,15 @@ To restore the old behavior, use
454Previously eshell/kill would fail if provided a kill signal to send to the 461Previously eshell/kill would fail if provided a kill signal to send to the
455process. It now accepts signals specified either by name or by its number. 462process. It now accepts signals specified either by name or by its number.
456 463
464** Shell
465
466---
467*** Program name completion inside remote shells works now as expected.
468
457** Pcomplete 469** Pcomplete
458*** The function 'pcomplete-uniquify-list' has been renamed from 470*** The function 'pcomplete-uniquify-list' has been renamed from
459'pcomplete-uniqify-list'. 471'pcomplete-uniqify-list'.
460 472
461
462** Auth-source 473** Auth-source
463 474
464--- 475---
@@ -755,7 +766,6 @@ will be chosen even if you have an entry for image/* in your
755overrides all system and Emacs-provided defaults. To get the old 766overrides all system and Emacs-provided defaults. To get the old
756method back, set 'mailcap-prefer-mailcap-viewers' to nil. 767method back, set 'mailcap-prefer-mailcap-viewers' to nil.
757 768
758
759** URL 769** URL
760 770
761*** The file: handler no longer looks for index.html in directories if 771*** The file: handler no longer looks for index.html in directories if
@@ -763,14 +773,12 @@ you ask it for a file:///dir URL. Since this is a low-level library,
763such decisions (if they are to be made at all) are left to 773such decisions (if they are to be made at all) are left to
764higher-level functions. 774higher-level functions.
765 775
766
767** image-mode 776** image-mode
768 777
769*** image-mode started using ImageMagick by default for all images 778*** image-mode started using ImageMagick by default for all images
770some years back. It now respects 'imagemagick-types-inhibit' as a way 779some years back. It now respects 'imagemagick-types-inhibit' as a way
771to disable that. 780to disable that.
772 781
773
774+++ 782+++
775** The new function 'read-answer' accepts either long or short answers 783** The new function 'read-answer' accepts either long or short answers
776depending on the new customizable variable 'read-answer-short'. 784depending on the new customizable variable 'read-answer-short'.