org-mode/lisp
Aaron Ecay bf29482973 Clean up various org-babel-*-maybe commands
* lisp/ob-core.el (org-babel-when-in-src-block): New macro.
  (org-babel-execute-src-block-maybe)
  (org-babel-expand-src-block-maybe)
  (org-babel-load-in-session-maybe, org-babel-pop-to-session-maybe):
  Use it.

org-babel-get-src-block-info is a potentially expensive operation, which
is why its ‘light’ argument exists.  But in any case, it is overkill to
query the whole info, if all that is needed is whether point is in a
block or not.  Factor the simplified common code out into a macro.
2013-04-18 12:26:23 +02:00
..
Makefile Makefile: fix a bug with ORG_ADD_CONTRIB 2012-11-07 18:44:20 +01:00
ob-asymptote.el Update Copyright lines to match Emacs format. 2013-01-08 15:04:32 +01:00
ob-awk.el Clean up org-babel-expand-body: functions for awk and picolisp 2013-04-03 09:17:22 -06:00
ob-C.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-calc.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-clojure.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-comint.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-core.el Clean up various org-babel-*-maybe commands 2013-04-18 12:26:23 +02:00
ob-css.el Update Copyright lines to match Emacs format. 2013-01-08 15:04:32 +01:00
ob-ditaa.el Add :version and :package-version 2013-03-05 16:38:33 +01:00
ob-dot.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-emacs-lisp.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-eval.el ob-eval: make org-babel--shell-command-on-region internal and simplify 2013-03-02 22:49:46 +01:00
ob-exp.el Babel: avoid superfluous confirmation for internal wrapper 2013-04-13 08:06:58 +02:00
ob-fortran.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-gnuplot.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-haskell.el use org-babel-result-cond in Haskell code blocks 2013-04-06 11:39:23 -06:00
ob-io.el Merge branch 'maint' 2013-01-08 15:26:17 +01:00
ob-java.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-js.el use org-babel-result-cond in JavaScript code blocks 2013-04-06 11:39:23 -06:00
ob-keys.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-latex.el Manage variables related to both LaTeX export and snippets 2013-02-06 23:06:31 +01:00
ob-ledger.el Update Copyright lines to match Emacs format. 2013-01-08 15:04:32 +01:00
ob-lilypond.el ob-lilypond.el: Fix test leftover 2013-02-07 09:45:01 +01:00
ob-lisp.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-lob.el Babel: avoid superfluous confirmation for internal wrapper 2013-04-13 08:06:58 +02:00
ob-makefile.el * lisp/ob-makefile.el: Org-babel support for Makefile tangling. 2012-10-17 15:07:40 -06:00
ob-matlab.el Update Copyright lines to match Emacs format. 2013-01-08 15:04:32 +01:00
ob-maxima.el contrib/lisp/ob-maxima.el (org-babel-execute:maxima): Ignore lines with ";;; Loading #P" 2013-04-06 02:23:59 +02:00
ob-mscgen.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-ocaml.el use org-babel-result-cond in OCaml code blocks 2013-04-06 11:39:23 -06:00
ob-octave.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-org.el Install new exporter into Org innards 2013-02-06 23:06:30 +01:00
ob-perl.el ob-perl: use TAB as separator for table results 2013-04-07 11:21:14 +02:00
ob-picolisp.el Clean up org-babel-expand-body: functions for awk and picolisp 2013-04-03 09:17:22 -06:00
ob-plantuml.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-python.el fixed a bug pointed out by Gary Oberbrunner 2013-03-29 15:12:57 -06:00
ob-R.el remove save-excursion inside save-window-excursion 2013-04-03 09:17:12 -06:00
ob-ref.el Use #+NAME instead of #+TBLNAME 2013-04-09 22:09:00 +02:00
ob-ruby.el use org-babel-result-cond in Ruby code blocks 2013-04-06 12:59:04 -06:00
ob-sass.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-scala.el Merge branch 'maint' 2013-01-08 15:26:17 +01:00
ob-scheme.el use org-babel-result-cond in scheme code blocks 2013-04-06 11:39:23 -06:00
ob-screen.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-sh.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-shen.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-sql.el Fix code typo in commit 78b3a0 2013-03-20 07:46:53 +01:00
ob-sqlite.el don't read sqlite output as lisp 2013-03-10 16:55:42 -06:00
ob-table.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
ob-tangle.el org.el (org-babel-load-file): Move `org-babel-load-file' here 2013-04-05 08:37:51 +02:00
ob.el Merge branch 'maint' 2013-01-08 15:04:40 +01:00
org-agenda.el org-agenda.el: New commands for dragging a line forward/backward 2013-04-17 20:25:02 +02:00
org-archive.el Add :version and :package-version 2013-03-05 16:38:33 +01:00
org-attach.el Add :version and :package-version 2013-03-05 16:38:33 +01:00
org-bbdb.el org-bbdb.el: Fix typo. 2013-04-03 18:28:29 +02:00
org-bibtex.el org-bibtex.el: Fix email address 2013-04-15 22:57:26 +02:00
org-capture.el org-capture.el (org-capture-use-agenda-date): Fix docstring 2013-04-17 07:00:59 +02:00
org-clock.el org-clock.el (org-clock-select-task): Remove successive duplicates in the clock history to consider 2013-04-13 10:21:16 +02:00
org-colview.el Update contrib/README and some comments/messages 2013-03-04 18:36:34 +01:00
org-compat.el org-compat.el (org-ignore-region): Tiny docstring fix 2013-03-26 12:50:14 +01:00
org-crypt.el Various small fixes 2013-01-08 15:26:04 +01:00
org-ctags.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-datetree.el datetree: Recognize year headline with tags as a match 2013-02-25 10:47:36 +01:00
org-docview.el Merge branch 'maint' 2013-02-26 16:14:03 +01:00
org-element.el org-element: Parse table cells with missing ending space 2013-04-09 16:17:08 +02:00
org-entities.el Manage variables related to both LaTeX export and snippets 2013-02-06 23:06:31 +01:00
org-eshell.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-faces.el org-agenda.el (org-agenda-restriction-lock-highlight-subtree): New option 2013-04-06 01:51:29 +02:00
org-feed.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-footnote.el org-footnote.el (org-footnote-auto-label): Minor docstring fix 2013-04-08 21:25:09 +02:00
org-gnus.el org-compat.el: New compatibility function `org-defvaralias' 2013-03-14 13:53:52 +01:00
org-habit.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-id.el Unify org-id-reverse-string' and org-babel-reverse-string' into `org-reverse-string' 2013-02-13 16:29:09 +01:00
org-indent.el Merge branch 'maint' 2013-02-27 23:06:11 +01:00
org-info.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-inlinetask.el Remove unnecessary linking to export framework 2013-02-06 23:06:31 +01:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-list.el org-list.el (org-sort-list): Don't move point when matching time values 2013-04-16 08:23:52 +02:00
org-macro.el org-macro: Properly handle macros in setup files 2013-04-01 15:47:39 +02:00
org-macs.el org-macs.el (org-with-remote-undo): Normalize argument names 2013-04-10 14:32:55 +02:00
org-mhe.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-mobile.el org-mobile.el (org-mobile-edit): Insert new headings at the end of the parent subtree 2013-04-11 01:05:26 +02:00
org-mouse.el org-mouse.el (org-mouse-agenda-context-menu): Fix a function's name 2013-04-10 15:22:56 +02:00
org-pcomplete.el Implement group tags 2013-03-25 05:42:35 +01:00
org-plot.el Remove unnecessary linking to export framework 2013-02-06 23:06:31 +01:00
org-protocol.el org-protocol: Pass optional value using query in url to capture from protocol. 2013-03-04 01:16:32 +01:00
org-rmail.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-src.el org-src.el (org-edit-src-turn-on-auto-save): New option 2013-04-16 10:38:01 +02:00
org-table.el org-table.el (org-table-copy-down): Don't move cursor when getting the field 2013-04-11 00:32:33 +02:00
org-timer.el Update copyright years. 2013-01-01 16:04:24 +01:00
org-w3m.el Include org-w3m.el back into core. 2013-04-05 08:37:51 +02:00
org.el org.el (org-insert-heading): Fix insertion of items 2013-04-17 10:10:34 +02:00
ox-ascii.el Remove TARGET handling from export back-ends 2013-04-04 20:38:36 +02:00
ox-beamer.el ox-beamer: Ensure nil is not passed to regexp function 2013-04-14 19:26:01 +02:00
ox-html.el Allow setting :HTML_CONTAINER as a per-headline property. 2013-04-15 13:59:16 -04:00
ox-icalendar.el ox-icalendar.el (org-icalendar-export-current-agenda): Do not evaluate babel code blocks 2013-04-10 18:40:47 +02:00
ox-latex.el ox-latex: Improve subscript/superscript export 2013-04-17 18:43:01 +02:00
ox-man.el Cosmetic change in messages. 2013-04-06 16:49:10 +02:00
ox-md.el ox.el (org-export-replace-region-by): New function 2013-04-06 19:09:38 +02:00
ox-odt.el ox-odt.el (org-odt-link): Fix bug: convert & to & in links 2013-04-08 21:25:09 +02:00
ox-org.el ox-org: Add interactive functions to back-end 2013-04-04 15:09:22 +02:00
ox-publish.el ox-publish.el (org-publish-project-alist): Add :with-planning in docstring 2013-04-10 17:19:41 +02:00
ox-texinfo.el ox.el (org-export-replace-region-by): New function 2013-04-06 19:09:38 +02:00
ox.el ox/ox-latex: Fix docstrings 2013-04-16 12:54:05 +02:00