6 years agoorg-capture: %F is directory when capture starts in a dired buffer
Nicolas Goaziou [Mon, 18 Jul 2011 15:42:01 +0000 (17:42 +0200)]
org-capture: %F is directory when capture starts in a dired buffer

* lisp/org-capture.el (org-capture): if no file is associated to
  current buffer, check dired buffer and try to retreive a possibly
  directory associated.

6 years agoorg.el (org-outline-regexp): Turn into a defvar.
Bastien Guerry [Tue, 19 Jul 2011 00:00:50 +0000 (02:00 +0200)]
org.el (org-outline-regexp): Turn into a defvar.

`org-outline-regexp' ought to be a defconst but is let-binded
in some places -- e.g. see the macro `org-with-limited-levels'
and this produces misleading warnings.

Thanks to Matthew Sauer for reporting this.

6 years agoMerge branch 'master' of
Bastien Guerry [Mon, 18 Jul 2011 23:25:47 +0000 (01:25 +0200)]
Merge branch 'master' of

6 years agoNew experimental exporter from Org to MoinMoin by Puneeth Chaganti.
Bastien Guerry [Mon, 18 Jul 2011 23:25:35 +0000 (01:25 +0200)]
New experimental exporter from Org to MoinMoin by Puneeth Chaganti.

Thanks to Puneeth Chaganti for this contribution!

6 years agoob-exp: on export resolve hashes in the current (not original) file buffer
Eric Schulte [Mon, 18 Jul 2011 23:08:37 +0000 (17:08 -0600)]
ob-exp: on export resolve hashes in the current (not original) file buffer

* lisp/ob-exp.el (org-babel-exp-results): Resolve hashes in the
  current (not original) file buffer.
* lisp/ob.el (org-babel-current-result-hash): More informative name,
  and remove useless optional argument.

6 years agomoving ob-fortran from core to contrib until FSF assignment is complete
Eric Schulte [Mon, 18 Jul 2011 21:47:32 +0000 (15:47 -0600)]
moving ob-fortran from core to contrib until FSF assignment is complete

6 years agoorg.el: exclude current heading from the refile table.
Bastien Guerry [Mon, 18 Jul 2011 20:57:53 +0000 (22:57 +0200)]
org.el: exclude current heading from the refile table.

* org.el (org-refile-get-location): exclude current heading
from the refile table.

Thanks to Jason Dunsmore for this idea.

6 years agoorg-footnote: add more checks to avoid false-positives
Nicolas Goaziou [Mon, 18 Jul 2011 19:54:24 +0000 (21:54 +0200)]
org-footnote: add more checks to avoid false-positives

* lisp/org-footnote.el (org-footnote-at-reference-p): test if match is
  in cited text, when replying to a message.
(org-footnote-new): do not create a new footnote at bol, as it might
be seen as a definition.
(org-footnote-at-definition-p): ignore definitions in forbidden
blocks, as it is already the case for references.

6 years agomoving ob-fortran into core, and cleaning up the code
Eric Schulte [Mon, 18 Jul 2011 18:17:02 +0000 (12:17 -0600)]
moving ob-fortran into core, and cleaning up the code

6 years agoAdd fortran to babel
Litvinov Sergey [Mon, 18 Jul 2011 07:44:07 +0000 (09:44 +0200)]
Add fortran to babel

6 years agoFix argument to org-toggle-tag.
Matt Lundin [Mon, 18 Jul 2011 17:37:20 +0000 (12:37 -0500)]
Fix argument to org-toggle-tag.

* lisp/org-bibtex.el: (org-bibtex-create, org-bibtex-write): Change
  argument of org-toggle-tag to 'on. (Other arguments, e.g., t, have
  no effect).

6 years agoorg-bibtex: don't let trimming turn nils into empty strings
Eric Schulte [Mon, 18 Jul 2011 17:26:41 +0000 (11:26 -0600)]
org-bibtex: don't let trimming turn nils into empty strings

* lisp/org-bibtex.el (org-bibtex-get): Don't let trimming turn nils
  into empty strings.

6 years agoFix (a lot of) compiler warnings.
Bastien Guerry [Mon, 18 Jul 2011 17:25:10 +0000 (19:25 +0200)]
Fix (a lot of) compiler warnings.

Also introduce `org-pop-to-buffer-same-window' as a compatibility
function for Emacs =>24.1.

6 years agoMerge branch 'master' of
Bastien Guerry [Mon, 18 Jul 2011 16:14:58 +0000 (18:14 +0200)]
Merge branch 'master' of

6 years agoUse `org-loop-over-siblings-in-active-region' for `org-archive-set-tag'.
Bastien Guerry [Mon, 18 Jul 2011 16:14:35 +0000 (18:14 +0200)]
Use `org-loop-over-siblings-in-active-region' for `org-archive-set-tag'.

6 years agoob-java: minimal support for evaluation of java code blocks
Eric Schulte [Mon, 18 Jul 2011 16:07:49 +0000 (10:07 -0600)]
ob-java: minimal support for evaluation of java code blocks

6 years agoComment some code for posterity
Nicolas Goaziou [Mon, 18 Jul 2011 13:10:42 +0000 (15:10 +0200)]
Comment some code for posterity

6 years agoorg-list: move point after asking for new term when inserting an item
Nicolas Goaziou [Mon, 18 Jul 2011 11:51:15 +0000 (13:51 +0200)]
org-list: move point after asking for new term when inserting an item

* lisp/org-list.el (org-list-insert-item): actualize code comments.
(org-insert-item): for consistency, point cannot be moved at
a surprising place when the user is being asked to choose a new
description term to insert in the list. Point should stay where the
user called the command.

6 years agoorg-odt: Correctly export iso-8859-1 files with non-ascii chars
Jambunathan K [Sun, 17 Jul 2011 18:56:41 +0000 (00:26 +0530)]
org-odt: Correctly export iso-8859-1 files with non-ascii chars

* contrib/lisp/org-odt.el (org-odt-get): Set
irrespective of buffer-file-coding-system.

Fixes issue reported by Renzo Been in the following post.

6 years agoNew feature: allow some commands to loop over siblings.
Bastien Guerry [Mon, 18 Jul 2011 08:09:53 +0000 (10:09 +0200)]
New feature: allow some commands to loop over siblings.

This commit introduce `org-loop-over-siblings-within-active-region-p'
as a new defcustom that you can turn on (`non-nil') to allow commands
to loop over siblings in the active region.

The list of commands is this:

- org-archive-subtree
- org-archive-to-archive-sibling
- org-toggle-archive-tag
- org-deadline
- org-schedule

When `org-loop-over-siblings-within-active-region-p' is `non-nil' and
you run one of the command above on a region containing several headlines,
then Org will apply the command to each headline.

This can be particularily useful for archiving several headlines, or to
add a deadline or schedule several entries.

* org.el (org-loop-over-siblings-within-active-region-p): New
defcustom so that `org-loop-over-siblings-in-active-region'
can be turned on and off.
(org-deadline, org-schedule): Use the new macro.

* org-macs.el (org-loop-over-siblings-in-active-region): New
macro to let some commands act upon several siblings in the
active region.

* org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling, org-toggle-archive-tag): Use

6 years agocontrib/lisp: don't use `outline-regexp'.
Bastien Guerry [Mon, 18 Jul 2011 06:45:41 +0000 (08:45 +0200)]
contrib/lisp: don't use `outline-regexp'.

Use `org-outline-regexp' or `org-outline-regexp-bol' instead.

* org-toc.el (org-toc-before-first-heading-p, org-toc-show)
(org-toc-get-headlines-status): Use `org-outline-regexp-bol'.

* org-lparse.el (org-do-lparse): Use `org-outline-regexp-bol'.

* org-export-generic.el (org-export-generic): Use

6 years agoDon't use `outline-regexp' anymore.
Bastien Guerry [Sun, 17 Jul 2011 19:17:08 +0000 (21:17 +0200)]
Don't use `outline-regexp' anymore.

Use `org-outline-regexp' instead or `outline-regexp'.  Also use the
new defconst `org-outline-regexp-bol' to match `org-outline-regexp'
at the beginning of line.

* org.el (org-outline-regexp-bol): New defconst.
(org-outline-level, org-set-font-lock-defaults, org-cycle)
(org-overview, org-content, org-flag-drawer)
(org-first-headline-recenter, org-insert-todo-heading)
(org-map-region, org-move-subtree-down, org-paste-subtree)
(org-kill-is-subtree-p, org-context-p, org-refile)
(org-refile-new-child, org-toggle-comment, org-todo)
(org-add-planning-info, org-add-log-setup, org-scan-tags)
(org-set-tags, org-insert-property-drawer)
(org-prepare-agenda-buffers, org-preview-latex-fragment)
(org-speed-command-default-hook, org-check-for-hidden)
(org-toggle-item, org-toggle-heading)
(org-indent-line-function, org-set-autofill-regexps)
(org-fill-paragraph, org-toggle-fixed-width-section)
(org-yank-generic, org-yank-folding-would-swallow-text)
(org-first-sibling-p, org-goto-sibling)
(org-goto-first-child, org-show-entry): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-remember.el (org-remember-handler): Use

* org-mouse.el (org-mouse-match-todo-keyword, org-mode-hook)
(org-mouse-move-tree, org-mouse-transform-to-outline): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-macs.el (org-with-limited-levels)
(org-get-limited-outline-regexp): Use `org-outline-regexp'.

* org-indent.el (org-indent-outline-re)
(org-indent-refresh-section, org-indent-refresh-to): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-html.el (org-export-as-html): Use

* org-footnote.el (org-footnote-at-definition-p)
(org-footnote-normalize): Use `org-outline-regexp' and

* org-exp.el (org-export-preprocess-string): Don't redefine

* org-docbook.el (org-export-as-docbook): Use

* org-colview.el (org-columns, org-columns-compute): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-colview-xemacs.el (org-columns, org-columns-compute):
Use `org-outline-regexp-bol'.

* org-clock.el (org-clock-insert-selection-line)
(org-clock-in, org-clock-out, org-dblock-write:clocktable):
Use `org-outline-regexp' and `org-outline-regexp-bol'.

* org-ascii.el (org-export-as-ascii)
(org-export-ascii-push-links): Use `org-outline-regexp' and

* org-archive.el (org-archive-to-archive-sibling)
(org-archive-all-done): Use `org-outline-regexp' and

* org-agenda.el (org-agenda, org-search-view)
(org-agenda-list-stuck-projects, org-agenda-get-timestamps)
(org-agenda-get-progress, org-agenda-get-blocks): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

6 years agoFix cookies update with recursive COOKIE_DATA property
Nicolas Goaziou [Mon, 18 Jul 2011 00:18:46 +0000 (02:18 +0200)]
Fix cookies update with recursive COOKIE_DATA┬áproperty

* lisp/org.el (org-update-parent-todo-statistics): COOKIE_DATA should
  be checked for parent, not current headline. Also, this function
  doesn't need to be interactive.

6 years agoorg-list: clean left-over markers
Nicolas Goaziou [Sun, 17 Jul 2011 22:57:01 +0000 (00:57 +0200)]
org-list: clean left-over markers

* lisp/org-list.el (org-list-send-item, org-list-struct-apply-struct,
  org-apply-on-list, org-toggle-checkbox): make markers point nowhere
  when they have become useless.

6 years agoorg-list: never add useless blank lines when inserting an item
Nicolas Goaziou [Sun, 17 Jul 2011 20:53:46 +0000 (22:53 +0200)]
org-list: never add useless blank lines when inserting an item

* lisp/org-list.el (org-list-insert-item): when insertion point is in
  some white line after the end of the list, remove all unnecessary
  white lines there before proceeding. Also refactor a snippet of

6 years agoorg-latex.el: change image default option to .9\linewidth.
Bastien Guerry [Sun, 17 Jul 2011 06:32:20 +0000 (08:32 +0200)]
org-latex.el: change image default option to .9\linewidth.

* org-latex.el (org-export-latex-image-default-option): Change
default value.

Thanks to Sebastien Vauban for this suggestion.

6 years ago* org.el (org-refile): minor rewriting.
Bastien Guerry [Sun, 17 Jul 2011 06:16:59 +0000 (08:16 +0200)]
* org.el (org-refile): minor rewriting.

6 years agoFix fontification error
Nicolas Goaziou [Sat, 16 Jul 2011 22:48:36 +0000 (00:48 +0200)]
Fix fontification error

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): blocks cannot be
  correctly fontified when the buffer is missing a final newline.

6 years agoorg-latex.el: Bugfix: run export commands from the right buffer.
Bastien Guerry [Sat, 16 Jul 2011 17:08:40 +0000 (19:08 +0200)]
org-latex.el: Bugfix: run export commands from the right buffer.

6 years agoob.el: Bugfix about `nil' body variable when parsing block.
Bastien Guerry [Sat, 16 Jul 2011 16:40:36 +0000 (18:40 +0200)]
ob.el: Bugfix about `nil' body variable when parsing block.

* ob.el (org-babel-strip-protective-commas): Return `nil'
instead of an error if no argument is given.
(org-babel-parse-src-block-match): Make sure body is defined
in the let construct.

6 years agoob-clojure.el: cosmetic reformatting of a defun.
Bastien Guerry [Sat, 16 Jul 2011 13:07:23 +0000 (15:07 +0200)]
ob-clojure.el: cosmetic reformatting of a defun.

6 years agoorg-publish: Fix regexp for include files
Jon Anders Skorpen [Sat, 16 Jul 2011 17:22:07 +0000 (17:22 +0000)]
org-publish: Fix regexp for include files

* org-publish.el (org-publish-cache-file-needs-publishing): Regexp did
  not find includes with double quoted file names.


6 years agoFix problem with autoloads.
Michael Markert [Sat, 16 Jul 2011 12:58:53 +0000 (14:58 +0200)]
Fix problem with autoloads.

6 years agoorg-footnote: fix some comment strings
Nicolas Goaziou [Sat, 16 Jul 2011 08:45:40 +0000 (10:45 +0200)]
org-footnote: fix some comment strings

6 years agoorg-footnote: don't insert footnote section without footnotes
Nicolas Goaziou [Sat, 16 Jul 2011 08:43:46 +0000 (10:43 +0200)]
org-footnote: don't insert footnote section without footnotes

* lisp/org-footnote.el (org-footnote-normalize): footnote section
  should be inserted only if there are footnotes to insert.

6 years agoorg-footnote: fix compiler warning
Nicolas Goaziou [Sat, 16 Jul 2011 07:19:50 +0000 (09:19 +0200)]
org-footnote: fix compiler warning

Thanks to Matthew Sauer for catching this.

6 years agoorg-footnote: fix problem with normalize in message-mode
Nicolas Goaziou [Fri, 15 Jul 2011 17:24:59 +0000 (19:24 +0200)]
org-footnote: fix problem with normalize in message-mode

* lisp/org-footnote.el (org-footnote-at-definition-p,
  org-footnote-normalize): do not grab signature in the definition of
  the last footnote.

6 years agotest: updated babel tangling test to reflect body-parsing change
Eric Schulte [Fri, 15 Jul 2011 15:31:36 +0000 (09:31 -0600)]
test: updated babel tangling test to reflect body-parsing change

6 years agoob: strip *single* trailing newline from code block bodies
Eric Schulte [Fri, 15 Jul 2011 15:26:43 +0000 (09:26 -0600)]
ob: strip *single* trailing newline from code block bodies

6 years agoorg-bibtex: trimming whitespace off of bibtex fields read from properties
Eric Schulte [Fri, 15 Jul 2011 15:03:11 +0000 (09:03 -0600)]
org-bibtex: trimming whitespace off of bibtex fields read from properties

* lisp/org-bibtex.el (org-babel-trim): Declare this function to the
  (org-bibtex-get): Trimming whitespace off of bibtex fields read from

6 years agoremove documentation for removed make target install-info-debian
Achim Gratz [Wed, 13 Jul 2011 15:26:45 +0000 (17:26 +0200)]
remove documentation for removed make target install-info-debian

* Makefile: also remove the documentation explaining the use of target
  install-info-debian, which was removed previously


6 years agoorg-footnote: fix doc-string typo
Nicolas Goaziou [Thu, 14 Jul 2011 07:49:50 +0000 (09:49 +0200)]
org-footnote: fix doc-string typo

6 years agoCorrectly export lists in footnotes (take 2)
Nicolas Goaziou [Tue, 12 Jul 2011 17:33:52 +0000 (19:33 +0200)]
Correctly export lists in footnotes (take 2)

* lisp/org-exp.el (org-export-preprocess-string): add the possibility
  to call recursively the function. Also change order of some function
  calls. Comment export process for footnotes.
* lisp/org-footnote.el (org-footnote-normalize): change the export
  specific parameter to hold properties of export. Thus, the function
  can send every footnote definition in the buffer through

6 years agodoc/org.texi: Fix tiny typo.
Bastien Guerry [Wed, 13 Jul 2011 10:22:37 +0000 (12:22 +0200)]
doc/org.texi: Fix tiny typo.

6 years agoorg.texi (Special agenda views): Fix double quoting (bug#3509).
Bastien Guerry [Tue, 12 Jul 2011 14:56:11 +0000 (16:56 +0200)]
org.texi (Special agenda views): Fix double quoting (bug#3509).

Patch by Lars Magne Ingebrigtsen taken from emacs latest bzr repo.

6 years agoorg-latex: fix interpreted latex commands and snippets in footnotes
Nicolas Goaziou [Tue, 12 Jul 2011 09:54:32 +0000 (11:54 +0200)]
org-latex: fix interpreted latex commands and snippets in footnotes

* lisp/org-latex.el (org-export-latex-preprocess): first insert
  footnotes in the temporary buffer so their contents can properly be
  protected from further transformations if required.

6 years agoDocument circular motions and sub-lists offset
Nicolas Goaziou [Mon, 11 Jul 2011 17:15:40 +0000 (19:15 +0200)]
Document circular motions and sub-lists offset

6 years agoorg-list: introduce a variable to distinguish sub-items better
Nicolas Goaziou [Sun, 10 Jul 2011 14:40:26 +0000 (16:40 +0200)]
org-list: introduce a variable to distinguish sub-items better

* lisp/org-list.el (org-list-indent-offset): new variable.
(org-list-struct-fix-ind): make use of the new variable.

6 years agoComplete default values for check-boxes in LaTeX exporter
Nicolas Goaziou [Mon, 11 Jul 2011 15:31:07 +0000 (17:31 +0200)]
Complete default values for check-boxes in LaTeX exporter

* lisp/org-latex.el (org-export-latex-list-parameters): complete
  default value with cbtrans option.
* lisp/org-list.el (org-list-to-latex): set a more consistent default

6 years agoorg-list: move and rename org-list-exchange-items
Nicolas Goaziou [Mon, 11 Jul 2011 14:49:31 +0000 (16:49 +0200)]
org-list: move and rename org-list-exchange-items

* lisp/org-list.el (org-list-swap-items): move it to a meaningful
  position in source code (i.e. before any function using it), and
  rename it to an easier name.

6 years agoorg-list: change heuristics for number of lines separating items
Nicolas Goaziou [Mon, 11 Jul 2011 14:35:31 +0000 (16:35 +0200)]
org-list: change heuristics for number of lines separating items

* lisp/org-list.el (org-list-separating-blank-lines-number): if there
  are blank lines already in the whole list, add a blank line.

6 years agoorg-list: introduce a variable to consider lists as rings
Nicolas Goaziou [Sat, 2 Jul 2011 18:51:17 +0000 (20:51 +0200)]
org-list: introduce a variable to consider lists as rings

* lisp/org-list.el (org-list-use-circular-move): new variable.
(org-previous-item, org-next-item): make use of the new variable.
(org-move-item-down, org-move-item-up): make use of the new
variable. Simplify code.

6 years agoorg-list: add a new method on lists (org-list-send-item)
Nicolas Goaziou [Sat, 2 Jul 2011 08:24:51 +0000 (10:24 +0200)]
org-list: add a new method on lists (org-list-send-item)

* lisp/org-list.el (org-list-delete-item, org-list-send-item): new

6 years agoorg-agenda.el: New variable for custom bulk action functions.
Bastien Guerry [Mon, 11 Jul 2011 19:48:44 +0000 (21:48 +0200)]
org-agenda.el: New variable for custom bulk action functions.

* org-agenda.el (org-agenda-bulk-custom-functions): New
variable for custom bulk action functions.
(org-agenda-bulk-action): Use it.

Thanks to Julien Cubizolles for triggering this idea.

6 years agoorg-latex.el: Delete trailing whitespaces.
Bastien Guerry [Tue, 12 Jul 2011 06:31:07 +0000 (08:31 +0200)]
org-latex.el: Delete trailing whitespaces.

6 years agoorg-latex.el: New defcustom `org-export-latex-quotes' to control quotes.
Bastien Guerry [Mon, 11 Jul 2011 13:10:00 +0000 (15:10 +0200)]
org-latex.el: New defcustom `org-export-latex-quotes' to control quotes.

* org-latex.el (org-export-latex-quotes): New defcustom.
(org-export-latex-quotation-marks): Use it.

This allows users to define what quotes they want to use as a
replacement of english double-quotes while exporting to LaTeX.

In particular, if you use the csquote package, you can configure
Org to output something like \endquote{some quoted text} instead
of "some quoted text".

Thanks to Frederik for bringing this issue up, and to Thomas S.
Dye, Nick Dokos and Stefan Nobis for elaborating this solution.

6 years agoorg-capture.el: Delete trailing whitespace.
Bastien Guerry [Tue, 12 Jul 2011 06:29:55 +0000 (08:29 +0200)]
org-capture.el: Delete trailing whitespace.

6 years agoorg-capture.el: Fix bug about insert blank line when aborting.
Bastien Guerry [Mon, 11 Jul 2011 22:57:57 +0000 (00:57 +0200)]
org-capture.el: Fix bug about insert blank line when aborting.

* org-capture.el (org-capture-finalize): bugfix about
inserted blank line when killing the capture buffer and
`org-blank-before-new-entry' tells to not insert anything
before a heading.

Thanks to Leo for reporting this.

6 years agoorg.el: cosmetic changes in docstring.
Bastien Guerry [Mon, 11 Jul 2011 22:54:14 +0000 (00:54 +0200)]
org.el: cosmetic changes in docstring.

6 years agodoc/org.texi: Fix tiny typo.
Bastien Guerry [Mon, 11 Jul 2011 22:19:15 +0000 (00:19 +0200)]
doc/org.texi: Fix tiny typo.

6 years agoremove Makefile target install-info-debian, modify install-info to be compatible
Achim Gratz [Sun, 10 Jul 2011 06:42:20 +0000 (08:42 +0200)]
remove Makefile target install-info-debian, modify install-info to be compatible

* Makefile: remove target install-info-debian and modify target
  install-info so that it is compatible with the older dpkg version
  of install-info that resides in /usr/sbin and may be picked up
  when root is installing info files

Initial reporting by Jude DaShiell, suggestions for changing Makefile
by Nick Dokos.  The solution implemented re-arranges the arguments to
install-info to be compatible with both the dpkg and GNU version of
the program.  On Debian, /usr/bin/install-info is actually a wrapper
that calls /usr/bin/ginstall-info and issues the following warning
when called as root:

This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments

This warning can be safely ignored since we actually prefer that GNU
install-info is called even though we've arranged the arguments to
be compatible with dpkg install-info.

Tested on openSuSE Tumbleweed, Win7/Pro (both MSys and Cygwin) and by
Jude DaShiell on Debian Squeeze and Slackware.


6 years agodoc: expand discussion of the :eval header argument
Eric Schulte [Mon, 11 Jul 2011 17:47:12 +0000 (11:47 -0600)]
doc: expand discussion of the :eval header argument

* doc/org.texi (eval): Expand discussion of the :eval header argument.

6 years agoorg-taskjuggler.el: cosmetic changes.
Bastien Guerry [Mon, 11 Jul 2011 15:02:42 +0000 (17:02 +0200)]
org-taskjuggler.el: cosmetic changes.

6 years agofr-refcard.tex: add Isabelle Ramade as an author.
Bastien Guerry [Mon, 11 Jul 2011 13:27:41 +0000 (15:27 +0200)]
fr-refcard.tex: add Isabelle Ramade as an author.

6 years agoorg-html.el: Fix :group for two defcustoms.
Bastien Guerry [Mon, 11 Jul 2011 11:41:34 +0000 (13:41 +0200)]
org-html.el: Fix :group for two defcustoms.

(org-export-html-content-div): Fix :group.

Thanks to Jambunathan for spotting this.

6 years agoorg-html.el: New defcustom: `org-export-html-before-content-div'
Bastien Guerry [Mon, 11 Jul 2011 11:40:36 +0000 (13:40 +0200)]
org-html.el: New defcustom: `org-export-html-before-content-div'

(org-export-html-before-content-div): New defcustom for
arbitrary HTML code placed before the main div container.

6 years agoRename `org-export-content-div' to `org-export-html-content-div'.
Bastien Guerry [Mon, 11 Jul 2011 11:33:21 +0000 (13:33 +0200)]
Rename `org-export-content-div' to `org-export-html-content-div'.

* org-html.el (org-export-html-content-div): Rename from
(org-export-as-html): Use new name.

Thanks to Jambunathan for spotting this.

6 years ago* org-latex.el (org-export-latex-header-defs-re): Delete.
Bastien Guerry [Mon, 11 Jul 2011 11:29:34 +0000 (13:29 +0200)]
* org-latex.el (org-export-latex-header-defs-re): Delete.

6 years ago`org-set-property' to use the last set property as default prompt
Bastien [Mon, 11 Jul 2011 10:12:21 +0000 (12:12 +0200)]
`org-set-property' to use the last set property as default prompt

I'm testing whether patchwork catches the patches again.

You are free to test the feature as well :)

>From 2064e28c44ffc6f4020c8a5ec46e0d6bcf559c01 Mon Sep 17 00:00:00 2001
From: Bastien Guerry <>
Date: Mon, 11 Jul 2011 12:10:32 +0200
Subject: [PATCH] Make `org-set-property' defaults to the last set property.

* org.el (org-last-set-property): New variable.
(org-read-property-name): Use the new variable: the prompt
defaults to the last property set, unless there is a property
in the line at point.

6 years agoBufix: remove useless whitespace added after planning.
Bastien Guerry [Mon, 11 Jul 2011 10:23:47 +0000 (12:23 +0200)]
Bufix: remove useless whitespace added after planning.

(org-add-planning-info): Bufix: remove useless whitespace
added after planning.

6 years agoFix docstrings, consistently refer to capture, not remember
David Maus [Sun, 10 Jul 2011 17:30:40 +0000 (19:30 +0200)]
Fix docstrings, consistently refer to capture, not remember

* org-capture.el (org-capture-before-finalize-hook)
(org-capture-after-finalize-hook, org-capture-mode-map)
(org-capture-mode, org-capture-goto-last-stored): Fix docstring,
consistently refer to capture, not remember.

6 years agoob-clojure: respects "scalar" and "verbatim" results params
Eric Schulte [Sun, 10 Jul 2011 15:38:37 +0000 (09:38 -0600)]
ob-clojure: respects "scalar" and "verbatim" results params

* lisp/ob-clojure.el (org-babel-execute:clojure): Respects "scalar"
  and "verbatim" results params.

6 years agoob: enforce "verbatim" as synonym for "scalar"
Eric Schulte [Sun, 10 Jul 2011 15:34:28 +0000 (09:34 -0600)]
ob: enforce "verbatim" as synonym for "scalar"

* lisp/ob-awk.el (org-babel-execute:awk): Use "verbatim" as synonym
  for "scalar".
* lisp/ob-sh.el (org-babel-sh-evaluate): Use "verbatim" as synonym for
* lisp/ob-sqlite.el (org-babel-execute:sqlite): Use "verbatim" as
  synonym for "scalar".
* lisp/ob.el (org-babel-merge-params): Use "verbatim" as synonym for

6 years agoob-clojure: parse odd parens when nested isnide lists
Eric Schulte [Sun, 10 Jul 2011 15:27:32 +0000 (09:27 -0600)]
ob-clojure: parse odd parens when nested isnide lists

* lisp/ob.el (org-babel-script-escape): Parse odd parens when nested
  isnide lists.

6 years agoob-clojure: no longer force results into elisp if they don't naturally fit
Eric Schulte [Sun, 10 Jul 2011 15:19:16 +0000 (09:19 -0600)]
ob-clojure: no longer force results into elisp if they don't naturally fit

* lisp/ob-clojure.el (org-babel-execute:clojure): No longer force
  results into elisp if they don't naturally fit.

6 years agoob-clojure: Stop re-reading already parsed lisp results.
Eric Schulte [Sun, 10 Jul 2011 15:14:21 +0000 (09:14 -0600)]
ob-clojure: Stop re-reading already parsed lisp results.

* lisp/ob-clojure.el (org-babel-execute:clojure): Stop re-reading
  already parsed lisp results.

6 years agoMerge branch 'master' of
Bastien Guerry [Sun, 10 Jul 2011 09:05:00 +0000 (11:05 +0200)]
Merge branch 'master' of

6 years agodoc/org.texi: document `org-clock-timestamps-up'.
Bastien Guerry [Sun, 10 Jul 2011 09:04:41 +0000 (11:04 +0200)]
doc/org.texi: document `org-clock-timestamps-up'.

6 years agoorg-list: docstring update
Nicolas Goaziou [Sun, 10 Jul 2011 08:40:03 +0000 (10:40 +0200)]
org-list: docstring update

* lisp/org-list.el (org-plain-list-ordered-item-terminator): remove
  incorrect assumption.

6 years agoMore forbidden blocks for lists and footnotes
Nicolas Goaziou [Sun, 10 Jul 2011 08:33:25 +0000 (10:33 +0200)]
More forbidden blocks for lists and footnotes

* lisp/org-footnote.el (org-footnote-forbidden-blocks): add missing
  exporter specific blocks.
* lisp/org-list.el (org-list-forbidden-blocks): ditto.

6 years agoorg-latex.el: bugfix about exporting narrowed tables.
Bastien Guerry [Sat, 9 Jul 2011 22:28:33 +0000 (00:28 +0200)]
org-latex.el: bugfix about exporting narrowed tables.

* org-latex.el (org-export-latex-tables): Bugfix: remove
properties from fields.

Thanks to Frederik for reporting this.

6 years agoorg-clock.el: Fix bug in `org-clock-timestamps-change'.
Bastien Guerry [Sat, 9 Jul 2011 21:54:49 +0000 (23:54 +0200)]
org-clock.el: Fix bug in `org-clock-timestamps-change'.

6 years agoMinor code cleanup.
Bastien Guerry [Sat, 9 Jul 2011 16:12:18 +0000 (18:12 +0200)]
Minor code cleanup.

6 years agoFix calc-eval date(<timestamp>)
Benjamin Andresen [Sat, 9 Jul 2011 15:47:41 +0000 (17:47 +0200)]
Fix calc-eval date(<timestamp>)

6 years agoFix tiny spelling mistake.
Bastien Guerry [Sat, 9 Jul 2011 15:38:59 +0000 (17:38 +0200)]
Fix tiny spelling mistake.

6 years agoAllow synchronous update of timestamps in CLOCK log.
Bastien Guerry [Sat, 9 Jul 2011 15:38:21 +0000 (17:38 +0200)]
Allow synchronous update of timestamps in CLOCK log.

* org.el (org-shiftcontrolup, org-shiftcontroldown): New
commands to use `org-clock-timestamps-change'.

* org-clock.el (org-clock-timestamps-change)
(org-clock-timestamps-down, org-clock-timestamps-up)
(org-at-clock-log-p): New functions to let the user update
clock log timestamps while keeping the same clock duration.

Thanks to Rainer Stengele for this idea.

6 years agoorg.el: org-timestamp-up/down: mention time changes.
Bastien Guerry [Sat, 9 Jul 2011 13:26:29 +0000 (15:26 +0200)]
org.el: org-timestamp-up/down: mention time changes.

* org.el (org-timestamp-up, org-timestamp-down): mention time
changes in the docstring.

6 years agoorg-clock.el: new hook to remove empty clock drawer.
Bastien Guerry [Sat, 9 Jul 2011 13:20:31 +0000 (15:20 +0200)]
org-clock.el: new hook to remove empty clock drawer.

* org-clock.el (org-clock-remove-empty-clock-drawer): New
function to remove empty clock drawer.
(org-clock-out-hook): Add the new function as a hook.

6 years agoorg.el: remove CLOCK: and empty drawers from clones.
Bastien Guerry [Sat, 9 Jul 2011 13:04:39 +0000 (15:04 +0200)]
org.el: remove CLOCK: and empty drawers from clones.

6 years agoorg-lparse: Disable flashy warning by default
Jambunathan K [Fri, 8 Jul 2011 20:54:00 +0000 (02:24 +0530)]
org-lparse: Disable flashy warning by default

* contrib/lisp/org-lparse.el (org-lparse-use-flashy-warning):
Disable it by default.

6 years agoorg-lparse.el: Fix export of timestamps that occur as list items
Jambunathan K [Fri, 8 Jul 2011 20:36:48 +0000 (02:06 +0530)]
org-lparse.el: Fix export of timestamps that occur as list items

* contrib/lisp/org-lparse.el (org-lparse-handle-time-stamps):
Space is significant. Don't gobble it.

6 years agoorg-lparse: Bring over commit 49e6bc89
Jambunathan K [Fri, 8 Jul 2011 20:20:45 +0000 (01:50 +0530)]
org-lparse: Bring over commit 49e6bc89

* contrib/lisp/org-lparse.el (org-lparse-export-list-line):
Bring over org-html.el specific changes of commit 49e6bc89.

6 years agoorg-lparse: Bring over commit 934aae88
Jambunathan K [Fri, 8 Jul 2011 20:15:46 +0000 (01:45 +0530)]
org-lparse: Bring over commit 934aae88

* contrib/lisp/org-lparse.el (org-lparse-export-list-line): Bring over
org-html.el specific changes of commit 934aae88.

6 years agoBackends now register with org-lparse during load time
Jambunathan K [Fri, 8 Jul 2011 20:02:34 +0000 (01:32 +0530)]
Backends now register with org-lparse during load time

* contrib/lisp/org-lparse.el (org-lparse-native-backends): Set
default value to nil. Also update docstring.
(org-lparse-register-backend): New
* contrib/lisp/org-xhtml.el (org-xhtml-get): Add self -
"xhtml" - as one of the other backends. Call
org-lparse-register-backend on load.
* contrib/lisp/org-odt.el: Call org-lparse-register-backend on

6 years agocontrib/odt/ Test change
Jambunathan K [Fri, 8 Jul 2011 19:28:13 +0000 (00:58 +0530)]
contrib/odt/ Test change

6 years agoorg-footnote: refuse to insert a footnote in an inappropriate context
Nicolas Goaziou [Fri, 8 Jul 2011 14:22:11 +0000 (16:22 +0200)]
org-footnote: refuse to insert a footnote in an inappropriate context

6 years agoorg-list: make use of new `org-in-block-p' function
Nicolas Goaziou [Fri, 8 Jul 2011 14:12:35 +0000 (16:12 +0200)]
org-list: make use of new `org-in-block-p' function

* lisp/org-list.el (org-list-in-valid-context-p): use `org-in-block-p'.

6 years agoForbid footnotes in some contexts
Nicolas Goaziou [Fri, 8 Jul 2011 13:48:07 +0000 (15:48 +0200)]
Forbid footnotes in some contexts

* lisp/org.el (org-in-block-p): new function.
* lisp/org-footnote.el (org-footnote-forbidden-blocks): new variable.
(org-footnote-in-valid-context-p): new function.
(org-footnote-at-reference-p): use new function. Allow inline
footnotes to start at bol.

6 years agoob-lilypond.el: delete useless comment.
Bastien Guerry [Fri, 8 Jul 2011 15:54:44 +0000 (17:54 +0200)]
ob-lilypond.el: delete useless comment.

6 years agoFix ob-lilypond.el compiler error: org-babel-tangle undefined function
Matthew Sauer [Fri, 8 Jul 2011 15:33:12 +0000 (17:33 +0200)]
Fix ob-lilypond.el compiler error: org-babel-tangle undefined function