6 years agoNew option `org-properties-postprocess-alist'.
Bastien Guerry [Tue, 16 Aug 2011 14:21:31 +0000 (16:21 +0200)]
New option `org-properties-postprocess-alist'.

* org.el (org-properties-postprocess-alist): New option to
allow postprocessing the values of properties set through
(org-set-property): Use this option.

This is inspired by a request from Pascal Mattia.

6 years agoorg.el (org-outline-regexp, org-outline-regexp-bol): Add a docstring.
Bastien Guerry [Wed, 17 Aug 2011 09:05:23 +0000 (11:05 +0200)]
org.el (org-outline-regexp, org-outline-regexp-bol): Add a docstring.

* org.el (org-outline-regexp, org-outline-regexp-bol): Add a

6 years agoorg-archive.el: Use `org-outline-regexp' instead of `outline-regexp'.
Bastien Guerry [Wed, 17 Aug 2011 09:05:03 +0000 (11:05 +0200)]
org-archive.el: Use `org-outline-regexp' instead of `outline-regexp'.

* org-archive.el (org-archive-to-archive-sibling): Use
`org-outline-regexp' instead of `outline-regexp'.

6 years agofix code typo
Nicolas Goaziou [Wed, 17 Aug 2011 01:15:22 +0000 (03:15 +0200)]
fix code typo

6 years agoMinor fix to org-between-regexps-p
Nicolas Goaziou [Wed, 17 Aug 2011 01:11:18 +0000 (03:11 +0200)]
Minor fix to org-between-regexps-p

* lisp/org.el (org-between-regexps-p): searching up to pos may match
  again beginning regexp.

6 years agoorg-footnote: do not suggest bindings outside Org
Nicolas Goaziou [Tue, 16 Aug 2011 20:00:24 +0000 (22:00 +0200)]
org-footnote: do not suggest bindings outside Org

* lisp/org-footnote.el (org-footnote-goto-definition): don't send
  erroneous message: suggested bindings might not be set outside Org.

6 years agoorg-footnote: refactor code
Nicolas Goaziou [Tue, 16 Aug 2011 19:59:09 +0000 (21:59 +0200)]
org-footnote: refactor code

6 years agoorg-footnote: remove every footnote tag when normalizing non Org buffers
Nicolas Goaziou [Tue, 16 Aug 2011 19:43:23 +0000 (21:43 +0200)]
org-footnote: remove every footnote tag when normalizing non Org buffers

* lisp/org-footnote.el (org-footnote-normalize): effectively remove
  any footnote tag in non Org buffers, as detailled in
  org-footnote-tag-for-non-org-mode-files doc-string.

6 years agoorg-footnote: allow non Org mode files to have no footnote tag
Nicolas Goaziou [Tue, 16 Aug 2011 18:02:30 +0000 (20:02 +0200)]
org-footnote: allow non Org mode files to have no footnote tag

* lisp/org-footnote.el (org-footnote-tag-for-non-org-mode-files):
  notify the opportunity to set the variable to the empty string.
(org-footnote-normalize, org-footnote-create-definition): carefully
  check for inserted newlines and presence of the footnote

6 years agoorg-footnote: re-use global regexps when possible
Nicolas Goaziou [Tue, 16 Aug 2011 16:10:15 +0000 (18:10 +0200)]
org-footnote: re-use global regexps when possible

* lisp/org-footnote.el (org-footnote-at-definition-p): re-use

6 years agoorg-footnote: tweak footnote definition regexp
Nicolas Goaziou [Tue, 16 Aug 2011 13:31:20 +0000 (15:31 +0200)]
org-footnote: tweak footnote definition regexp

* lisp/org-footnote.el (org-footnote-definition-re): remove an useless
(org-footnote-at-definition-p): reflect removal of the group.

6 years agoEnforce white space after todo keywords
Nicolas Goaziou [Mon, 25 Jul 2011 15:50:28 +0000 (17:50 +0200)]
Enforce white space after todo keywords

* lisp/org.el (org-set-regexps-and-options): enforce white space after
  todo keyword, as word boundary isn't sufficient (i.e. in matches * TODO/this)

6 years agoPrettify inlinetasks in odt and (x)html backends
Jambunathan K [Thu, 11 Aug 2011 20:07:45 +0000 (01:37 +0530)]
Prettify inlinetasks in odt and (x)html backends

* lisp/org-inlinetask.el (org-inlinetask-export-templates):
Fixed template for html so that the exported file is valid
xhtml. Added template for odt.
(org-inlinetask-export-handler): Fix typo in the regexp that
trims content. Make sure that the content is flanked by
paragraph boundaries on either side.

* lisp/org-html.el (org-export-html-style-default): Add style
for inlinetask.

* contrib/lisp/org-xhtml.el (org-export-xhtml-style-default):
Add style for inlinetask.

* contrib/odt/styles/OrgOdtStyles.xml: Added following custom
styles:  OrgInlineTaskHeading and OrgInlineTaskFrame.

* contrib/lisp/org-odt.el (org-odt-format-textbox)
(org-odt-format-inlinetask): Added

Refer following threads:

Thanks to Suvayu Ali for reporting this issue and suggesting

6 years agoDon't insert superfluous space when updating timestamps.
Bastien Guerry [Tue, 16 Aug 2011 17:05:17 +0000 (19:05 +0200)]
Don't insert superfluous space when updating timestamps.

* org.el (org-add-planning-info): Don't insert superfluous
space when updating timestamps.

Thanks to Valentin Wüstholz for this patch.

6 years agoorg-agenda.el (org-cmp-effort): Fix docstring.
Bastien Guerry [Tue, 16 Aug 2011 14:16:43 +0000 (16:16 +0200)]
org-agenda.el (org-cmp-effort): Fix docstring.

* org-agenda.el (org-cmp-effort): Fix docstring.

6 years agoorg-list: remove left-over commented code and clean white space
Nicolas Goaziou [Tue, 16 Aug 2011 08:23:04 +0000 (10:23 +0200)]
org-list: remove left-over commented code and clean white space

6 years agoFix bzg email address (s/altern/gnu).
Bastien Guerry [Mon, 15 Aug 2011 19:22:30 +0000 (21:22 +0200)]
Fix bzg email address (s/altern/gnu).

6 years agocontrib/lisp/org-jira.el: remove Creative Commons license.
Bastien Guerry [Mon, 15 Aug 2011 18:10:04 +0000 (20:10 +0200)]
contrib/lisp/org-jira.el: remove Creative Commons license.

This license was just a leftover and is not compatible with
the GPLv2 license Jonathan wants to use for this file.

6 years agoRemove arch-tag at the bottom of documentation files.
Bastien Guerry [Mon, 15 Aug 2011 18:04:55 +0000 (20:04 +0200)]
Remove arch-tag at the bottom of documentation files.

6 years agoRemove arch-tag at the bottom of files.
Bastien Guerry [Mon, 15 Aug 2011 18:04:38 +0000 (20:04 +0200)]
Remove arch-tag at the bottom of files.

6 years agoorg-list: get correct structure with empty items
Nicolas Goaziou [Mon, 15 Aug 2011 16:29:37 +0000 (18:29 +0200)]
org-list: get correct structure with empty items

* lisp/org-list.el (org-list-full-item-re): when an item has only
  a bullet and no space after it, list structure would not be
  recognized correctly.

6 years agoEXPERIMENTAL: Fix copyright.
Bastien Guerry [Mon, 15 Aug 2011 13:30:42 +0000 (15:30 +0200)]
EXPERIMENTAL: Fix copyright.

6 years agoFix copyright years for elisp files in core and contrib.
Bastien Guerry [Mon, 15 Aug 2011 13:23:11 +0000 (15:23 +0200)]
Fix copyright years for elisp files in core and contrib.

Also add "This file is not part of GNU Emacs." when this is the case.

6 years agoorg.el: set `org-ts-what' correctly in `org-at-timestamp-p'.
Bastien Guerry [Mon, 15 Aug 2011 08:06:02 +0000 (10:06 +0200)]
org.el: set `org-ts-what' correctly in `org-at-timestamp-p'.

(org-at-timestamp-p): set `org-ts-what' in a way that point will be
considered to be "on the bracket" whether it is really on it or right
after it.

Thanks to Matt Lundin for reporting this and to Nicolas Goaziou for
discussion about this.

6 years agoUse outline-regexp in org-overview so that global cycling works outside of Org buffers.
Bastien Guerry [Mon, 15 Aug 2011 07:51:44 +0000 (09:51 +0200)]
Use outline-regexp in org-overview so that global cycling works outside of Org buffers.

* org.el (org-overview): Use outline-regexp instead of
org-outline-regexp so that global cycling using orgstruct-mode
works outside of Org buffers.

Thanks to Matt Lundin for this fix.

6 years agoMove org-find-visible and org-find-invisible from org-exp.el to org.el.
Bastien Guerry [Mon, 15 Aug 2011 07:44:52 +0000 (09:44 +0200)]
Move org-find-visible and org-find-invisible from org-exp.el to org.el.

6 years agoMove org-agenda-todo-yesterday from org.el to org-agenda.el.
Bastien Guerry [Mon, 15 Aug 2011 07:39:52 +0000 (09:39 +0200)]
Move org-agenda-todo-yesterday from org.el to org-agenda.el.

6 years agoorg-table.el: Fix missing variables in let constructs.
Bastien Guerry [Sun, 14 Aug 2011 18:24:43 +0000 (20:24 +0200)]
org-table.el: Fix missing variables in let constructs.

* org-table.el (org-table-eval-formula): Fix missing variable
in let construct.
(org-table-time-string-to-seconds): Fix missing variable in
let construct.

Thanks to John Wiegley for pointing at this.

6 years agoRevert "make the "FILE" property non-special when resolving bibtex values"
Bastien Guerry [Sun, 14 Aug 2011 17:00:20 +0000 (19:00 +0200)]
Revert "make the "FILE" property non-special when resolving bibtex values"

This reverts commit f5a359f578214c00fa4dfef5274a59d9236480e6.

On Aug. 8th Thomas S. Dye reported this commit creates problems:

6 years agoAgenda: Simplify old fix of face for deadline warning 0 day
Michael Brand [Mon, 1 Aug 2011 08:53:33 +0000 (10:53 +0200)]
Agenda: Simplify old fix of face for deadline warning 0 day

* lisp/org-agenda.el (org-agenda-get-deadlines): Fix dfrac for the
case of wdays being 0.  Don't pass wdays to org-agenda-deadline-face,
like before the old fix.
(org-agenda-deadline-face): Revert to old state that was without

This allows a deadline warning period of "-0d" to work also with a
custom configuration like:
(setq org-agenda-deadline-faces
      '((1.0001 . org-warning)              ; due yesterday or before
        (0.0    . org-upcoming-deadline)))  ; due today or later
For org-agenda-deadline-faces left at default and all other settings
not exceeding 1.0, the face for a deadline warning of any length
remains untouched by this patch.

references to history:
* commit of the old fix
  - git show d0d6325
* mailing list old thread

6 years agoorg-mac-ical: Clean up org-mac-iCal-range checking to eliminate end-of-year special...
Don Roberts [Sat, 30 Jul 2011 14:20:09 +0000 (09:20 -0500)]
org-mac-ical: Clean up org-mac-iCal-range checking to eliminate end-of-year special cases and include repeating events in diary file

6 years agoorgcard: correct reference to manual
Julian Gehring [Sat, 30 Jul 2011 12:52:46 +0000 (14:52 +0200)]
orgcard: correct reference to manual

6 years agoorg-latex.el: Only add one line break after exporting verbatim environments.
Bastien Guerry [Sun, 14 Aug 2011 14:40:45 +0000 (16:40 +0200)]
org-latex.el: Only add one line break after exporting verbatim environments.

* org-latex.el (org-export-latex-fixed-width): Only add one
line break after exporting verbatim environments.

Thanks to Maik Beckmann for reporting this.

6 years ago* org-mw.el (org-mw-export-lists): Fix list export.
Bastien Guerry [Sun, 14 Aug 2011 14:39:31 +0000 (16:39 +0200)]
* org-mw.el (org-mw-export-lists): Fix list export.

6 years agoorg-list.el: Allow the generic list exporter to trim line breaks in items.
Bastien Guerry [Sun, 14 Aug 2011 14:38:55 +0000 (16:38 +0200)]
org-list.el: Allow the generic list exporter to trim line breaks in items.

* org-list.el (org-list-item-trim-br): New function.
(org-list-to-generic): New parameter :nobr to use the new

6 years agoorg-footnote: keep byte-compiler happy
Nicolas Goaziou [Sun, 14 Aug 2011 08:52:14 +0000 (10:52 +0200)]
org-footnote: keep byte-compiler happy

6 years agoRenamed unnecessary use of sort* to sort
John Wiegley [Sat, 13 Aug 2011 21:40:04 +0000 (16:40 -0500)]
Renamed unnecessary use of sort* to sort

6 years agoMerge branch 'master' of
David Maus [Sat, 13 Aug 2011 13:02:58 +0000 (15:02 +0200)]
Merge branch 'master' of

6 years agoFix wrong order of lines to move before pasting
David Maus [Sat, 13 Aug 2011 13:02:03 +0000 (15:02 +0200)]
Fix wrong order of lines to move before pasting

* org.el (org-paste-subtree): Fix wrong order of lines to move before

6 years agoAdd customization variable `org-use-effective-time'
John Wiegley [Sat, 13 Aug 2011 08:21:49 +0000 (03:21 -0500)]
Add customization variable `org-use-effective-time'

If non-nil, consider `org-extend-today-until' when creating timestamps.
For example, if `org-extend-today-until' is 8, and it's 4am, then the
"effective time" of any timestamps between midnight and 8am will be
23:59 of the previous day.

6 years agoMerge branch 'master' of
Bastien Guerry [Sat, 13 Aug 2011 08:11:59 +0000 (10:11 +0200)]
Merge branch 'master' of

6 years agoMinor changes: fix copyright years and licenses.
Bastien Guerry [Sat, 13 Aug 2011 08:11:39 +0000 (10:11 +0200)]
Minor changes: fix copyright years and licenses.

for the original patches.  Thanks to Glenn Morris.

6 years agoob-maxima.el: fix the copyright years.
Bastien Guerry [Sat, 13 Aug 2011 08:05:24 +0000 (10:05 +0200)]
ob-maxima.el: fix the copyright years.

6 years agoob-lilypond.el: fix the copyright years.
Bastien Guerry [Sat, 13 Aug 2011 08:04:58 +0000 (10:04 +0200)]
ob-lilypond.el: fix the copyright years.

6 years agoob-awk.el: minor fix. Remove double "Commentary:" line in header.
Bastien Guerry [Sat, 13 Aug 2011 08:04:17 +0000 (10:04 +0200)]
ob-awk.el: minor fix.  Remove double "Commentary:" line in header.

6 years agoPaste subtree above target headline if point is at bol
David Maus [Sat, 13 Aug 2011 07:19:19 +0000 (09:19 +0200)]
Paste subtree above target headline if point is at bol

* org.el (org-paste-subtree): Paste subtree above target headline if
point is at bol.

Capture and refile depend on this buggy behavior of org-past-subtree.

6 years agoorg-list: don't clear marker while still in use
Nicolas Goaziou [Fri, 12 Aug 2011 13:17:48 +0000 (15:17 +0200)]
org-list: don't clear marker while still in use

* lisp/org-list.el (org-toggle-checkbox): don't clear lim-down while
  used in the while loop.

6 years agoorg-list: fix bug in `org-toggle-checkbox' on current item
Nicolas Goaziou [Fri, 12 Aug 2011 13:11:19 +0000 (15:11 +0200)]
org-list: fix bug in `org-toggle-checkbox' on current item

* lisp/org-list.el (org-toggle-checkbox): lim-down must be a marker.

6 years agoFix fontification error in feb52f9028e73f0f49390780bb2e61cc9da04303
Nicolas Goaziou [Fri, 12 Aug 2011 11:06:25 +0000 (13:06 +0200)]
Fix fontification error in feb52f9028e73f0f49390780bb2e61cc9da04303

* lisp/org.el (org-activate-code): correct regexp so ":.*" isn't

6 years agoMerge branch 'refactor/org-macros'
David Maus [Fri, 12 Aug 2011 06:49:24 +0000 (08:49 +0200)]
Merge branch 'refactor/org-macros'

6 years agoProvide edebug specifications for macros
David Maus [Thu, 11 Aug 2011 06:57:25 +0000 (08:57 +0200)]
Provide edebug specifications for macros

* org-macs.el (org-with-gensyms, org-called-interactively-p)
(with-silent-modifications, org-bound-and-true-p)
(org-unmodified, org-re, org-preserve-lc)
(org-without-partial-completion, org-with-point-at)
(org-no-warnings, org-if-unprotected, org-if-unprotected-1)
(org-if-unprotected-at, org-with-remote-undo)
(org-no-read-only, org-save-outline-visibility)
(org-with-wide-buffer, org-with-limited-levels)
(org-eval-in-environment): Provide edebug specifications.
* org-src.el (org-src-do-at-code-block): Dto.
* org-publish.el (org-publish-with-aux-preprocess-maybe): Dto.
* org-compat.el (org-xemacs-without-invisibility): Dto.
* org-clock.el (org-with-clock-position, org-with-clock): Dto.
* org-agenda.el (org-agenda-with-point-at-orig-entry)
(org-batch-agenda, org-batch-agenda-csv)
(org-batch-store-agenda-views): Dto.
* ob.el (org-babel-do-in-edit-buffer)
(org-babel-map-src-blocks, org-babel-map-inline-src-blocks): Dto.
* ob-tangle.el (org-babel-with-temp-filebuffer): Dto.
* ob-table.el (sbe): Dto.
* ob-exp.el (org-babel-exp-in-export-file): Dto.
* ob-comint.el (org-babel-comint-in-buffer)
(org-babel-comint-with-output): Dto.

6 years agoorg-inlinetask: fix a doc-string
Nicolas Goaziou [Thu, 11 Aug 2011 12:10:35 +0000 (14:10 +0200)]
org-inlinetask: fix a doc-string

* lisp/org-inlinetask.el (org-inlinetask-export-templates): fix doc-string.

6 years agoorg-inlinetask: error when trying to nest inline tasks
Nicolas Goaziou [Thu, 11 Aug 2011 12:09:55 +0000 (14:09 +0200)]
org-inlinetask: error when trying to nest inline tasks

* lisp/org-inlinetask.el (org-inlinetask-insert-task): error when
  trying to nest inline tasks.

6 years agoAllow "^[ \t]*:$" as a special case of fixed-width section
Nicolas Goaziou [Thu, 11 Aug 2011 09:44:40 +0000 (11:44 +0200)]
Allow "^[ \t]*:$" as a special case of fixed-width section

* lisp/org.el (org-activate-code, org-toggle-fixed-width-section,
  org-indent-line-function): allow "[ \t]*:$" as a special case of
  fixed-width section.

6 years agoDon't eat headline when yank with point at existing headline
David Maus [Wed, 10 Aug 2011 16:38:26 +0000 (18:38 +0200)]
Don't eat headline when yank with point at existing headline

* org.el (org-paste-subtree): Don't eat headline when called with
point at existing headline.

6 years agoMerge branch 'master' of
David Maus [Wed, 10 Aug 2011 16:18:06 +0000 (18:18 +0200)]
Merge branch 'master' of

6 years agoFix typo in variable name
David Maus [Wed, 10 Aug 2011 16:17:48 +0000 (18:17 +0200)]
Fix typo in variable name

* org.el (org-paste-subtree): Fix typo in variable name.

6 years agoCheck org-inlinetask-export-templates before exporting inline tasks
Jambunathan K [Sat, 6 Aug 2011 14:34:35 +0000 (20:04 +0530)]
Check org-inlinetask-export-templates before exporting inline tasks

* lisp/org-inlinetask.el (org-inlinetask-export-handler): Don't export
inline tasks if the current backend has provided no entries in

6 years agoPreserve indentation of explicitly indented lines in example blocks
Valentin Wüstholz [Tue, 9 Aug 2011 19:28:56 +0000 (21:28 +0200)]
Preserve indentation of explicitly indented lines in example blocks

* lisp/org.el (org-indent-line-function): Made the way in which example blocks are
  indented more flexible.

Before: Lines in example blocks were indented like the surrounding begin and end
After: By default, lines in example blocks are indented like the surrounding begin and end
delimiters, unless the user explicitly indents them differently.


6 years agoFix argument to append when creating final parameter alist
David Maus [Wed, 10 Aug 2011 08:10:40 +0000 (10:10 +0200)]
Fix argument to append when creating final parameter alist

* org-agenda.el (org-batch-agenda-csv): Fix argument to append when
creating final parameter alist.

6 years agoFix command line syntax for agenda batch commands
David Maus [Wed, 10 Aug 2011 07:24:56 +0000 (09:24 +0200)]
Fix command line syntax for agenda batch commands

* org.texi (Exporting Agenda Views, Extracting agenda information):
Fix command line syntax, quote symbol parameter values.

6 years agoFix command line syntax of `org-batch-store-agenda-view'
David Maus [Wed, 10 Aug 2011 07:22:50 +0000 (09:22 +0200)]
Fix command line syntax of `org-batch-store-agenda-view'

* org.texi (Exporting Agenda Views): Fix command line syntax.

You cannot use 'emacs -f org-batch-store-agenda-view' because it is
implemented as macro, not function.

6 years agoUse macro `org-eval-in-environment' in `org-batch-store-agenda-views'
David Maus [Wed, 10 Aug 2011 07:13:22 +0000 (09:13 +0200)]
Use macro `org-eval-in-environment' in `org-batch-store-agenda-views'

* org-agenda.el (org-batch-store-agenda-views): Use macro

6 years agoProvide explanation why batch functions are implemented as macros
David Maus [Wed, 10 Aug 2011 07:07:37 +0000 (09:07 +0200)]
Provide explanation why batch functions are implemented as macros

| The functions `org-batch-agenda', `org-batch-agenda-csv', and
| `org-batch-store-agenda-views' are implemented as macros to provide
| a conveniant way for extracting agenda information from the command
| line. The Lisp does not evaluate parameters of a macro call; thus
| it is not necessary to quote the parameters passed to one of those
| functions. E.g. you can write:
|   emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a" org-agenda-span 7)'
| To export an agenda spanning 7 days. If `org-batch-agenda' would
| have been implemented as a regular function you'd have to quote the
| symbol org-agenda-span. Moreover: To use a symbol as parameter
| value you would have to double quote the symbol.
| This is a hack, but it works even when running Org byte-compiled.

6 years agoUse `org-eval-in-environment
David Maus [Wed, 10 Aug 2011 05:56:29 +0000 (07:56 +0200)]
Use `org-eval-in-environment

* org-agenda.el (org-batch-agenda, org-batch-agenda-csv): Use

6 years agoNew function: Return alist based on flat list
David Maus [Wed, 10 Aug 2011 06:14:26 +0000 (08:14 +0200)]
New function: Return alist based on flat list

* org-macs.el (org-make-parameter-alist): New function. Turn flat list
of alternating symbol names and values into an alist with symbol name
in car and value in cdr.

6 years agoUse macro `org-with-gensyms' in `org-agenda-with-point-at-orig-entry'
David Maus [Wed, 10 Aug 2011 05:51:10 +0000 (07:51 +0200)]
Use macro `org-with-gensyms' in `org-agenda-with-point-at-orig-entry'

* org-agenda.el (org-agenda-with-point-at-orig-entry): Use macro

6 years agoFactor out function for substituting posix class in regular expression
David Maus [Wed, 10 Aug 2011 05:49:02 +0000 (07:49 +0200)]
Factor out function for substituting posix class in regular expression

* org-macs.el (org-substitute-posix-classes): New function. Substitute
posix classes in regular expression.
(org-re): Use new function.

6 years agoNew macro: Evaluate FORM in ENVIRONMENT
David Maus [Wed, 10 Aug 2011 05:43:10 +0000 (07:43 +0200)]
New macro: Evaluate FORM in ENVIRONMENT

* org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in

6 years agoUse new macro `org-with-gensyms'
David Maus [Wed, 10 Aug 2011 05:33:43 +0000 (07:33 +0200)]
Use new macro `org-with-gensyms'

* org-macs.el (org-preserve-lc, org-with-point-at)
(org-with-remote-undo, org-save-outline-visibility): Use new macro

6 years agoNew macro: Wrap let-binding of uninterned SYMBOLS around BODY
David Maus [Wed, 10 Aug 2011 05:28:41 +0000 (07:28 +0200)]
New macro: Wrap let-binding of uninterned SYMBOLS around BODY

* org-macs.el (org-with-gensyms): New macro. Wrap let-binding of
SYMBOLS to new uninterned symbols around BODY.

Use this macro to compose macros that need to bind their own symbols
in expansion. It expands into a let-binding of all symbols in SYMBOLS
to new uninterned symbols that cannot collide with symbols used in the
target macro's expansion.

6 years agoAdd org-sudoku to contrib directory
Carsten Dominik [Tue, 9 Aug 2011 16:25:29 +0000 (18:25 +0200)]
Add org-sudoku to contrib directory

* contrib/lisp/org-sudoku.el: New file

6 years agoorg-inlinetask: fix HTML export when not clearly defined as a paragraph
Nicolas Goaziou [Mon, 8 Aug 2011 18:21:41 +0000 (20:21 +0200)]
org-inlinetask: fix HTML export when not clearly defined as a paragraph

* lisp/org-inlinetask.el (org-inlinetask-export-handler): make sure
  the task starts a paragraph or the HTML exporter will produce an
  incorrect output.

6 years agoFix `newline-and-indent' in a list when called on a line being filled
Nicolas Goaziou [Mon, 8 Aug 2011 16:32:32 +0000 (18:32 +0200)]
Fix `newline-and-indent' in a list when called on a line being filled

* lisp/org.el (org-return): when filling happens, `newline' can change
  match data, hence modifying the indent column.

6 years agocontrib/odt/styles/OrgOdtStyles.xml: Make it valid
Jambunathan K [Mon, 8 Aug 2011 06:17:06 +0000 (11:47 +0530)]
contrib/odt/styles/OrgOdtStyles.xml: Make it valid

6 years agoFix issues with numbering of lists found during odt to doc conversion
Jambunathan K [Mon, 8 Aug 2011 06:01:17 +0000 (11:31 +0530)]
Fix issues with numbering of lists found during odt to doc conversion

* contrib/lisp/org-lparse.el (org-do-lparse): Add new let
bound variable org-lparse-list-level.
(org-lparse-begin-list, org-lparse-end-list): New functions.
(org-lparse-export-list-line, org-lparse-begin-level)
(org-lparse-end-level): Use new functions.

* contrib/lisp/org-odt.el (org-odt-begin-list): Fixed
signature so that it is consistent with how org-lparse library
invokes it. Forcibly emit text:continue-numbering="false"
attribute for the top-level <text:list> element. This fixes
numbering issue found during odt to doc conversion. See
(org-odt-begin-list-item, org-odt-end-list-item): Use
org-lparse-begin-list and org-lparse-end-list.

* contrib/lisp/org-xhtml.el (org-xhtml-format-toc-item)
(org-xhtml-begin-toc, org-xhtml-end-toc): Use
org-lparse-begin-list and org-lparse-end-list.
(org-xhtml-begin-list): Fixed signature so that it is
consistent with how org-lparse library invokes it.

6 years agoRe-define list styles for exporting to odt
Jambunathan K [Mon, 8 Aug 2011 03:52:41 +0000 (09:22 +0530)]
Re-define list styles for exporting to odt

contrib/odt/styles/OrgOdtStyles.xml: Redefine OrgNumberedList,
OrgBulletedList and OrgDescriptionList.

Fixes paragraph indentation reported here:

6 years agoorg-footnote: Guard against `def' being nil, if footnote undefined
John Wiegley [Sat, 6 Aug 2011 06:20:50 +0000 (01:20 -0500)]
org-footnote: Guard against `def' being nil, if footnote undefined

6 years agoAdded customization hook `org-log-buffer-setup-hook'
John Wiegley [Sat, 6 Aug 2011 06:20:33 +0000 (01:20 -0500)]
Added customization hook `org-log-buffer-setup-hook'

This allows changes to org-mode after the log buffer has been setup.

6 years agoorg-footnote: fix a doc-string
Nicolas Goaziou [Sat, 6 Aug 2011 10:07:37 +0000 (12:07 +0200)]
org-footnote: fix a doc-string

6 years agoorg-footnote: fix function declaration
Nicolas Goaziou [Sat, 6 Aug 2011 09:55:05 +0000 (11:55 +0200)]
org-footnote: fix function declaration

6 years agoorg-footnote: allow inserting inlined footnotes at column 0
Nicolas Goaziou [Sat, 6 Aug 2011 09:52:26 +0000 (11:52 +0200)]
org-footnote: allow inserting inlined footnotes at column 0

* lisp/org-footnote.el (org-footnote-new): only forbid non-inlined
  footnotes at column 0, as only them can be confused with a footnote

6 years agoorg-footnote: add speedups when prompted for a label
Nicolas Goaziou [Sat, 6 Aug 2011 09:37:11 +0000 (11:37 +0200)]
org-footnote: add speedups when prompted for a label

* lisp/org-footnote.el (org-footnote-new): use ido or iswitchb when
  available when prompted for a label. Also rename a local variable to
  avoid confusion with an existing function.

6 years agoorg-footnote: remove an unused variable
Nicolas Goaziou [Sat, 6 Aug 2011 09:34:54 +0000 (11:34 +0200)]
org-footnote: remove an unused variable

* lisp/org-footnote.el (org-footnote-label-history): removed variable
(org-footnote-new): remove call to that variable.

6 years agoorg-contacts: fix errors when Gnus or ERC are not loaded
Lomax Escarmant [Sat, 6 Aug 2011 09:45:26 +0000 (11:45 +0200)]
org-contacts: fix errors when Gnus or ERC are not loaded

Signed-off-by: Julien Danjou <>
6 years agoFix heading insertion before any other headline but after a list
Nicolas Goaziou [Sat, 6 Aug 2011 08:57:08 +0000 (10:57 +0200)]
Fix heading insertion before any other headline but after a list

* lisp/org.el (org-insert-heading): with force-heading non-nil,
  inserting an heading before any headline, and just after a list
  would return an error.

6 years agoremoved use of copy-seq from ob.el
Eric Schulte [Fri, 5 Aug 2011 18:31:59 +0000 (14:31 -0400)]
removed use of copy-seq from ob.el

* lisp/ob.el (org-babel-sha1-hash): Removed use of copy-seq.

6 years agoMap "cpp" to c++-mode
Sergey Litvinov [Wed, 3 Aug 2011 20:02:43 +0000 (22:02 +0200)]
Map "cpp" to c++-mode

6 years agoGet rid of tmp and backup file in test load
Sergey Litvinov [Sun, 31 Jul 2011 22:47:32 +0000 (00:47 +0200)]
Get rid of tmp and backup file in test load

6 years agomake the "FILE" property non-special when resolving bibtex values
Eric Schulte [Fri, 5 Aug 2011 17:24:48 +0000 (11:24 -0600)]
make the "FILE" property non-special when resolving bibtex values

* lisp/org-bibtex.el (org-bibtex-get): Make the "FILE" property
  non-special when resolving bibtex values.

6 years agoUsability improvements to org-lparse-convert and co (First cut)
Jambunathan K [Thu, 4 Aug 2011 20:31:19 +0000 (02:01 +0530)]
Usability improvements to org-lparse-convert and co (First cut)

* contrib/lisp/org-lparse.el (org-lparse-and-open)
(org-lparse-register-backend, org-lparse-format-table)
(org-lparse-begin, org-lparse-end): Checkdoc related fixes.
(org-lparse-get-converter): Added
(org-lparse-get-other-backends, org-lparse-all-backends):
Re-implemented. Also improved docstring.
(org-lparse): Make use of improvements in the converter
routines. Improve the following: a) gathering of
target-backend and native-backend args during interactive
calls b) error handling.
(org-lparse-convert): Introduced prefix arg for opening of
converted files. Make use of improvements in the converter
routines. Improve error handling.
(org-lparse-convert-processes): New customizable variable.
(org-lparse-convert-process): Make it customizable. Set
default value to nil.
(org-lparse-convert-capabilities): New customizable variable.
(org-lparse-use-flashy-warning): Fix group and improve docstring.

* contrib/lisp/org-odt.el (org-odt-get): Don't set
CONVERT-METHOD and OTHER-BACKENDS options. Fallback to the
global converter settings for now.
(org-export-odt-preferred-output-format): New variable
(org-export-as-odt-and-open, org-export-as-odt): Use the
afore-mentioned variable.

* contrib/lisp/org-xhtml.el (org-xhtml-get): Don't set
CONVERT-METHOD and OTHER-BACKENDS options. Fallback to the
global converter settings for now.

6 years agoDon't move line upward if point is at eob
David Maus [Thu, 4 Aug 2011 14:05:08 +0000 (16:05 +0200)]
Don't move line upward if point is at eob

* org.el (org-back-over-empty-lines): Don't move line upward if point
is at eob.

Fixes a bug with refiling reported by Bernt Hansen, simplified version
of fix proposed by Jason Dunsmore.

6 years agoIntroduce org-lparse-unregister-backend and use it
Jambunathan K [Tue, 2 Aug 2011 09:21:09 +0000 (14:51 +0530)]
Introduce org-lparse-unregister-backend and use it

* contrib/lisp/org-lparse.el (org-lparse-unregister-backend):
* contrib/lisp/org-odt.el (org-odt-unload-function):
New. De-register from org-lparse on unload.
* contrib/lisp/org-xhtml.el (org-xhtml-unload-function):
New. De-register from org-lparse on unload.

6 years agoRevert "new interactive function for removing code block results"
Eric Schulte [Mon, 1 Aug 2011 21:45:58 +0000 (15:45 -0600)]
Revert "new interactive function for removing code block results"

This reverts commit 72817926d72cd78efbb114169d61136b8b00c73e.

6 years agoRevert "fix compilation errors introduced by most recent changes"
Eric Schulte [Mon, 1 Aug 2011 21:31:24 +0000 (15:31 -0600)]
Revert "fix compilation errors introduced by most recent changes"

This reverts commit 9ff7f80f51a15c4a3dd2b654f0b08e9e290f5375.

6 years agoorg-footnote: prevent LaTeX export from catching footnotes in protect environment
Nicolas Goaziou [Sat, 30 Jul 2011 10:38:06 +0000 (12:38 +0200)]
org-footnote: prevent LaTeX export from catching footnotes in protect environment

* lisp/org-footnote.el (org-footnote-in-valid-context-p): check
  `org-protected' property before allowing to match a footnote.
(org-footnote-at-reference-p): remove an obsolete test. It's now done
in the previous function.

6 years agoRename `org-in-regexps-block-p' to `org-between-regexps-p'
Nicolas Goaziou [Sat, 30 Jul 2011 07:14:38 +0000 (09:14 +0200)]
Rename `org-in-regexps-block-p' to `org-between-regexps-p'

* lisp/org.el (org-between-regexps-p): previous name implied the
  function was related to blocks, which isn't mandatory.
(org-narrow-to-block, org-in-block-p, org-indent-line-function):
applied the rename.
* lisp/ob-exp.el (org-babel-in-example-or-verbatim): applied
  rename. Also removed a white space.

6 years agoChange behaviour of `org-in-regexps-block-p'
Nicolas Goaziou [Fri, 29 Jul 2011 22:14:14 +0000 (00:14 +0200)]
Change behaviour of `org-in-regexps-block-p'

* lisp/org.el (org-in-regexps-block-p): return an useful value when
  point is between START-RE and END-RE. No incomplete block is allowed
  anymore. Add another optional argument to bound the bottom part of
  the search.
(org-narrow-to-block, org-in-block-p): apply modifications.

6 years agoif a code block has a body, its last character must be a newline
Eric Schulte [Fri, 29 Jul 2011 22:04:36 +0000 (16:04 -0600)]
if a code block has a body, its last character must be a newline

* lisp/ob.el (org-babel-src-block-regexp): If a code block has a body,
  its last character must be a newline.

6 years agoorg-footnote: don't move point for unsuccessful search of the next footnote
Nicolas Goaziou [Fri, 29 Jul 2011 19:06:38 +0000 (21:06 +0200)]
org-footnote: don't move point for unsuccessful search of the next footnote

* lisp/org-footnote.el (org-footnote-next-reference-or-definition): if
  no more footnote is found, be sure to go back to the original
  position. Otherwise, point might be left on a footnote-like element
  that has been dished out.