aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-06-08 10:42:34 +0000
committerMichael Albinus2008-06-08 10:42:34 +0000
commitb8206d82a5b56d3e466e59e378170fce3d560c64 (patch)
tree61a5d93ce262442a97615a6045f3d3854c94b1a8
parenta4240420baeeb3456dbcc3c25989870df1e38541 (diff)
downloademacs-b8206d82a5b56d3e466e59e378170fce3d560c64.tar.gz
emacs-b8206d82a5b56d3e466e59e378170fce3d560c64.zip
* uniquify.el (uniquify-get-proposed-name): Handle remote files.
-rw-r--r--lisp/uniquify.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index 6ac3421255c..ca8e4bb4638 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -360,7 +360,8 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil."
360 (setq dirname (directory-file-name dirname))) 360 (setq dirname (directory-file-name dirname)))
361 (setq n (1- n)) 361 (setq n (1- n))
362 (push (if (zerop (length file)) ;nil or "". 362 (push (if (zerop (length file)) ;nil or "".
363 (prog1 "" (setq dirname nil)) ;Could be `dirname' iso "". 363 (prog1 (or (file-remote-p dirname) "")
364 (setq dirname nil)) ;Could be `dirname' iso "".
364 file) 365 file)
365 extra-string))) 366 extra-string)))
366 (when (zerop n) 367 (when (zerop n)