Переглянути джерело

Fix bug in iswitchb completion when the table is already a list

Reported by John Wiegley
Carsten Dominik 15 роки тому
батько
коміт
1da2e348c4
2 змінених файлів з 6 додано та 1 видалено
  1. 3 0
      lisp/ChangeLog
  2. 3 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-10-26  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org.el (org-icompleting-read): Make iswitchb completion work
+	with lists and tables.
+
 	* org-agenda.el (org-agenda-add-entry-text): Never add entry text
 	while pushing the mobile agenda.
 

+ 3 - 1
lisp/org.el

@@ -7838,7 +7838,9 @@ from."
 	      (boundp 'iswitchb-mode) iswitchb-mode
 	      (listp (second args)))
 	 (apply 'org-iswitchb-completing-read (concat (car args))
-		(mapcar (lambda (x) (car x)) (nth 1 args))
+		(if (consp (car (nth 1 args)))
+		    (mapcar (lambda (x) (car x)) (nth 1 args))
+		  (nth 1 args))
 		(cddr args))
        (apply 'completing-read args)))))