Browse Source

Bugfix: org-ido-switchb

Chris Leyon writes:

>  For some semi-short time, org-ido-switchb has been broken, complaining
>  about wrong type arguments.  The attached one-line patch corrects
>  this.

Patch by Chris fixes this problem.
Carsten Dominik 16 years ago
parent
commit
bf1a21ce81
2 changed files with 2 additions and 1 deletions
  1. 1 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 1 - 0
lisp/ChangeLog

@@ -2,6 +2,7 @@
 
 	* org.el (org-store-link): Use buffer name as link description in
 	w3-mode buffers.
+	(org-ido-switchb): Fix argument bug for completion.
 
 	* org-remember.el (org-remember-apply-template): Set local
 	variable `auto-save-visited-file-name' instead of global one.

+ 1 - 1
lisp/org.el

@@ -12773,7 +12773,7 @@ With two prefix arguments, restrict available buffers to agenda files."
                      (t                 (org-buffer-list)))))
     (switch-to-buffer
      (org-ido-completing-read "Org buffer: "
-                              (mapcar 'buffer-name blist)
+                              (mapcar 'list (mapcar 'buffer-name blist))
                               nil t))))
 
 (defun org-buffer-list (&optional predicate exclude-tmp)