Преглед на файлове

ensure ob-get-src-block-info returns nil if not matches

* lisp/ob.el (org-babel-get-src-block-info): small but crucial fix,
  this should return nil if not match found
Eric Schulte преди 14 години
родител
ревизия
05054d5227
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -182,7 +182,7 @@ Returns a list
 	      (append (mapcar (lambda (el) (cons :var (org-babel-ref-parse (cdr el))))
 			      (org-babel-get-header params :var))
 		      (org-babel-get-header params :var 'other)))))
-    (append info (list name indent))))
+    (when info (append info (list name indent)))))
 
 (defun org-babel-confirm-evaluate (info)
   "Confirm evaluation of the code block INFO.