1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

Babel: tiny tweak

* lisp/ob.el (org-babel-map-src-blocks): prefer `when' to `if'
This commit is contained in:
Eric Schulte 2010-09-01 23:26:47 -06:00
parent 49d63185cc
commit 57bc4f672b

View File

@ -735,7 +735,7 @@ nil evaluate BODY forms on source blocks in current buffer."
(get-file-buffer (expand-file-name ,file))))
(point (point)) to-be-removed)
(save-window-excursion
(if ,file (find-file ,file))
(when ,file (find-file ,file))
(setq to-be-removed (current-buffer))
(goto-char (point-min))
(while (re-search-forward org-babel-src-block-regexp nil t)