org-mode.git
3 hours agoMerge branch 'maint' master
Nicolas Goaziou [Mon, 16 Jan 2017 21:27:24 +0000 (22:27 +0100)]
Merge branch 'maint'

3 hours agotest-org: Add test maint
Nicolas Goaziou [Mon, 16 Jan 2017 21:26:47 +0000 (22:26 +0100)]
test-org: Add test

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add test.

3 hours agoorg-clone-subtree-with-time-shift: Fix timestamp search
Kyle Meyer [Mon, 16 Jan 2017 17:56:01 +0000 (12:56 -0500)]
org-clone-subtree-with-time-shift: Fix timestamp search

* lisp/org.el (org-clone-subtree-with-time-shift): Move to the
  beginning of the heading before the timestamp search so that the
  user will be prompted for a time shift even if point is after the
  timestamp.

This also prevents an "Invalid search bound" error if point is on the
blank line following a body-less heading:

   * single line <2017-02-28 Wed>
    <point here>

Reported-by: Karl Voit <devnull@Karl-Voit.at>
<http://permalink.gmane.org/gmane.emacs.orgmode/111456>

27 hours agoMerge branch 'maint'
Kyle Meyer [Sun, 15 Jan 2017 21:44:56 +0000 (16:44 -0500)]
Merge branch 'maint'

27 hours agoox-publish: Fix docstring typo
Kyle Meyer [Sun, 15 Jan 2017 21:40:54 +0000 (16:40 -0500)]
ox-publish: Fix docstring typo

* lisp/ox-publish.el (org-publish-property): Fix docstring typo.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 14 Jan 2017 22:25:13 +0000 (23:25 +0100)]
Merge branch 'maint'

2 days agoFix `org-drag-element-backward' with point just below a headline
Nicolas Goaziou [Sat, 14 Jan 2017 22:23:26 +0000 (23:23 +0100)]
Fix `org-drag-element-backward' with point just below a headline

* lisp/org.el (org-drag-element-backward): When point is on empty
  lines below a headline, call `org-move-subtree-up'.
* testing/lisp/test-org.el (test-org/drag-element-backward): Add test.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 14 Jan 2017 15:16:24 +0000 (16:16 +0100)]
Merge branch 'maint'

2 days agoorg-mobile: Silence byte-compiler
Nicolas Goaziou [Sat, 14 Jan 2017 15:16:08 +0000 (16:16 +0100)]
org-mobile: Silence byte-compiler

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 14 Jan 2017 15:15:14 +0000 (16:15 +0100)]
Merge branch 'maint'

2 days agoorg-mobile: Fix `org-mobile-push' with stick agendas
Nicolas Goaziou [Sat, 14 Jan 2017 15:12:43 +0000 (16:12 +0100)]
org-mobile: Fix `org-mobile-push' with stick agendas

* lisp/org-mobile.el (org-mobile-push): Do not move back to non-sticky
  agendas once called.

Reported-by: Ian Dunn <dunni@gnu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/111334>

3 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 13 Jan 2017 23:25:24 +0000 (00:25 +0100)]
Merge branch 'maint'

3 days agoorg.texi: Document COMMENT and
Nicolas Goaziou [Fri, 13 Jan 2017 23:22:43 +0000 (00:22 +0100)]
org.texi: Document COMMENT and

* doc/org.texi (Internal archiving): Fix typo.
(Agenda views): Document that COMMENT trees are skipped by default
when building agenda views.
(Comment lines): Add a concept index entry.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 13 Jan 2017 09:36:56 +0000 (10:36 +0100)]
Merge branch 'maint'

3 days agoorg.texi: Small improvements
Nicolas Goaziou [Fri, 13 Jan 2017 09:36:21 +0000 (10:36 +0100)]
org.texi: Small improvements

* doc/org.texi (Agenda column view): Add empty line between items.
  Replace some parenthesis.

4 days agoorg-element: Remove object caching
Nicolas Goaziou [Thu, 12 Jan 2017 21:56:30 +0000 (22:56 +0100)]
org-element: Remove object caching

* lisp/org-element.el (org-element--cache-objects): Remove variable.
(org-element--cache-put):
(org-element--cache-remove):
(org-element--cache-process-request):
(org-element-cache-reset):
(org-element-context): Apply removal.

Caching objects is complicated and doesn't buy much in most cases,
since a change in an element reset the whole objects cache for that
element.

4 days agoorgmanual: Remove outdated instructions
Nicolas Goaziou [Thu, 12 Jan 2017 20:27:10 +0000 (21:27 +0100)]
orgmanual: Remove outdated instructions

4 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 12 Jan 2017 14:28:33 +0000 (15:28 +0100)]
Merge branch 'maint'

4 days agoox-odt: Fix verse environment
Nicolas Goaziou [Thu, 12 Jan 2017 14:27:39 +0000 (15:27 +0100)]
ox-odt: Fix verse environment

* lisp/ox-odt.el (org-odt--encode-tabs-and-spaces): Small refactoring.
(org-odt-verse-block): Only replace leading blanks.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 12 Jan 2017 13:48:53 +0000 (14:48 +0100)]
Merge branch 'maint'

4 days agoox-html: Fix verse environment
Nicolas Goaziou [Thu, 12 Jan 2017 13:47:32 +0000 (14:47 +0100)]
ox-html: Fix verse environment

* lisp/ox-html.el (org-html-verse-block): Do not insert duplicates
  "br" close-tags.  Refactor code.

4 days agoorg-element: Fix `org-element-normalize-contents'
Nicolas Goaziou [Thu, 12 Jan 2017 13:33:17 +0000 (14:33 +0100)]
org-element: Fix `org-element-normalize-contents'

* lisp/org-element.el (org-element-normalize-contents): Fix return
  value when any line after the first has no indentation.
* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add test.

4 days agoox-html: Fix docstrings style
Nicolas Goaziou [Thu, 12 Jan 2017 08:58:50 +0000 (09:58 +0100)]
ox-html: Fix docstrings style

* lisp/ox-html.el (org-html-close-tag):
(org-html-doctype):
(org-html--make-attribute-string): Fix docstring style.

4 days agoox-html: Remove spurious white space when closing a tag
Nicolas Goaziou [Thu, 12 Jan 2017 08:54:22 +0000 (09:54 +0100)]
ox-html: Remove spurious white space when closing a tag

* lisp/ox-html.el (org-html-close-tag): Remove spurious white space
  when no attribute is given.  Add a docstring.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Jan 2017 20:01:40 +0000 (21:01 +0100)]
Merge branch 'maint'

5 days agoox: Fix "user-error: Unable to resolve link nil" message
Nicolas Goaziou [Wed, 11 Jan 2017 20:00:37 +0000 (21:00 +0100)]
ox: Fix "user-error: Unable to resolve link nil" message

* lisp/ox.el (org-export-resolve-fuzzy-link): Fix typo preventing to
report the proper path of the broken link.

Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/111357>

5 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Jan 2017 11:37:14 +0000 (12:37 +0100)]
Merge branch 'maint'

5 days agoox-latex: Silence byte-compiler
Nicolas Goaziou [Wed, 11 Jan 2017 11:36:49 +0000 (12:36 +0100)]
ox-latex: Silence byte-compiler

* lisp/ox-latex.el (org-latex-format-headline-default-function):
(org-latex-format-inlinetask-default-function): Silence byte-compiler.

5 days agoRemove unnecessary workaround
Nicolas Goaziou [Wed, 11 Jan 2017 11:30:07 +0000 (12:30 +0100)]
Remove unnecessary workaround

* lisp/org.el (org-open-at-point): Links can no longer be nested.
  Remove workaround.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Jan 2017 11:20:52 +0000 (12:20 +0100)]
Merge branch 'maint'

5 days agoox-latex: Properly escape special characters in tags
Nicolas Goaziou [Wed, 11 Jan 2017 11:20:05 +0000 (12:20 +0100)]
ox-latex: Properly escape special characters in tags

* lisp/ox-latex.el (org-latex-format-headline-default-function):
(org-latex-format-inlinetask-default-function): Use
`org-latex--protect-text' instead of `org-latex-plain-text' to format
tags.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Jan 2017 10:58:51 +0000 (11:58 +0100)]
Merge branch 'maint'

5 days agoorg-capture: Fix :jump-+to-captured when `org-capture-bookmark' is nil
Nicolas Goaziou [Wed, 11 Jan 2017 08:52:57 +0000 (09:52 +0100)]
org-capture: Fix :jump-+to-captured when `org-capture-bookmark' is nil

* lisp/org-capture.el (org-capture-bookmark-last-stored-position):
  Rename to ...
(org-capture-store-last-position): ... this.  Also store last position
unconditionally.
* lisp/org-capture.el (org-capture-finalize): Apply renaming.

5 days agoorg-capture: Improve error message for date/weektree capture
Nicolas Goaziou [Wed, 11 Jan 2017 08:17:18 +0000 (09:17 +0100)]
org-capture: Improve error message for date/weektree capture

* lisp/org-capture.el (org-capture-set-target-location): Raise an
  error when target location is not an Org buffer.

Reported-by: Simao <smm@imap.cc>
<http://permalink.gmane.org/gmane.emacs.orgmode/111320>

6 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 10 Jan 2017 23:27:07 +0000 (00:27 +0100)]
Merge branch 'maint'

6 days agoox: Fix comments removal during export
Nicolas Goaziou [Tue, 10 Jan 2017 23:00:29 +0000 (00:00 +0100)]
ox: Fix comments removal during export

* lisp/ox.el (org-export--skip-p): Handle comments and comment blocks
  removal.
(org-export--delete-comments): Rename to...
(org-export--delete-comment-trees): ... this.  Now only take care of
commented trees and inlinetasks.

* testing/lisp/test-ox.el (test-org-export/comments): Add test.
(org-test-with-parsed-data): Apply renaming.

8 days agoorg.texi: Remove references to Timeline view
Nicolas Goaziou [Sun, 8 Jan 2017 23:46:51 +0000 (00:46 +0100)]
org.texi: Remove references to Timeline view

* doc/org.texi (Top):
(TODO basics):
(TODO types):
(Tracking TODO state changes):
(Priorities):
(Timestamps):
(Clocking commands):
(Agenda views):
(Agenda dispatcher):
(Built-in agenda views):
(Search view):
(Agenda commands): Remove references to Timeline view.

The "Timeline" feature itself was removed in 64efc0cd4.

8 days agoORG-NEWS: Update
Nicolas Goaziou [Sun, 8 Jan 2017 23:37:52 +0000 (00:37 +0100)]
ORG-NEWS: Update

8 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 8 Jan 2017 23:35:21 +0000 (00:35 +0100)]
Merge branch 'maint'

8 days ago; * doc/org.texi (Key bindings and useful functions): Beautify table.
Gregor Zattler [Sun, 8 Jan 2017 21:56:50 +0000 (22:56 +0100)]
; * doc/org.texi (Key bindings and useful functions): Beautify table.

Correctly render table of org-babel key bindings even in info
mode. [tiny change]

Copyright-paperwork-exempt: yes

8 days agoorg-table: Remove command status for some functions
Nicolas Goaziou [Sun, 8 Jan 2017 23:30:41 +0000 (00:30 +0100)]
org-table: Remove command status for some functions

* lisp/org-table.el (org-table-current-column):
(org-table-current-dline): Do not allow to call these functions
interactively.  `org-table-field-info' should be used instead.
* lisp/org-capture.el (org-encrypt-entry): Silence byte-compiler.

8 days agoorg-table: Speed up large tables calculation
Nicolas Goaziou [Sun, 8 Jan 2017 23:18:26 +0000 (00:18 +0100)]
org-table: Speed up large tables calculation

* lisp/org-table.el (org-table-eval-formula): Do not check point is
  really within a table when context analysis is not requested.

Reported-by: Thierry Banel <tbanelwebmin@free.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/111276>

9 days agoob-maxima.el: Add prologue and epilogue src block options for Maxima
Eric S Fraga [Thu, 5 Jan 2017 15:03:05 +0000 (15:03 +0000)]
ob-maxima.el: Add prologue and epilogue src block options for Maxima

* ob-maxima.el (org-babel-maxima-expand): add contents of prologue and
  epilogue src block options to the body of code.

9 days agoox: Fix image links
Nicolas Goaziou [Sat, 7 Jan 2017 14:48:49 +0000 (15:48 +0100)]
ox: Fix image links

* lisp/ox.el (org-export-insert-image-links): Properly set :parent
  property.
* testing/lisp/test-ox.el (test-org-export/insert-image-links): Add
  test.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111238>

9 days agoox: Fix typos in docstring
Nicolas Goaziou [Sat, 7 Jan 2017 11:33:56 +0000 (12:33 +0100)]
ox: Fix typos in docstring

* lisp/ox.el (org-export-insert-image-links): Fix typos in docstring.

10 days agoMerge branch 'maint'
Kyle Meyer [Fri, 6 Jan 2017 01:23:58 +0000 (20:23 -0500)]
Merge branch 'maint'

10 days agoUpdate copyright years
Kyle Meyer [Fri, 6 Jan 2017 01:19:23 +0000 (20:19 -0500)]
Update copyright years

10 days agoBackport commit 2ec41c415 from Emacs
Stefan Monnier [Wed, 4 Jan 2017 05:40:45 +0000 (00:40 -0500)]
Backport commit 2ec41c415 from Emacs

* lisp/org-agenda.el (org-agenda-get-restriction-and-command):
Avoid add-to-list on local variables.

Avoid add-to-list on local variables
2ec41c415f39990561cc9da4c9bad0b69bfad489
Stefan Monnier
Wed Jan 4 00:40:45 2017 -0500

11 days agoorg-agenda: Set restriction lock from agenda
Marco Wahl [Fri, 6 Jan 2017 00:09:38 +0000 (01:09 +0100)]
org-agenda: Set restriction lock from agenda

* lisp/org-agenda.el (org-agenda-set-restriction-lock-from-agenda):
  New function.  Allows to set the restriction lock from an agenda
  buffer.

Further bind C-c C-x < to
`org-agenda-set-restriction-lock-from-agenda' in the
`org-agenda-mode-map'.  This is the same binding as for Org files.

12 days agoorg-table: Check if on table for field edit
Marco Wahl [Wed, 4 Jan 2017 22:35:40 +0000 (23:35 +0100)]
org-table: Check if on table for field edit

* lisp/org-table.el (org-table-edit-field): Don't open edit buffer if
  not on a table.  Further added the toggle-feature for
  org-table-follow-field-mode to the documentation.

12 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 4 Jan 2017 22:30:11 +0000 (23:30 +0100)]
Merge branch 'maint'

12 days agoorg-agenda: Fix effort filtering for entries with tags
Nicolas Goaziou [Wed, 4 Jan 2017 22:28:58 +0000 (23:28 +0100)]
org-agenda: Fix effort filtering for entries with tags

* lisp/org-agenda.el (org-agenda-compare-effort): Fix retrieval of
  `effort-minutes' property from entries with tags.

Reported-by: wtm <wtmonroe.ls@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111194>

12 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 4 Jan 2017 22:11:07 +0000 (23:11 +0100)]
Merge branch 'maint'

12 days agoorg-agenda: Fix UI bug with effort filter
Nicolas Goaziou [Wed, 4 Jan 2017 22:09:00 +0000 (23:09 +0100)]
org-agenda: Fix UI bug with effort filter

* lisp/org-agenda.el (org-agenda-filter-by-effort): "0" key
  effectively selects the last effort duration instead of the first
  one.  Do not accept invalid keys, i.e., do not treat most of invalid
  keys as "0".

12 days agoImprove documentation about agenda filters
Nicolas Goaziou [Wed, 4 Jan 2017 22:07:23 +0000 (23:07 +0100)]
Improve documentation about agenda filters

* doc/org.texi (Filtering/limiting agenda items): Add reference to
  `org-agenda-effort-filter-preset'.  Document prefix arguments for
  `org-agenda-filter-by-effort'.  Fix typo.
(Agenda commands): Remove index entries for unreferenced variables.
Tiny clean-up.

13 days agoorg.texi: fix noweb-ref property, clarify `Exporting code blocks'
Charles Berry [Wed, 4 Jan 2017 00:07:06 +0000 (16:07 -0800)]
org.texi: fix noweb-ref property, clarify `Exporting code blocks'

* org.texi: The example in the `noweb-ref' node now uses the
  :header-arg: property to declare the :noweb-ref reference.  The
  `Exporting code blocks' node is edited to more carefully warn users
  of the consequences of setting `org-export-use-babel' to `nil'.

13 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 3 Jan 2017 21:12:34 +0000 (22:12 +0100)]
Merge branch 'maint'

13 days agoFix "invalid face reference" when filtering agenda by effort
Nicolas Goaziou [Tue, 3 Jan 2017 21:11:11 +0000 (22:11 +0100)]
Fix "invalid face reference" when filtering agenda by effort

* lisp/org-faces.el (org-agenda-filter-effort): New face.
(org-agenda-filter-category): Fix docstring.

Reported-by: wtm <wtmonroe.ls@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111132>

13 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 3 Jan 2017 17:29:22 +0000 (18:29 +0100)]
Merge branch 'maint'

13 days agoob-shell: Fix wrong variable assignment binding
Nicolas Goaziou [Tue, 3 Jan 2017 17:23:40 +0000 (18:23 +0100)]
ob-shell: Fix wrong variable assignment binding

* lisp/ob-shell.el (org-babel-shell-initialize): Provide bindings to
  handle variable assignments for all the supported shells.
(org-babel--variable-assignments:sh-generic):
(org-babel--variable-assignments:bash_array):
(org-babel--variable-assignments:bash_assoc):
(org-babel--variable-assignments:bash): Rename using an internal
naming scheme since they are not meant to be called directly from
"ob-core.el".
(org-babel-variable-assignments:shell): Apply renaming.

Reported-by: David Dynerman <emperordali@block-party.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111139>

13 days agoDelete org-bullets.el from the contrib/ directory
Bastien [Tue, 3 Jan 2017 11:22:38 +0000 (12:22 +0100)]
Delete org-bullets.el from the contrib/ directory

* lisp/org.el (org-modules): Don't mention org-bullets.el,
which is now deleted from the contrib/ directory.

See https://github.com/sabof/org-bullets/issues/18

13 days agoDelete contrib/lisp/org-ebib.el
Bastien [Tue, 3 Jan 2017 11:10:00 +0000 (12:10 +0100)]
Delete contrib/lisp/org-ebib.el

See https://github.com/joostkremers/ebib/issues/112#issuecomment-270091851

2 weeks agoFix `org-N-empty-lines-before-current'
Nicolas Goaziou [Mon, 2 Jan 2017 22:21:53 +0000 (23:21 +0100)]
Fix `org-N-empty-lines-before-current'

* lisp/org.el (org-N-empty-lines-before-current): Preserve point when
  calling the function from the beginning of a line.

* testing/lisp/test-org.el (test-org/insert-heading): Add tests.

2 weeks agoorg-table: Small optimization to `orgtbl-to-generic'
Nicolas Goaziou [Sun, 1 Jan 2017 23:31:27 +0000 (00:31 +0100)]
org-table: Small optimization to `orgtbl-to-generic'

* lisp/org-table.el (org-table--to-generic-cell): Avoid, as much as
  possible, calling `org-export-table-cell-address'.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 1 Jan 2017 23:14:18 +0000 (00:14 +0100)]
Merge branch 'maint'

2 weeks agoob-ruby: Silence byte-compiler
Nicolas Goaziou [Sun, 1 Jan 2017 23:13:12 +0000 (00:13 +0100)]
ob-ruby: Silence byte-compiler

2 weeks agoox: Update copyright
Nicolas Goaziou [Sun, 1 Jan 2017 23:01:47 +0000 (00:01 +0100)]
ox: Update copyright

2 weeks agoox: Speed-up some tools on tables
Nicolas Goaziou [Sun, 1 Jan 2017 22:58:29 +0000 (23:58 +0100)]
ox: Speed-up some tools on tables

* lisp/ox.el (org-export-table-has-special-column-p): Tiny
  refactoring.
(org-export-table-has-header-p): Fix cache use, i.e., no longer
re-compute return value when the table is already known to have no
header.
(org-export-table-row-group):
(org-export-table-row-number): Populate cache with all the rows
whenever a row is queried.  This fixes previous quadratic behaviour.

Reported-by: Thierry Banel <tbanelwebmin@free.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/111131>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 1 Jan 2017 18:56:23 +0000 (19:56 +0100)]
Merge branch 'maint'

2 weeks agoUpdate ob-ruby for inf-ruby 2.5
Rick Frankel [Mon, 26 Dec 2016 20:00:32 +0000 (15:00 -0500)]
Update ob-ruby for inf-ruby 2.5

 * lisp/ob-ruby.el (org-babel-ruby-initiate-session): `run-ruby` has
   very different semantics in inf-ruby 2.5. Set ruby command to the
   default which used to be set by `run-ruby` and try and find already
   existing buffer before invocation.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 1 Jan 2017 10:19:47 +0000 (11:19 +0100)]
Merge branch 'maint'

2 weeks agoUpdate copyright years
Nicolas Goaziou [Sun, 1 Jan 2017 10:19:15 +0000 (11:19 +0100)]
Update copyright years

* lisp/org-crypt.el:
* lisp/ox-publish.el: Update copyright years.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 1 Jan 2017 09:45:21 +0000 (10:45 +0100)]
Merge branch 'maint'

2 weeks agoox-publish: Back-port `org-publish-property'
Nicolas Goaziou [Sun, 1 Jan 2017 09:43:48 +0000 (10:43 +0100)]
ox-publish: Back-port `org-publish-property'

* lisp/ox-publish.el (org-publish-property): New function.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 1 Jan 2017 09:35:06 +0000 (10:35 +0100)]
Merge branch 'maint'

2 weeks agoorg-crypt: Fix data loss when providing an empty key
Nicolas Goaziou [Sun, 1 Jan 2017 09:26:22 +0000 (10:26 +0100)]
org-crypt: Fix data loss when providing an empty key

* lisp/org-crypt.el (org-encrypt-entry): Insert original text back
  upon encryption failure.

Reported-by: fxiny <wtimew@libero.it>
<http://permalink.gmane.org/gmane.emacs.orgmode/111115>

2 weeks agoox-publish: Add test
Nicolas Goaziou [Sat, 31 Dec 2016 11:29:32 +0000 (12:29 +0100)]
ox-publish: Add test

* testing/lisp/test-ox-publish.el (test-org-publish/get-project-from-filename):
  New test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 31 Dec 2016 11:29:20 +0000 (12:29 +0100)]
Merge branch 'maint'

2 weeks agoox-publish: Fix `org-publish-get-project-from-filename' and :include
Nicolas Goaziou [Sat, 31 Dec 2016 11:28:02 +0000 (12:28 +0100)]
ox-publish: Fix `org-publish-get-project-from-filename' and :include

* lisp/ox-publish.el (org-publish-get-project-from-filename): Properly
  check included files.  Complete docstring.  Refactor code.

2 weeks agoox-publish: Fix :base-extension (part 2)
Nicolas Goaziou [Thu, 29 Dec 2016 20:48:02 +0000 (21:48 +0100)]
ox-publish: Fix :base-extension (part 2)

* lisp/ox-publish.el (org-publish-get-base-files): Make sure to remove
  directories.
* testing/examples/pub/file.txt:
* testing/examples/pub/noextension: New files.
* testing/lisp/test-ox-publish.el (test-org-publish/base-extension):
  New test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 29 Dec 2016 20:16:36 +0000 (21:16 +0100)]
Merge branch 'maint'

2 weeks agoox-publish: Fix :base-extension set to `any'
Nicolas Goaziou [Thu, 29 Dec 2016 20:14:23 +0000 (21:14 +0100)]
ox-publish: Fix :base-extension set to `any'

* lisp/ox-publish.el (org-publish-get-project-from-filename): Handle
  case when :base-extension is `any'.
(org-publish-project-alist): Improve docstring.

Reported-by: Arun Isaac <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111085>

2 weeks ago`orgtbl-to-generic' speed-up
Nicolas Goaziou [Thu, 29 Dec 2016 17:48:20 +0000 (18:48 +0100)]
`orgtbl-to-generic' speed-up

* lisp/org-element.el (org-element-class): Make it a defsubst.
* lisp/org-table.el (orgtbl-to-generic): Do not use cache when
  building Org table.  Factor out calls to Org Export functions when
  they are not necessary.
(org-table--to-generic-row): Factor out calls to Org Export functions
when they are not necessary.
* lisp/ox.el (org-export-resolve-fuzzy-link):
(org-export-table-has-header-p):
(org-export-table-row-group):
(org-export-table-cell-width):
(org-export-table-cell-alignment): Small refactoring.
(org-export-table-row-number): Add caching.

* testing/lisp/test-org-element.el (test-org-element/class): Remove
  test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 29 Dec 2016 15:39:07 +0000 (16:39 +0100)]
Merge branch 'maint'

2 weeks agoReveal tags after setting them
Alexey Lebedeff [Sun, 25 Dec 2016 10:24:04 +0000 (13:24 +0300)]
Reveal tags after setting them

* lisp/org.el (org-set-tags): Reveal newly inserted tags.
* testing/lisp/test-org.el (test-org/set-tags): New test.

Sometimes freshly added tags can be sucked into invisible outline
region (denoted by ellipsis) - and to see them you need to do the full
global visibilty cycle.

2 weeks agoorg-babel-execute:R fix `:colnames yes' clash with `:results graphics'
Charles Berry [Thu, 29 Dec 2016 02:32:07 +0000 (18:32 -0800)]
org-babel-execute:R fix `:colnames yes' clash with `:results graphics'

* lisp/ob-R.el (org-babel-execute:R): The `:colnames' and `:rownames'
  header arguments are ignored if `:results graphics' is specified.

Reported by: Kodi Arfer <kodi@arfer.net>
Archived-At: <http://permalink.gmane.org/gmane.emacs.orgmode/111072>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 29 Dec 2016 00:20:27 +0000 (01:20 +0100)]
Merge branch 'maint'

2 weeks agoorg-clock: Fix ":formula %" with disparate duration formats
Nicolas Goaziou [Thu, 29 Dec 2016 00:19:00 +0000 (01:19 +0100)]
org-clock: Fix ":formula %" with disparate duration formats

* lisp/org-clock.el (org-clock-time%): Handle various duration
  formats.  Refactor code.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Add
  tests.

Reported-by: Andreas Mueller <lists@0x7.ch>
<http://permalink.gmane.org/gmane.emacs.orgmode/111067>

2 weeks agoox: localization: add Arabic support.
Nicolas Goaziou [Wed, 28 Dec 2016 23:34:37 +0000 (00:34 +0100)]
ox: localization: add Arabic support.

* lisp/ox.el (org-export-smart-quotes-alist):
(org-export-dictionary): Add Arabic support.

Suggested-by: Fadi F. Al-Sammak <ffsammak@gmail.com>
2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 27 Dec 2016 07:33:26 +0000 (08:33 +0100)]
Merge branch 'maint'

2 weeks agoox-publish: Fix typos
Nicolas Goaziou [Tue, 27 Dec 2016 07:30:01 +0000 (08:30 +0100)]
ox-publish: Fix typos

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Mon, 26 Dec 2016 09:32:42 +0000 (10:32 +0100)]
Merge branch 'maint'

3 weeks agoFix following links starting with square brackets
Nicolas Goaziou [Mon, 26 Dec 2016 09:29:54 +0000 (10:29 +0100)]
Fix following links starting with square brackets

* lisp/org.el (org-link-search): Improve regexp.
* testing/lisp/test-org.el (test-org/fuzzy-links): Add tests.

3 weeks agoFix commit 1c89082.
Bastien [Sat, 24 Dec 2016 11:21:42 +0000 (12:21 +0100)]
Fix commit 1c89082.

* lisp/org.el (org-speed-command-hook): Do not use removed alias name.

3 weeks agoFix last commit
Nicolas Goaziou [Sat, 24 Dec 2016 10:30:19 +0000 (11:30 +0100)]
Fix last commit

* lisp/org.el (org-speed-command-hook): Do not use removed alias name.

3 weeks agoorg-compat: Remove obsolete aliases
Nicolas Goaziou [Thu, 22 Dec 2016 12:20:39 +0000 (13:20 +0100)]
org-compat: Remove obsolete aliases

3 weeks agoorg-compat: Silence byte-compiler
Nicolas Goaziou [Thu, 22 Dec 2016 12:16:30 +0000 (13:16 +0100)]
org-compat: Silence byte-compiler

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 22 Dec 2016 12:13:08 +0000 (13:13 +0100)]
Merge branch 'maint'

3 weeks agoFix `org-compile-file' release_9.0.3
Nicolas Goaziou [Thu, 22 Dec 2016 12:12:19 +0000 (13:12 +0100)]
Fix `org-compile-file'

* lisp/org.el (org-compile-file): Ensure `out-dir' is always a string.

3 weeks agoorg-compat: Silence byte-compiler
Nicolas Goaziou [Thu, 22 Dec 2016 00:41:02 +0000 (01:41 +0100)]
org-compat: Silence byte-compiler