org-mode.git
86 min agoob-latex: Define LaTeX-specific headers master
Nicolas Goaziou [Wed, 27 May 2015 10:23:59 +0000]
ob-latex: Define LaTeX-specific headers

* lisp/ob-latex.el (org-babel-header-args:latex): New variable.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97905>

13 hours agoob-core: Do not return results on writing to file
Bjarte Johansen [Tue, 26 May 2015 10:54:14 +0000]
ob-core: Do not return results on writing to file

* ob-core (org-babel-result-cond): Add "file" as a param that returns
  a scalar result.

When writing the result to file we do not need to first convert the
data to a table since it is just converted back when
org-babel-execute-src-block serializes the result to file.

16 hours agoorg-src: Change ambiguous variable name
Nicolas Goaziou [Tue, 26 May 2015 19:47:05 +0000]
org-src: Change ambiguous variable name

* lisp/org-src.el (org-src--preserve-indentation): New variable.
(org-src--contents-for-write-back):
(org-src--edit-element):
(org-edit-src-code): Use new change.

Before this change `org-src-preserve-indentation' was both a defcustom
and an internal local variable.  Both uses are now separated.

16 hours agoob-lilypond: Fix a few variables
Nicolas Goaziou [Tue, 26 May 2015 19:37:04 +0000]
ob-lilypond: Fix a few variables

* lisp/ob-lilypond.el (org-babel-lilypond-ly-command):
(org-babel-lilypond-pdf-command):
(org-babel-lilypond-midi-command): Turn into a defvar.  Improve
docstring.
(org-babel-lilypond-gen-png):
(org-babel-lilypond-gen-svg):
(org-babel-lilypond-gen-html):
(org-babel-lilypond-gen-pdf):
(org-babel-lilypond-use-eps):
(org-babel-lilypond-arrange-mode): Improve docstring.

16 hours agotest-ob: Simplify a test
Nicolas Goaziou [Tue, 26 May 2015 19:24:20 +0000]
test-ob: Simplify a test

* testing/lisp/test-ob.el (test-org-babel/inline-src-blocks): Make
  test self-contained.  Do not use `macrolet' either.

20 hours agoorg-src: Fix auto-save feature
Nicolas Goaziou [Tue, 26 May 2015 15:06:53 +0000]
org-src: Fix auto-save feature

* lisp/org-src.el (org-src-mode): Do not stop auto save feature when
  current buffer is no longer an edit buffer.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97892>

21 hours agoFix visibility with `org-cycle-separator-lines' at -1
Nicolas Goaziou [Tue, 26 May 2015 14:00:21 +0000]
Fix visibility with `org-cycle-separator-lines' at -1

* lisp/org.el (org-cycle-show-empty-lines): Fix visibility cycling
  with `org-cycle-separator-lines' set to -1.

Reported-by: Michael Crouch <creidieki@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97879>

27 hours agoob-core: Fix indented cached result returning nil
Bjarte Johansen [Sun, 24 May 2015 11:42:20 +0000]
ob-core: Fix indented cached result returning nil

Fix a problem where a source block would return nil oif the result was
cached and it was indented.

* lisp/ob-core.el (org-babel-execute-src-block): Move point to the the
 first character of the result instead of the beginning of the line.

* testing/lisp/test-ob.el
 (test-org-babel/indented-cached-org-bracket-link): Added test to
 to see if the indented cached result returns what it should return.

27 hours agoORG-NEWS: Document caption changes in Texinfo back-end
Nicolas Goaziou [Tue, 26 May 2015 08:07:18 +0000]
ORG-NEWS: Document caption changes in Texinfo back-end

27 hours agoox-texinfo: Handle listings with captions and list of listings
Nicolas Goaziou [Tue, 26 May 2015 08:02:36 +0000]
ox-texinfo: Handle listings with captions and list of listings

* lisp/ox-texinfo.el (org-texinfo-keyword): Handle "#+TOC: listings".
(org-texinfo-src-block): Wrap listings with captions within @float.

27 hours agoox-texinfo: Handle tables with captions and list of tables
Nicolas Goaziou [Tue, 26 May 2015 07:52:02 +0000]
ox-texinfo: Handle tables with captions and list of tables

* lisp/ox-texinfo.el (org-texinfo-table): Wrap captionned tables
  within a @float command.
(org-texinfo-keyword): Handle "#+TOC: tables".

28 hours agoox-texinfo.el: Refactor caption code
Nicolas Goaziou [Tue, 26 May 2015 07:37:43 +0000]
ox-texinfo.el: Refactor caption code

* lisp/ox-texinfo.el (org-texinfo--wrap-float): New function.
(org-texinfo--inline-image): Use new function.

28 hours agoox-texinfo: Rename an internal function
Nicolas Goaziou [Tue, 26 May 2015 07:22:53 +0000]
ox-texinfo: Rename an internal function

* lisp/ox-texinfo.el (org-texinfo--filter-section-blank-lines):
  Renamed from `org-texinfo-filter-section-blank-lines'.
(texinfo): Apply renaming.

28 hours agoox-texinfo: Improve caption handling
Nicolas Goaziou [Tue, 26 May 2015 07:18:00 +0000]
ox-texinfo: Improve caption handling

* lisp/ox-texinfo.el (org-texinfo--inline-image): Apply appropriate
  restrictions if caption is meant to be also used in list of floats.

36 hours agoorg-src: Fix error when editing footnote references
Nicolas Goaziou [Mon, 25 May 2015 23:17:34 +0000]
org-src: Fix error when editing footnote references

* lisp/org-src.el (org-src--contents-area): Define BEG and END.

36 hours agoorg.texi: Fix typo
Nicolas Goaziou [Mon, 25 May 2015 23:14:51 +0000]
org.texi: Fix typo

* doc/org.texi (Texinfo specific attributes): Fix typo.

36 hours agoox-texinfo: Handle @image
Nicolas Goaziou [Mon, 25 May 2015 22:55:13 +0000]
ox-texinfo: Handle @image

* lisp/ox-texinfo.el (org-texinfo-inline-image-rules): New variable.
(org-texinfo--inline-image): New function.
(org-texinfo-link): Use new function.

* doc/org.texi (Texinfo specific attributes):
* etc/ORG-NEWS:  Document new feature.

37 hours agoox-texinfo: Offer to open produced file from dispatcher
Nicolas Goaziou [Mon, 25 May 2015 21:55:00 +0000]
ox-texinfo: Offer to open produced file from dispatcher

* lisp/ox-texinfo.el (texinfo): Offer to open produced file from
  dispatcher.

File is opened through `org-open-file' since texinfo back-end can
output multiple formats.

3 days agoorg-src: Fix reference to free variable
Kyle Meyer [Sat, 23 May 2015 19:18:07 +0000]
org-src: Fix reference to free variable

* lisp/org-src.el (org-src--contents-area): Replace a let with let*.

4 days agoorg-src: Fix escaping in remote editing
Nicolas Goaziou [Fri, 22 May 2015 18:59:31 +0000]
org-src: Fix escaping in remote editing

* lisp/org-src.el (org-src--contents-area): Include contents to be
  inserted in the edit buffer in return value.
(org-src--edit-element): Apply change above.

Reported-by: Kyle Meyer <kyle@kyleam.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97784>

4 days agoob-core: Register :file-ext as allowed header argument
Nicolas Goaziou [Fri, 22 May 2015 16:53:38 +0000]
ob-core: Register :file-ext as allowed header argument

* lisp/ob-core.el (org-babel-common-header-args-w-values):
  Allow :file-ext.

Reported-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97786>

6 days agoorg.el: Fix bug in af6fdf30718158f
Rasmus [Wed, 20 May 2015 22:44:06 +0000]
org.el: Fix bug in af6fdf30718158f

* org.el (org-return): Fix bug when headline title is empty.

6 days agoorg.el: New function org-delete-indentation
Rasmus [Sat, 16 May 2015 15:19:03 +0000]
org.el: New function org-delete-indentation

* org.el (org-delete-indentation): New function.
  (org-mode-map): Bind org-delete-indentation to M-^.
* test-org.el (test-org-delete-indentation): Test org-delete-indentation.
* ORG-NEWS: Add entry on org-delete-indentation.

6 days agoorg.el: RET breaks headline text
Rasmus [Fri, 15 May 2015 11:08:11 +0000]
org.el: RET breaks headline text

* org.el (org-return): RET breaks headline text.
* test-org.el (test-org/return): Test org-return on headline text.
* ORG-NEWS: Add entry on new org-return behavior.

7 days agoFix two typos
Marco Wahl [Wed, 20 May 2015 08:58:49 +0000]
Fix two typos

* lisp/org.el: Fix in documentation of variable
  org-outline-path-complete-in-steps.

7 days agoMerge branch 'maint'
Bastien [Wed, 20 May 2015 06:00:54 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-list.el

7 days agolisp/org-{macs, list}.el: Fix lexical warnings maint
Stefan Monnier [Mon, 4 May 2015 15:32:43 +0000]
lisp/org-{macs, list}.el: Fix lexical warnings

    * lisp/org-{macs,list}.el: Fix lexical warnings

    * lisp/org-list.el (org-list-struct): Remove unused var `ind'.
    (org-list-get-next-item, org-list-get-prev-item)
    (org-list-get-children): Mark unused arg `struct'.
    (org-list-use-alpha-bul-p): Remove unused var `bul'.
    (org-toggle-checkbox): Mark unused var.
    (org-update-checkbox-count): Remove unused var `box-num'.
    (org-adapt-indentation): Declare.
    (org-list-parse-list): Declare var instead of adding a dummy duplicate.
    (org-list-send-list): Remove unused var `txt'.
    (org-list-to-latex, org-list-to-texinfo): Mark unused arg `params'.
    (org-list-to-subtree): Add prefix to dyn-bind var, and declare them.

    * lisp/org-macs.el: Use `declare'.
    (org-with-limited-levels): Declare dyn-bound vars.

7 days agoob-R: Allow more :results values
Nicolas Goaziou [Tue, 19 May 2015 21:22:11 +0000]
ob-R: Allow more :results values

* lisp/ob-R.el (org-babel-header-args:R): Allow "drawer" and "none",
  since they are supported in `org-babel-common-header-args-w-values'.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97683>

7 days agoFix `org-next-block'
Nicolas Goaziou [Tue, 19 May 2015 21:12:17 +0000]
Fix `org-next-block'

* lisp/org.el (org-next-block): Preserve match data, as specified in
  the docstring.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97707>

7 days agoob-core: Allow never-export as :eval value
Nicolas Goaziou [Tue, 19 May 2015 13:38:08 +0000]
ob-core: Allow never-export as :eval value

* lisp/ob-core.el (org-babel-common-header-args-w-values): Allow
  "never-export" as :eval value.

9 days agoorg-inlinetask: Fix visibility toggling
Nicolas Goaziou [Sun, 17 May 2015 17:22:12 +0000]
org-inlinetask: Fix visibility toggling

* lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Fix
  visibility toggling when starting with a link.

Reported-by: Anders Johansson <mejlaandersj@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97603>

10 days agoFix message format in org-notmuch-search-open
Christopher League [Fri, 15 May 2015 16:11:45 +0000]
Fix message format in org-notmuch-search-open

* org-notmuch.el (org-notmuch-search-open): Bug fix
When opening a notmuch-search link, we use =message= to display the
path at the bottom of the screen.  This would signal "Not enough
arguments for format string" when the path contained %-signs, as it is
likely to when the query contains spaces:
[[notmuch-search:tag:inbox%2520not%2520tag:bulk%2520org]]

That query appears to be double-escaped, which also might contribute
to the problem, but either way: we should use =(message "%s" str)= to
print arbitrary strings, not =(message str)=.

10 days agoorg-attach.el: Fix check for git annex
Erik Hetzner [Sun, 17 May 2015 02:10:09 +0000]
org-attach.el: Fix check for git annex

* lisp/org-attach.el (org-attach-commit): Check for .git/annex dir in
addition to annex dir in root git dir to ensure that git annex is used

TINYCHANGE

11 days agoMerge branch 'master' of orgmode.org:org-mode
Nicolas Goaziou [Fri, 15 May 2015 17:20:11 +0000]
Merge branch 'master' of orgmode.org:org-mode

11 days agoorg.texi: Remove unnecessary @quotation
Nicolas Goaziou [Fri, 15 May 2015 13:29:06 +0000]
org.texi: Remove unnecessary @quotation

* doc/org.texi (The export dispatcher):
(Languages): Remove @quotation.

11 days agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 15 May 2015 13:28:47 +0000]
org.texi: Fix typo

* doc/org.texi (Macro replacement): Fix typo.

11 days agoorg.texi: Add header separator in Babel languages table
Nicolas Goaziou [Fri, 15 May 2015 13:28:15 +0000]
org.texi: Add header separator in Babel languages table

* doc/org.texi (Languages): Add separator.

12 days agoox-html: Less generic names for table aligns.
Rasmus [Wed, 6 May 2015 14:08:44 +0000]
ox-html: Less generic names for table aligns.

* ox-html.el (org-html-style-default):
  (org-html-table-cell, org-html-table): Prefix left, right, center classes.
* test-org-table.el (test-org-table/to-html): Change classes.

Reported-by: Matt Price <moptop99@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97431>

12 days agoorg.texi: Fix typo
Nicolas Goaziou [Thu, 14 May 2015 14:16:35 +0000]
org.texi: Fix typo

* doc/org.texi (Languages): Fix typo.

12 days agoorg.texi: Reorder languages
Nicolas Goaziou [Thu, 14 May 2015 14:14:49 +0000]
org.texi: Reorder languages

* doc/org.texi (Languages): Reorder languages.

12 days agoorg.texi: Add Fortran to supported languages
Nicolas Goaziou [Thu, 14 May 2015 14:10:35 +0000]
org.texi: Add Fortran to supported languages

* doc/org.texi (Languages): Add Fortran.

Reported-by: Alain Cochard <Alain.Cochard@unistra.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/97534>

2 weeks agoorg-element: Tiny refactoring
Nicolas Goaziou [Wed, 13 May 2015 10:37:53 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element-link-parser): Use `string-to-char'
  instead of (aref STRING 0).

2 weeks agoImprove docstrings
Nicolas Goaziou [Wed, 13 May 2015 10:35:24 +0000]
Improve docstrings

* lisp/org.el (org-metaleft):
(org-metaright): Improve docstrings.

Suggested-by: Alain Cochard <Alain.Cochard@unistra.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/97509>

2 weeks agoox: Tiny refactoring
Nicolas Goaziou [Sun, 10 May 2015 23:33:24 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-resolve-fuzzy-link): Use `string-to-char'
  instead of (aref STRING 0).

2 weeks agoox: Tiny refactoring
Nicolas Goaziou [Sun, 10 May 2015 23:30:45 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-expand-include-keyword):
(org-export--prepare-file-contents):
(org-export-with-backend): Wrap line of code within 80 columns.
(org-export--inclusion-absolute-lines): Remove unecessary `format'
call for error message.

2 weeks agoorg-table: Fix durations extracted from node properties
Nicolas Goaziou [Sun, 10 May 2015 23:20:37 +0000]
org-table: Fix durations extracted from node properties

* lisp/org-table.el (org-table-formula-substitute-names): Convert
  durations when needed.  Refactor code.

* testing/lisp/test-org-table.el (test-org-table/duration): New test.

Reported-by: Daniele Pizzolli <dan@toel.it>
<http://permalink.gmane.org/gmane.emacs.orgmode/97252>

2 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Sun, 10 May 2015 09:58:34 +0000]
org.texi: Fix typo

* doc/org.texi (Macro replacement): Fix typo introduced in
  fa5f8c8f90440ce7e440148e2b7ee20a10d9f547.

2 weeks ago* etc/ORG-NEWS: Document new {{{property}}} optional argument
Nicolas Goaziou [Sun, 10 May 2015 09:57:02 +0000]
* etc/ORG-NEWS: Document new {{{property}}} optional argument

2 weeks agoAllow optional argument to {{{property}}} for remote entries
Nicolas Goaziou [Sun, 10 May 2015 09:48:13 +0000]
Allow optional argument to {{{property}}} for remote entries

* lisp/org-macro.el (org-macro-initialize-templates): "property"
  template accepts an optional argument, as a search option to grab
  properties from other headlines.

* doc/org.texi (Macro replacement): Document new feature.  Improve
  documentation.
(An example): Update documentation.

* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Add
  tests.

2 weeks agoorg-macro: Fix incomplete docstring
Nicolas Goaziou [Sun, 10 May 2015 08:05:46 +0000]
org-macro: Fix incomplete docstring

* lisp/org-macro.el (org-macro-replace-all): Document missing KEYWORDS
  optional argument.

2 weeks agotest-org-element: Add tests for latex fragments parsing
Nicolas Goaziou [Sat, 9 May 2015 08:01:35 +0000]
test-org-element: Add tests for latex fragments parsing

* testing/lisp/test-org-element.el (test-org-element/latex-fragment-parser):
  Add tests.

2 weeks agoFix detection of latex fragments
Titus von der Malsburg [Fri, 8 May 2015 22:25:06 +0000]
Fix detection of latex fragments

* org-element.el (org-element-latex-fragment-parser):
* org.el (org-latex-regexps): Fix the detection of latex
  fragments.  Uses syntax tables to detect whitespaces and punctuation
  marks following the final $ sign.

In order to qualify as a math delimiter, the final $ sign of a LaTeX
fragment has to be followed by a whitespace or punctuation mark but the
regexp used in the previous code matched only a small number of
punctuation marks and therefore missed some latex fragments.

2 weeks agoorg-capture: Fix "org-find-olp: Wrong type argument: stringp, nil"
Nicolas Goaziou [Fri, 8 May 2015 09:08:09 +0000]
org-capture: Fix "org-find-olp: Wrong type argument: stringp, nil"

* lisp/org-capture.el (org-capture-expand-file): Empyt string defaults
  to `org-default-notes-file'.
* lisp/org.el (org-default-notes-file): Do not fallback on
`remember-data-file' since "org-capture.el" is not based off
"remember.el" anymore.

Reported-by: Florian Lindner <mailinglists@xgm.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97448>

2 weeks agoFix TBLFM line handling
Nicolas Goaziou [Fri, 8 May 2015 08:46:07 +0000]
Fix TBLFM line handling

* lisp/org-table.el (org-table-TBLFM-begin-regexp): Take into
  consideration that table lines are not required to end with "|".
(org-table-calc-current-TBLFM): Properly clean markers at the end of
the process.
(org-table-TBLFM-begin): Small refactoring.
* lisp/org.el (org-at-TBLFM-p): Prevent false positives.

Suggested-by: Oleg Sivokon <olegsivokon@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97461>

2 weeks agoFix indentation in empty items
Nicolas Goaziou [Fri, 8 May 2015 08:08:11 +0000]
Fix indentation in empty items

* lisp/org.el (org--get-expected-indentation): Fix indentation on
  in empty items.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

Reported-by: Leo Ufimtsev <lufimtse@redhat.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97454>

2 weeks agoorg-element: Fix parsing bug in items
Nicolas Goaziou [Thu, 7 May 2015 21:45:41 +0000]
org-element: Fix parsing bug in items

* lisp/org-element.el (org-element-item-parser): When contents are
  empty, do not find a zero-width paragraph within.

2 weeks agoox-publish: Allow external references outside of publishing
Nicolas Goaziou [Thu, 7 May 2015 20:15:00 +0000]
ox-publish: Allow external references outside of publishing

* lisp/ox-publish.el (org-publish-resolve-external-link): Warn instead
  of throwing an error when a reference to a non-published external
  file is encountered.

2 weeks agoorg-list: Preserve newline characters when changing description lists
Nicolas Goaziou [Wed, 6 May 2015 23:16:32 +0000]
org-list: Preserve newline characters when changing description lists

* lisp/org-list.el (org-list-to-generic): Preserve newline characters
  after description in description lists.

Reported-by: Leo Ufimtsev <lufimtse@redhat.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97432>

2 weeks agoox-publish: Throw an error for external reference outside of publish
Nicolas Goaziou [Wed, 6 May 2015 22:57:22 +0000]
ox-publish: Throw an error for external reference outside of publish

* lisp/ox-publish.el (org-publish-resolve-external-link): Throw an
  error when trying to resolve an external reference while not in
  a publishing process.

Reported-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97420>

2 weeks agoox-publish: Fix space matching in external fuzzy links
Nicolas Goaziou [Wed, 6 May 2015 22:48:36 +0000]
ox-publish: Fix space matching in external fuzzy links

* lisp/ox-publish.el (org-publish--collect-references):
(org-publish-resolve-external-link): Treat consecutive blank
characters as a single space, not 0.

2 weeks agoorg-footnote: Make `org-footnote-create-definition' non-interactive
Nicolas Goaziou [Wed, 6 May 2015 21:23:54 +0000]
org-footnote: Make `org-footnote-create-definition' non-interactive

* lisp/org-footnote.el (org-footnote-create-definition): Remove
  `interactive' status.  Allow to insert definitions outside of
  narrowed part of buffer.  Preserve position.  Return beginning
  position of created definition.
(org-footnote-new):
(org-footnote-action): Apply changes above.

2 weeks agoorg-footnote: Rename `org-footnote-goto-local-insertion-point'
Nicolas Goaziou [Wed, 6 May 2015 21:21:10 +0000]
org-footnote: Rename `org-footnote-goto-local-insertion-point'

* lisp/org-footnote.el (org-footnote--goto-local-insertion-point):
  Renamed from `org-footnote-goto-local-insertion-point'.
(org-footnote-normalize): Use function above.  Small refactoring.

* testing/lisp/test-org-footnote.el (test-org-footnote/normalize-in-org):
  Small refactoring.

2 weeks agoorg-footnote: Add optional argument to `org-footnote-goto-definition'
Nicolas Goaziou [Wed, 6 May 2015 21:15:42 +0000]
org-footnote: Add optional argument to `org-footnote-goto-definition'

* lisp/org-footnote.el (org-footnote-goto-definition): Add an optional
  argument in order to avoid duplicating calls to
  `org-footnote-get-definition'.  Return non-nil when move was
  successful.

3 weeks agoorg-footnote: Fix type error when creating a new footnote
Nicolas Goaziou [Mon, 4 May 2015 07:38:32 +0000]
org-footnote: Fix type error when creating a new footnote

* lisp/org-footnote.el (org-footnote-get-definition): Fix type error
  when creating a new footnote.

When footnote definition is new, contents are nil.

3 weeks agoorg-footnote: Offer to widen buffer when trying to move to a definiton
Nicolas Goaziou [Sat, 2 May 2015 13:56:42 +0000]
org-footnote: Offer to widen buffer when trying to move to a definiton

* lisp/org-footnote.el (org-footnote-action): Offer to widen buffer if
  definition is outside of narrow part of buffer.

3 weeks agoorg-footnote: Fix `org-footnote-get-definition'
Nicolas Goaziou [Sat, 2 May 2015 13:34:31 +0000]
org-footnote: Fix `org-footnote-get-definition'

* lisp/org-footnote.el (org-footnote-get-definition): Footnotes
  definitions are global, so ignore narrowing right from the start.
  Also skip false positives.

3 weeks agoorg-src: Allow to edit inline footnote references
Nicolas Goaziou [Sat, 2 May 2015 06:37:37 +0000]
org-src: Allow to edit inline footnote references

* lisp/org-src.el (org-src--edit-element): Do not rely on :value to
  extract contents.  Small refactoring.
(org-src--contents-area): Renamed from
  `org-src--element-contents-area'.  Throw an error on unknown
  elements.
(org-src--on-datum-p): Rename from `org-src--on-element-p'.  Handle
objects.
(org-edit-export-block, org-edit-src-code,
org-edit-fixed-width-region, org-edit-table.el): Apply renaming.
(org-edit-src-save, org-edit-src-exit): Handle inline text.
(org-edit-src-exit): Allow empty or blank code.  Handle inline text.
(org-src--edit-element): Rename an argument
(org-edit-footnote-reference): Allow to edit inline definitions.

* etc/ORG-NEWS: Document new feature.

3 weeks agoorg-src: Make area being edited read-only
Nicolas Goaziou [Fri, 1 May 2015 19:14:19 +0000]
org-src: Make area being edited read-only

* lisp/org-src.el (org-src--make-source-overlay): Add read-only
  feature to overlay.
(org-edit-src-save): Adapt to change above.

3 weeks agoorg-src: Remove `org-src--type'
Nicolas Goaziou [Fri, 1 May 2015 16:46:33 +0000]
org-src: Remove `org-src--type'

* lisp/org-src.el (org-src--type): Remove variable.
(org-src--contents-for-write-back): Apply removal.
(org-edit-src-code): Add indentation in post-process.

3 weeks agoob-core: Remove `org-babel-src-name-w-name-regexp'
Nicolas Goaziou [Fri, 1 May 2015 12:28:15 +0000]
ob-core: Remove `org-babel-src-name-w-name-regexp'

* lisp/ob-core.el (org-babel-get-src-block-info):
(org-babel-src-block-names): Use
`org-babel-named-src-block-regexp-for-name' instead.

3 weeks agoob-core: Change `org-babel-named-src-block-regexp-for-name' signature
Nicolas Goaziou [Fri, 1 May 2015 12:23:49 +0000]
ob-core: Change `org-babel-named-src-block-regexp-for-name' signature

* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): Allow
  to match any name.

3 weeks agoob-core: Use `org-next-block'
Nicolas Goaziou [Fri, 1 May 2015 11:55:04 +0000]
ob-core: Use `org-next-block'

* lisp/ob-core.el (org-babel-find-named-block):
(org-babel-src-block-names): Use `org-next-block'.

3 weeks agoob-core: Fix regexp
Nicolas Goaziou [Fri, 1 May 2015 11:53:47 +0000]
ob-core: Fix regexp

* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): NAME
  needs no be the last affiliated keyword.

3 weeks agoFix `org-next-block'
Nicolas Goaziou [Fri, 1 May 2015 10:08:57 +0000]
Fix `org-next-block'

* lisp/org.el (org-next-block): Use Element API.

* testing/lisp/test-org.el (test-org/next-block):
(test-org/previous-block): New tests.

3 weeks agoorg-src: Fix "not in a sub-edit buffer" error on save
Nicolas Goaziou [Fri, 1 May 2015 08:29:05 +0000]
org-src: Fix "not in a sub-edit buffer" error on save

* lisp/org-src.el (org-src-mode): Fix "not in a sub-edit buffer" error
  on save.

Reported-by: Detlef Steuer <detlef.steuer@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97349>

3 weeks agoorg-src: Fix docstrings
Nicolas Goaziou [Fri, 1 May 2015 08:03:17 +0000]
org-src: Fix docstrings

* lisp/org-src.el (org-src-mode-hook):
(org-edit-src-code): Fix docstrings.

3 weeks agoorg-src: Fix docstrings
Nicolas Goaziou [Fri, 1 May 2015 07:49:14 +0000]
org-src: Fix docstrings

* lisp/org-src.el (org-src-mode-hook):
(org-src-mode): Fix docstring.
(org-src-mode-map): Refactor.

3 weeks agoorg-element: Tolerate missing space after colon in keywords
Nicolas Goaziou [Fri, 1 May 2015 07:23:35 +0000]
org-element: Tolerate missing space after colon in keywords

* lisp/org-element.el (org-element--set-regexps):
(org-element--affiliated-re): Tolerate missing space after colon in
keywords.

3 weeks agoorg.el: Fix use of org-open-at-point with shell and midnight cleaning
Luke Amdor [Tue, 28 Apr 2015 22:44:17 +0000]
org.el: Fix use of org-open-at-point with shell and midnight cleaning

* lisp/org.el (org-open-at-point): Make sure org shell output buffer
  is a string of buffer name before appending to
  `clean-buffer-list-kill-buffer-names' for cleaning later.

TINYCHANGE

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 29 Apr 2015 21:32:05 +0000]
Merge branch 'maint'

3 weeks agoorg-agenda: Fix invalid face error for priority #B
Nicolas Goaziou [Wed, 29 Apr 2015 21:29:36 +0000]
org-agenda: Fix invalid face error for priority #B

* lisp/org-agenda.el (org-agenda-fontify-priorities): Ensure face
  doesn't inherit from nil.

Reported-by: Renato <renatofdds@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97253>

4 weeks agoorg-src: Tiny fix
Nicolas Goaziou [Wed, 29 Apr 2015 11:25:34 +0000]
org-src: Tiny fix

* lisp/org-src.el (org-src-mode): Tiny fix.

4 weeks agoorg-src: Small fix to auto-save feature
Nicolas Goaziou [Wed, 29 Apr 2015 11:21:17 +0000]
org-src: Small fix to auto-save feature

* lisp/org-src.el (org-src-mode): Trigger auto-save even when current
  buffer is not and edit buffer.

4 weeks agoorg-src: Small refactoring
Nicolas Goaziou [Wed, 29 Apr 2015 11:16:21 +0000]
org-src: Small refactoring

* lisp/org-src.el (org-src--auto-save-timer): Renamed from
  `org-src--code-timer'.
(org-src--edit-element):
(org-src-mode): Enable auto-save features in minor mode.  Apply
variable renaming.

4 weeks agoMerge branch 'maint'
Bastien [Wed, 29 Apr 2015 05:57:07 +0000]
Merge branch 'maint'

4 weeks agoBackport commit 25166a91 from Emacs master branch.
Bastien [Wed, 29 Apr 2015 05:56:37 +0000]
Backport commit 25166a91 from Emacs master branch.

4 weeks agoob-core: Update allowed values for :eval header arg
Nicolas Goaziou [Tue, 28 Apr 2015 20:10:21 +0000]
ob-core: Update allowed values for :eval header arg

* lisp/ob-core.el (org-babel-common-header-args-w-values):
  Recognize :eval no.

Reported-by: Thomas S. Dye <tsd@tsdye.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97303>

4 weeks agoob-core: Update allowed values for :eval header arg
Nicolas Goaziou [Tue, 28 Apr 2015 07:50:35 +0000]
ob-core: Update allowed values for :eval header arg

* lisp/ob-core.el (org-babel-common-header-args-w-values): Add allowed
  values for :eval arg.

Reported-by: Thomas S. Dye <tsd@tsdye.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97272>

4 weeks agoFix `org-refresh-category-properties'
Konubinix [Tue, 28 Apr 2015 06:55:10 +0000]
Fix `org-refresh-category-properties'

* lisp/org.el (org-refresh-category-properties): Prevent the `put-text-property'
  to change the point in order to take into account the CATEGORY
  property in subtrees also.

* testing/lisp/test-org.el (test-org/entry-properties): Add test.

4 weeks agoox-odt: Fix defcustom keywords
Nicolas Goaziou [Mon, 27 Apr 2015 22:25:11 +0000]
ox-odt: Fix defcustom keywords

* lisp/ox-odt.el (org-odt-inline-image-rules): Update keywords.

Default value changed in 8e89c0e3b40bb2a140bbbb85def17b1c190eb158.

4 weeks agoMerge branch 'master' of orgmode.org:org-mode
Nicolas Goaziou [Mon, 27 Apr 2015 22:24:05 +0000]
Merge branch 'master' of orgmode.org:org-mode

4 weeks agoorg-src: Fix editing remotely empty footnote definitions
Nicolas Goaziou [Mon, 27 Apr 2015 22:22:20 +0000]
org-src: Fix editing remotely empty footnote definitions

* lisp/org-src.el (org-src--element-contents-area):
(org-edit-footnote-reference): Take into consideration
that :contents-begin and :contents-end may be nil.

Reported-by: Rasmus <rasmus@gmx.us>
<http://permalink.gmane.org/gmane.emacs.orgmode/97262>

4 weeks agoox-odt: Allow attaching SVG images by default
Vicente Vera Parra [Mon, 27 Apr 2015 21:02:22 +0000]
ox-odt: Allow attaching SVG images by default

* lisp/ox-odt.el (org-odt-inline-image-rules): Modify default rule to
  allow including inline SVG images in exported ODT documents.

TINYCHANGE

4 weeks agoorg.texi: Document C-c ' key for footnotes
Rasmus [Mon, 27 Apr 2015 13:04:49 +0000]
org.texi: Document C-c ' key for footnotes

* org.texi (Footnotes): Add documentation on C-c '.

4 weeks agoox-latex: Use standard LaTeX label prefixes
Rasmus [Mon, 20 Apr 2015 13:06:55 +0000]
ox-latex: Use standard LaTeX label prefixes

* ox-latex.el (org-latex--label): Use standard LaTeX prefixes.
  (org-latex-math-environments-re): New defconst.

4 weeks agoorg-element: Fix parapraph parsing
Nicolas Goaziou [Mon, 27 Apr 2015 20:24:00 +0000]
org-element: Fix parapraph parsing

* lisp/org-element.el (org-element--set-regexps): Refine
  `org-element-paragraph-separate'.
(org-element-paragraph-parser): Fix paragraph parsing when followed by
a dual keyword or an ill-formed latex environment.

* testing/lisp/test-org-element.el (test-org-element/paragraph-parser):
  Add tests.

Reported-by: Jacob Gerlach <jacobgerlach@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97256>

4 weeks agoox: Refresh buffer properties after including files
Nicolas Goaziou [Mon, 27 Apr 2015 18:40:28 +0000]
ox: Refresh buffer properties after including files

* lisp/ox.el (org-export-as): Call `org-set-regexps-and-options'.

Suggested-by: Detlef Steuer <detlef.steuer@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97244>

4 weeks agoox-latex: Allow alt titles in starred sectionning commands
Nicolas Goaziou [Mon, 27 Apr 2015 15:43:18 +0000]
ox-latex: Allow alt titles in starred sectionning commands

* lisp/ox-latex.el (org-latex-headline): Allow alt titles in starred
  sectionning commands.

Reported-by: Vikas Rawal <vikaslists@agrarianresearch.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/97242>

4 weeks agoMerge branch 'maint'
Bastien [Mon, 27 Apr 2015 12:17:00 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el

4 weeks agoorg-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent...
Stefan Monnier [Thu, 16 Apr 2015 02:04:45 +0000]
org-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent to the shell.

* org-clock.el (org-x11idle-exists-p): Be honest about which
command is actually sent to the shell.