# HG changeset patch # User Kim F. Storm # Date 1157451995 0 # Node ID 5d8f8bf05df403730c419b46f2ff9c2fdf6bee38 # Parent 2387170eff781700cf48ca5c479301abf3c00722 (ido-visit-buffer): Use buffer name if buffer arg is a buffer. diff -r 2387170eff78 -r 5d8f8bf05df4 lisp/ido.el --- a/lisp/ido.el Tue Sep 05 10:26:21 2006 +0000 +++ b/lisp/ido.el Tue Sep 05 10:26:35 2006 +0000 @@ -3781,7 +3781,8 @@ (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)