4 years agoorg.el (org-refresh-properties): Put the text property on the whole subtree, not... release_8.0.3
Bastien Guerry [Tue, 14 May 2013 14:07:21 +0000 (16:07 +0200)]
org.el (org-refresh-properties): Put the text property on the whole subtree, not just on the headline

* org.el (org-refresh-properties): Put the text property on
the whole subtree, not just on the headline.

Thanks to Ivan Kanis for reporting this and to Miguel Ruiz for confirming
the bug.

4 years agoob-sh: detect tables correctly
Achim Gratz [Sun, 12 May 2013 18:36:51 +0000 (20:36 +0200)]
ob-sh: detect tables correctly

* lisp/ob-sh.el (org-babel-sh-var-to-sh): When detecting a table, the
  first line could be the symbol `hline' rather than a list of table
  cells, so check for that as well.

Thanks to Paul Stansell for pointing out the error.

4 years agoox: Ignore whitespace differences when resolving a radio link
Nicolas Goaziou [Sun, 12 May 2013 18:42:30 +0000 (20:42 +0200)]
ox: Ignore whitespace differences when resolving a radio link

* lisp/ox.el (org-export-resolve-radio-link): Ignore whitespace
  differences when resolving a radio link.
* testing/lisp/test-ox.el: Add test.

4 years agoox: Fix radio target resolution
Nicolas Goaziou [Sun, 12 May 2013 15:49:51 +0000 (17:49 +0200)]
ox: Fix radio target resolution

* lisp/ox.el (org-export-resolve-radio-link): Fix radio target
* testing/lisp/test-ox.el: Add test.

4 years agoorg-element: Be stricter when matching arguments in LaTeX environments
Nicolas Goaziou [Sun, 12 May 2013 15:15:06 +0000 (17:15 +0200)]
org-element: Be stricter when matching arguments in LaTeX environments

* lisp/org-element.el (org-element--current-element): Be stricter when
  matching arguments in LaTeX environments.  In particular, do not
  allow anything else than options and arguments in the opening line.
* testing/lisp/test-org-element.el: Add tests.

4 years agoox-html: Remove code relative to bibliography
Nicolas Goaziou [Sun, 12 May 2013 12:38:10 +0000 (14:38 +0200)]
ox-html: Remove code relative to bibliography

* lisp/ox-html.el (org-html-inner-template): Remove code relative to
(org-html-bibliography): Remove function.

Bibliography is handled by the contrib/ package "ox-bibtex.el".

4 years agoox-latex: Fix regular caret protection
Nicolas Goaziou [Sun, 12 May 2013 07:56:26 +0000 (09:56 +0200)]
ox-latex: Fix regular caret protection

* lisp/ox-latex.el (org-latex-plain-text): Protect ^ char with \^{},
  not only \^, so it doesn't become a diacritic.

4 years agoox: Small refactoring
Nicolas Goaziou [Wed, 8 May 2013 16:13:06 +0000 (18:13 +0200)]
ox: Small refactoring

* lisp/ox.el (org-export-expand-include-keyword): Avoid using `read'
  to determine file name.

4 years agoox: Fix default title
Nicolas Goaziou [Wed, 8 May 2013 13:34:53 +0000 (15:34 +0200)]
ox: Fix default title

* lisp/ox.el (org-export--get-global-options): Properly set default
  title, i.e. when to TITLE keyword is provided.
* testing/lisp/test-ox.el: Add tests.

4 years agoorg-element: Fix visible-only parsing
Nicolas Goaziou [Wed, 8 May 2013 07:56:26 +0000 (09:56 +0200)]
org-element: Fix visible-only parsing

* lisp/org-element.el (org-element--parse-elements): Also parse
  visible headlines within an otherwise compacted headline.
* testing/lisp/test-org-element.el: Add test.

4 years agoox: Tolerate included file names without double quotes
Nicolas Goaziou [Tue, 7 May 2013 15:47:59 +0000 (17:47 +0200)]
ox: Tolerate included file names without double quotes

* lisp/ox.el (org-export-expand-include-keyword): Tolerate included
  file names without double quotes.

4 years agoorg.el (org-get-outline-path): Remove statistical and checkboxes cookies
Bastien Guerry [Tue, 7 May 2013 13:11:47 +0000 (15:11 +0200)]
org.el (org-get-outline-path): Remove statistical and checkboxes cookies

* org.el (org-get-outline-path): Remove statistical and
checkboxes cookies.

Thanks to Marcel van der Boom for reporting this.

4 years agoorg.texi (Conventions): Fix typo
Bastien Guerry [Tue, 7 May 2013 10:44:39 +0000 (12:44 +0200)]
org.texi (Conventions): Fix typo

* org.texi (Conventions): Fix typo.

4 years agomk/ add babel and exporter files in contrib to elpaplus
Achim Gratz [Mon, 6 May 2013 19:06:05 +0000 (21:06 +0200)]
mk/ add babel and exporter files in contrib to elpaplus

* mk/ (elpaplus-dirty elpaplus-up): Add babel and exporter
  files in contrib by extending ORG_ADD_CONTRIB with their

4 years agoox: Fix caching for fuzzy link resolution
Nicolas Goaziou [Sat, 4 May 2013 06:56:30 +0000 (08:56 +0200)]
ox: Fix caching for fuzzy link resolution

* lisp/ox.el (org-export-resolve-fuzzy-link): Fix caching process.
* testing/lisp/test-ox.el: Add test.

4 years agoox-latex.el (org-latex-headline): Don’t insert alternate title if identical to regula...
Aaron Ecay [Thu, 2 May 2013 04:36:44 +0000 (00:36 -0400)]
ox-latex.el (org-latex-headline): Don’t insert alternate title if identical to regular one

* lisp/ox-latex.el (org-latex-headline): Don’t insert alternate title if
  identical to regular one.

4 years agoox: Cache locations of fuzzy links
Lawrence Mitchell [Thu, 2 May 2013 09:03:13 +0000 (10:03 +0100)]
ox: Cache locations of fuzzy links

* ox.el (org-export-resolve-fuzzy-link): Look for fuzzy link in a
  cache before trying to resolve it in the parse tree.

When a document contains a large number of identical fuzzy links, it
doesn't make sense to continually search for them.  Instead, cache the
locations in the position independent case.

4 years agoRephrase previous change
Bastien Guerry [Mon, 29 Apr 2013 17:10:55 +0000 (19:10 +0200)]
Rephrase previous change

4 years agoorg.texi (Export settings): Document `org-export-allow-bind-keywords'
Bastien Guerry [Mon, 29 Apr 2013 17:09:29 +0000 (19:09 +0200)]
org.texi (Export settings): Document `org-export-allow-bind-keywords'

* org.texi (Export settings): Document

Thanks to Thomas S. Dye for spotting this.

4 years agoorg-agenda.el: Fix a bug about narrowing to wrong region boundaries
Bastien Guerry [Mon, 29 Apr 2013 17:02:13 +0000 (19:02 +0200)]
org-agenda.el: Fix a bug about narrowing to wrong region boundaries

* org-agenda.el (org-agenda, org-search-view, org-tags-view)
(org-agenda-get-day-entries, org-agenda-set-restriction-lock):
Use (current-buffer) as the value of `org-agenda-restrict'.
Fix a bug about narrowing to wrong region boundaries when
`org-agenda-restrict' is non-nil.

Thanks to Thomas Holst for reporting this bug.

4 years agoorg.el (org-agenda-text-search-extra-files): Fix typos in docstring
Bastien Guerry [Mon, 29 Apr 2013 15:23:56 +0000 (17:23 +0200)]
org.el (org-agenda-text-search-extra-files): Fix typos in docstring

* org.el (org-agenda-text-search-extra-files): Fix typos in

4 years agoox-publish: Fix "Invalid time specification" error with timestamps in DATE
Nicolas Goaziou [Mon, 29 Apr 2013 07:39:35 +0000 (09:39 +0200)]
ox-publish: Fix "Invalid time specification" error with timestamps in DATE

* lisp/ox-publish.el (org-publish-find-date): Fix "Invalid time
  specification" error with timestamps in DATE.

4 years agofix macro expansion with separators and backslashes
Achim Gratz [Sun, 17 Mar 2013 09:20:10 +0000 (10:20 +0100)]
fix macro expansion with separators and backslashes

* lisp/org-macro.el (org-macro-expand): Do not try to interpret the
  macro replacement text as a regex so that escaped backslashes and
  commas in macro arguments will be interpreted correctly.

4 years agoorg-element: Recognize LaTeX environments with options
Nicolas Goaziou [Sun, 28 Apr 2013 07:34:42 +0000 (09:34 +0200)]
org-element: Recognize LaTeX environments with options

* lisp/org-element.el (org-element--current-element): Allow the
  opening string of a LaTeX environment to contain additional
* testing/lisp/test-org-element.el: Add tests.

4 years agoREADME_maintainer: fix "git tag" instructions release_8.0.2
Bastien Guerry [Sat, 27 Apr 2013 02:05:06 +0000 (04:05 +0200)]
README_maintainer: fix "git tag" instructions

4 years agoAllow also "#+NAME: table" for remote references
Michael Brand [Fri, 26 Apr 2013 15:07:55 +0000 (17:07 +0200)]
Allow also "#+NAME: table" for remote references

* lisp/org-table.el (org-table-get-remote-range): Extend regexp to
match "#+NAME: table" additionally to "#+TBLNAME: table".
* testing/lisp/test-org-table.el: Add test.
* testing/org-test.el (org-test-table-target-expect): Allow several
tables to support testing remote references in the last table.

4 years agoUse @var{} only for metasyntactical meanings in the manual.
Carsten Dominik [Fri, 26 Apr 2013 10:33:55 +0000 (12:33 +0200)]
Use @var{} only for metasyntactical meanings in the manual.

Thanks to Suvayu Ali for the patch

4 years agoox-org: Preserve affiliated keywords
Nicolas Goaziou [Fri, 26 Apr 2013 13:47:34 +0000 (15:47 +0200)]
ox-org: Preserve affiliated keywords

* lisp/ox.el (org-export-expand): Optionally add affiliated keywords
  to results.
* lisp/ox-org.el (org-org-identity): Use new argument for

4 years agoFix error when filling a table from an affiliated keyword
Nicolas Goaziou [Fri, 26 Apr 2013 12:27:38 +0000 (14:27 +0200)]
Fix error when filling a table from an affiliated keyword

* lisp/org.el (org-fill-paragraph): Move to table beginning before
  aligning the table when M-q is called from an affiliated keyword.
* testing/lisp/test-org.el: Add test.

4 years agoorg-list: Properly update `org-list-allow-alphabetical'
Nicolas Goaziou [Fri, 26 Apr 2013 12:13:24 +0000 (14:13 +0200)]
org-list: Properly update `org-list-allow-alphabetical'

* lisp/org-list.el (org-list-allow-alphabetical): Properly update
  `org-list-allow-alphabetical' when changed after org.el has been

4 years agoorg-element: Fix interpretation of empty fixed-width elements
Nicolas Goaziou [Fri, 26 Apr 2013 08:38:05 +0000 (10:38 +0200)]
org-element: Fix interpretation of empty fixed-width elements

* lisp/org-element.el (org-element-fixed-width-interpreter): Fix
  interpretation of fixed-width elements with a nil or empty string
* testing/lisp/test-org-element.el: Add tests.

4 years agoorg.el (org-insert-heading): Fix case when there the first heading starts at the...
Bastien Guerry [Fri, 26 Apr 2013 06:52:43 +0000 (08:52 +0200)]
org.el (org-insert-heading): Fix case when there the first heading starts at the beginning of the buffer

* org.el (org-insert-heading): Fix case when there the first
heading starts at the beginning of the buffer.

In this case, `org-backward-heading-same-level' will throw an error in
the let form, and the error would fall back on "*" instead of falling
back on the correct number of stars to add.

Thanks to Jisang Yoo and John Hendy who reported this bug.

4 years agoUse `org-called-interactively-p' instead of `called-interactively-p'
Bastien Guerry [Thu, 25 Apr 2013 05:30:04 +0000 (07:30 +0200)]
Use `org-called-interactively-p' instead of `called-interactively-p'

* org-agenda.el (org-agenda-write):
* ob-core.el (org-babel-expand-src-block): Use

Thanks to Jason L Wright for reporting this.

4 years agoorg.el: Delete trailing whitespaces
Bastien Guerry [Wed, 24 Apr 2013 14:22:13 +0000 (16:22 +0200)]
org.el: Delete trailing whitespaces

4 years agoorg.el: Filter agenda by persistent tags
Viktor Rosenfeld [Wed, 24 Apr 2013 13:54:14 +0000 (15:54 +0200)]
org.el: Filter agenda by persistent tags

* org.el (org-agenda-prepare-buffers): Add tags defined in
org-tag-persistent-alist to org-tag-alist-for-agenda.

This makes tag hotkeys defined in `org-tag-persistent-alist' appear when
the user invokes `org-agenda-filter-by-tag-refine'.


4 years agoorg.el (org-agenda-prepare-buffers): Avoid duplicates in `org-tag-alist-for-agenda...
Bastien Guerry [Wed, 24 Apr 2013 13:43:33 +0000 (15:43 +0200)]
org.el (org-agenda-prepare-buffers): Avoid duplicates in `org-tag-alist-for-agenda' correctly

* org.el (org-agenda-prepare-buffers): Avoid duplicates in
`org-tag-alist-for-agenda' correctly.

Thanks to Viktor Rosenfeld for debugging this.

4 years agoorg.el (org-read-date-minibuffer-local-map): Check if we are at the beginning of...
Bastien Guerry [Wed, 24 Apr 2013 09:36:22 +0000 (11:36 +0200)]
org.el (org-read-date-minibuffer-local-map): Check if we are at the beginning of the prompt, not if we are after a whitespace

* org.el (org-read-date-minibuffer-local-map): Check if we are
at the beginning of the prompt, not if we are after a whitespace.
Bind C-. to `calendar-goto-today'.

4 years agoorg-clock.el (org-clock-in): Don't forward by one character when setting the marker...
Bastien Guerry [Wed, 24 Apr 2013 08:47:16 +0000 (10:47 +0200)]
org-clock.el (org-clock-in): Don't forward by one character when setting the marker in the clock history

* org-clock.el (org-clock-in): Don't forward by one character
when setting the marker in the clock history.

This was done to prevent the marker from being broken when a user
manually insert some text right one it.  I cannot reproduce this
manual marker modification problem, so let's remove this ugly
exception, as it is not consistent with other clock markers.

Thanks to Bernt Hansen for pointing this out.

4 years agoorg.el (org-read-date-minibuffer-local-map): Call `calendar-goto-today' only if there...
Bastien Guerry [Wed, 24 Apr 2013 08:05:36 +0000 (10:05 +0200)]
org.el (org-read-date-minibuffer-local-map): Call `calendar-goto-today' only if there is a space before point in the minibuffer prompt

* org.el (org-read-date-minibuffer-local-map): Call
`calendar-goto-today' only if there is a space before point in
the minibuffer prompt.

Thanks to Michael Brand and others who asked for this regression to be fixed.

4 years agoMerge branch 'maint' of into maint
Bastien Guerry [Wed, 24 Apr 2013 07:55:27 +0000 (09:55 +0200)]
Merge branch 'maint' of into maint

4 years agoorg.el (org-insert-heading): Fix bug about wrong conversion of lines with :END: or...
Bastien Guerry [Wed, 24 Apr 2013 07:55:15 +0000 (09:55 +0200)]
org.el (org-insert-heading): Fix bug about wrong conversion of lines with :END: or #+end_ into headlines

* org.el (org-insert-heading): Reveal context when called
interactively.  Fix bug about wrong conversion of lines with
:END: or #+end_ into headlines.
(org-in-drawer-p): New function.
(org-meta-return): Use `org-catch-invisible-edits' and the
`org-in-drawer-p' to check whether we are within a drawer.

Thanks to Muchenxuan Tong and John Hendy who reported these errors.

4 years agoox-html: Always use provided description in internal links
Nicolas Goaziou [Wed, 24 Apr 2013 07:52:20 +0000 (09:52 +0200)]
ox-html: Always use provided description in internal links

* lisp/ox-html.el (org-html-link): Don't skip the link description
  when it matches the name of the headline it targets.

4 years agodoc/orgcard.tex: Update version number
Bastien Guerry [Mon, 22 Apr 2013 06:27:40 +0000 (08:27 +0200)]
doc/orgcard.tex: Update version number

Also update etc/ORG-NEWS.

4 years agoorg-list.el (org-sort-list): Fix infloop
Bastien Guerry [Sun, 21 Apr 2013 22:24:39 +0000 (00:24 +0200)]
org-list.el (org-sort-list): Fix infloop

* org-list.el (org-sort-list): Fix infloop.

Thanks to Samuel Wales for reporting this.

4 years agoox-ascii: Minor fixes
Nicolas Goaziou [Sun, 21 Apr 2013 21:51:54 +0000 (23:51 +0200)]
ox-ascii: Minor fixes

* lisp/ox-ascii.el (ascii): Remove inexistant function.

4 years agoox-icalendar: Ignore footnotes
Nicolas Goaziou [Sun, 21 Apr 2013 21:41:49 +0000 (23:41 +0200)]
ox-icalendar: Ignore footnotes

* lisp/ox-icalendar.el (icalendar): Ignore footnotes.

4 years agoox-icalendar: Small refactoring
Nicolas Goaziou [Sun, 21 Apr 2013 08:05:39 +0000 (10:05 +0200)]
ox-icalendar: Small refactoring

* lisp/ox-icalendar.el (org-icalendar--combine-files): Small refactoring.

4 years agoox: Fix `org-export-with-footnotes' behaviour
Nicolas Goaziou [Sun, 21 Apr 2013 07:58:40 +0000 (09:58 +0200)]
ox: Fix `org-export-with-footnotes' behaviour

* lisp/ox.el (org-export--skip-p, org-export--interpret-p): When
  `org-export-with-footnotes' is nil, ignore completely footnotes
  references and definitions instead of exporting them verbatim.
* testing/lisp/test-ox.el: Add tests.

4 years agoorg.el: New maintainer
Bastien Guerry [Sun, 21 Apr 2013 14:58:01 +0000 (16:58 +0200)]
org.el: New maintainer

* doc/orgguide.texi:
* doc/org.texi:
* org.el: New maintainer.

4 years agoox-taskjuggler.el (org-taskjuggler--build-task): Fix code typo release_8.0.1
Baptiste [Sat, 20 Apr 2013 07:19:21 +0000 (09:19 +0200)]
ox-taskjuggler.el (org-taskjuggler--build-task): Fix code typo

* ox-taskjuggler.el (org-taskjuggler--build-task): Fix code typo.


4 years agoorg-agenda.el (org-cmp-ts): Avoid error when trying to string-match against nil
Richard Lawrence [Sat, 20 Apr 2013 06:58:29 +0000 (08:58 +0200)]
org-agenda.el (org-cmp-ts): Avoid error when trying to string-match against nil

* org-agenda.el (org-cmp-ts): Avoid error when trying to
string-match against nil.


4 years agoorg.el (org-clone-subtree-with-time-shift): Update behavior
Bastien Guerry [Sat, 20 Apr 2013 06:51:37 +0000 (08:51 +0200)]
org.el (org-clone-subtree-with-time-shift): Update behavior

* org.el (org-clone-subtree-with-time-shift): Unconditionally
ask for a time shift if there is a time-stamp.  Don't ask for
a time shift when called with a universal prefix argument.

Thanks to Ingmar Meissner for raising this issue again.

4 years agoox-beamer: Do not ignore uppercase environements
Nicolas Goaziou [Sat, 20 Apr 2013 06:32:10 +0000 (08:32 +0200)]
ox-beamer: Do not ignore uppercase environements

* lisp/ox-beamer.el (org-beamer--frame-level): Small refactoring.
(org-beamer--format-block, org-beamer-headline): Do not systematically
downcase environment names as some require upper case in their
names (e.g. noteNH and CJK).

Thanks to James Harkins for reporting the bug.

4 years agoob-core.el (org-babel-insert-result): Fix bug when inserting results as a list: ensur...
Bastien Guerry [Fri, 19 Apr 2013 17:44:40 +0000 (19:44 +0200)]
ob-core.el (org-babel-insert-result): Fix bug when inserting results as a list: ensure we split a string containing "\n"

* ob-core.el (org-babel-insert-result): Fix bug when inserting
results as a list: ensure we split a string containing "\n".

Thanks to Sébastien Vauban for reporting this.

4 years agoox-taskjuggler.el: Fix dependencies string
Nicolas Goaziou [Fri, 19 Apr 2013 09:30:49 +0000 (11:30 +0200)]
ox-taskjuggler.el: Fix dependencies string

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-format-dependencies):
  Fix dependencies string.

4 years agoox-html.el: Fix copyright header
Bastien Guerry [Thu, 18 Apr 2013 17:32:07 +0000 (19:32 +0200)]
ox-html.el: Fix copyright header

* ox-html.el: Fix copyright header.

4 years agodoc/orgguide.texi: Fix menus release_8.0
Bastien Guerry [Thu, 18 Apr 2013 16:21:13 +0000 (18:21 +0200)]
doc/orgguide.texi: Fix menus

4 years agodoc/orgguide.texi: Fix wrong node ref
Bastien Guerry [Thu, 18 Apr 2013 16:17:52 +0000 (18:17 +0200)]
doc/orgguide.texi: Fix wrong node ref

4 years agomk/ Don't use non-existent file AUTHORS
Bastien Guerry [Thu, 18 Apr 2013 16:08:13 +0000 (18:08 +0200)]
mk/ Don't use non-existent file AUTHORS

4 years agoMerge 8.0
Bastien Guerry [Thu, 18 Apr 2013 16:00:30 +0000 (18:00 +0200)]
Merge 8.0

4 years agoorg.el (org-store-link): Don't add a search string when storing a link from a radio...
Bastien Guerry [Thu, 18 Apr 2013 15:27:17 +0000 (17:27 +0200)]
org.el (org-store-link): Don't add a search string when storing a link from a radio target

* org.el (org-store-link): Don't add a search string when
storing a link from a radio target.
(org-open-at-point): Jump to the radio link (<<<radio>>>), not
to the simple target (<<target>>).

4 years agoox: Change scope for `org-export-with-timestamps'
Nicolas Goaziou [Sun, 14 Apr 2013 20:20:16 +0000 (22:20 +0200)]
ox: Change scope for `org-export-with-timestamps'

* lisp/ox.el (org-export-with-timestamps): Only applies to isolated
  timestamps, i.e. timestamps in a paragraph containing only
  timestamps and empty strings.
(org-export--skip-p): Skip timestamps according to new behaviour.
* testing/lisp/test-ox.el: Update tests.

4 years agoorg-table.el (org-table-get-remote-range): Fix typo
Bastien Guerry [Thu, 18 Apr 2013 13:42:31 +0000 (15:42 +0200)]
org-table.el (org-table-get-remote-range): Fix typo

* org-table.el (org-table-get-remote-range): Fix typo.

4 years agoMakefile (clean-install): Also remove ox*.el* files
Bastien Guerry [Thu, 18 Apr 2013 12:43:45 +0000 (14:43 +0200)]
Makefile (clean-install): Also remove ox*.el* files

* Makefile (clean-install): Also remove ox*.el* files.

4 years agoorg.texi (History and Acknowledgments): Small rephrasing
Bastien Guerry [Thu, 18 Apr 2013 11:04:29 +0000 (13:04 +0200)]
org.texi (History and Acknowledgments): Small rephrasing

* org.texi (History and Acknowledgments): Small rephrasing.

4 years agoorg.texi (Template elements): Add a footnote about tags accepted in a year datetree
Bastien Guerry [Thu, 18 Apr 2013 10:45:07 +0000 (12:45 +0200)]
org.texi (Template elements): Add a footnote about tags accepted in a year datetree

* org.texi (Template elements): Add a footnote about tags
accepted in a year datetree.

4 years agoMerge branch 'master' of
Bastien Guerry [Thu, 18 Apr 2013 10:31:05 +0000 (12:31 +0200)]
Merge branch 'master' of

4 years agoMerge branch 'master-apply-aaron-patch2'
Bastien Guerry [Thu, 18 Apr 2013 10:28:03 +0000 (12:28 +0200)]
Merge branch 'master-apply-aaron-patch2'


4 years agoClean up various org-babel-*-maybe commands
Aaron Ecay [Thu, 18 Apr 2013 08:06:55 +0000 (04:06 -0400)]
Clean up various org-babel-*-maybe commands

* lisp/ob-core.el (org-babel-when-in-src-block): New macro.
  (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.

4 years agoMerge branch 'master' of
Christian Egli [Thu, 18 Apr 2013 10:24:32 +0000 (12:24 +0200)]
Merge branch 'master' of

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

4 years agoox-taskjuggler: Set the default reports to work out-of-the-box with tj3
Christian Egli [Thu, 18 Apr 2013 10:23:08 +0000 (12:23 +0200)]
ox-taskjuggler: Set the default reports to work out-of-the-box with tj3

* ox-taskjuggler.el (org-taskjuggler-default-reports): Set the default
reports so that the user gets a good out-of-the-box experience with

The defaults in the defcustom now out-of-the-box support tj3. If you
really want to export to taskjuggler 2.x the documentation explains
how you can do that.

4 years agoorg-datetree.el: Be more restrictive when finding a year datetree
Bastien Guerry [Thu, 18 Apr 2013 10:20:08 +0000 (12:20 +0200)]
org-datetree.el: Be more restrictive when finding a year datetree

* org-datetree.el (org-datetree-find-month-create)
(org-datetree-find-day-create): Add a docstring.
(org-datetree-find-year-create): Only match headlines with a
year or a year and one or more tags.

Thanks to Suvayu Ali for reporting this.

4 years agoorg.texi: Enhance style.
Bastien Guerry [Thu, 18 Apr 2013 10:04:48 +0000 (12:04 +0200)]
org.texi: Enhance style.

* org.texi (Beamer export, @LaTeX{} and PDF export)
(Header and sectioning, @LaTeX{} specific attributes): Enhance

Thanks to Thomas Dye for these suggestions.

4 years agoFix bug in org-babel-execute-src-block
Aaron Ecay [Thu, 18 Apr 2013 08:02:47 +0000 (04:02 -0400)]
Fix bug in org-babel-execute-src-block

* lisp/ob-core.el (org-babel-execute-src-block): Use `copy-tree'
to prevent setf from modifying users variables withing let-bound
`info' variable.

Otherwise, the setf calls in this function can reach into and change
other configuration variables, such as the library of babel.

4 years agoAdd 'inline-only option to org-export-babel-evaluate
Aaron Ecay [Sun, 31 Mar 2013 22:47:44 +0000 (18:47 -0400)]
Add 'inline-only option to org-export-babel-evaluate

* lisp/ob-exp.el (org-export-babel-evaluate): Add a 'inline-only option.
  (org-babel-exp-results): Implement 'inline-only for
* doc/org.texi (Exporting code blocks): Document the 'inline-only setting
  for `org-export-babel-evaluate'.

This is useful because there is no way for inline results to be stored.
The imagined usecase is that all non-inline source blocks will be
evaluated manually by the user.  Inline blocks, however, must be
evaluated during export, or they will be simply deleted by the exporter.

4 years agoMerge branch 'master' of
Bastien Guerry [Thu, 18 Apr 2013 08:29:12 +0000 (10:29 +0200)]
Merge branch 'master' of

4 years agoUse `org-add-hook' in some places and merge Emacs revno r112320
Bastien Guerry [Thu, 18 Apr 2013 08:29:00 +0000 (10:29 +0200)]
Use `org-add-hook' in some places and merge Emacs revno r112320

* ox.el (org-export-stack-mode)
* org-crypt.el (org-crypt-check-auto-save)
(org-crypt-use-before-save-magic): Use `org-add-hook' when the
hooks are local hooks.

* org-indent.el (org-indent-mode)
* org-agenda.el (org-agenda-mode): Use `org-add-hook' and
merge upstream change from Emacs revno r112320.

4 years agoob-core.el (org-babel-pop-to-session-maybe): Fix docstring
Bastien Guerry [Thu, 18 Apr 2013 08:22:34 +0000 (10:22 +0200)]
ob-core.el (org-babel-pop-to-session-maybe): Fix docstring

* ob-core.el (org-babel-pop-to-session-maybe): Fix docstring.
(org-babel-pop-to-session-maybe): Use true function's name,
not its alias.

4 years agoox-latex: Handle consecutive alterning sub and superscript
Nicolas Goaziou [Wed, 17 Apr 2013 22:06:06 +0000 (00:06 +0200)]
ox-latex: Handle consecutive alterning sub and superscript

* lisp/ox-latex.el (org-latex--script-size): Handle consecutive
  alterning sub and superscript.

This patch fixes export of "a^b_c" constructs.

4 years agoox-org.el: Fix some docstrings
Nicolas Goaziou [Wed, 17 Apr 2013 20:44:28 +0000 (22:44 +0200)]
ox-org.el: Fix some docstrings

* lisp/ox-org.el (org-org-identity): Fix docstring.  Tiny refactoring.
(org-org-headline, org-org-keyword): Fix docstring.

4 years agoorg.texi: Improve documentation for export settings
Nicolas Goaziou [Wed, 17 Apr 2013 19:53:22 +0000 (21:53 +0200)]
org.texi: Improve documentation for export settings

* doc/org.texi (Export settings): Improve documentation.

4 years agoorg.texi: Small fixes to HTML documentation
Nicolas Goaziou [Wed, 17 Apr 2013 19:33:34 +0000 (21:33 +0200)]
org.texi: Small fixes to HTML documentation

* doc/org.texi (Math formatting in HTML export): Fix OPTIONS item's name.
(Text areas in HTML export): Update text areas.
(HTML Export commands): Update export commands.

4 years agoob-perl: fix result handling
Achim Gratz [Wed, 17 Apr 2013 19:38:21 +0000 (21:38 +0200)]
ob-perl: fix result handling

* lisp/ob-perl.el (org-babel-perl-wrapper-method): Select output
  handle only after evaluation so that output is not mixed into
  results eavaluation.
  (org-babel-perl-evaluate): Fix the handling of results for ":results
  output" to also parse tables.  Use the same lambda construction as
  in ob-sh.el to avoid code duplication.

4 years agoox-latex: Use \text command for subscript and superscript
Nicolas Goaziou [Wed, 17 Apr 2013 18:56:32 +0000 (20:56 +0200)]
ox-latex: Use \text command for subscript and superscript

* lisp/ox-latex.el (org-latex--script-size): Use \text command for
  subscript and superscript.  This is far superior to \mathrm, but it
  requires "amstext" package.  In particular, accented characters are
  now allowed within sub/superscript.
* lisp/org.el (org-latex-default-packages-alist): Add "amstext"

4 years agoox-latex: Better handling of sub/superscript within sub/superscript
Nicolas Goaziou [Wed, 17 Apr 2013 18:57:21 +0000 (20:57 +0200)]
ox-latex: Better handling of sub/superscript within sub/superscript

* lisp/ox-latex.el (org-latex--script-size): Fix error when using
  sub/superscript within sub/superscript.

4 years agoorg.texi (Agenda commands): Add a footnote
Bastien Guerry [Wed, 17 Apr 2013 18:34:28 +0000 (20:34 +0200)]
org.texi (Agenda commands): Add a footnote

* org.texi (Agenda commands): Add a footnote about dragging
agenda lines: it does not persist and it does not change the
.org files.

4 years agoorg-agenda.el: New commands for dragging a line forward/backward
Bastien Guerry [Wed, 17 Apr 2013 18:25:02 +0000 (20:25 +0200)]
org-agenda.el: New commands for dragging a line forward/backward

* org-agenda.el (org-agenda-drag-line-forward)
(org-agenda-drag-line-backward): New commands.
(org-agenda-mode-map): Bind the new commands to M-<down> and
M-<up> respectively.

* org.texi (Agenda commands): Add a table heading for dragging
agenda lines forward/backward.

4 years agoox-latex: Improve subscript/superscript export
Nicolas Goaziou [Wed, 17 Apr 2013 16:43:01 +0000 (18:43 +0200)]
ox-latex: Improve subscript/superscript export

* lisp/ox-latex.el (org-latex--script-size): New function.
(org-latex-subscript, org-latex-superscript): Use new function.

4 years agoox-taskjuggler: Fix checkdoc warnings
Christian Egli [Wed, 17 Apr 2013 15:43:46 +0000 (17:43 +0200)]
ox-taskjuggler: Fix checkdoc warnings

* ox-taskjuggler.el (org-taskjuggler-assign-task-ids,
org-taskjuggler-assign-resource-ids, org-taskjuggler-get-id,
org-taskjuggler-project-plan):  Fix checkdoc warnings.

4 years agoox-taskjuggler: Fix compilation warnings
Christian Egli [Wed, 17 Apr 2013 14:01:07 +0000 (16:01 +0200)]
ox-taskjuggler: Fix compilation warnings

* ox-taskjuggler.el (org-taskjuggler--build-task,
org-taskjuggler--build-project): Fix compilation warnings.

4 years agoorg.el (org-insert-heading): Fix insertion of items
Bastien Guerry [Wed, 17 Apr 2013 08:10:34 +0000 (10:10 +0200)]
org.el (org-insert-heading): Fix insertion of items

* org.el (org-insert-heading): Fix insertion of items.

4 years agoorg-capture.el (org-capture-use-agenda-date): Fix docstring
Bastien Guerry [Wed, 17 Apr 2013 05:00:59 +0000 (07:00 +0200)]
org-capture.el (org-capture-use-agenda-date): Fix docstring

* org-capture.el (org-capture-use-agenda-date): Fix docstring.

4 years agoorg.texi (Agenda commands): Add documentation for bulk marking commands
Bastien Guerry [Wed, 17 Apr 2013 05:00:35 +0000 (07:00 +0200)]
org.texi (Agenda commands): Add documentation for bulk marking commands

* org.texi (Agenda commands): Add documentation for
`org-agenda-bulk-toggle' and `org-agenda-bulk-toggle-all'.

4 years agoorg-agenda.el: (org-agenda-bulk-toggle-all): New command
Bastien Guerry [Tue, 16 Apr 2013 20:02:07 +0000 (22:02 +0200)]
org-agenda.el: (org-agenda-bulk-toggle-all): New command

* org-agenda.el (org-agenda-bulk-toggle): Fix docstring.
(org-agenda-bulk-toggle-all): New command.
(org-agenda-mode-map): Bind `org-agenda-bulk-toggle' to `M-m'
and `org-agenda-bulk-toggle-all' to `M-*'.
(org-agenda-menu): Add `org-agenda-bulk-toggle' and
(org-agenda-bulk-mark, org-agenda-bulk-unmark): Jump to the
next headline, not the next line.

4 years agoorg.texi (Publishing options): Update the list of options
Bastien Guerry [Tue, 16 Apr 2013 16:55:10 +0000 (18:55 +0200)]
org.texi (Publishing options): Update the list of options

* org.texi (Publishing options): Update the list of options.
(Simple example, Complex example): Fix the examples.

4 years agoorg-capture.el (org-mks): Fix bug.
Bastien Guerry [Tue, 16 Apr 2013 16:27:11 +0000 (18:27 +0200)]
org-capture.el (org-mks): Fix bug.

* org-capture.el (org-mks): Fix bug: let-bind
`case-fold-search' to nil while matching the first letter of a
multi-letters template.

Thanks to Robert Goldman for reporting this bug and providing the fix.

4 years agoorg.texi (Formula syntax for Calc): Don't use a bold font the warning
Bastien Guerry [Tue, 16 Apr 2013 14:40:35 +0000 (16:40 +0200)]
org.texi (Formula syntax for Calc): Don't use a bold font the warning

* org.texi (Formula syntax for Calc): Don't use a bold font
the warning.

4 years agoorg.el (org-store-link): When a bracket link is found in a headline, use the link...
Bastien Guerry [Tue, 16 Apr 2013 14:05:55 +0000 (16:05 +0200)]
org.el (org-store-link): When a bracket link is found in a headline, use the link description or the link path

* org.el (org-store-link): When a bracket link is found in a
headline, use the link description or the link path.

4 years agoox/ox-latex: Fix docstrings
Nicolas Goaziou [Tue, 16 Apr 2013 10:54:05 +0000 (12:54 +0200)]
ox/ox-latex: Fix docstrings

* lisp/ox-latex.el: Remove instructions since everything is documented
  in Org manual.
* lisp/ox.el (org-export-with-smart-quotes): Use LATEX instead of
  LaTeX for keywords, the latter being hard to type, somewhat
  difficult to read, and overall just pedantic.

4 years agoorg-man.el: Fix code typo
Nicolas Goaziou [Tue, 16 Apr 2013 10:51:08 +0000 (12:51 +0200)]
org-man.el: Fix code typo

* contrib/lisp/org-man.el (org-man-export): Fix code typo.