Procházet zdrojové kódy

Merge branch 'maint'

Nicolas Goaziou před 11 roky
rodič
revize
ec0eab7fc9
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      lisp/org-bbdb.el

+ 5 - 2
lisp/org-bbdb.el

@@ -400,8 +400,11 @@ This is used by Org to re-create the anniversary hash table."
 (defun org-bbdb-complete-link ()
   "Read a bbdb link with name completion."
   (require 'bbdb-com)
-  (concat "bbdb:"
-	  (bbdb-record-name (car (bbdb-completing-read-record "Name: ")))))
+  (let ((rec (bbdb-completing-read-record "Name: ")))
+    (concat "bbdb:"
+	    (bbdb-record-name (if (listp rec)
+				  (car rec)
+				rec)))))
 
 (defun org-bbdb-anniv-export-ical ()
   "Extract anniversaries from BBDB and convert them to icalendar format."