From 930f852ec4ab1afd451726e58b37e56641329907 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 5 Sep 2006 10:26:35 +0000 Subject: [PATCH] (ido-visit-buffer): Use buffer name if buffer arg is a buffer. --- lisp/ido.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2