summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-integration.el
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2020-11-10 10:02:15 +0100
committerMichael Albinus <michael.albinus@gmx.de>2020-11-10 10:02:15 +0100
commit515791ae8aa9283de381ace82abda96319a0e4f2 (patch)
tree262ee1937c899420b63beb13f90bd53bfc65b914 /lisp/net/tramp-integration.el
parentee11a68320eeb8bb90ded9773c02d7863abca3d7 (diff)
downloademacs-515791ae8aa9283de381ace82abda96319a0e4f2.tar.gz
Only use nbutlast when we actually want to modify the original list
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-byte-array-to-string): Don't modify the byte array. * lisp/net/tramp-integration.el (tramp-eshell-directory-change): Don't modify the underlying exec-path.
Diffstat (limited to 'lisp/net/tramp-integration.el')
-rw-r--r--lisp/net/tramp-integration.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/tramp-integration.el b/lisp/net/tramp-integration.el
index f712600072e..7e4a9bf05e5 100644
--- a/lisp/net/tramp-integration.el
+++ b/lisp/net/tramp-integration.el
@@ -132,7 +132,7 @@ been set up by `rfn-eshadow-setup-minibuffer'."
;; Use `path-separator' as it does eshell.
(setq eshell-path-env
(mapconcat
- #'identity (nbutlast (tramp-compat-exec-path)) path-separator)))
+ #'identity (butlast (tramp-compat-exec-path)) path-separator)))
(with-eval-after-load 'esh-util
(add-hook 'eshell-mode-hook