summaryrefslogtreecommitdiff
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-09-05 10:26:35 +0000
committerKim F. Storm <storm@cua.dk>2006-09-05 10:26:35 +0000
commit930f852ec4ab1afd451726e58b37e56641329907 (patch)
tree597f02136b74118aaf96709308562c41e47abc09 /lisp/ido.el
parentd07a839e80a8309319d7440dee3024aac564a8c2 (diff)
downloademacs-930f852ec4ab1afd451726e58b37e56641329907.tar.gz
emacs-930f852ec4ab1afd451726e58b37e56641329907.tar.bz2
emacs-930f852ec4ab1afd451726e58b37e56641329907.zip
(ido-visit-buffer): Use buffer name if buffer arg is a buffer.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r--lisp/ido.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 2d531728b67..797827eafd4 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3781,7 +3781,8 @@ for first matching file."
(defun ido-visit-buffer (buffer method &optional record)
"Switch to BUFFER according to METHOD.
Record command in `command-history' if optional RECORD is non-nil."
-
+ (if (bufferp buffer)
+ (setq buffer (buffer-name buffer)))
(let (win newframe)
(cond
((eq method 'kill)