changeset 72656:5d8f8bf05df4

(ido-visit-buffer): Use buffer name if buffer arg is a buffer.
author Kim F. Storm <storm@cua.dk>
date Tue, 05 Sep 2006 10:26:35 +0000
parents 2387170eff78
children 85d9ff9eee3f
files lisp/ido.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)