diff options
author | Kim F. Storm <storm@cua.dk> | 2006-09-05 10:26:35 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2006-09-05 10:26:35 +0000 |
commit | 930f852ec4ab1afd451726e58b37e56641329907 (patch) | |
tree | 597f02136b74118aaf96709308562c41e47abc09 /lisp/ido.el | |
parent | d07a839e80a8309319d7440dee3024aac564a8c2 (diff) | |
download | emacs-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.el | 3 |
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) |