org-mode.git
3 months 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

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

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

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

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

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

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

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

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

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

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

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

3 months 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 months agoMerge branch 'maint'
Bastien Guerry [Fri, 20 Jun 2014 06:44:06 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months agoMerge branch 'maint'
Bastien Guerry [Wed, 18 Jun 2014 22:49:20 +0000]
Merge branch 'maint'

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Thanks to Thorsten for this.

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

4 months agofix semi-backend bug in org-mime release_8.2.7
Eric Schulte [Thu, 12 Jun 2014 18:40:32 +0000]
fix semi-backend bug in org-mime

* contrib/lisp/org-mime.el (org-mime-multipart): Fix bug in use of the
  semi org-mime-library when converting emails to HTML.

4 months agoCreate org-gnus links from original group, not virtual
Eric Abrahamsen [Thu, 12 Jun 2014 04:53:15 +0000]
Create org-gnus links from original group, not virtual

* lisp/org-gnus.el (org-gnus-store-link): When in a virtual group,
use the real group instead.

4 months agocustomizable parameter to raise more noweb errors
Eric Schulte [Thu, 12 Jun 2014 23:39:32 +0000]
customizable parameter to raise more noweb errors

* lisp/ob-core.el (org-babel-noweb-error-all-langs): Raise noweb
  errors regardless of language.
  (org-babel-expand-noweb-references): Make use of the new
  `org-babel-noweb-error-all-langs' variable.

4 months agoMerge branch 'maint'
Bastien Guerry [Thu, 12 Jun 2014 13:25:56 +0000]
Merge branch 'maint'

4 months agoFix 30220ff
Bastien Guerry [Thu, 12 Jun 2014 13:25:42 +0000]
Fix 30220ff

4 months agoMerge branch 'maint'
Bastien Guerry [Thu, 12 Jun 2014 13:08:53 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-agenda.el

4 months agoorg-agenda.el: Fix bug when redoing sticky agendas with log mode and/or clockreport...
Bastien Guerry [Thu, 12 Jun 2014 13:07:35 +0000]
org-agenda.el: Fix bug when redoing sticky agendas with log mode and/or clockreport mode on

* org-agenda.el (org-agenda-mode): Let `org-agenda-redo' DTRT
when agenda are sticky.
(org-agenda-tag-filter-while-redo): Delete.
(org-agenda-list, org-agenda-redo, org-agenda-filter-by-tag):
Remove unused code.
(org-agenda-clockreport-mode, org-agenda-set-mode-name): Don't
consider tag filters.

Thanks to Bernt Hansen for reporting this.

4 months agoMerge branch 'maint'
Bastien Guerry [Thu, 12 Jun 2014 10:05:00 +0000]
Merge branch 'maint'

4 months agoPrefer `set-window-start' over `recenter' in some places.
Bastien Guerry [Thu, 12 Jun 2014 10:04:24 +0000]
Prefer `set-window-start' over `recenter' in some places.

* org-agenda.el (org-agenda-show-1):
* org-table.el (org-table-show-reference):
* org.el (org-fix-ellipsis-at-bol)
(org-first-headline-recenter): Use `set-window-start' instead
of `recenter'.

* org-agenda.el (org-recenter-heading): Delete.

4 months agoSmall optimization
Nicolas Goaziou [Wed, 11 Jun 2014 20:42:31 +0000]
Small optimization

* lisp/org.el (org-adaptive-fill-function): Do not compute fill prefix
  if point is at a heading or an inlinetask.  Also change "? " into
  "?\s" for better code readability.

4 months agoob-exp: Fix export error
Nicolas Goaziou [Wed, 11 Jun 2014 20:12:15 +0000]
ob-exp: Fix export error

* lisp/ob-exp.el (org-babel-exp-process-buffer): Fix error when
  `org-confirm-babel-evaluate' is set to a function.

Thanks to Charles C. Berry for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87403

4 months agoMerge branch 'maint'
Bastien Guerry [Wed, 11 Jun 2014 15:46:40 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 months agoorg.el (org-insert-heading): Be more consistent in respecting content
Bastien Guerry [Wed, 11 Jun 2014 15:45:13 +0000]
org.el (org-insert-heading): Be more consistent in respecting content

* org.el (org-insert-heading): With one universal prefix
argument or `org-insert-heading-respect-content' set to `t',
always respect the content, i.e. don't insert a list item and
don't convert normal lines into headings.  Update docstring.
(org-insert-heading-respect-content): Remove unused arg.
(org-insert-todo-heading-respect-content): Don't use
`org-insert-todo-heading-respect-content', use the second
argument of `org-insert-todo-heading' instead.

* org-mobile.el (org-mobile-edit): Use only one arg.

Thanks to Bernt Hansen for reporting this.

4 months agoorg.el (org-overview): Don't call `recenter'
Bastien Guerry [Thu, 15 May 2014 09:11:43 +0000]
org.el (org-overview): Don't call `recenter'

* org.el (org-overview): Don't call `recenter'.

Thanks to Nicolas Richard for suggesting this.

4 months agoBackport change in r117298 from Emacs trunk
Bastien Guerry [Tue, 10 Jun 2014 08:32:03 +0000]
Backport change in r117298 from Emacs trunk

4 months agoMerge branch 'maint'
Nicolas Goaziou [Mon, 9 Jun 2014 16:11:19 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el
testing/lisp/test-org.el

4 months agoFix `org-insert-heading' before first headline
Nicolas Goaziou [Mon, 9 Jun 2014 16:07:07 +0000]
Fix `org-insert-heading' before first headline

* lisp/org.el (org-insert-heading): Fix error when inserting
  a headline before first headline, with point not at bol.  Remove
  source block check for consistency with behavior after first
  headline.  Tiny fix to docstring.

* testing/lisp/test-org.el (test-org/meta-return): Remove unnecessary
  test (not testing specifications).
(test-org/insert-heading): New test.

4 months agoBabel C, C++, D support for non-homogeneous input tables
Thierry Banel [Sun, 8 Jun 2014 20:01:56 +0000]
Babel C, C++, D support for non-homogeneous input tables

        * ob-C.el: handling of non-homogeneous tables,
        support for table header,
        support for iterating over table cells.
        (org-babel-expand-body:C++): uncomment
        (org-babel-C-execute): cosmetic changes
        (org-babel-C-expand-C): add support for table columns names,
        add support for table dimensions,
        add standard includes
        (org-babel-C-val-to-C-type): rewrite to support non-homogeneous
        tables cells
        (org-babel-C-table-sizes-to-C): new function to gain access
        to the table dimensions
        (org-babel-C-utility-header-to-C):
        (org-babel-C-header-to-C): new functions to generate
        support for table header.

        * ob-C-test.org: added D sibling tests similar to C++,
        added non-homogeneous table example for C++ and D

        * test-ob-C.el: new tests for D and non-homogeneous tables
        (ob-C/simple-program):
        (ob-C/simple-program):
        (ob-D/simple-program):
        (ob-C/integer-var):
        (ob-D/integer-var):
        (ob-C/two-integer-var):
        (ob-D/two-integer-var):
        (ob-C/string-var):
        (ob-D/string-var):
        (ob-C/preprocessor):
        (ob-C/table):
        (ob-D/table):
        (ob-C/list-var):
        (ob-D/list-var):
        (ob-C/vector-var):
        (ob-D/vector-var):
        (ob-C/list-list-var):
        (ob-D/list-list-var):
        (ob-C/inhomogeneous_table):
        (ob-D/inhomogeneous_table): add compiler availability check
        (ob-D/simple-program):
        (ob-D/integer-var):
        (ob-D/two-integer-var):
        (ob-D/string-var):
        (ob-D/table):
        (ob-D/list-var):
        (ob-D/vector-var):
        (ob-D/list-list-var):
        (ob-D/inhomogeneous_table): add D unit tests
        (ob-C/inhomogeneous_table):
        (ob-D/inhomogeneous_table): add non-homogeneous table
        unit tests

4 months agoob-exp: forward declare function
Achim Gratz [Sat, 7 Jun 2014 16:11:34 +0000]
ob-exp: forward declare function

* lisp/ob-exp.el (org-id-get): Forward declare `org-id-get'.

4 months agoox: implement additional #+INCLUDE markup
Achim Gratz [Sat, 7 Jun 2014 09:54:02 +0000]
ox: implement additional #+INCLUDE markup

* lisp/ox.el (org-export-expand-include-keyword): Change parsing so
  that arbitrary blocks around the included content can be used.
  Content is not code-escaped unless it is a literal block, this
  applies to "src" and "example".
* doc/org.texi (Include files): Document the additional markup.
* testing/lisp/test-ox.el (test-org-export/expand-include): Add test
  for an #+INCLUDE with "html" and "center" markup.
* testing/examples/include.html: New file, used for testing
  "#+INCLUDE html".

4 months agotangle option to not post-process tangle comments
Eric Schulte [Sat, 7 Jun 2014 15:29:03 +0000]
tangle option to not post-process tangle comments

* lisp/ob-tangle.el (org-babel-tangle-comment-format-beg): Mention the
  new `org-babel-tangle-uncomment-comments' variable in the
  documentation.
  (org-babel-tangle-comment-format-end): Mention the new
  `org-babel-tangle-uncomment-comments' variable in the documentation.
  (org-babel-tangle-uncomment-comments): New customization variable to
  inhibit the post-processing of tangle comments.
  (org-babel-spec-to-string): Post-processing of tangle comments is
  now dependent upon a customization variable.

4 months agoawk code blocks handle tabular input
Eric Schulte [Sat, 7 Jun 2014 15:14:03 +0000]
awk code blocks handle tabular input

  Protected by a new unit test.

* lisp/ob-awk.el (org-babel-execute:awk): Use the
  `org-babel-awk-var-to-awk' function instead of a simple format
  string.

4 months agoorg-element: Small fix
Nicolas Goaziou [Sat, 7 Jun 2014 13:32:47 +0000]
org-element: Small fix

* lisp/org-element.el (org-element--cache-generate-key): Small fix.
  Check if UPPER is non nil before comparing its car with 1.  This is
  a safety feature, though, as a key shouldn't end on 0 anyway.

4 months agoorg-mac-link.el: Tweak AppleScript to grab Mail.app messages
Alan Schmitt [Wed, 4 Jun 2014 09:47:09 +0000]
org-mac-link.el: Tweak AppleScript to grab Mail.app messages

* contrib/lisp/org-mac-link.el (org-as-get-selected-mail): Make sure
no extra new line is present in the string returned from the
AppleScript.

* contrib/lisp/org-mac-link.el (org-mac-message-get-links): Get rid of
the enclosing quotes before splitting the string.

4 months agofix a bug in new ob-awk code
Eric Schulte [Fri, 6 Jun 2014 17:11:46 +0000]
fix a bug in new ob-awk code

  thank you test suite

* lisp/ob-awk.el (org-babel-execute:awk): Don't need to apply the
  append, just need to append.

* testing/lisp/test-ob-awk.el (ob-awk/input-src-block-1): Renamed to
  avoid name duplication and over-definition.
  (ob-awk/input-src-block-2): Renamed to avoid name duplication and
  over-definition.

4 months agoimproved variable handling for awk code blocks
Eric Schulte [Fri, 6 Jun 2014 16:50:14 +0000]
improved variable handling for awk code blocks

  Thanks to Greg Minshall for suggesting these changes.

* lisp/ob-awk.el (org-babel-expand-body:awk): Simply return the body
  unmodified.
  (org-babel-execute:awk): Assign variables on the command line using
  the `-v' command line option to awk.

4 months agoun-duplicate ditaa eps file name generation
Eric Schulte [Fri, 6 Jun 2014 16:21:56 +0000]
un-duplicate ditaa eps file name generation

* lisp/ob-ditaa.el (org-babel-execute:ditaa): Un-duplicate ditaa eps
  file name generation.

4 months agogenerate intermediate EPS on ditaa pdf generation
Anders Johansson [Fri, 6 Jun 2014 16:19:45 +0000]
generate intermediate EPS on ditaa pdf generation

TINYCHANGE

* lisp/ob-ditaa.el (org-babel-execute:ditaa): When generating a pdf,
  ensure that an intermediate EPS file is generated first.

4 months agowhen present resolve orig-buffer headlines w/IDs
Eric Schulte [Fri, 6 Jun 2014 16:04:04 +0000]
when present resolve orig-buffer headlines w/IDs

* lisp/ob-exp.el (org-babel-exp-in-export-file): Instead of using the
  headline text use the headline ID when one is present.  This fixes a
  bug in the resolution of code block headers in properties during
  export when multiple headlines with the same name are present.

4 months agoadd options to LaTeX bibtex cite: links
Eric Schulte [Thu, 5 Jun 2014 18:01:24 +0000]
add options to LaTeX bibtex cite: links

* contrib/lisp/ox-bibtex.el (org-bibtex-merge-contiguous-citations):
  Add the ability to specify options so that for example the following
  link "[[cite:(Chapter 2)foo]]" will be converted to the following
  LaTeX "\cite[Chapter 2](foo)".

4 months agoTODO in ob-exp.el
Eric Schulte [Wed, 4 Jun 2014 16:05:45 +0000]
TODO in ob-exp.el

4 months agoRemove useless code
Bastien Guerry [Thu, 5 Jun 2014 10:16:23 +0000]
Remove useless code

4 months agoMerge branch 'maint'
Nicolas Goaziou [Tue, 3 Jun 2014 21:28:56 +0000]
Merge branch 'maint'

4 months agoFix typo
Nicolas Goaziou [Tue, 3 Jun 2014 21:28:08 +0000]
Fix typo

* lisp/org.el (org-scan-tags): Fix typo in docstring.

4 months agoMerge branch 'maint'
Nicolas Goaziou [Tue, 3 Jun 2014 20:13:31 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox.el

4 months agoox: Fix priority bug in :title property
Nicolas Goaziou [Tue, 3 Jun 2014 20:07:35 +0000]
ox: Fix priority bug in :title property

* lisp/ox.el (org-export--get-inbuffer-options): Return the empty
  string instead of nil when TITLE keywords has no value.
(org-export--get-buffer-attributes): Do not set :title property
early.
(org-export--get-global-options): Do not ignore anymore nil values.
Small refactoring.
(org-export-as): Correctly set :title here.

Thanks to Nicolas Richard for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87149

4 months ago.gitignore: Ignore ChangeLog files
Bastien Guerry [Mon, 2 Jun 2014 20:35:22 +0000]
.gitignore: Ignore ChangeLog files

4 months agotesting/lisp/test-org.el: Update tests
Bastien Guerry [Mon, 2 Jun 2014 20:33:28 +0000]
testing/lisp/test-org.el: Update tests

* testing/lisp/test-org.el
(test-org/open-at-point-in-property): Rename from
`test-org/open-at-point'.  Only test whether
`org-open-at-point' does not throw an error.
(test-org/open-at-point-in-comment)
(test-org/open-at-point/info): New tests.

4 months agotesting/lisp/test-org: actually check that org-open-at-point did the right thing
Achim Gratz [Mon, 2 Jun 2014 19:05:46 +0000]
testing/lisp/test-org: actually check that org-open-at-point did the right thing

* testing/lisp/test-org.el (test-org/open-at-point): The test should
  leave the cursor one line above "Org Mode Manual" in the "*info*"
  buffer.  Try to switch to that buffer and check that point is where
  it should be, then kill the buffer.

4 months agoMerge branch 'maint'
Achim Gratz [Mon, 2 Jun 2014 18:10:48 +0000]
Merge branch 'maint'

4 months agomk/server.mk: add testing/ directory to distribution tarball
Achim Gratz [Mon, 2 Jun 2014 17:33:27 +0000]
mk/server.mk: add testing/ directory to distribution tarball

* mk/server.mk (ORGFULL): Add testing/ directory to distribution
  tarball.

4 months agoMakefile: remove empty line in help output
Achim Gratz [Mon, 2 Jun 2014 17:32:26 +0000]
Makefile: remove empty line in help output

* Makefile (help helpall): Remove empty line in help output.

4 months agoMerge branch 'maint'
Bastien Guerry [Mon, 2 Jun 2014 18:00:20 +0000]
Merge branch 'maint'

4 months agoorg-agenda.el (org-agenda-custom-commands-local-options): Fix misquoted values
Bastien Guerry [Mon, 2 Jun 2014 17:59:36 +0000]
org-agenda.el (org-agenda-custom-commands-local-options): Fix misquoted values

* org-agenda.el (org-agenda-custom-commands-local-options):
Fix misquoted values.

Thanks to Thomas Morgan for reporting this.

4 months agoMerge branch 'maint'
Bastien Guerry [Mon, 2 Jun 2014 13:57:41 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 months agoorg.el: Fix setting and deleting properties with a null value
Bastien Guerry [Mon, 2 Jun 2014 13:40:04 +0000]
org.el: Fix setting and deleting properties with a null value

* org.el (org-property-re): Also match null properties by
default.
(org-entry-delete): Also delete null properties.
(org-read-property-value): Allow the empty string as a new
value.
(org-delete-property): Throw a message when there is not
property to delete.

Thanks to Andrea Rossetti for reporting this.

4 months agocontrib/lisp/org-passwords.el: New file
Jorge A. Alfaro Murillo [Mon, 2 Jun 2014 07:39:18 +0000]
contrib/lisp/org-passwords.el: New file

* contrib/lisp/org-passwords.el: New file.

The file gives a mode for consulting a passwords database with entries
in org format.  The database opens in Read-Only mode and a timer is
set to close the database.  The file provides functions for making
usernames and passwords available to the facility for pasting text of
the window system (clipboard on X and MS-Windows, pasteboard on
Nextstep/Mac OS, etc.) without inserting them in the kill-ring.  It
also provides functions for generating passwords as a random string of
characters or as a number of random words from a dictionary.

4 months agoMerge branch 'maint'
Michael Brand [Sun, 1 Jun 2014 13:27:33 +0000]
Merge branch 'maint'

4 months agoorg.texi: Add f-1 to TBLFM example about nan
Michael Brand [Sun, 1 Jun 2014 13:27:07 +0000]
org.texi: Add f-1 to TBLFM example about nan

* doc/org.texi (Formula syntax for Calc): Add `f-1' to TBLFM example
about `nan'.

4 months agoMerge branch 'maint'
Achim Gratz [Sun, 1 Jun 2014 12:29:25 +0000]
Merge branch 'maint'

4 months agoReverting "org-footnote: forward declare functions"
Achim Gratz [Sun, 1 Jun 2014 12:28:13 +0000]
Reverting "org-footnote: forward declare functions"
Revert "org-footnote: forward declare functions"

This reverts commit 814188ac7e25c500433c13d8696af47d62f0de23.

Accidentally applied to the wrong branch.