org-mode.git
19 hours agoMerge branch 'maint' master
Nicolas Goaziou [Tue, 22 Jul 2014 09:55:33 +0000]
Merge branch 'maint'

19 hours agoorg-element: Fix regexp matching LaTeX environments maint
Nicolas Goaziou [Tue, 22 Jul 2014 09:52:32 +0000]
org-element: Fix regexp matching LaTeX environments

* lisp/org-element.el (org-element--current-element): Fix regexp
  matching latex environments.  Discrepancy with regexp used in
  `org-element-latex-environment-parser' introduced matching errors.

2 days agoorg-element: Small optimization
Nicolas Goaziou [Sun, 20 Jul 2014 17:22:00 +0000]
org-element: Small optimization

* lisp/org-element.el (org-element--cache-for-removal): Do not remove
a robust element whenever only its contents are modified.  Remove
inlinetasks as robust elements since modifying a node property inside
implies to parse the task again.

2 days agoorg-element: Fix infloop in cache
Nicolas Goaziou [Sun, 20 Jul 2014 15:50:23 +0000]
org-element: Fix infloop in cache

* lisp/org-element.el (org-element--cache-process-request): Take into
  consideration changes to come so as to avoid parsing elements with
  false beginning positions.
(org-element--cache-sync): Change signature.

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

2 days agoorg-element: Better collision handling in cache sync requests
Nicolas Goaziou [Sun, 20 Jul 2014 15:49:36 +0000]
org-element: Better collision handling in cache sync requests

* lisp/org-element.el (org-element--cache-process-request): Handle
  cases where procesing the first request brings us past the start of
  the next one.

4 days agoMerge branch 'maint'
Nick Dokos [Sat, 19 Jul 2014 03:47:03 +0000]
Merge branch 'maint'

Merge bug fix for org-table.el:org-table-clean-before-export.

4 days agoorg-clean-before-export matches non-special columns spuriously
Nick Dokos [Fri, 18 Jul 2014 13:09:38 +0000]
org-clean-before-export matches non-special columns spuriously

* org-table.el (org-table-clean-before-export): The regexes match
  spaces in addition to the special characters that might be used in
  the first column as special marking characters.  Remove the space
  from the character class.

  In addition, the `special' variable included a backslash which
  afaict does nothing: delete it.

  The function itself takes an optional parameter which is not used by
  any of the callers: get rid of it.  Getting rid of it allows a small
  simplification of the code.

The bug was found by Thorsten Grothe:

    http://thread.gmane.org/gmane.emacs.orgmode/88634

5 days agoorg-element: Fix re-parenting during cache synchronization
Nicolas Goaziou [Thu, 17 Jul 2014 16:11:49 +0000]
org-element: Fix re-parenting during cache synchronization

* lisp/org-element.el (org-element--cache-process-request): Correctly
  re-parent elements in cache in some corner cases.
* testing/lisp/test-org-element.el (test-org-element/cache): Add tests.

5 days agoorg-element: Fix corner case in cache synchronization
Nicolas Goaziou [Thu, 17 Jul 2014 16:08:06 +0000]
org-element: Fix corner case in cache synchronization

* lisp/org-element.el (org-element--cache-submit-request): When
  changes happen before first know element, start from phase 1 instead
  of phase 2 in order to properly re-parent subsequent elements, if
  needed.
(org-element--cache-process-request): Do not propagate beginning
position since it is already available to the request.

5 days agoorg-element: Fix "wrong-type-argument" error in cache
Nicolas Goaziou [Thu, 17 Jul 2014 13:46:42 +0000]
org-element: Fix "wrong-type-argument" error in cache

* lisp/org-element.el (org-element--cache-sync): Do not copy phase
  number into next request.  This is a special case that deserves to
  be handled locally.  See below.
(org-element--cache-process-request): Properly transfer phase in
a special case, which is now commented.  Also fix phase numbers in
comments.  Small refactoring.

Thanks to Alan Schmitt for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88406

6 days agoox: Fix inline footnote definitions
Nicolas Goaziou [Wed, 16 Jul 2014 14:11:52 +0000]
ox: Fix inline footnote definitions

* lisp/ox.el (org-export-collect-tree-properties): Make sure changes
  to the parse tree propagate to the value of
  `org-export-get-footnote-definition'.

Thanks to Florian Beck for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88419

9 days agocontrib/lisp/org-contacts.el: Fix a bug when contacts don't have an email address
Grégoire Jadi [Sun, 13 Jul 2014 10:33:34 +0000]
contrib/lisp/org-contacts.el: Fix a bug when contacts don't have an email address

* contrib/lisp/org-contacts.el (org-contacts-complete-tags-props,
org-contacts-complete-group): Fix a bug when contacts don't have an
email address.

9 days agocontrib/lisp/org-contacts.el: Complete contacts using tags and properties
Grégoire Jadi [Sun, 13 Jul 2014 10:28:49 +0000]
contrib/lisp/org-contacts.el: Complete contacts using tags and properties

* contrib/lisp/org-contacts.el (org-contacts-complete-tags-props): New
function that allows the user to retrieve contacts based on tags and
properties.

(org-contacts-complete-functions): Add
org-contacts-complete-tags-props to the completion functions.

(org-contacts-tags-props-prefix): Prefix used to detect the
completion method wished.

Based on the idea and implementation of John Kitchin

2 weeks agoorg-element: Avoid using a slow regexp
Nicolas Goaziou [Sun, 6 Jul 2014 21:55:48 +0000]
org-element: Avoid using a slow regexp

* lisp/org-element.el (org-element-latex-fragment-parser): Avoid using
  a slow regexp.

2 weeks agoorg-element: Small optimizations
Nicolas Goaziou [Sun, 6 Jul 2014 21:15:44 +0000]
org-element: Small optimizations

* lisp/org-element.el (org-element-latex-fragment-parser): Avoid
  matching twice regexps in some cases.
(org-element--object-lex): Avoid making a funcall if a line break
isn't possible.

This patch also removes the limit on the number of lines a latex
fragment with a single dollar can span over.

2 weeks agoorg-element: Fix docstring
Nicolas Goaziou [Sun, 6 Jul 2014 17:06:54 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-footnote-reference-interpreter):
  Fix docstring.

2 weeks agoorg-element: Remove :inline-definition from inline footnotes
Nicolas Goaziou [Sun, 6 Jul 2014 09:08:57 +0000]
org-element: Remove :inline-definition from inline footnotes

* lisp/org-element.el (org-element-recursive-objects): Add
  `footnote-reference'.
(org-element-secondary-value-alist): Remove reference to
`footnote-reference'.
(org-element-footnote-reference-parser): Definition for inline
references is stored as the contents of the reference, not in
a secondary string.
(org-element-footnote-reference-interpreter): Apply changes from
parser.

* lisp/ox.el (org-export-get-footnote-definition,
  org-export-get-environment): Apply changes from parser.

* testing/lisp/test-org-element.el (test-org-element/footnote-reference-parser):
  Update test.
(test-org-element/context): Add test.

Storing definition in a secondary string was a poor design choice as
there is no "primary" string anyway.  This also prevents
`org-element-context' from finding objects within the inline
definition.

2 weeks agoorg-element: Reach orphaned elements during cache sync
Nicolas Goaziou [Thu, 3 Jul 2014 20:10:47 +0000]
org-element: Reach orphaned elements during cache sync

* lisp/org-element.el (org-element--cache-sync-requests): Change
  pattern.
(org-element--cache-sync, org-element--cache-submit-request): Update
request pattern.
(org-element--cache-process-request): Remove orphaned elements during
first phase.

An orphaned element is an element not directly altered by changes to
buffer but with one of its parent removed.

2 weeks agoorg-element: Fix buffer positions when merging requests
Nicolas Goaziou [Thu, 3 Jul 2014 20:08:10 +0000]
org-element: Fix buffer positions when merging requests

* lisp/org-element.el (org-element--cache-submit-request): Correctly
  compute buffer positions where cache is missing, taking into account
  the request not yet applied.

2 weeks agoremove extra escape org-emphasis-regexp-components
Eric Schulte [Thu, 3 Jul 2014 11:58:13 +0000]
remove extra escape org-emphasis-regexp-components

  specifically in the second 'post' element

* lisp/org.el (org-emphasis-regexp-components): Remove extra escape
  org-emphasis-regexp-components, specifically in the second 'post'
  element.

2 weeks agoMerge branch 'maint'
Achim Gratz [Wed, 2 Jul 2014 18:33:04 +0000]
Merge branch 'maint'

2 weeks agomk/targets.mk: consider only release_* tags for constructing version strings
Achim Gratz [Wed, 2 Jul 2014 18:32:24 +0000]
mk/targets.mk: consider only release_* tags for constructing version strings

3 weeks agoorg-element: Fix corner case
Nicolas Goaziou [Mon, 30 Jun 2014 21:33:20 +0000]
org-element: Fix corner case

* lisp/org-element.el (org-element--cache-for-removal): Fix corner
  case when changes happen in a robust element (e.g., a center block)
  within a fragile element (e.g., a plain list).  Do not assume that
  all parents from a robust element are also robust.

3 weeks agoorg-element: Fix bug in sync request submission
Nicolas Goaziou [Mon, 30 Jun 2014 16:12:13 +0000]
org-element: Fix bug in sync request submission

* lisp/org-element.el (org-element--cache-submit-request): Do not
  modify ending position twice.

3 weeks agoorg-element: Improve sychronization request submission
Nicolas Goaziou [Mon, 30 Jun 2014 15:53:50 +0000]
org-element: Improve sychronization request submission

* lisp/org-element.el (org-element--cache-submit-request): Store
  parent of first element to delete, if any.  This saves a call to
  `org-element--cache-find' in a very common use case.
(org-element--cache-sync-requests): Update docstring accordingly.

3 weeks agoorg-element: Tiny refactoring
Nicolas Goaziou [Mon, 30 Jun 2014 15:53:13 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element--cache-submit-request): Tiny
  refactoring.

3 weeks agoorg-element: Better threshold computation during synchronization
Nicolas Goaziou [Mon, 30 Jun 2014 15:51:30 +0000]
org-element: Better threshold computation during synchronization

* lisp/org-element.el (org-element--cache-process-request): Threshold
  is based off beginning of the first element to shift instead of the
  end of the changes.

3 weeks agoorg-element: Simplify request processing
Nicolas Goaziou [Mon, 30 Jun 2014 15:39:21 +0000]
org-element: Simplify request processing

* lisp/org-element.el (org-element--cache-process-request): Do not try
  to find orphans for now.  Remove useless comments.  Refactor code.

3 weeks agoorg-element: Do not trust a stored request after cache sync
Nicolas Goaziou [Mon, 30 Jun 2014 13:34:40 +0000]
org-element: Do not trust a stored request after cache sync

* lisp/org-element.el (org-element--cache-submit-request): Do not
  trust a stored request after calling `org-element--cache-sync' since
  it may as well not exist anymore (i.e., the synchronization was
  complete).

3 weeks agoORG-NEWS: document user-visible changes
Achim Gratz [Mon, 30 Jun 2014 19:06:47 +0000]
ORG-NEWS: document user-visible changes

* etc/ORG-NEWS: Introduce Section for the pending 8.3 release and
  document user visible changes.

3 weeks agoorg-element: Small fix
Nicolas Goaziou [Sun, 29 Jun 2014 15:05:30 +0000]
org-element: Small fix

* lisp/org-element.el (org-element--cache-submit-request): Fix off by
  one error when updating cache.  Changes happening at the beginning
  to the previous ones, which are always located at the beginning of
  an element, imply to delete previous element.  Also do not call
  `org-element--cache-sync' if there's nothing to synchronize.

3 weeks agoorg-element: Tiny fix
Nicolas Goaziou [Sun, 29 Jun 2014 13:25:54 +0000]
org-element: Tiny fix

* lisp/org-element.el (org-element-headline-parser): Do not assume
  property drawers are correctly formed.

3 weeks agoorg-element: Fix inlinetask parsing
Nicolas Goaziou [Sun, 29 Jun 2014 13:23:22 +0000]
org-element: Fix inlinetask parsing

* lisp/org-element.el (org-element-inlinetask-parser): Do not infloop
  when parsing property drawer in an inlinetask.

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

Thanks to Aaron Ecay for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88133

3 weeks agoorg-element: Fix cache corruption when altering a drawer
Nicolas Goaziou [Fri, 27 Jun 2014 22:28:45 +0000]
org-element: Fix cache corruption when altering a drawer

* lisp/org-element.el (org-element--cache-submit-request): Correctly
  update cache when changes alter the contents of a greater
  element (e.g. a property drawer).

Thanks to Alan Schmitt for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88086

3 weeks agoorg-element: Fix parsing path starting with ~
Nicolas Goaziou [Fri, 27 Jun 2014 15:28:56 +0000]
org-element: Fix parsing path starting with ~

* lisp/org-element.el (org-element-link-parser): Do not prepend "//"
  to paths starting with "~".

Since b1dcd0fb0bec6b523c900bc1304fbe834c21697d, link parser doesn't
expand file names anymore. We need to prevent it from "fixing" paths
starting with "~", as it can cause trouble to some
exporters (e.g. latex).

3 weeks agoorg-element: Small refactoring
Nicolas Goaziou [Thu, 26 Jun 2014 20:00:27 +0000]
org-element: Small refactoring

* lisp/org-element.el (org-element--cache-generate-key): Small
  refactoring.

3 weeks agoorg-element: Use full range of integers for cache keys
Nicolas Goaziou [Thu, 26 Jun 2014 19:13:43 +0000]
org-element: Use full range of integers for cache keys

* lisp/org-element.el (org-element--cache-generate-key): Allow
  negative numbers in keys.  Small refactoring.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 26 Jun 2014 10:18:35 +0000]
Merge branch 'maint'

3 weeks agoox-ascii: Fix tables with a width cookie
Nicolas Goaziou [Thu, 26 Jun 2014 10:17:28 +0000]
ox-ascii: Fix tables with a width cookie

* lisp/ox-ascii.el (org-ascii--table-cell-width): Correctly export
  tables with width cookies.

3 weeks agoorg-element: Fix typo
Nicolas Goaziou [Wed, 25 Jun 2014 23:11:26 +0000]
org-element: Fix typo

* lisp/org-element.el (org-element--cache-generate-key): Fix typo in
  docstring.

3 weeks agoorg-element: More refactoring
Nicolas Goaziou [Wed, 25 Jun 2014 23:08:15 +0000]
org-element: More refactoring

* lisp/org-element.el (org-element--cache-generate-key): Refactor key
  computation.
(org-element--cache-default-key): Remove variable.

3 weeks agoorg-element: Refactoring
Nicolas Goaziou [Wed, 25 Jun 2014 21:48:21 +0000]
org-element: Refactoring

* lisp/org-element.el (org-element--cache-sensitive-re): New variable
(org-element--cache-opening-line, org-element--cache-closing-line):
Removed variables.
(org-element--cache-before-change, org-element--cache-after-change):
Refactoring.  Also simplify process.

3 weeks agoorg-element: Small cache fix
Nicolas Goaziou [Wed, 25 Jun 2014 21:51:04 +0000]
org-element: Small cache fix

* lisp/org-element.el (org-element--cache-before-change): Ignore case
  sensitivity when looking for a modified sensitive line.

3 weeks agorm dependency of ox-bibtex on org-bibtex-extras
Eric Schulte [Wed, 25 Jun 2014 16:42:14 +0000]
rm dependency of ox-bibtex on org-bibtex-extras

* contrib/lisp/org-bibtex-extras.el: Remove functions to find
  citations, moved into ox-bibtex.

* contrib/lisp/ox-bibtex.el: Add functionality to follow cite links.

3 weeks agodrop cite options for non-latex backends
Eric Schulte [Wed, 25 Jun 2014 11:13:11 +0000]
drop cite options for non-latex backends

These options break citation handling for these other backends, so we
should just drop them.

* contrib/lisp/ox-bibtex.el (org-bibtex-merge-contiguous-citations):
  Drop citation options for HTML and ASCII export.

3 weeks agoFix `org-drag-element-backward'
Nicolas Goaziou [Wed, 25 Jun 2014 08:49:52 +0000]
Fix `org-drag-element-backward'

* lisp/org.el (org-drag-element-backward): Correcly drag elements in
  a drawer or a block.
* testing/lisp/test-org.el (test-org/drag-element-backward): Add test.

4 weeks agoinhibit <p> wraps on a whole-list basis
Eric Schulte [Mon, 23 Jun 2014 21:33:18 +0000]
inhibit <p> wraps on a whole-list basis

* lisp/ox-html.el (org-html-paragraph): Extend the special case of
  inhibiting <p> wrappers to only perform such inhibition when *every*
  element of the list is a single paragraph long.  Otherwise unsightly
  spacing results.

4 weeks agoallow square brackets in emphasis post-match
Eric Schulte [Mon, 23 Jun 2014 21:45:13 +0000]
allow square brackets in emphasis post-match

* lisp/org.el (org-emphasis-regexp-components): Allow square brackets
  in the emphasis post match.

4 weeks agoorg-element: Fix thinko
Nicolas Goaziou [Mon, 23 Jun 2014 21:45:00 +0000]
org-element: Fix thinko

* lisp/org-element.el (org-element--cache-key-less-p): Fix thinko.

4 weeks agoob-shell: honor the specified shell for :session
Achim Gratz [Sun, 22 Jun 2014 09:16:41 +0000]
ob-shell: honor the specified shell for :session

* lisp/ob-shell.el: Remove defcustom `org-babel-sh-command' and
  replace with `shell-file-name' throughout.
  (org-babel-variable-assignments:sh): Make check for bash work in more
  cases.

The original code and the patched version rely on the shell being
available via PATH.  Instead the shell name should be mapped to the
appropriate executable via an alist and invoked via an absolute
filename.  For security reasons the permissible shells should probably
be taken from /etc/shells or equivalent by default.  Instead of
checking for bash, the same or another alist could provide the
information of whether or not the shell supports arrays (which indeed
were introduced by ksh originally).

4 weeks agoob-shell: stratify shell variable quoting
Achim Gratz [Thu, 19 Jun 2014 19:23:28 +0000]
ob-shell: stratify shell variable quoting

* lisp/ob-shell.el: Remove unused defcustom
  `org-babel-sh-var-quote-fmt'.
  (org-babel-variable-assignments:bash_array):
  (org-babel-variable-assignments:bash_assoc): Remove superfluous
  `mapcar' and double quotes around parameters.
  (org-babel-sh-var-to-sh): Single-quote the whole string and escape
  all single quotes in the original string.

4 weeks agoFix speedkeys to move subtrees up and down beta_8.3 release_8.3beta
Matt Lundin [Mon, 23 Jun 2014 14:17:54 +0000]
Fix speedkeys to move subtrees up and down

* lisp/org.el (org-speed-commands-default): Bind "U" and "D" to
`org-metaup' and `org-metadown'.

Org speed keys were not updated to reflect the recent changes to
org-shiftmetaup and org-shiftmetadown.  As a result the default
bindings for speedkeys "U" and "D" were destructive, since they moved
only single lines.  Binding them to org-metaup and org-metadown fixes
the problem.

Thanks to Marco Wahl for reporting the problem:
http://permalink.gmane.org/gmane.emacs.orgmode/87873

4 weeks agoorg-element: Fix cache
Nicolas Goaziou [Mon, 23 Jun 2014 10:28:11 +0000]
org-element: Fix cache

* lisp/org-element.el (org-element--cache-after-change): Preserve
  match data.

Thanks to Matt Lundin for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87871

4 weeks agoox-latex.el: Extends `org-latex-logfiles-extensions'
Rasmus [Sun, 22 Jun 2014 22:40:12 +0000]
ox-latex.el: Extends `org-latex-logfiles-extensions'

ox-latex.el (org-latex-logfiles-extensions): Add more extensions.

4 weeks agoMerge branch 'maint'
Bastien Guerry [Mon, 23 Jun 2014 07:45:48 +0000]
Merge branch 'maint'

4 weeks agoFix typos: backport revision r117377 from emacs trunk release_8.2.7b
Bastien Guerry [Mon, 23 Jun 2014 07:40:19 +0000]
Fix typos: backport revision r117377 from emacs trunk

4 weeks agomap alternate code blocks shell names to sh-mode
Eric Schulte [Sun, 22 Jun 2014 23:49:37 +0000]
map alternate code blocks shell names to sh-mode

* lisp/org-src.el (org-src-lang-modes): Map alternate shell names to
  sh-mode.

4 weeks agoorg: correct package-version for org-structure-template-alist
Achim Gratz [Sun, 22 Jun 2014 08:26:43 +0000]
org: correct package-version for org-structure-template-alist

* lisp/org.el (org-structure-template-alist): Package version should
  be a symbol name, not a string.

Fixes ce41c076c0.

4 weeks agolisp/ox-latex.el (org-latex-logfiles-extensions): add more extensions
Aaron Ecay [Sun, 22 Jun 2014 04:14:47 +0000]
lisp/ox-latex.el (org-latex-logfiles-extensions): add more extensions

* lisp/ox-latex.el (org-latex-logfiles-extensions): Add several more
file extensions.

- biber: bcf, blg, run.xml
- tikz externalize: figlist
- xelatex -no-pdf: xdv

4 weeks agoorg.el: insert missing quote
Aaron Ecay [Sun, 22 Jun 2014 03:32:18 +0000]
org.el: insert missing quote

4 weeks agocontrib/lisp/ox-extra.el: fix typos/thinkos
Aaron Ecay [Sun, 22 Jun 2014 01:54:32 +0000]
contrib/lisp/ox-extra.el: fix typos/thinkos

4 weeks agocontrib/lisp/ox-extra.el: new file
Aaron Ecay [Sun, 22 Jun 2014 01:41:10 +0000]
contrib/lisp/ox-extra.el: new file

4 weeks agoRemove another vestige of org-mtags
Aaron Ecay [Sun, 22 Jun 2014 01:38:32 +0000]
Remove another vestige of org-mtags

* lisp/org-src.el (org-edit-src-find-region-and-lang): Remove old
<foo>-style tags.

This completes commit 94939bd

4 weeks agoorg-mtags: remove
Aaron Ecay [Sat, 14 Jun 2014 22:18:18 +0000]
org-mtags: remove

* contrib/lisp/org-mtags.el: Delete file.
* lisp/org.el (org-structure-template-alist): Remove <foo>-style tags.
(org-complete-expand-structure-template): Don't handle <foo>-style tags.

4 weeks agoMerge branch 'maint'
Bastien Guerry [Fri, 20 Jun 2014 06:44:06 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 weeks agoorg.el: Delete `org-fix-ellipsis-at-bol'
Bastien Guerry [Fri, 20 Jun 2014 06:41:34 +0000]
org.el: Delete `org-fix-ellipsis-at-bol'

* org.el (org-fix-ellipsis-at-bol): Delete.
(org-mode, org-show-context, org-isearch-end): Don't use
`org-fix-ellipsis-at-bol'.

4 weeks agoorg-element: Tweak cache parameters
Nicolas Goaziou [Wed, 18 Jun 2014 11:22:58 +0000]
org-element: Tweak cache parameters

* lisp/org-element.el (org-element-cache-sync-idle-time,
  org-element-cache-sync-break): Increase values as synchronizing
  cache too makes editing somewhat sluggish without any benefit.

4 weeks agoorg-element: Optimize cache
Nicolas Goaziou [Tue, 17 Jun 2014 22:11:44 +0000]
org-element: Optimize cache

* lisp/org-element.el (org-element--cache-for-removal): New function.
(org-element--cache-submit-request): Do not synchronize cache when
changes can be merged with next request.

This shortcut is particularly useful when many changes happen in the
same area, which is expensive to parse (e.g., a large list).

4 weeks agoorg-element: Sync cache after changes instead of before them
Nicolas Goaziou [Tue, 17 Jun 2014 21:36:29 +0000]
org-element: Sync cache after changes instead of before them

* lisp/org-element.el (org-element--cache-sync,
  org-element--cache-process-request): Change signature.
(org-element--cache-before-change): Do not synchronize cache
preemptively.
(org-element--cache-submit-request): Synchronize cache preemptively.

This change makes possible to skip cache preemptive synchronization
under some circumstances.

4 weeks agoorg-element: Extend format for cache sync requests
Nicolas Goaziou [Tue, 17 Jun 2014 21:07:16 +0000]
org-element: Extend format for cache sync requests

* lisp/org-element.el (org-element--cache-sync-requests): Also store
  beginning position for buffer modifications.
(org-element--cache-sync, org-element--cache-process-request)
(org-element--cache-submit-request): Adapt to new request template.

This change is required for a future cache optimization.

4 weeks agoorg-element: Tiny refactoring
Nicolas Goaziou [Sat, 14 Jun 2014 15:27:45 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element--cache-sync): Do not check return
  value from `org-element--cache-process-request'.
(org-element--cache-process-request): Throw `interrupt' when the
request cannot be processed.
(org-element--cache-process-request): Do not catch interruption from
  `org-element--parse-to'.
(org-element--parse-to): Throw `interrupt' when the process stops
before finding the result.

4 weeks agoox-koma-letter: Small fix
Nicolas Goaziou [Thu, 19 Jun 2014 20:31:01 +0000]
ox-koma-letter: Small fix

* contrib/lisp/ox-koma-letter.el (koma-letter): Do not set a default
  value for "from address".

That address is computed later (see special headlines).

4 weeks agoMerge branch 'maint'
Bastien Guerry [Wed, 18 Jun 2014 22:49:20 +0000]
Merge branch 'maint'

Conflicts:
contrib/lisp/ox-koma-letter.el

4 weeks agoox-koma-letter.el (koma-letter): Use `org-koma-letter-from-address' release_8.2.7a
IOhannes m zmoelnig [Wed, 18 Jun 2014 22:47:42 +0000]
ox-koma-letter.el (koma-letter): Use `org-koma-letter-from-address'

* ox-koma-letter.el (koma-letter): Use
`org-koma-letter-from-address'.

TINYCHANGE

4 weeks agoox: Small refactoring
Nicolas Goaziou [Wed, 18 Jun 2014 21:30:54 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-get-category): Refactor code.

4 weeks agoorg-element: Properly parse headline properties
Nicolas Goaziou [Wed, 18 Jun 2014 21:28:19 +0000]
org-element: Properly parse headline properties

* lisp/org-element.el (org-element-headline-parser,
  org-element-inlinetask-parser): First find appropriate property
  drawer in order to read properties.

* testing/lisp/test-org-element.el (test-org-element/headline-properties):
  Add tests.

Thanks to Sébastien Vauban for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87701

4 weeks agoorg-element: Do not expand file name when parsing links
Nicolas Goaziou [Wed, 18 Jun 2014 17:22:21 +0000]
org-element: Do not expand file name when parsing links

* lisp/org-element.el (org-element-link-parser): Do not expand file
  name when parsing links so that Tramp doesn't kick in.

Thanks to Sébastien Vauban for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87696

5 weeks agocontrib/lisp/org-contacts.el: Factorize the construction of the database
Grégoire Jadi [Tue, 17 Jun 2014 07:28:48 +0000]
contrib/lisp/org-contacts.el: Factorize the construction of the database

* contrib/lisp/org-contacts.el (org-contacts-at-point): New function
  used to return the contact at point.
(org-contacts-db): Factorize the construction of the database using
`org-contacts-at-point' and fix a small typo.

5 weeks agocontrib/lisp/org-contacts.el: Add a hook to allow users to plug completion functions
Grégoire Jadi [Tue, 17 Jun 2014 07:41:49 +0000]
contrib/lisp/org-contacts.el: Add a hook to allow users to plug completion functions

* contrib/lisp/org-contacts.el (org-contacts-complete-functions): A
  hook that contains the list of functions used to complete contacts.
(org-contacts-message-complete-function): Use the new hook.

Suggested by John Kitchin.

5 weeks agoMake C, C++, D, Java, Groovy compilers customizable
Thierry Banel [Sun, 15 Jun 2014 12:53:34 +0000]
Make C, C++, D, Java, Groovy compilers customizable

* ob-C.el (org-babel-C-compiler):
(org-babel-C++-compiler):
(org-babel-D-compiler): changed defvar to defcustom
* ob-java.el (org-babel-java-command):
(org-babel-java-compiler): changed defvar to defcustom
* ob-groovy.el (org-babel-groovy-command):
changed defvar to defcustom

5 weeks agoorg-agenda.el (org-agenda-filter-by-tag): Don't refresh the agenda
Bastien Guerry [Mon, 16 Jun 2014 09:44:25 +0000]
org-agenda.el (org-agenda-filter-by-tag): Don't refresh the agenda

* org-agenda.el (org-agenda-filter-by-tag): Don't refresh the
agenda.

5 weeks agoMerge branch 'maint'
Bastien Guerry [Mon, 16 Jun 2014 09:41:36 +0000]
Merge branch 'maint'

5 weeks agoorg-agenda.el (org-agenda-filter-apply): Fix setting of `org-agenda-filtered-by-category'
Bastien Guerry [Mon, 16 Jun 2014 09:41:14 +0000]
org-agenda.el (org-agenda-filter-apply): Fix setting of `org-agenda-filtered-by-category'

* org-agenda.el (org-agenda-filter-apply): Fix setting of
`org-agenda-filtered-by-category'.

5 weeks agoMerge branch 'maint'
Bastien Guerry [Sun, 15 Jun 2014 08:49:36 +0000]
Merge branch 'maint'

5 weeks agoorg.el (org-fontify-meta-lines-and-blocks-1): Fix handling of `org-hidden-keywords'
Bastien Guerry [Sun, 15 Jun 2014 08:49:01 +0000]
org.el (org-fontify-meta-lines-and-blocks-1): Fix handling of `org-hidden-keywords'

* org.el (org-fontify-meta-lines-and-blocks-1): Fix handling
of `org-hidden-keywords'.

Thanks to Leu Zhe for reporting this.

5 weeks agoMerge branch 'maint'
Bastien Guerry [Sun, 15 Jun 2014 08:43:47 +0000]
Merge branch 'maint'

5 weeks agoorg-agenda.el (org-cmp-ts): Fix agenda entry type checking
Bastien Guerry [Sun, 15 Jun 2014 08:43:17 +0000]
org-agenda.el (org-cmp-ts): Fix agenda entry type checking

* org-agenda.el (org-cmp-ts): Fix agenda entry type checking.

Thanks to Trevor Murphy for reporting this.

5 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 15 Jun 2014 08:38:18 +0000]
Merge branch 'master' of orgmode.org:org-mode

5 weeks agoMerge branch 'maint'
Bastien Guerry [Sun, 15 Jun 2014 08:37:09 +0000]
Merge branch 'maint'

5 weeks agoorg-agenda.el (org-entries-lessp): Fix inactive timestamp comparison
Bastien Guerry [Sun, 15 Jun 2014 08:36:59 +0000]
org-agenda.el (org-entries-lessp): Fix inactive timestamp comparison

* org-agenda.el (org-entries-lessp): Fix inactive timestamp
comparison.

5 weeks agoox-beamer: Remove `org-beamer-insert-options-template'
Nicolas Goaziou [Sun, 15 Jun 2014 08:26:40 +0000]
ox-beamer: Remove `org-beamer-insert-options-template'

* lisp/ox-beamer.el (beamer): Re-order keywords.
(org-beamer-insert-options-template): Remove function.

* doc/org.texi (Beamer export): Remove reference to the previous
  function.

Use the generic insertion mechanism provided in "ox.el"
instead (`org-export-insert-default-template') in order to avoid code
duplication.

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 15 Jun 2014 07:30:54 +0000]
Merge branch 'maint'

5 weeks agoorg-macs: Remove restriction when locating markers
Bernt Hansen [Sun, 15 Jun 2014 02:50:07 +0000]
org-macs: Remove restriction when locating markers

* org-macs.el: Remove restriction when locating markers

Allows org-with-point-at to locate point outside the current
restriction.

5 weeks agocontrib/lisp/org-mac-link.el: Fix formatting
Bastien Guerry [Sat, 14 Jun 2014 12:47:37 +0000]
contrib/lisp/org-mac-link.el: Fix formatting

5 weeks agoAdd DEVONthink Pro to Org Mac Link
Mike McLean [Sat, 14 Jun 2014 04:13:22 +0000]
Add DEVONthink Pro to Org Mac Link

* org-mac-link.el (org-mac-grab-Addressbook-app-p): New option.
(org-mac-grab-link): New interactive option.
(org-devonthink-item-open)
(org-as-get-selected-devonthink-item)
(org-mac-devonthink-get-links)
(org-mac-devonthink-item-insert-selected): New functions.

5 weeks agoob-C.el: Tiny formatting fix
Bastien Guerry [Sat, 14 Jun 2014 12:36:10 +0000]
ob-C.el: Tiny formatting fix

5 weeks agofix bug in ob-C
Eric Schulte [Fri, 13 Jun 2014 11:45:55 +0000]
fix bug in ob-C

* lisp/ob-C.el (org-babel-C-val-to-C-type): Fix miss-named variable
  bug.

5 weeks agoorg-gnus.el: silent compiler
Bastien Guerry [Fri, 13 Jun 2014 10:26:10 +0000]
org-gnus.el: silent compiler

5 weeks agoMinor code clean-up
Bastien Guerry [Fri, 13 Jun 2014 10:24:50 +0000]
Minor code clean-up

Thanks to Thorsten for this.

5 weeks agoMerge branch 'maint'
Bastien Guerry [Fri, 13 Jun 2014 10:05:55 +0000]
Merge branch 'maint'