org-mode.git
3 min agotest-org-element: Add tests for links master
Nicolas Goaziou [Sat, 19 Apr 2014 19:28:34 +0000]
test-org-element: Add tests for links

* testing/lisp/test-org-element.el (test-org-element/link-parser): add
  tests.

70 min agotest-org: Tiny clean-up
Nicolas Goaziou [Sat, 19 Apr 2014 18:27:21 +0000]
test-org: Tiny clean-up

* testing/lisp/test-org.el (test-org/update-radio-target-regexp): Tiny
  clean-up.

3 hours agoFix cache update when radio targets are being refreshed
Nicolas Goaziou [Sat, 19 Apr 2014 12:38:25 +0000]
Fix cache update when radio targets are being refreshed

* lisp/org-element.el (org-element-cache-refresh): New function.
* lisp/org.el (org-update-radio-target-regexp): Make it standalone.
  Also refresh fontification only when necessary.
(org-all-targets, org-make-target-link-regexp): Remove functions.

* testing/lisp/test-org.el (test-org/update-radio-target-regexp): New
  test
(test-org/all-targets): Remove test.

We need to manually reset cache on radio links as re-fontification
doesn't trigger a buffer change, and, as a consequence, a cache reset.

4 hours agoMerge branch 'maint'
Bastien Guerry [Sat, 19 Apr 2014 14:40:24 +0000]
Merge branch 'maint'

4 hours agoorg-bibtex.el (org-bibtex-headline): Don't throw an error maint
Bastien Guerry [Sat, 19 Apr 2014 14:40:11 +0000]
org-bibtex.el (org-bibtex-headline): Don't throw an error

* org-bibtex.el (org-bibtex-headline): Don't throw an error
when trying to add a keyword field to a BibTeX entry that is
not known by BibTeX or defined by the user.

Thanks to Leonard Randall for reporting this and suggesting a fix.

5 hours agoMerge branch 'maint'
Bastien Guerry [Sat, 19 Apr 2014 14:29:27 +0000]
Merge branch 'maint'

5 hours agoorg-bibtex.el (org-bibtex): Fix docstring
Bastien Guerry [Sat, 19 Apr 2014 14:22:15 +0000]
org-bibtex.el (org-bibtex): Fix docstring

* org-bibtex.el (org-bibtex): Fix docstring.

Thanks to Leonard Randall for reporting this.

6 hours agoRevert "ob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim"
Bastien Guerry [Sat, 19 Apr 2014 12:54:48 +0000]
Revert "ob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim"

This reverts commit a13e133f5a5330f82683fe490d6d697d9aa55c51.

6 hours agoMinor updates on org-trim, org-babel-chomp and org-babel-trim
Bastien Guerry [Sat, 19 Apr 2014 12:43:28 +0000]
Minor updates on org-trim, org-babel-chomp and org-babel-trim

* org.el (org-trim): Make a defsubst, use `replace-regexp-in-string'.

* ob-core.el (org-babel-chomp, org-babel-trim): Fix docstrings.

7 hours agoRevert "Alias `org-babel-trim' and `org-babel-chomp' to `org-trim' and `org-trim...
Bastien Guerry [Sat, 19 Apr 2014 12:36:00 +0000]
Revert "Alias `org-babel-trim' and `org-babel-chomp' to `org-trim' and `org-trim-trailing'."

This reverts commit 7925d42d43c35093c2a7b943fc44d36043f9786d.

7 hours agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 19 Apr 2014 12:27:27 +0000]
Merge branch 'master' of orgmode.org:org-mode

11 hours agoorg-agenda.el (org-agenda-error): Add docstring
Bastien Guerry [Sat, 19 Apr 2014 08:04:21 +0000]
org-agenda.el (org-agenda-error): Add docstring

* org-agenda.el (org-agenda-error): Add docstring.

23 hours agoorg-bibtex: Fix docstrings
Nicolas Goaziou [Fri, 18 Apr 2014 19:39:35 +0000]
org-bibtex: Fix docstrings

* lisp/org-bibtex.el (org-bibtex-inherit-tags,
org-bibtex-no-export-tags, org-bibtex-tags-are-keywords): Fix
docstrings.

24 hours agoMerge branch 'maint'
Bastien Guerry [Fri, 18 Apr 2014 19:33:52 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el

24 hours agoFix `org-clock-put-overlay' again.
Bastien Guerry [Fri, 18 Apr 2014 19:30:12 +0000]
Fix `org-clock-put-overlay' again.

28 hours agoorg-bibtex.el: New option `org-bibtex-inherit-tags'
Leonard Randall [Fri, 18 Apr 2014 14:45:44 +0000]
org-bibtex.el: New option `org-bibtex-inherit-tags'

* org-bibtex.el (org-bibtex-tags-are-keywords): Enhance
docstring.
(org-bibtex-inherit-tags): New option.
(org-bibtex-headline): Use the new option.

TINYCHANGE

28 hours agoMerge branch 'maint'
Bastien Guerry [Fri, 18 Apr 2014 14:41:29 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el

29 hours agoFix `org-clock-put-overlay'
Bastien Guerry [Fri, 18 Apr 2014 14:35:27 +0000]
Fix `org-clock-put-overlay'

30 hours agoAlias `org-babel-trim' and `org-babel-chomp' to `org-trim' and `org-trim-trailing'.
Bastien Guerry [Fri, 18 Apr 2014 13:11:42 +0000]
Alias `org-babel-trim' and `org-babel-chomp' to `org-trim' and `org-trim-trailing'.

* org.el (org-trim): Rewrite and make a defsubst.

* org-bibtex.el (org-bibtex-get): Use `org-trim' instead of
`org-babel-trim'.

* ob-core.el (org-babel-trim): Delete and alias to `org-trim'.
(org-babel-chomp): Delete and alias to `org-trim-trailing'.
(org-trim-trailing): New defsubst.
(org-babel-examplize-region): Fix version.

30 hours agoob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim
Bastien Guerry [Fri, 18 Apr 2014 12:49:21 +0000]
ob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim

* ob-tangle.el (org-babel-spec-to-string): Don't use
`org-babel-trim'.

30 hours agoob-ocaml.el (org-babel-execute:ocaml): Code cleanup
Bastien Guerry [Fri, 18 Apr 2014 12:47:46 +0000]
ob-ocaml.el (org-babel-execute:ocaml): Code cleanup

* ob-ocaml.el (org-babel-execute:ocaml): Code cleanup.

31 hours agoob-table.el (org-sbe): Minor enhancements
Bastien Guerry [Fri, 18 Apr 2014 12:09:37 +0000]
ob-table.el (org-sbe): Minor enhancements

* ob-table.el (org-sbe): Minor enhancements.

31 hours agoorg.el (org-do-emphasis-faces): Fix docstring
Bastien Guerry [Fri, 18 Apr 2014 11:56:41 +0000]
org.el (org-do-emphasis-faces): Fix docstring

* org.el (org-do-emphasis-faces): Fix docstring.

32 hours agoorg.texi (Property syntax, noweb-ref): Minor fixes
Bastien Guerry [Fri, 18 Apr 2014 11:21:37 +0000]
org.texi (Property syntax, noweb-ref): Minor fixes

* org.texi (Property syntax, noweb-ref): Minor fixes.

32 hours agoMerge branch 'maint'
Bastien Guerry [Fri, 18 Apr 2014 11:12:55 +0000]
Merge branch 'maint'

32 hours agoorg-bibtex.el (org-bibtex-no-export-tags): Fix docstring
Bastien Guerry [Fri, 18 Apr 2014 11:12:34 +0000]
org-bibtex.el (org-bibtex-no-export-tags): Fix docstring

* org-bibtex.el (org-bibtex-no-export-tags): Fix docstring.

Thanks to Leonard Randall for the fix.

47 hours agoBetter handling for "mailto" links
Nicolas Goaziou [Thu, 17 Apr 2014 19:44:50 +0000]
Better handling for "mailto" links

* lisp/org.el (org-link-mailto-program): Remove variable.
(org-open-at-point): Delegate "mailto" links handling to `browse-url'
and `browse-url-mailto-function'.

This patch allows to use regular URI syntax and deprecates old Org
specific syntax: mailto:user@domain::Title.

http://permalink.gmane.org/gmane.emacs.orgmode/85007

2 days agoorg-element: Fix infloop at the end of an incomplete table row
Nicolas Goaziou [Thu, 17 Apr 2014 19:37:07 +0000]
org-element: Fix infloop at the end of an incomplete table row

* lisp/org-element.el (org-element-context): Fix infloop.  Be more
  cautious when point is at the end of buffer.

* testing/lisp/test-org-element.el (test-org-element/context): Add
  test.

2 days agoFix list item class attribute.
Rick Frankel [Thu, 17 Apr 2014 16:40:26 +0000]
Fix list item class attribute.

* lisp/ox-html.el (org-html-format-list-item): Make sure checkbox type
  class attribute only added to list item if item is a checkbox.

2 days agoFix commit 53aab23e70
Bastien Guerry [Thu, 17 Apr 2014 16:22:53 +0000]
Fix commit 53aab23e70

Thanks to Nicolas for spotting this.

2 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 17 Apr 2014 16:13:50 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 days agoorg.texi (Feedback): Add a link to the mailman subscription page
Bastien Guerry [Thu, 17 Apr 2014 16:04:33 +0000]
org.texi (Feedback): Add a link to the mailman subscription page

* org.texi (Feedback): Add a link to the mailman subscription
page.

2 days agoSmall fix
Nicolas Goaziou [Thu, 17 Apr 2014 15:35:48 +0000]
Small fix

* contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files,
org-bibtex-process-bib-files): Use correct encoding.

* lisp/ox.el (org-export-dictionary): Update "Reference" entry.

2 days agoox.el (org-export-dictionary): Add "References"
Bastien Guerry [Thu, 17 Apr 2014 15:25:03 +0000]
ox.el (org-export-dictionary): Add "References"

* ox.el (org-export-dictionary): Add "References".

* contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files):
Translate "References" according to the export language.

Thanks to Julian Gehring for suggesting this.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 15:11:35 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-latex.el

2 days agoox-latex.el (org-latex-src-block): Fix wrong propagation of labels and captions
Bastien Guerry [Thu, 17 Apr 2014 15:09:11 +0000]
ox-latex.el (org-latex-src-block): Fix wrong propagation of labels and captions

* ox-latex.el (org-latex-src-block): Fix wrong propagation of
labels and captions when using the listings environment.

Thanks to Dominik Ernst for reporting this:
http://article.gmane.org/gmane.emacs.orgmode/84932

2 days agoox.el (org-export-copy-to-kill-ring): Default to nil
Bastien Guerry [Thu, 17 Apr 2014 14:31:56 +0000]
ox.el (org-export-copy-to-kill-ring): Default to nil

* ox.el (org-export-copy-to-kill-ring): Default to nil.

2 days agoComplete previous patch
Bastien Guerry [Thu, 17 Apr 2014 14:20:48 +0000]
Complete previous patch

2 days agoorg.el (org-insert-heading): Minor docstring enhancement
Bastien Guerry [Thu, 17 Apr 2014 14:15:48 +0000]
org.el (org-insert-heading): Minor docstring enhancement

* org.el (org-insert-heading): Minor docstring enhancement.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 11:38:41 +0000]
Merge branch 'maint'

2 days agoorg.texi (Installation): Fix documentation bug
Bastien Guerry [Thu, 17 Apr 2014 11:38:29 +0000]
org.texi (Installation): Fix documentation bug

* org.texi (Installation): Be more clear on why installing Org
through ELPA should be done without loading any Org file.

This is a very common pitfall that needs to be considered a
documentation bug.

2 days agoFix commit 5ec31814
Bastien Guerry [Thu, 17 Apr 2014 11:19:15 +0000]
Fix commit 5ec31814

2 days agoorg-clock.el (org-clock-put-overlay): Minor enhancements
Bastien Guerry [Thu, 17 Apr 2014 11:10:09 +0000]
org-clock.el (org-clock-put-overlay): Minor enhancements

* org-clock.el (org-clock-put-overlay): Don't use a line of
dots anymore.  Enhance display of time.

Thanks to Noah Slater for suggesting this.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 10:52:04 +0000]
Merge branch 'maint'

2 days agoorg.el (org-sort-entries): Fix the number of blank lines to keep for the last entry...
Bastien Guerry [Thu, 17 Apr 2014 10:51:49 +0000]
org.el (org-sort-entries): Fix the number of blank lines to keep for the last entry to sort

* org.el (org-sort-entries): Fix the number of blank lines to
keep for the last entry to sort.

Thanks to Kyle Meyer for raising this issue.

2 days agoorg.texi (Beamer export): Update example to let it display a table of contents
Bastien Guerry [Thu, 17 Apr 2014 10:09:53 +0000]
org.texi (Beamer export): Update example to let it display a table of contents

* org.texi (Beamer export): Update example to let it display a
table of contents.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 09:42:16 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el

2 days agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Thu, 17 Apr 2014 09:39:02 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 days agoorg-clock.el (org-clock-put-overlay): Fix display when `org-indent-mode' is on
Bastien Guerry [Thu, 17 Apr 2014 09:38:53 +0000]
org-clock.el (org-clock-put-overlay): Fix display when `org-indent-mode' is on

* org-clock.el (org-clock-put-overlay): Fix display when
`org-indent-mode' is on.

Thanks to Christoph Groth for reporting this.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 17 Apr 2014 09:34:54 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-element.el
lisp/ox-html.el

2 days agoUpdate export back-ends wrt "file" link changes
Nicolas Goaziou [Thu, 17 Apr 2014 07:15:09 +0000]
Update export back-ends wrt "file" link changes

* lisp/ox-latex.el (org-latex-link):
* lisp/ox-html.el (org-html-link):  Do not expand absolute file names
  and do not try to fix hierarchy part, as it is already taken care of
  at the parser level.

* lisp/ox-md.el (org-md-link): Ditto.  Also fix absolute file names.

* lisp/ox-odt.el (org-odt-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-texinfo.el (org-texinfo-link):
* contrib/lisp/ox-groff.el (org-groff-link): Ditto.  Do not prepend
  scheme part to relative file names either.

* contrib/lisp/ox-deck.el (org-deck-link): Small refactoring.

2 days agoorg-element: Fix ill-defined "file" type links
Nicolas Goaziou [Thu, 17 Apr 2014 06:44:37 +0000]
org-element: Fix ill-defined "file" type links

* lisp/org-element.el (org-element-link-parser): Fix ill-defined
  "file" type links.  Expand absolute file names in the process.

Org accepts invalid URI syntax for absolute "file" links, e.g.,
file:/home/user/file.txt.  This patch normalizes them.

2 days agoSmall refactoring
Nicolas Goaziou [Thu, 17 Apr 2014 06:42:14 +0000]
Small refactoring

* lisp/org.el (org-make-link-regexps): Use `regexp-opt' instead of
  `mapconcat' and `regexp-quote'.

2 days agoRevert "Make Org links compatible with URI syntax"
Nicolas Goaziou [Thu, 17 Apr 2014 06:41:14 +0000]
Revert "Make Org links compatible with URI syntax"

This reverts commit 3589f64e42dfbc894e789c2a9fba530eac36c665.

2 days agoRevert "Fix link export"
Nicolas Goaziou [Wed, 16 Apr 2014 20:46:53 +0000]
Revert "Fix link export"

This reverts commit fc1f7d752fcd526909f0bb619cb9b3568c87665f.

2 days agoRevert "Fix mailto links"
Nicolas Goaziou [Wed, 16 Apr 2014 20:46:30 +0000]
Revert "Fix mailto links"

This reverts commit f61cd6b7a17507dbcbd96a105d6c2e59a5b087b4.

2 days agoorg.el (org-sort-entries): Allow to sort by clocking time
Bastien Guerry [Thu, 17 Apr 2014 08:30:44 +0000]
org.el (org-sort-entries): Allow to sort by clocking time

* org.el (org-sort-entries): Allow to sort by clocking time.

Thanks to Noah Slater for this idea.

2 days agoRevert "org.el (org-sort-entries): Allow to sort by clocking time"
Bastien Guerry [Thu, 17 Apr 2014 08:32:23 +0000]
Revert "org.el (org-sort-entries): Allow to sort by clocking time"

This reverts commit 1cca8f534fdfcb34d2bce53a179604f6f8f491f2.

2 days agoorg.el (org-sort-entries): Allow to sort by clocking time
Bastien Guerry [Thu, 17 Apr 2014 08:30:44 +0000]
org.el (org-sort-entries): Allow to sort by clocking time

* org.el (org-sort-entries): Allow to sort by clocking time.

Thanks to Noah Slater for this idea.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 08:20:32 +0000]
Merge branch 'maint'

2 days agoMinor enhancements to displaying clocks as overlays
Bastien Guerry [Thu, 17 Apr 2014 08:19:58 +0000]
Minor enhancements to displaying clocks as overlays

* org-faces.el (org-clock-overlay): Use a gray background and
don't inherit the foreground.

* org-clock.el (org-clock-put-overlay): Don't add the stars.

2 days agoFix previous commit
Bastien Guerry [Thu, 17 Apr 2014 08:18:32 +0000]
Fix previous commit

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 07:56:11 +0000]
Merge branch 'maint'

2 days agoorg-agenda.el (org-agenda-finalize): Apply all filters correctly
Bastien Guerry [Thu, 17 Apr 2014 07:55:57 +0000]
org-agenda.el (org-agenda-finalize): Apply all filters correctly

* org-agenda.el (org-agenda-finalize): Apply all filters
correctly.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 07:18:19 +0000]
Merge branch 'maint'

2 days agoorg.el (org-update-dblock): Use `save-excursion'
Bastien Guerry [Thu, 17 Apr 2014 07:18:08 +0000]
org.el (org-update-dblock): Use `save-excursion'

* org.el (org-update-dblock): Use `save-excursion' instead of
`save-window-excursion' so that blocks can edit other windows and
change the window layout.

Thanks to Martin for reporting this.

2 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 17 Apr 2014 06:42:49 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 days agoOrg babel: Add function and keybinding to remove result blocks
Michael Weylandt [Sun, 13 Apr 2014 16:58:31 +0000]
Org babel: Add function and keybinding to remove result blocks

* ob-core.el (org-babel-remove-result-one-or-many): New function.

* ob-keys.el (org-babel-key-bindings): Add a keybinding for the
new function `org-babel-remove-result-one-or-many'.

TINYCHANGE

2 days agoKeybinding to remove result blocks
Michael Weylandt [Sun, 13 Apr 2014 16:58:31 +0000]
Keybinding to remove result blocks

* ob-core.el (org-babel-remove-result-one-or-many): New function.
* ob-keys.el: Keybinding for new function org-babel-remove-result-one-or-many

TINYCHANGE

2 days agoAdd classes to checkbox list elements.
Rick Frankel [Wed, 16 Apr 2014 17:39:20 +0000]
Add classes to checkbox list elements.

* lisp/ox-html.el (org-html-format-list-item): Add the appropriate
  class `on', `off' or `trans' (the tri-state checkbox types) to the
  list elements in checkbox lists.

2 days agoProcess html attributes on paragraphs.
Rick Frankel [Wed, 16 Apr 2014 15:11:17 +0000]
Process html attributes on paragraphs.

* lisp/ox-html.el (org-html-paragraph): Add processed html attributes
  to paragraph tag.

2 days agoMerge branch 'maint'
Bastien Guerry [Thu, 17 Apr 2014 00:31:37 +0000]
Merge branch 'maint'

2 days agoorg-agenda.el: Fix bug when displaying the changed date
Bastien Guerry [Thu, 17 Apr 2014 00:31:23 +0000]
org-agenda.el: Fix bug when displaying the changed date

* org-agenda.el (org-agenda-mode): Disable `indent-tabs-mode'.
(org-agenda-dim-blocked-tasks): Make overlays intangible.
(org-agenda-show-new-time): Fix bug when deleting a timestamp
right after changing it.
(org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item)
(org-agenda-get-sexps, org-agenda-filter-by-regexp)
(org-agenda-filter-top-headline-apply): Fix indentation.

Thanks to Fletcher Charest and Nick Dokos for reporting issues
in this area.

There is one bug left: in a filtered agenda, changing a timestamp
will not always correctly display the warning.  This happens when
the headline at point is followed by hidden headlines, because
`org-agenda-show-new-time' tries to set a text property at a
point where there is an overlay that hides then text.  Because
the overlay is now intangible, the warning text will be displayed
too far on the right, and may be outside of the window.

2 days agoMerge branch 'maint'
Bastien Guerry [Wed, 16 Apr 2014 22:35:39 +0000]
Merge branch 'maint'

2 days agoRevert "org-agenda.el: Fix bug when using `org-agenda-do-date-later' in filtered...
Bastien Guerry [Wed, 16 Apr 2014 22:35:14 +0000]
Revert "org-agenda.el: Fix bug when using `org-agenda-do-date-later' in filtered agendas"

This reverts commit 3559ff84b244dae2109131507804b21126e0b07c.

3 days agoorg.el (org-insert-heading): Fix code typo
Bastien Guerry [Wed, 16 Apr 2014 16:28:26 +0000]
org.el (org-insert-heading): Fix code typo

* org.el (org-insert-heading): Fix code typo.

Thanks to Thorsten Jolitz for reporting this and to Nicolas Richard
for his comments.

3 days agoLet sort-by-time handle [H]H:MM strings and add a :sort parameter for clocktables
Bastien Guerry [Wed, 16 Apr 2014 16:23:47 +0000]
Let sort-by-time handle [H]H:MM strings and add a :sort parameter for clocktables

* org-clock.el (org-clocktable-write-default): New parameter
":sort" to sort a column by a sorting type.  E.g., a value of
:sort (1 . ?a) will sort the first column alphabetically.  The
sorting line is the third one, table-wise, which is usually
the first line that contains user data.

* org.texi (The clock table): Document the new :sort
parameter.

* org.el (org-do-sort): Recognize [H]H:MM strings as time
values and allow sort-by-time to process them.

* org-table.el (org-table-sort-lines): Mention that sorting by
time also recognize [H]H:MM time values.

3 days agoorg.el (org-create-dblock): Tiny docstring fix
Bastien Guerry [Wed, 16 Apr 2014 15:49:19 +0000]
org.el (org-create-dblock): Tiny docstring fix

* org.el (org-create-dblock): Tiny docstring fix.

3 days agoAdd clarification to `:no-expand' header argument
Rainer M. Krug [Tue, 8 Apr 2014 19:51:48 +0000]
Add clarification to `:no-expand' header argument

* doc/org.texi (no-expand): Added statement to clarify that this
  header argument has no impact on the execution of a code block.

TINYCHANGE

3 days agoob-dot.el: Substitute variables literally
Alan Schmitt [Thu, 27 Mar 2014 12:35:31 +0000]
ob-dot.el: Substitute variables literally

* lisp/ob-dot.el (org-babel-expand-body:dot): Do not change the case
nor interpret '\' when substituting block variables.

3 days agoorg.el (org-cycle): Try `org-try-cdlatex-tab' before trying to edit/move as in a...
Bastien Guerry [Wed, 16 Apr 2014 15:25:08 +0000]
org.el (org-cycle): Try `org-try-cdlatex-tab' before trying to edit/move as in a table

* org.el (org-cycle): Try `org-try-cdlatex-tab' before trying
to edit/move as in a table.

Thanks to Konstantin Kliakhandler for reporting this.

3 days agoorg.texi (Agenda dispatcher): Small rewrite
Bastien Guerry [Wed, 16 Apr 2014 14:44:11 +0000]
org.texi (Agenda dispatcher): Small rewrite

* org.texi (Agenda dispatcher): Small rewrite.  Add a concept
to the concept index.

4 days agoFix fontification of radio links
Nicolas Goaziou [Tue, 15 Apr 2014 18:01:16 +0000]
Fix fontification of radio links

* lisp/org.el (org-set-font-lock-defaults): Fix fontification of radio
  links.

Thanks to Daniel Clemente for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/84927

4 days agowhitespace, indentation and a function renaming
Eric Schulte [Tue, 15 Apr 2014 03:30:32 +0000]
whitespace, indentation and a function renaming

* lisp/ob-shell.el (org-babel-variable-assignments:sh-generic):
  Whitespace and renaming to be shell specific.
  (org-babel-variable-assignments:bash_array): Whitespace.
  (org-babel-variable-assignments:bash_assoc): Whitespace.
  (org-babel-sh-var-to-sh): Whitespace.

4 days agoob-shell.el: export vars as arrays for 'sh' code blocks
Pascal Fleury [Fri, 11 Apr 2014 21:27:02 +0000]
ob-shell.el: export vars as arrays for 'sh' code blocks

* lisp/ob-shell.el: added support to serialize vars as arrays or associative arrays as appropriate if it is using bash.
* testing/examples/ob-shell-test.org: a file containing a few code blocks both illustrating the use of arrays as well as serving as test for the new export functionality.
* testing/lisp/test-ob-shell.el: added a few unit tests that verify that this new logic only triggers for bash and no other shell at this time.

When variables are defined in a 'sh' code block, they are exported as strings. when the variable itself is an array or a table, then we simply get a shell variable that contains the list of all values in a non-structured form.
When calling the code block with bash, however, it will now export the list as an array, the table as an associative array. A scalar is exported the same way as before.

Signed-off-by: Pascal Fleury <fleury@google.com>

5 days agoOrg-expiry: make code and doc consistent
Alan Schmitt [Mon, 14 Apr 2014 12:03:45 +0000]
Org-expiry: make code and doc consistent

* contrib/lisp/org-expiry.el (org-expiry-expired-p): make code and doc
string consistent.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 14 Apr 2014 11:56:05 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-html.el

5 days agoFix mailto links
Nicolas Goaziou [Mon, 14 Apr 2014 11:47:57 +0000]
Fix mailto links

* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-odt.el (org-odt-link):
* contrib/lisp/ox-groff.el (org-groff-link): "mailto" URI do not have
  an authority part, we do not append "//".

5 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 14 Apr 2014 10:41:38 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-html.el

5 days agoFix link export
Nicolas Goaziou [Mon, 14 Apr 2014 10:32:25 +0000]
Fix link export

* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-texinfo.el (org-texinfo-link): Append "//" after some link
  types.

* lisp/ox-md.el (org-md-link):
* contrib/lisp/ox-groff.el (org-groff-link): Ditto.  Also remove some
  unused code, as search options are already stripped out link's path.

Since 3589f64e42dfbc894e789c2a9fba530eac36c665, Org ignores "//" in
a link type so it has to be re-introduced upon exporting.

5 days agoob-clojure.el: fix behavior for :results pp
Oleh Krehel [Mon, 14 Apr 2014 10:28:02 +0000]
ob-clojure.el: fix behavior for :results pp

* lisp/ob-clojure.el (org-babel-expand-body:clojure): Simplify the
  pretty printing.
  (org-babel-execute:clojure): Check for "pp" in the parameters.

http://permalink.gmane.org/gmane.emacs.orgmode/84876

7 days agotest-ox: Tiny refactoring
Nicolas Goaziou [Sat, 12 Apr 2014 14:17:13 +0000]
test-ox: Tiny refactoring

* testing/lisp/test-ox.el (test-org-export/expand-include): Tiny
  refactoring.

7 days agoox: Make footnotes file specific when including Org files
Nicolas Goaziou [Wed, 26 Mar 2014 14:34:59 +0000]
ox: Make footnotes file specific when including Org files

* lisp/ox.el (org-export-expand-include-keyword,
  org-export--prepare-file-contents): Make footnotes file specific
  when including Org files.

* doc/org.texi (Include files): Add documentation.

* testing/lisp/test-ox.el (test-org-export/expand-include): Add tests.

http://permalink.gmane.org/gmane.emacs.orgmode/83606

7 days agoorg.texi: Update COMMENT keyword documentation
Nicolas Goaziou [Sat, 12 Apr 2014 08:59:01 +0000]
org.texi: Update COMMENT keyword documentation

* doc/org.texi (Comment lines):
* doc/orgguide.texi (Comment lines): Update COMMENT keyword
  documentation.  Small tense changes.

8 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 11 Apr 2014 19:33:08 +0000]
Merge branch 'master' of orgmode.org:org-mode

8 days agoNo alphanumeric characters around radio links
Nicolas Goaziou [Thu, 10 Apr 2014 20:23:27 +0000]
No alphanumeric characters around radio links

* lisp/org.el (org-make-target-link-regexp): Change regexp so
  alphanumeric characters cannot be found next to a radio link.
(org-activate-target-links): Apply changes to radio link regexp.

* lisp/org-element.el (org-element--object-lex,
  org-element-link-parser): Apply changes to radio link regexp.

* testing/lisp/test-org-element.el (test-org-element/link-parser):
  Update test.

Patch suggested by Daniel Clemente.
http://permalink.gmane.org/gmane.emacs.orgmode/84461

8 days agoAdd contrib/lisp/ox-gfm.el by Lars Tveito
Bastien Guerry [Fri, 11 Apr 2014 10:27:41 +0000]
Add contrib/lisp/ox-gfm.el by Lars Tveito

8 days agoMerge branch 'maint'
Bastien Guerry [Fri, 11 Apr 2014 10:22:48 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

8 days agoorg.el (org-refile): Allow org-refile goto from everywhere
Markus Hauck [Mon, 7 Apr 2014 17:21:43 +0000]
org.el (org-refile): Allow org-refile goto from everywhere

* lisp/org-agenda.el (org-refile): Flip logic to allow instead of
  prohibit the use of `org-refile' with the goto flat from non
  org-mode buffers.

In commit 49da67d the condition was changed from only
`(unless goto ...)` to `(unless (and goto (listp arg)) ...)`
where the `and` condition is only true for non-empty lists, so that
calling `(org-refile t)` complains about not being inside an org-mode
buffer.

With this patch org-refile can be used (again) from anywhere when
passed the goto flag to jump to the chosen task.

TINYCHANGE

8 days agoorg.el (org-refresh-properties): Don't throw an error when reaching the end of the...
Sacha Chua [Fri, 11 Apr 2014 09:28:45 +0000]
org.el (org-refresh-properties): Don't throw an error when reaching the end of the buffer

* org.el (org-refresh-properties): Don't throw an error when
reaching the end of the buffer.