]> git.eshelyaron.com Git - emacs.git/commitdiff
(ido-visit-buffer): Use buffer name if buffer arg is a buffer.
authorKim F. Storm <storm@cua.dk>
Tue, 5 Sep 2006 10:26:35 +0000 (10:26 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 5 Sep 2006 10:26:35 +0000 (10:26 +0000)
lisp/ido.el

index 2d531728b67ee261e36e13824ae97b22ce322991..797827eafd40f9c405a3d062e2ff4c6fd1073c65 100644 (file)
@@ -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)