org-mode.git
60 min agoob-table.el (org-sbe): Minor enhancements master
Bastien Guerry [Fri, 18 Apr 2014 12:09:37 +0000]
ob-table.el (org-sbe): Minor enhancements

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

73 min 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.

108 min 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.

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

117 min agoorg-bibtex.el (org-bibtex-no-export-tags): Fix docstring maint
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.

17 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

17 hours 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.

17 hours 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.

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

Thanks to Nicolas for spotting this.

20 hours 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

21 hours 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.

21 hours 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.

21 hours 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.

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

Conflicts:
lisp/ox-latex.el

22 hours 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

22 hours 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.

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

22 hours 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.

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

25 hours 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.

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

25 hours 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.

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

26 hours 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.

26 hours 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.

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

Conflicts:
lisp/org-clock.el

27 hours 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

27 hours 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.

27 hours 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

27 hours 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.

27 hours 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.

27 hours 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'.

27 hours 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.

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

This reverts commit fc1f7d752fcd526909f0bb619cb9b3568c87665f.

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

This reverts commit f61cd6b7a17507dbcbd96a105d6c2e59a5b087b4.

28 hours 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.

28 hours 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.

28 hours 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.

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

28 hours 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.

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

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

29 hours 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.

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

29 hours 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.

30 hours 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

30 hours 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

30 hours 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

35 hours 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.

35 hours 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.

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

36 hours 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.

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

38 hours 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.

44 hours 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.

44 hours 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.

45 hours 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.

45 hours 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

45 hours 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.

45 hours 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.

46 hours 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.

2 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

3 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.

3 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>

4 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.

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

Conflicts:
lisp/ox-html.el

4 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 "//".

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

Conflicts:
lisp/ox-html.el

4 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.

4 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

5 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.

6 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

6 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.

6 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

6 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

7 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

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

Conflicts:
lisp/org.el

7 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

7 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.

7 days agoonly wrap R code graphics-file on execution
Eric Schulte [Mon, 24 Mar 2014 02:01:37 +0000]
only wrap R code graphics-file on execution

  Move this out of the expand-body function so that it is *never*
  applied to tangled code.

7 days agoox-latex: Improve error report after compilation
Nicolas Goaziou [Sat, 29 Mar 2014 20:56:43 +0000]
ox-latex: Improve error report after compilation

* lisp/ox-latex.el (org-latex-known-warnings): New variable.
(org-latex-known-errors): Remove variable.
(org-latex-compile): Report correctly when pdf file was not produced.
Catch all errors from process.  Report some warnings.
(org-latex--collect-warnings): New function.
(org-latex--collect-errors): Remove function.

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

7 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 10 Apr 2014 21:01:20 +0000]
Merge branch 'maint'

7 days agoMake Org links compatible with URI syntax
Nicolas Goaziou [Fri, 28 Mar 2014 18:24:38 +0000]
Make Org links compatible with URI syntax

* lisp/org.el (org-make-link-regexps): Allow optional double slashes
  after type.  Small refactoring.

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

This patch allows to write both [[file:/file.org]] and [[file:///file.org]].
See bug#16751.

7 days agoFix COMMENT keyword when stacked with a regular keyword
Nicolas Goaziou [Mon, 24 Mar 2014 20:46:00 +0000]
Fix COMMENT keyword when stacked with a regular keyword

* lisp/org.el (org-set-font-lock-defaults): Fix headline fontification
  when keywords are stacked.
(org-toggle-comment): Properly toggle COMMENT keyword when a regular
keyword is already present.
(org-todo, org-agenda-prepare-buffers): Correctly match a commented
heading.
* lisp/org-colview.el (org-columns-capture-view): Correctly match
  a commented heading.

* testing/lisp/test-org.el (test-org/toggle-comment): New test.

8 days agoob-clojure.el: revert cl-case back to case
Oleh Krehel [Thu, 10 Apr 2014 10:51:31 +0000]
ob-clojure.el: revert cl-case back to case

* lisp/ob-clojure.el (org-babel-execute:clojure): Revert cl-case back
  to case.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 10 Apr 2014 09:56:13 +0000]
Merge branch 'maint'

8 days agoorg-test: Small code clean-up
Nicolas Goaziou [Thu, 10 Apr 2014 09:53:27 +0000]
org-test: Small code clean-up

* testing/org-test.el (org-test-with-temp-text): Clean-up code.

8 days agoorg-test: Fix <point> feature
York Zhao [Wed, 9 Apr 2014 17:39:16 +0000]
org-test: Fix <point> feature

* testing/org-test.el (org-test-with-temp-text): Fix point position.

According to the docstring, if the string "<point>" appears in TEXT
then the string "<point>" is removed and point is placed there. The
problem was that after string "<point>" was removed, the point
was *not* placed at the position of the removed text, rather, it was
placed one character before that position which is wrong. The reason
is that Emacs buffer position is a number started from 1, instead of
0, in other words, the value of `(point-min)' is 1 not 0. The problem
is addressed by adding 1 to the calculated position.

TINYCHANGE

8 days agoob-clojure: adapt to new cider
Oleh Krehel [Thu, 10 Apr 2014 08:17:21 +0000]
ob-clojure: adapt to new cider

* lisp/ob-clojure.el (org-babel-expand-body:clojure): Don't handle
  output here, since the result becomes double quoted with current
  cider. Move to `org-babel-execute:clojure' instead.

  (org-babel-execute:clojure): Use `nrepl-send-string-sync' instead
  of `cider-eval-sync', which was removed.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 9 Apr 2014 21:49:49 +0000]
Merge branch 'maint'

8 days agoorg-element: Tiny refactoring
Nicolas Goaziou [Wed, 9 Apr 2014 21:49:04 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element-headline-parser): Tiny refactoring.

8 days agoorg-element: Tiny fix to headline parsing
Nicolas Goaziou [Wed, 9 Apr 2014 21:26:05 +0000]
org-element: Tiny fix to headline parsing

* lisp/org-element.el (org-element-headline-parser): Correctly parse
  blank lines after a headline.

Thanks to Thorsten Jolitz for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/84753

9 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 8 Apr 2014 16:59:06 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-element.el

9 days agoorg-element: Fix table parsing with missing final bar
Nicolas Goaziou [Tue, 8 Apr 2014 16:46:41 +0000]
org-element: Fix table parsing with missing final bar

* lisp/org-element.el (org-element-table-cell-parser,
  org-element-table-cell-successor): Recognize cell even when last
  vertical bar is missing.

* testing/lisp/test-org-element.el (test-org-element/table-cell-parser):
  Add test.

Thanks to Thorsten Jolitz for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/84713

11 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 6 Apr 2014 17:59:13 +0000]
Merge branch 'maint'

11 days agoox-latex.el: Downcase language name in minted blocks
Michael Weylandt [Sun, 6 Apr 2014 17:26:19 +0000]
ox-latex.el: Downcase language name in minted blocks

* lisp/ox-latex.el (org-latex-export-to-latex): Downcase the language
name when using minted highlighting for src block exports.

Minted, by convention, uses all lowercase names for languages.  This
will handle mappings like "R" to "r" or "Python" to "python"
automatically.  More complex renamings still need to be handled by
customizing `org-latex-minted-langs'.

Note that the `downcase' is only applied when using the "automatic"
name.  Names in `org-latex-minted-langs' still need to be lower-case.

TINYCHANGE

12 days agoox-latex.el: support sideways :float options for tables and figures
Greg Tucker-Kellogg [Sun, 6 Apr 2014 09:55:38 +0000]
ox-latex.el: support sideways :float options for tables and figures

* lisp/ox-latex.el (org-latex--inline-image): support a 'sideways
option for the float, and add case to handle it with a \sideaysfigure
in the export.
(org-latex--org-table): support "sideways" instead of deprecated
"sidewaystable".  The latter is still handled for backward
compatibility.

* doc/org.texi (Tables in LaTeX export): Document use of :float
  sideways.
(Images in LaTeX export): Document use of :float sideways.

This patch provides consistent :float sideways support for LaTeX
export of both figures and tables.

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

TINYCHANGE

12 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 6 Apr 2014 12:08:16 +0000]
Merge branch 'maint'

12 days agoox-md: Fix handling of switches in source blocks
Nicolas Goaziou [Sun, 6 Apr 2014 12:06:08 +0000]
ox-md: Fix handling of switches in source blocks

* lisp/ox-md.el (org-md-example-block): handle switches and references
  in source blocks.

13 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 5 Apr 2014 07:51:36 +0000]
Merge branch 'maint'