Browse Source

org-capture: Fix typo

* lisp/org-capture.el (org-capture-fill-template): Fix typo introduced
  in last commit.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113126>
Nicolas Goaziou 8 years ago
parent
commit
68f60dbdd5
1 changed files with 3 additions and 4 deletions
  1. 3 4
      lisp/org-capture.el

+ 3 - 4
lisp/org-capture.el

@@ -1748,10 +1748,9 @@ The template may still contain \"%?\" for cursor positioning."
 				(org-set-tags nil 'align))))))
 		    ((or "C" "L")
 		     (let ((insert-fun (if (equal key "C") #'insert
-					 (lambda (s) (org-insert-link 0 s))))
-			   (first-value (car org-capture--clipboards)))
-		       (pcase (length org-capture--clipboards)
-			 (nil nil)
+					 (lambda (s) (org-insert-link 0 s)))))
+		       (pcase org-capture--clipboards
+			 (`nil nil)
 			 (`(,value) (funcall insert-fun value))
 			 (`(,first-value . ,_)
 			  (funcall insert-fun