]> code.delx.au - gnu-emacs/blobdiff - lisp/url/url-nfs.el
(url-http-async-sentinel): Check that the buffer is still alive before
[gnu-emacs] / lisp / url / url-nfs.el
index d66dffa6d05dc5f7096cc745745a6f73673c66a6..c0183d7ea5f0eb9626aa4890982041b96525f92e 100644 (file)
@@ -1,7 +1,7 @@
 ;;; url-nfs.el --- NFS URL interface
 
 ;; Copyright (C) 1996, 1997, 1998, 1999, 2004,
-;;   2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 ;; Keywords: comm, data, processes
 
@@ -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))