Improve an example in manual

* doc/org.texi (Batch execution): Improve example.
This commit is contained in:
Nicolas Goaziou 2017-08-27 16:44:42 +02:00
parent ca7c5dfa20
commit d49eee088d
1 changed files with 3 additions and 6 deletions

View File

@ -17230,12 +17230,9 @@ The sample script shows batch processing of multiple files using
emacs -Q --batch --eval "
(progn
(require 'ob-tangle)
(mapc (lambda (file)
(save-current-buffer
(find-file file)
(org-babel-tangle)
(kill-buffer)))
command-line-args-left))
(dolist (file command-line-args-left)
(with-current-buffer (find-file-noselect file)
(org-babel-tangle))))
" "$@@"
@end example