org-mode.git
2 days agoFix failing test master
Nicolas Goaziou [Wed, 18 Jan 2017 23:14:16 +0000 (00:14 +0100)]
Fix failing test

* lisp/org.el (org-link-search): Remove priority cookie from headlines
  during a fuzzy search.  Tiny optimization.
* testing/lisp/test-org.el (test-org/get-heading): Add tests.

2 days agoAdd support for new switches to org-get-heading
Matt Price [Tue, 17 Jan 2017 23:03:12 +0000 (18:03 -0500)]
Add support for new switches to org-get-heading

* lisp/org.el (org-get-heading): NO-COMMENT tag, if non-nil, will not
return the COMMENT string with heading.  Likewise, NO-PRIORITY, if
non-nil, will not return the priority cookie.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 18 Jan 2017 22:36:54 +0000 (23:36 +0100)]
Merge branch 'maint'

2 days agoox-latex: Fix insertion of line breaks at invalid locations maint
Nicolas Goaziou [Wed, 18 Jan 2017 22:30:01 +0000 (23:30 +0100)]
ox-latex: Fix insertion of line breaks at invalid locations

* lisp/ox-latex.el (org-latex-clean-invalid-line-breaks): New function.

Reported-by: Takeshi Teshima <takeshi.diadochos@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111313>

3 days agoMerge branch 'maint'
Kyle Meyer [Wed, 18 Jan 2017 02:22:11 +0000 (21:22 -0500)]
Merge branch 'maint'

3 days agoorg-clone-subtree-with-time-shift: Fix SHIFT check
Kyle Meyer [Wed, 18 Jan 2017 01:46:06 +0000 (20:46 -0500)]
org-clone-subtree-with-time-shift: Fix SHIFT check

* lisp/org.el (org-clone-subtree-with-time-shift): Don't choke on a
  blank SHIFT argument.
* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add
  test.

This fixes a regression introduced by c31462f33.

3 days agoCorrect an org-clone-subtree-with-time-shift test
Kyle Meyer [Wed, 18 Jan 2017 01:59:49 +0000 (20:59 -0500)]
Correct an org-clone-subtree-with-time-shift test

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Remove
  the SHIFT argument from a test case to match the intention of the
  test.

3 days agoorg: Improved consistency + tests
Marco Wahl [Tue, 17 Jan 2017 21:59:48 +0000 (22:59 +0100)]
org: Improved consistency + tests

* lisp/org.el (org-get-valid-level): The function now returns 1 for
  parameters level=0, change=1 and `org-odd-levels-only'=t.  Before
  it returned 3.

3 days agoorg: Delete useless code line
Marco Wahl [Tue, 17 Jan 2017 20:59:49 +0000 (21:59 +0100)]
org: Delete useless code line

* lisp/org.el (org-refile): Dropped useless call of `looking-at'.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Jan 2017 11:02:02 +0000 (12:02 +0100)]
Merge branch 'maint'

3 days agoorg-colview: Fix summary computation in agenda
Nicolas Goaziou [Tue, 17 Jan 2017 11:00:49 +0000 (12:00 +0100)]
org-colview: Fix summary computation in agenda

* lisp/org-colview.el (org-agenda-colview-summarize): Do not include
  already summarized values in current summary.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Jan 2017 10:36:40 +0000 (11:36 +0100)]
Merge branch 'maint'

3 days agoorg-colview: Fix missing agenda summary if org-agenda-overriding-header is set
Nicolas Goaziou [Tue, 17 Jan 2017 10:35:05 +0000 (11:35 +0100)]
org-colview: Fix missing agenda summary if org-agenda-overriding-header is set

* lisp/org-colview.el (org-agenda-colview-summarize): Do not ignore
  first agenda line when displaying summaries.

This fixes a regression introduced in
279902ca4da4fe5f0ceff801a3aab51b942b42b7.

Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/111473>

3 days agoSave position before searching for a search option in case of error
Nicolas Goaziou [Tue, 17 Jan 2017 09:42:13 +0000 (10:42 +0100)]
Save position before searching for a search option in case of error

* lisp/org.el (org-open-file): Save position with `org-mark-ring-push'
  before calling `org-link-search'.

3 days agoFix last commit
Nicolas Goaziou [Tue, 17 Jan 2017 09:19:05 +0000 (10:19 +0100)]
Fix last commit

* lisp/org-table.el (org-table-eval-formula): Result is not always a string.
* testing/lisp/test-org-table.el (test-org-table/copy-field): Update
  test.

3 days agoComputed dates in tables appear as inactive time stamps
Nicolas Goaziou [Tue, 17 Jan 2017 09:14:24 +0000 (10:14 +0100)]
Computed dates in tables appear as inactive time stamps

* lisp/org-table.el (org-table-eval-formula): Replace active time
  stamps, as produced by Calc package, with inactive ones.

Reported-by: "Doherty, Daniel" <ded@ddoherty.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111458>

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Jan 2017 09:00:55 +0000 (10:00 +0100)]
Merge branch 'maint'

3 days agoSmall fix
Nicolas Goaziou [Tue, 17 Jan 2017 08:59:53 +0000 (09:59 +0100)]
Small fix

* lisp/org.el (org-clone-subtree-with-time-shift): Handle nil shift
  case.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Jan 2017 08:53:36 +0000 (09:53 +0100)]
Merge branch 'maint'

3 days agoFix `org-clone-subtree-with-time-shift'
Nicolas Goaziou [Tue, 17 Jan 2017 08:49:48 +0000 (09:49 +0100)]
Fix `org-clone-subtree-with-time-shift'

* lisp/org.el (org-clone-subtree-with-time-shift): Fix commit
  8fc9ab83b. Small refactoring.
* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add
  tests.

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

4 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 16 Jan 2017 21:27:24 +0000 (22:27 +0100)]
Merge branch 'maint'

4 days agotest-org: Add test
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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12 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

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

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

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

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

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

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

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

2 weeks 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

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

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

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

2 weeks 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>

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

2 weeks 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".

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

2 weeks 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'.

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

2 weeks 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>

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

2 weeks 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>

2 weeks 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

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

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