Commit Graph

5915 Commits

Author SHA1 Message Date
Eric Schulte e8033b7f04 org-exp: raise an error when trying to export code blocks w/o languages
* lisp/ob.el (org-babel-get-src-block-info): ensure that we don't
  match (and return info for) source blocks without a language

* lisp/org-exp.el (org-export-replace-src-segments-and-examples):
  updated source code block regexp so that the presence of a language
  can be explicitly checked.  Also now raising an error when a source
  block does not have a language.
2010-07-12 12:33:15 -07:00
Eric Schulte 1e50216854 babel: now always updating hash when inserting results
* lisp/ob.el (org-babel-where-is-src-block-result): now will replace
  the results line when if contains an old hash which is out of date
2010-07-12 12:28:49 -07:00
Carsten Dominik ceb63ae94e Fix typo, ORGLIST versus ORGLST 2010-07-12 19:06:14 +02:00
Nicolas Goaziou 3d69093339 Fix radio list templates
* lisp/org-list.el (org-list-radio-list-templates): Fix templates.
2010-07-12 19:04:48 +02:00
Carsten Dominik c1efc0a1d7 Use Slashdot.org as feed example in the documentation
* doc/org.texi (RSS Feeds): Use slashdot.org as the example,
and mention atoms feeds as well.
2010-07-12 14:01:35 +02:00
Carsten Dominik b01660fd51 Fix make_emacs_changelog to include mentioning of tiny changes 2010-07-12 11:57:08 +02:00
Nicolas Goaziou 94689a04b0 Fix regexp for `org-list-send-list'.
* lisp/org-list.el (org-list-send-list): regexp defining the start of
a radio list is now on par with the one used for radio tables.
2010-07-12 11:48:44 +02:00
Carsten Dominik eeab263cb8 Add headline for user-defined entities to `M-x org-entities-help'
* lisp/org-entities.el (org-entities-help): Add a headline for
the user-defined entities.
2010-07-12 11:37:39 +02:00
Carsten Dominik f99f1d4b06 Merge branch 'changes' of git+ssh://repo.or.cz/srv/git/org-mode into changes
Conflicts:
	ORGWEBPAGE/Changes.org
2010-07-12 11:33:18 +02:00
Carsten Dominik 9dcbdbf8da Finalize the list of changes for 7.01 2010-07-12 11:30:55 +02:00
Eric Schulte d2cb09e2e5 updated changes.org to reflect the new Babel security measures 2010-07-12 08:33:29 +02:00
Eric Schulte d258dffcf5 updated changes.org to reflect new developments in the safety-babel branch 2010-07-12 08:33:29 +02:00
Eric Schulte 3e94fbcdeb fleshing out "Org Babel is now part of the Org core" 2010-07-12 08:33:29 +02:00
Eric Schulte 83539af9bf added "Org-babel configuration changes" to "Incomparable Changes" 2010-07-12 08:33:29 +02:00
Carsten Dominik 4f670b53b6 Changes for version 7.00 2010-07-12 08:33:28 +02:00
Dirk-Jan C. Binnema 18161d0310 Add capture to agenda actions
* lisp/org-agenda.el (org-agenda-action): Document capture key and add it
to the prompt.

TINYCHANGE

A trivial patch to add some documentation for 'capture' to org-agenda (against
HEAD).
2010-07-12 07:56:26 +02:00
Carsten Dominik 227b24f517 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-12 07:46:30 +02:00
Carsten Dominik fb732b2a15 Fix typo ORGLST versus ORGLIST in the manual
Reported by Nick Dokos
2010-07-12 07:46:22 +02:00
Eric Schulte 433b374c10 babel: enhanced code block movement functions
Thanks to Austin Frank for suggesting these features and to Jonathan
  Arkell for an implementation suggestion

This commit
 - adds `org-babel-goto-named-result' for jumping to named results
 - adds TAB-completion to `org-babel-goto-named-src-block'
 - standardizes on "-src-" instead of "-source-" in all babel functions
 - adds `org-babel-[next/previous]-src-block' functions and keybindings
 - documents the above in orgcard.tex

* doc/orgcard.tex: update documentation of babel keybindings

* lisp/ob-exp.el (org-exp-res/src-name-cleanup): standardized on
  "-src-" instead of "-source-"

* lisp/ob-keys.el (org-babel-key-bindings): updating keybindings for
  new movement functions

* lisp/ob-lob.el (org-babel-lob-ingest): standardized on "-src-"
  instead of "-source-"

* lisp/ob-ref.el (org-babel-ref-resolve-reference): standardized on
  "-src-" instead of "-source-"

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): standardized on
  "-src-" instead of "-source-"

* lisp/ob.el (org-babel-src-name-regexp): standardized on "-src-"
  instead of "-source-"

  (org-babel-src-name-w-name-regexp): adding regexp for matching
  source names along with their names

  (org-babel-get-src-block-info): using new named source block regexp

  (org-babel-result-regexp): adding optional whitespace after result
  regexp

  (org-babel-result-w-name-regexp): adding regexp for matching results
  which have names

  (org-babel-named-src-block-regexp-for-name): standardized on "-src-"
  instead of "-source-"

  (org-babel-map-src-blocks): standardized on "-src-" instead of
  "-source-"

  (org-babel-where-is-src-block-head): standardized on "-src-" instead of
  "-source-"

  (org-babel-goto-named-src-block): standardized on "-src-" instead of
  "-source-", also added completing read

  (org-babel-src-block-names): collects source block names from a file
  or the current buffer

  (org-babel-goto-named-result): function for jumping to a named
  result

  (org-babel-result-names): returns results names from a file or the
  current buffer

  (org-babel-next-src-block): jump to the next source block

  (org-babel-previous-src-block): jump to the previous source block
2010-07-11 21:37:24 -07:00
Eric Schulte f95a8b7d2f documentation for `org-babel-post-tangle-hook
* doc/org.texi (Extracting source code): documentation for
`org-babel-post-tangle-hook
'
2010-07-11 21:37:10 -07:00
Carsten Dominik f0c25d8431 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-11 18:53:00 +02:00
Carsten Dominik 96e5f293f8 Fix typo 2010-07-11 18:52:47 +02:00
Eric Schulte ef839e1080 added (sqlite "SQL") to org-export-latex-listings-langs
* lisp/org-latex.el (org-export-latex-listings-langs): added (sqlite "SQL")
2010-07-09 17:40:58 -07:00
Eric Schulte 0479242349 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-09 17:00:22 -07:00
Eric Schulte c4912669a6 ob-sqlite: now supports preview, tabular data and multi-line code bodies
* lisp/ob-sqlite.el (org-babel-expand-body:sqlite): now this function
  expands variables

  (org-babel-execute:sqlite): support for input of tabular data and
  multiline code bodies

  (org-babel-sqlite-expand-vars): support for tabular data
2010-07-09 17:00:03 -07:00
Carsten Dominik c76eda31ee Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-09 20:34:03 +02:00
Carsten Dominik d4781b9d88 Keep BABEL meta lines in tact
* lisp/org-latex.el (org-export-latex-first-lines): Do not mark
meta lines for removal. Do not remove BABEL config lines during export
2010-07-09 20:33:14 +02:00
Eric Schulte 535ea52fff ob-python: allow user choice between python.el and python-mode.el for
* lisp/ob-python.el (org-babel-python-mode): adding configuration
  option to allow users to control whether they use python.el or
  python-mode.el

  (org-babel-python-initiate-session-by-key): updated for use with new
  configuration option
2010-07-09 10:58:12 -07:00
Eric Schulte 0f5a2fb075 ob-tangle: fixed recently introduced issue with org-babel-load-file
* lisp/ob-tangle.el (org-babel-tangle): applying optional target-file
  argument through integration into the default header arguments
  (allowing overwriting through standard header-argument merging), and
  allowing a default setting of (:tangle . "no") to be overwritten
  when a target-file is specified.
2010-07-09 09:43:30 -07:00
Eric Schulte b44ecb51a4 ob-tangle: fixed `declare-function' call to point to correct file or origin
* lisp/ob-tangle.el (with-temp-filebuffer): fixed `declare-function'
  call to point to correct file or origin
2010-07-09 08:46:56 -07:00
David Maus 4c1b83e899 Check if `org-capture-link-is-already-stored' is bound before evaluating.
* org-capture.el (org-capture): Check if
`org-capture-link-is-already-stored' is bound before evaluating.

If `org-protocol-capture' is the first function that calls
`org-capture', this variable is locally bound while it is globally
unbound. I.e. org-capture.el was not loaded before, the defvar not
evaluated.  If `org-protocol-capture' exits, Emacs restores the global
value, which is void.
2010-07-09 10:06:50 +02:00
Eric Schulte 54c5039b8d removing vestigial babel directory load-path manipulation 2010-07-08 21:43:39 -07:00
Eric Schulte b4825f812b babel: marking the safe value of org-export-babel-evaluate
* lisp/ob-exp.el (org-export-babel-evaluate): marking the safe value
  of org-export-babel-evaluate
2010-07-08 15:11:38 -07:00
Eric Schulte 07b34e7a6b babel: declaring function to inhibit compiler warning
* lisp/ob-tangle.el (with-temp-filebuffer): declaring function to
  inhibit compiler warning
2010-07-08 13:40:08 -07:00
Eric Schulte 8944a309a4 adding defgroup for org-babel
* lisp/ob.el (org-babel): adding defgroup for org-babel
2010-07-08 13:38:59 -07:00
Eric Schulte abcb76891b org-babel-post-tangle-hook run in code files tangled by `org-babel-tangle'
* lisp/ob-tangle.el (org-babel-post-tangle-hook): adding hook which
  can be used to call functions from inside of code files tangled by
  org-babel-tangle

  (org-babel-tangle): added call to org-babel-post-tangle-hook
2010-07-08 11:58:20 -07:00
Eric Schulte 19e98b1b0f documentation of new `org-export-babel-evaluate' variable
* doc/org.texi (Exporting code blocks): adding documentation of the
  `org-export-babel-evaluate' variable
2010-07-08 10:47:22 -07:00
Eric Schulte d585521b55 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-08 10:29:54 -07:00
Eric Schulte 815b724486 ob-exp: org-export-babel-evaluate can inhibit code block eval on export
* lisp/ob-exp.el (org-export-babel-evaluate): customization variable
  which can be used to inhibit the evaluation of code blocks on export

  (org-babel-exp-results): code block evaluation is now contingent on
  the value of org-export-babel-evaluate
2010-07-08 10:28:47 -07:00
Carsten Dominik fb29271143 Add `show' command to pw, same `view' 2010-07-08 19:24:52 +02:00
Carsten Dominik e644a76dfb Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-08 11:43:06 +02:00
Eric Schulte ec22856978 ob-exp: now returns an empty string when the language can't be evaluated
* lisp/ob-exp.el (org-babel-exp-results): now returns an empty string
  when the language can't be evaluated
2010-07-07 23:01:43 -07:00
Eric Schulte 4b2721d428 added autoload for org-babel-do-load-languages
* lisp/org.el: added autoload for org-babel-do-load-languages
2010-07-07 22:41:14 -07:00
Philip Rooke ca2d633d51 A few typos
Correct a few spelling mistakes.  Some of these are American vs British
spelling disagreements but the Org documentation uses the US spellings.
2010-07-08 06:43:05 +02:00
Philip Rooke 7add6fd51d The docstring of org-capture-templates
A few minor corrections and suggestions for the org-capture-templates
docstring
2010-07-08 06:41:53 +02:00
Eric Schulte 10600c55ee Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-07 15:46:35 -07:00
Eric Schulte fabf73b060 babel: Added (:tangle . "no") to the default header arguments
* lisp/ob.el (org-babel-default-header-args): Added (:tangle . "no")
  to the default header arguments.  This is already the intended
  behavior, but it's better to be more explicit about such things.
2010-07-07 15:46:24 -07:00
Carsten Dominik b9aee58af3 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-07-07 23:43:53 +02:00
Carsten Dominik df248db7d9 Check if defvaralias is defined 2010-07-07 23:43:39 +02:00
Eric Schulte 869082e5fd added sqlite -> sql-mode mapping to org-src-lang-modes
* lisp/org-src.el (org-src-lang-modes): added sqlite to sql-mode
2010-07-07 12:40:43 -07:00