summaryrefslogtreecommitdiff
path: root/lisp/url/url-nfs.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/url/url-nfs.el')
-rw-r--r--lisp/url/url-nfs.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/url/url-nfs.el b/lisp/url/url-nfs.el
index efc4bccbeba..dee54c7ad9c 100644
--- a/lisp/url/url-nfs.el
+++ b/lisp/url/url-nfs.el
@@ -42,8 +42,7 @@
Each can be used any number of times.")
(defun url-nfs-unescape (format host port user pass file)
- (save-excursion
- (set-buffer (get-buffer-create " *nfs-parse*"))
+ (with-current-buffer (get-buffer-create " *nfs-parse*")
(erase-buffer)
(insert format)
(goto-char (point-min))