From be3dad300feca316cbcd593e054fcbc939cdb280 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 9 Oct 2013 10:28:33 -0600 Subject: [PATCH] re-apply an orphaned anonymous lambda function * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Re-apply an orphaned anonymous lambda function. --- lisp/ob-tangle.el | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 835b2afab..8980746ad 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -365,17 +365,17 @@ source code blocks by language. Optional argument TANGLE-FILE can be used to limit the collected code blocks by target file." (let ((block-counter 1) (current-heading "") blocks by-lang) (org-babel-map-src-blocks (buffer-file-name) - (lambda (new-heading) - (if (not (string= new-heading current-heading)) - (progn - (setq block-counter 1) - (setq current-heading new-heading)) - (setq block-counter (+ 1 block-counter)))) - (replace-regexp-in-string "[ \t]" "-" - (condition-case nil - (or (nth 4 (org-heading-components)) - "(dummy for heading without text)") - (error (buffer-file-name)))) + ((lambda (new-heading) + (if (not (string= new-heading current-heading)) + (progn + (setq block-counter 1) + (setq current-heading new-heading)) + (setq block-counter (+ 1 block-counter)))) + (replace-regexp-in-string "[ \t]" "-" + (condition-case nil + (or (nth 4 (org-heading-components)) + "(dummy for heading without text)") + (error (buffer-file-name))))) (let* ((info (org-babel-get-src-block-info 'light)) (src-lang (nth 0 info)) (src-tfile (cdr (assoc :tangle (nth 2 info))))) -- 2.11.4.GIT