org-mode.git
3 hours agoSilence byte-compiler under "make single" maint
Kyle Meyer [Fri, 26 May 2017 04:00:29 +0000 (00:00 -0400)]
Silence byte-compiler under "make single"

12 hours agoorg-colview: Silence byte-compiler
Nicolas Goaziou [Thu, 25 May 2017 18:54:39 +0000 (20:54 +0200)]
org-colview: Silence byte-compiler

* lisp/org-colview.el (org-columns--displayed-value): Silence
  byte-compiler.

22 hours agoox-publish: Fix symlink publishing
Nicolas Goaziou [Thu, 25 May 2017 09:08:02 +0000 (11:08 +0200)]
ox-publish: Fix symlink publishing

* lisp/ox-publish.el (org-publish-file): Do not expand symlinks so as
  to get proper publishing directory.

Reported-by: Julien Cubizolles <j.cubizolles@free.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/113611>

2 days agoorg-list.el (org-sort-list): Fix typo in prompt string
Bastien [Tue, 23 May 2017 18:46:42 +0000 (20:46 +0200)]
org-list.el (org-sort-list): Fix typo in prompt string

* lisp/org-list.el (org-sort-list): Fix typo in prompt string.

2 days agoorg-capture: Fix number of blank lines with :unnarrowed option
Nicolas Goaziou [Tue, 23 May 2017 16:10:06 +0000 (18:10 +0200)]
org-capture: Fix number of blank lines with :unnarrowed option

* lisp/org-capture.el (org-capture-finalize): Remove blank lines
  number fix, which only applies to narrowed capture buffers.
(org-capture-insert-template-here):
(org-capture-place-plain-text):
(org-capture-place-item):
(org-capture-place-entry): Do not hard-code number of blank lines
after entry.

Reported-by: Igor Perepelytsya <igorquail@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113093>

Reported-by: Jay Dresser <jay@jaydresser.us>
<http://permalink.gmane.org/gmane.emacs.orgmode/113449>

3 days agoorg-colview: Remove error upon summarizing non-numbers with a format string
Nicolas Goaziou [Mon, 22 May 2017 13:27:17 +0000 (15:27 +0200)]
org-colview: Remove error upon summarizing non-numbers with a format string

* lisp/org-colview.el (org-columns--displayed-value): Remove check.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Remove a test.

Reported-by: Hendrik Tews <hendrik@askra.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113600>

3 days agoorg-colview: Update new summarized value only when necessary
Nicolas Goaziou [Mon, 22 May 2017 12:17:01 +0000 (14:17 +0200)]
org-colview: Update new summarized value only when necessary

* lisp/org-colview.el (org-columns--compute-spec): Make sure current
  and new values do not differ only by leading or trailing blanks
  before replacing the former by the latter.

Reported-by: Hendrik Tews <hendrik@askra.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113597>

4 days agoPreserve targets order according to rules
Nicolas Goaziou [Mon, 22 May 2017 06:24:56 +0000 (08:24 +0200)]
Preserve targets order according to rules

* lisp/org.el (org-refile-get-targets): Keep targets grouped according
  to `org-refile-targets' value.

4 days agoRemove duplicates in refile targets
Nicolas Goaziou [Mon, 22 May 2017 06:16:42 +0000 (08:16 +0200)]
Remove duplicates in refile targets

* lisp/org.el (org-refile-get-targets): Remove duplicates in refile
  targets.

4 days agoorg-store-link: Don't roll C-u behavior into C-u C-u behavior
Kyle Meyer [Sun, 21 May 2017 05:16:58 +0000 (01:16 -0400)]
org-store-link: Don't roll C-u behavior into C-u C-u behavior

* lisp/org.el (org-store-link): When a double C-u prefix argument is
given, do not reverse the meaning of the org-context-in-file-links
option.
* testing/lisp/test-org.el (test-org/store-link): Add tests.

This allows the user to fall back to the core link storing functions
without also reversing their org-context-in-file-links preference,
because wanting to do the former does not mean a user also wants to do
the latter.

Reported-by: York Zhao <gtdplatform@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-05/msg00254.html>

4 days agoorg-colview: Fix {X%} and {X/} on recursive summaries
Nicolas Goaziou [Sun, 21 May 2017 09:08:11 +0000 (11:08 +0200)]
org-colview: Fix {X%} and {X/} on recursive summaries

* lisp/org-colview.el (org-columns--summary-checkbox-count):
(org-columns--summary-checkbox-percent): Handle own output for higher
level summaries.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Add tests.

5 days agoorg-git-link.el: Silence byte-compiler
Kyle Meyer [Sat, 20 May 2017 23:00:25 +0000 (19:00 -0400)]
org-git-link.el: Silence byte-compiler

* contrib/lisp/org-git-link.el (org-git-open): Replace obsolete
string-to-int with string-to-number.  Don't use goto-line
non-interactively.

5 days agoorg-git-link.el: Avoid cl.el aliases
Kyle Meyer [Sat, 20 May 2017 23:00:25 +0000 (19:00 -0400)]
org-git-link.el: Avoid cl.el aliases

* contrib/lisp/org-git-link.el (org-gitbare-open):
(org-git-open):
(org-git-find-gitdir):
(org-git-create-git-link): Prefer nth function to cl.el's first,
second, third.

org-git-link.el does not explicitly load cl.el, and variants without
the "cl-" prefix have been out of favor since Emacs 24.3.

5 days agoorg-colview: Fix estimate's summary
Nicolas Goaziou [Sat, 20 May 2017 22:06:31 +0000 (00:06 +0200)]
org-colview: Fix estimate's summary

* lisp/org-colview.el (org-columns--summary-estimate): Per last
  commit, do not make use of printf, since values are not numbers.

5 days agoorg-colview: Properly apply operator format strings on leaf nodes
Nicolas Goaziou [Sat, 20 May 2017 20:11:45 +0000 (22:11 +0200)]
org-colview: Properly apply operator format strings on leaf nodes

* lisp/org-colview.el (org-columns--displayed-value): When value is
a number and a format string is specified, apply it.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Add tests.

Reported-by: Hendrik Tews <hendrik@askra.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113547>

6 days agoFix "Stack overflow in regexp matcher" in `org-refresh-stats-properties'
Nicolas Goaziou [Sat, 20 May 2017 07:09:03 +0000 (09:09 +0200)]
Fix "Stack overflow in regexp matcher" in `org-refresh-stats-properties'

* lisp/org.el (org-refresh-stats-properties): Simplify regexp.  Small
  refactoring.

Reported-by: Kevin Zettler <kevzettler@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113555>

6 days agoorg-element: Fix suprious "nil" in dynamic-block interpreter
Nicolas Goaziou [Fri, 19 May 2017 14:29:12 +0000 (16:29 +0200)]
org-element: Fix suprious "nil" in dynamic-block interpreter

* lisp/org-element.el (org-element-dynamic-block-interpreter): Ignore
  empty arguments instead of displaying "nil".

Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/113551>

7 days agoorg-clock: Fix missing properties in Clock table
Nicolas Goaziou [Sat, 18 Feb 2017 19:22:30 +0000 (20:22 +0100)]
org-clock: Fix missing properties in Clock table

* lisp/org-clock.el (org-clocktable-write-default): Do not ignore
  properties specified by :properties parameter.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable/properties):
  New test.

The regression was introduced in b897ab722.

Reported-by: Dale <dale@codefu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/112219>

7 days agoorg-sort: Read compare-func in interactive calls
Kyle Meyer [Tue, 9 May 2017 18:57:40 +0000 (14:57 -0400)]
org-sort: Read compare-func in interactive calls

* lisp/org-macs.el (org-read-function): New function.
* lisp/org-table.el (org-table-sort-lines): Make WITH-CASE an optional
argument to match org-sort-entries and org-sort-list.
* lisp/org.el (org-sort-entries):
* lisp/org-table.el (org-table-sort-lines):
* lisp/org-list.el (org-sort-list): Read COMPARE-FUNC when called
interactively rather than being restricted to the default behavior of
sort-subr's PREDICATE parameter.  Only prompt for for GETKEY-FUNC and
COMPARE-FUNC during an interactive call, like org-table-sort-lines
already did for GETKEY-FUNC, but use an argument rather than relying
on the brittle called-interactively-p.

Suggested-by: Zhitao Gong <zhitaao.gong@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-05/msg00040.html>

10 days agoFontify inline source blocks when exporting to HTML
Nicolas Berthier [Mon, 15 May 2017 15:35:52 +0000 (16:35 +0100)]
Fontify inline source blocks when exporting to HTML

* lisp/ox-html.el (org-html-inline-src-block): Fontify inline source
blocks.

10 days agoorg.texi: Silence Texinfo
Nicolas Goaziou [Mon, 15 May 2017 12:04:38 +0000 (14:04 +0200)]
org.texi: Silence Texinfo

* doc/org.texi (HTML Specific export settings): Silence Texinfo.

11 days agoorg.texi: Fix typo release_9.0.7
Nicolas Goaziou [Mon, 15 May 2017 06:41:12 +0000 (08:41 +0200)]
org.texi: Fix typo

* doc/org.texi (Tables in @LaTeX{} export): Fix typo.

Reported-by: Robert Klein <roklein@roklein.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113490>

11 days agoBackport commit 3c4c8ca06 from Emacs
Philipp Stephani [Sat, 6 May 2017 17:16:49 +0000 (19:16 +0200)]
Backport commit 3c4c8ca06 from Emacs

* lisp/ob-ref.el (org-babel-ref-resolve): Fix unescaped character
literal.

Fix all unescaped character literals
3c4c8ca06e3306ccbcd07e354eb51abe53b52d22
Philipp Stephani
Sun May 7 13:22:34 2017 +0200

11 days agoorg-clock: Disambiguate character syntax
Nicolas Goaziou [Sun, 14 May 2017 22:34:58 +0000 (00:34 +0200)]
org-clock: Disambiguate character syntax

* lisp/org-clock.el (org-clock-put-overlay): Escape character in
  character syntax.

11 days agoorg.texi: Fix Texinfo compilation
Nicolas Goaziou [Sun, 14 May 2017 22:19:41 +0000 (00:19 +0200)]
org.texi: Fix Texinfo compilation

11 days agoEditorial revisions to the manual
Lambda Coder [Sun, 14 May 2017 21:43:33 +0000 (23:43 +0200)]
Editorial revisions to the manual

* doc/org.texi: Exporting chapter

13 days agoorg-element: Fix $...$ fragments followed by an apostrophe
Nicolas Goaziou [Sat, 13 May 2017 07:18:07 +0000 (09:18 +0200)]
org-element: Fix $...$ fragments followed by an apostrophe

* lisp/org-element.el (org-element-latex-fragment-parser):
* lisp/org.el (org-latex-regexps): Allow an apostrophe right after
  a fragment.

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

In Text mode, and, as a consequence, in Org mode, "'" is not treated
as punctuation, but as word constituent.  The apostrophe isn't caught
by "\s." regexp.

Reported-by: Joe Corneli <holtzermann17@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113464>

2 weeks agoorg-agenda: Fix logging with bulk-deadlining
Nicolas Goaziou [Thu, 11 May 2017 22:39:06 +0000 (00:39 +0200)]
org-agenda: Fix logging with bulk-deadlining

* lisp/org-agenda.el (org-agenda-bulk-action): Do not request logging
  writing a note when multiple entries are being re-deadline'd at the
  same time.

Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://permalink.gmane.org/gmane.emacs.orgmode/113426>

2 weeks agoorg-agenda: Fix consecutive bulk marks on the same task
Nicolas Goaziou [Thu, 11 May 2017 22:13:09 +0000 (00:13 +0200)]
org-agenda: Fix consecutive bulk marks on the same task

* lisp/org-agenda.el (org-agenda-bulk-unmark-all): Do not reset
  markers stored in `org-agenda-bulk-marked-entries'.  These markers
  are not specific to bulk actions and need not be modified by
  side-effect.

Reported-by: Adrian Bradd <adrian.bradd@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112895>

2 weeks agoAdd tests for org-sort-list and org-sort-entries
Kyle Meyer [Tue, 9 May 2017 18:40:19 +0000 (14:40 -0400)]
Add tests for org-sort-list and org-sort-entries

* testing/lisp/test-org-list.el:
* testing/lisp/test-org.el: New test.

2 weeks agoorg-link-edit.el: Sync with upstream
Kyle Meyer [Tue, 9 May 2017 18:48:07 +0000 (14:48 -0400)]
org-link-edit.el: Sync with upstream

Update to version 1.1.1 (e975aebf8).

2 weeks agoob-gnuplot: escape % character in output
Thierry Banel [Mon, 8 May 2017 09:38:45 +0000 (11:38 +0200)]
ob-gnuplot: escape % character in output

lisp/ob-gnuplot.el (org-babel-execute:gnuplot): escape % percent
character in output messages coming from GnuPlot.

2 weeks agoob-core: Fix regression
Nicolas Goaziou [Mon, 8 May 2017 09:25:17 +0000 (11:25 +0200)]
ob-core: Fix regression

* lisp/ob-core.el (org-babel-balanced-split): Fix regression
  introduced in 500abcd7fbe24abc887300faec2058905a13fa33.

* testing/lisp/test-ob.el (test-ob/balanced-split): Add tests.

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

2 weeks agoox-s5: Update to work with refactored HTML backend
Łukasz Stelmach [Thu, 4 May 2017 18:01:44 +0000 (20:01 +0200)]
ox-s5: Update to work with refactored HTML backend

* contrib/lisp/ox-s5.el (org-s5-template): Adapt to changes introduced
by c9ca0b6d in the way :html-divs/org-html-divs are passed to ox-html.

2 weeks agoox-publish: Consistently cache properties
Nicolas Goaziou [Fri, 5 May 2017 21:22:23 +0000 (23:22 +0200)]
ox-publish: Consistently cache properties

* lisp/ox-publish.el (org-publish-org-to):
(org-publish-collect-index):
(org-publish--store-crossrefs):
(org-publish-resolve-external-link): Use `file-truename' so that
caching keys do not depend on links in the file name.

2 weeks agoox-publish: Use file true name as reference
Nicolas Goaziou [Thu, 4 May 2017 07:53:46 +0000 (09:53 +0200)]
ox-publish: Use file true name as reference

* lisp/ox-publish.el (org-publish-file): Use file true name as
  reference.

2 weeks agoox-publish: Small refactoring
Nicolas Goaziou [Thu, 4 May 2017 07:20:23 +0000 (09:20 +0200)]
ox-publish: Small refactoring

* lisp/ox-publish.el (org-publish-file): Use function dedicated to
  files instead of string related ones.  Small refactoring.
(org-publish-cache-get-file-property): Small refactoring.

2 weeks agoox-publish: Fix publishing filenames with symbolic links
Nicolas Goaziou [Wed, 3 May 2017 15:05:54 +0000 (17:05 +0200)]
ox-publish: Fix publishing filenames with symbolic links

* lisp/ox-publish.el (org-publish-get-project-from-filename):
(org-publish-attachment):
(org-publish-projects):
(org-publish-org-sitemap): Use file comparison functions instead of
string ones so as to properly handle symbolic links in filenames.

3 weeks agoox-extra: Merge sections from ignored headlines
Kyle Meyer [Sat, 29 Apr 2017 16:58:49 +0000 (12:58 -0400)]
ox-extra: Merge sections from ignored headlines

* contrib/lisp/ox-extra.el (org-extra--merge-sections): New function.
(org-export-ignore-headlines): Merge multiple sections that result
from removing ignored headlines.

Prevent org-export-ignore-headlines from violating the one headline to
one section mapping that is relied on by at least one export backend,
ox-texinfo.  (ox-texinfo uses each section to generate the menu.)

3 weeks agoox-extra: Use cl-lib
Kyle Meyer [Thu, 4 May 2017 03:27:25 +0000 (23:27 -0400)]
ox-extra: Use cl-lib

* contrib/lisp/ox-extra.el (org-latex-header-blocks-filter): Use "cl-"
prefix.

3 weeks agoob-core: Fix `org-babel-balanced-split' release_9.0.6
Nicolas Goaziou [Mon, 1 May 2017 21:35:39 +0000 (23:35 +0200)]
ob-core: Fix `org-babel-balanced-split'

* lisp/ob-core.el (org-babel-balanced-split): Rewrite function.

Reported-by: Moritz Heidkamp <moritz@twoticketsplease.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113204>

3 weeks agoob-core: Small refactoring
Nicolas Goaziou [Mon, 1 May 2017 13:33:09 +0000 (15:33 +0200)]
ob-core: Small refactoring

* lisp/ob-core.el (org-babel-read): Small refactoring.
(org-babel--string-to-number): Use `string-match-p' instead of
`string-match'.
* lisp/org-compat.el (org-babel-number-p): Move obsolete alias.

3 weeks agoFix indentation bug
Nicolas Goaziou [Sun, 30 Apr 2017 20:26:10 +0000 (22:26 +0200)]
Fix indentation bug

* lisp/org.el (org--get-expected-indentation): Correctly indent line
  when last element in an item is not a greater element.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

3 weeks agoFix some documentation typos
Kyle Meyer [Sun, 30 Apr 2017 19:11:45 +0000 (15:11 -0400)]
Fix some documentation typos

* lisp/org-agenda.el (org-agenda-show-inherited-tags):
* lisp/org-element.el (Accessors and Setters):
(org-element-parse-buffer): Fix documentation typos.

3 weeks agoob-python: Honor the :python header argument in python src blocks
Nathaniel Nicandro [Sat, 29 Apr 2017 14:26:33 +0000 (16:26 +0200)]
ob-python: Honor the :python header argument in python src blocks

* lisp/ob-python.el (org-babel-execute:python):
`org-babel-python-command` should be set before calling
`org-babel-python-initiate-session`.

TINYCHANGE

3 weeks agoox: Do not trim leading and trailing blank lines from code
Nicolas Goaziou [Sat, 29 Apr 2017 12:32:29 +0000 (14:32 +0200)]
ox: Do not trim leading and trailing blank lines from code

* lisp/ox.el (org-export-get-loc):
(org-export-unravel-code):
(org-export-format-code):
(org-export-format-code-default): Do not trim leading and trailing
blank lines from code during export.

* testing/lisp/test-ox.el (test-org-export/unravel-code): Update tests.
(test-org-export/format-code-default): Add tests.

Reported-by: Li DebugFan <debugfanli@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113205>

3 weeks agoorg-src: Fix indentation when tabs are involved
Nicolas Goaziou [Sat, 29 Apr 2017 09:45:45 +0000 (11:45 +0200)]
org-src: Fix indentation when tabs are involved

* lisp/org-src.el (org-src--source-type):
(org-src--tab-width): New variables.
(org-src--edit-element): Set variables above.

(org-src--contents-for-write-back): Re-indent properly non-blank lines
before inserting contents back into the source buffer.
(org-edit-src-code): Delegate block indentation to
`org-src--contents-for-write-back'.

* testing/lisp/test-org-src.el (test-org-src/indented-blocks): New
  test.

Reported-by: Brent Goodrick <bgoodr@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113207>

3 weeks agoorg-clock: Fix failing tests
Nicolas Goaziou [Sat, 29 Apr 2017 08:25:57 +0000 (10:25 +0200)]
org-clock: Fix failing tests

* lisp/org-clock.el (org-clock-get-table-data): `org-get-heading' only
  accepts up to 2 arguments in Org 9.0.

4 weeks agoorg-colview: Fix agenda columns with diary entries
Nicolas Goaziou [Thu, 27 Apr 2017 22:23:49 +0000 (00:23 +0200)]
org-colview: Fix agenda columns with diary entries

* lisp/org-colview.el (org-agenda-columns): Do not treat diary entries
  as headlines.

Reported-by: "Éibhear" <eibhear.geo@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113282>

4 weeks agoorg-agenda: Store stuck project redo command
Allen Li [Thu, 20 Apr 2017 05:52:56 +0000 (22:52 -0700)]
org-agenda: Store stuck project redo command

* lisp/org-agenda.el (org-agenda-list-stuck-projects): Store the redo
command in a text property so it is found correctly.

`org-agenda-redo' checks the `org-redo-cmd' text property, not
`org-agenda-redo-command'.

TINYCHANGE

4 weeks agoob-C: Fix command to perform on remote host
Иван Трусков [Tue, 25 Apr 2017 08:06:59 +0000 (10:06 +0200)]
ob-C: Fix command to perform on remote host

* lisp/ob-C.el (org-babel-C-execute): Make sure name of compiled
program is converted to local representation before sending it to the
shell on remote host.

The problem was when one would try to evaluate C source code block in
the file on remote host.  Compilation would go normally, then
evaluation would fail with error like "/bin/sh: unable to find file".

TINYCHANGE

4 weeks agoBackport commit c68cce94c from Emacs
Christian Garbs [Wed, 8 Mar 2017 20:13:57 +0000 (21:13 +0100)]
Backport commit c68cce94c from Emacs

; Fix typo in error messages (Bug#26034)
c68cce94c46140f2ad1411550427d3cc2658ec02
Christian Garbs
Mon Apr 17 07:07:12 2017 +0300

TINYCHANGE

5 weeks agoorg-protocol: Don't push url to kill-ring
Matt Lundin [Tue, 18 Apr 2017 01:58:30 +0000 (20:58 -0500)]
org-protocol: Don't push url to kill-ring

* lisp/org-protocol.el: (org-protocol-do-capture) Don't push link to
  kill-ring when invoking `org-protocol-capture'.  Otherwise,
  `org-protocol-do-capture' interferes with capture templates that
  insert the contents of the clipboard or the kill ring.

5 weeks agoorg-capture: Fix typo
Nicolas Goaziou [Mon, 17 Apr 2017 18:04:09 +0000 (20:04 +0200)]
org-capture: Fix typo

* lisp/org-capture.el (org-capture-fill-template): Fix typo introduced
  in last commit.

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

5 weeks agoorg-capture: Fix clipboard history with %^C or %^L place holders
Nicolas Goaziou [Mon, 17 Apr 2017 12:18:06 +0000 (14:18 +0200)]
org-capture: Fix clipboard history with %^C or %^L place holders

* lisp/org-capture.el (org-capture--clipboards): New variable.
(org-capture-fill-template): Use new variable.

Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://permalink.gmane.org/gmane.emacs.orgmode/113020>

5 weeks agoox-confluence.el: Blank table cells produce required whitespace
Stephen Mackenzie [Mon, 17 Apr 2017 04:00:39 +0000 (00:00 -0400)]
ox-confluence.el: Blank table cells produce required whitespace

* contrib/lisp/ox-confluence.el (org-confluence-table-cell): Add blank
space in an empty table cell such that Confluence tables do not skip
empty entries and produce erroneous table headers.

Confluence tables are formatted incorrectly when empty cells
cause `||' to generate the next cell as a table header, skipping
the empty cell.  Empty cells must be formatted as `| |'.

TINYCHANGE

5 weeks agoorg-protocol: Do not catch all errors when providing backward compatibility
Nicolas Goaziou [Mon, 17 Apr 2017 09:03:47 +0000 (11:03 +0200)]
org-protocol: Do not catch all errors when providing backward compatibility

* lisp/org-protocol.el (org-protocol-check-filename-for-protocol): Do
  not catch every error so as to ease old style support.  Re-format
  code to fit within 80 columns.

Reported-by: Adam Porter <adam@alphapapa.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/113102>

5 weeks agoFix explanation, if state change is blocked by contained checkboxes
Marc Ihm [Fri, 14 Apr 2017 15:49:50 +0000 (17:49 +0200)]
Fix explanation, if state change is blocked by contained checkboxes

* lisp/org.el (org-todo): Fix explanation, if state change is blocked
  by contained checkboxes.

Consider a node, which contains unchecked checkboxes; if you have set
org-enforce-todo-checkbox-dependencies and try to change the node to
DONE, you will be denied with a message explaining why. However in this
special case the explanation would be wrong in talking of an unrelated
node instead of the checkboxes.

The fix uses the already existing variable org-blocked-by-checkboxes
(which is handled in org-block-todo-from-checkboxes).  Similar code is
already present in org-agenda-dim-blocked-tasks within org-agenda.el.

5 weeks agoorg-clock: Silence byte-compiler
Nicolas Goaziou [Mon, 17 Apr 2017 08:04:54 +0000 (10:04 +0200)]
org-clock: Silence byte-compiler

5 weeks agoorg-clock: Fix :link parameter in Clock table
Nicolas Goaziou [Mon, 17 Apr 2017 08:02:15 +0000 (10:02 +0200)]
org-clock: Fix :link parameter in Clock table

* lisp/org-clock.el (org-clock-get-table-data): Fix link creation with
  headlines containing COMMENT or TODO keywords.  Fix docstring.
  Small refactoring.

Reported-by: "Stacey Marshall" <stacey.marshall@oracle.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113094>

5 weeks agoDon't call kill-this-buffer outside of menus
Kyle Meyer [Sun, 16 Apr 2017 21:07:44 +0000 (17:07 -0400)]
Don't call kill-this-buffer outside of menus

* contrib/lisp/org-toc.el (org-toc-quit):
* lisp/org-mhe.el (org-mhe-follow-link): Use kill-buffer rather than
  menu-bar.el's kill-this-buffer.

See Emacs bug#26466 and discussion on emacs.devel:
https://lists.gnu.org/archive/html/emacs-devel/2017-04/msg00346.html.

This is in favor of backporting Emacs's 2e4f4c9d48 (Don't call
'kill-this-buffer' outside of menus, 2017-04-12), which introduces a
new function kill-current-buffer that provides special handling of
minibuffers.

5 weeks agoox-latex: Remove unwanted indentation in horizontal rules
Nicolas Goaziou [Sun, 16 Apr 2017 07:33:33 +0000 (09:33 +0200)]
ox-latex: Remove unwanted indentation in horizontal rules

* lisp/ox-latex.el (org-latex-horizontal-rule): Add "\noindent" macro
  before the horizontal rule.

Reported-by: Justen Rickert <justenrickert@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113092>

5 weeks agoob-sql.el: Fix filename conversion in minGW environment.
Xi Shen [Sun, 16 Apr 2017 07:24:06 +0000 (09:24 +0200)]
ob-sql.el: Fix filename conversion in minGW environment.

(org-babel-sql-convert-standard-filename): If it is not in Cygwin
environment, and `system-nt' is "windows-nt", Emacs must be in minGW
or MSYS environment, and can handle Windows filename correctly.

TINYCHANGE

5 weeks agoUpdating MathJax CDN links
aviv [Sat, 15 Apr 2017 20:21:57 +0000 (16:21 -0400)]
Updating MathJax CDN links

* doc/org.texi : Change reference to "cdn.mathjax.org" to "cdnjs.com",
  removing comment about no longer relevant terms of service.
* lisp/ox-html.el (org-html-mathjax-options) : Change link to
  appropriate cdnjs.com link to load MathJax.

Updating MathJax CDN links to reflect cdnjs.com as cdn.mathjax.org
will be disconitnued as of 30 April 2017.

TINYCHANGE

5 weeks agoorg-element: Fix radio link parser
Nicolas Goaziou [Sat, 15 Apr 2017 15:27:01 +0000 (17:27 +0200)]
org-element: Fix radio link parser

* lisp/org-element.el (org-element--object-lex): Fix parsing of radio
  links within emphasis.
* testing/lisp/test-org-element.el (test-org-element/link-parser): Add
  test.

Reported-by: R C <recifx@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113063>

5 weeks agoFix `org-forward-heading-same-level'
Nicolas Goaziou [Sat, 15 Apr 2017 14:51:33 +0000 (16:51 +0200)]
Fix `org-forward-heading-same-level'

* lisp/org.el (org-forward-heading-same-level): Do not fail when
  heading is at the beginning of the buffer.
* testing/lisp/test-org.el (test-org/forward-heading-same-level): New
  test.

Reported-by: Rafael Laboissière <rafael@laboissiere.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/113084>

6 weeks agoorg-mobile: Fix bug in mobile outline path handling
Ian Dunn [Fri, 7 Apr 2017 22:58:42 +0000 (18:58 -0400)]
org-mobile: Fix bug in mobile outline path handling

* org-mobile.el (org-mobile-get-outline-path-link): Use a `:' after
  file instead of a `/'.

6 weeks agoEnsure test files are opened in Emacs in test-org/fuzzy-links
Skip Collins [Fri, 7 Apr 2017 15:41:47 +0000 (11:41 -0400)]
Ensure test files are opened in Emacs in test-org/fuzzy-links

6 weeks agoorg-insert-link: Correct changes from a08dd527d
Kyle Meyer [Mon, 10 Apr 2017 00:44:10 +0000 (20:44 -0400)]
org-insert-link: Correct changes from a08dd527d

* lisp/org.el (org-insert-link): Fix regexp and undefined variable.

6 weeks agoBackport commit c92bae9a0 from Emacs
Tom Tromey [Sat, 18 Mar 2017 22:03:15 +0000 (23:03 +0100)]
Backport commit c92bae9a0 from Emacs

* lisp/org-list.el (org-list-insert-radio-list):
* lisp/org-table.el (orgtbl-setup, orgtbl-insert-radio-table): Use
derived-mode-p.

change org to use derived-mode-p
c92bae9a08cc7c2eb61bad32d9a9d6553b6d2c19
Tom Tromey
Wed Apr 5 15:53:38 2017 -0600

6 weeks agoorg-link-edit.el: Sync with upstream
Kyle Meyer [Mon, 10 Apr 2017 00:44:10 +0000 (20:44 -0400)]
org-link-edit.el: Sync with upstream

Update to version 1.1.0 (af79eebdb).

7 weeks agoox-man: Add new line before line break tag
Francesco Montanari [Sun, 26 Mar 2017 09:59:19 +0000 (12:59 +0300)]
ox-man: Add new line before line break tag

* lisp/ox-man.el (org-man-line-break): Transcode a LINE-BREAK object
  from Org to Man by adding the appropriate tag on a new line.

TINYCHANGE

8 weeks agoFix `org-startup-with-latex-preview' handling
Nicolas Goaziou [Thu, 30 Mar 2017 10:46:46 +0000 (12:46 +0200)]
Fix `org-startup-with-latex-preview' handling

* lisp/org.el (org-mode): When honoring
  `org-startup-with-latex-preview', make sure to preview the whole
  buffer.

Reported-by: Diego Nicola Barbato
<http://permalink.gmane.org/gmane.emacs.orgmode/112925>

8 weeks agoorg-clock: Preserve narrowing when building clock table
Nicolas Goaziou [Wed, 29 Mar 2017 14:33:10 +0000 (16:33 +0200)]
org-clock: Preserve narrowing when building clock table

* lisp/org-clock.el (org-dblock-write:clocktable): Preserve current
  narrowing, if any, when building the table.

Reported-by: Christof Musik <ml-orgmode@litephone.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/112872>

8 weeks agoSmall refactoring
Nicolas Goaziou [Wed, 29 Mar 2017 13:34:27 +0000 (15:34 +0200)]
Small refactoring

* lisp/org.el (org-insert-link): Small refactoring.

8 weeks agoAllow insertion of links with multi-line search strings
Matt Lundin [Mon, 27 Mar 2017 14:55:33 +0000 (09:55 -0500)]
Allow insertion of links with multi-line search strings

* lisp/org.el: (org-insert-link): Fix regexps to match across
  newlines.

8 weeks agoAdd test for link search
Nicolas Goaziou [Wed, 29 Mar 2017 12:17:50 +0000 (14:17 +0200)]
Add test for link search

* testing/lisp/test-org.el (test-org/fuzzy-links): Add test.

8 weeks agoAllow blank lines in text search link
Nicolas Goaziou [Wed, 29 Mar 2017 12:12:58 +0000 (14:12 +0200)]
Allow blank lines in text search link

* lisp/org.el (org-link-search): Allow blank lines.

This is a follow-up to 4dde26f08.

8 weeks agoox-latex: Fix last commit
Nicolas Goaziou [Mon, 27 Mar 2017 12:01:32 +0000 (14:01 +0200)]
ox-latex: Fix last commit

* lisp/ox-latex.el (org-latex--align-string): Fix typo in last commit.

8 weeks agoMerge branch 'maint' of orgmode.org:org-mode into maint
Nicolas Goaziou [Mon, 27 Mar 2017 11:52:40 +0000 (13:52 +0200)]
Merge branch 'maint' of orgmode.org:org-mode into maint

8 weeks agoox-latex: Fix user-defined align string in matrices
Nicolas Goaziou [Mon, 27 Mar 2017 11:43:49 +0000 (13:43 +0200)]
ox-latex: Fix user-defined align string in matrices

* lisp/ox-latex.el (org-latex--align-string): Change signature.
  Center all cells in matrices, yet preserve user-defined align
  string.
(org-latex--math-table): Apply signature change.

Reported-by: Phil Regier <phil.regier@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112873>

8 weeks agoox-latex: Fix user-defined align string in matrices
Nicolas Goaziou [Mon, 27 Mar 2017 11:43:49 +0000 (13:43 +0200)]
ox-latex: Fix user-defined align string in matrices

* lisp/ox-latex.el (org-latex--align-string): Change signature.
  Center all cells in matrices, yet preserve user-defined align
  string.
(org-latex--math-table): Apply signature change.

Reported-by: Phil Regier <phil.regier@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112873>

8 weeks agoFix lsearch strings with newline characters
Nicolas Goaziou [Mon, 27 Mar 2017 11:34:04 +0000 (13:34 +0200)]
Fix lsearch strings with newline characters

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

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

8 weeks agoBackport commit 14d8b6858 from Emacs
Paul Eggert [Tue, 21 Mar 2017 16:18:42 +0000 (09:18 -0700)]
Backport commit 14d8b6858 from Emacs

* doc/org.texi (noweb-ref): Simplify shell script example and don’t
use ‘tail -1’, which is not portable.

Port and simplify example sh script
14d8b6858a49e97f9b69593df5a8a7886430d43f
Paul Eggert
Tue Mar 21 09:19:42 2017 -0700

8 weeks agoorg: Fix tag setter
Marco Wahl [Sun, 26 Mar 2017 13:39:20 +0000 (15:39 +0200)]
org: Fix tag setter

* lisp/org.el (org-set-tags): Treat ':' and '::' as no tag.

2 months agoox-html.el (org-html-scripts): Fix copyright years
Bastien [Thu, 23 Mar 2017 22:46:13 +0000 (23:46 +0100)]
ox-html.el (org-html-scripts): Fix copyright years

* lisp/ox-html.el (org-html-scripts): Fix copyright years.

2 months agoox: Fix "Fix :filter-options"
Nicolas Goaziou [Thu, 23 Mar 2017 15:41:26 +0000 (16:41 +0100)]
ox: Fix "Fix :filter-options"

* lisp/ox.el (org-export-as): Remove uninterpreted data from back-end
  specific parsed keywords.

* testing/lisp/test-ox.el (test-org-export/uninterpreted): Add test.

This fixes 6cd42b08f9347a8d6084ec23548b754f9e02b2a1.

2 months agoox: Clarify a docstring
Nicolas Goaziou [Thu, 23 Mar 2017 15:38:59 +0000 (16:38 +0100)]
ox: Clarify a docstring

* lisp/ox.el (org-export-get-all-options): Specify return value for
  unknown back-ends.
(org-export--parse-option-keyword):
(org-export--get-subtree-options):
(org-export--get-inbuffer-options):
(org-export--get-global-options): Remove useless check.

2 months agoorg-agenda: Fix agenda buffer name after reload sticky agenda
Marco Wahl [Tue, 21 Mar 2017 19:47:30 +0000 (20:47 +0100)]
org-agenda: Fix agenda buffer name after reload sticky agenda

* lisp/org-agenda.el (org-agenda-list): Don't rename the buffer when
  redoing sticky.

This fix has been proposed by Ian Dunn.

<http://permalink.gmane.org/gmane.emacs.orgmode/112833>

TINYCHANGE

2 months agotest-org-agenda: Test agenda buffername when reload sticky agenda
Marco Wahl [Tue, 21 Mar 2017 19:42:08 +0000 (20:42 +0100)]
test-org-agenda: Test agenda buffername when reload sticky agenda

* testing/lisp/test-org-agenda.el: One additional test to Check that
  buffer name remains the same after reload.  (BTW some cleanup.)

2 months agoorg-src: Fix fontification error
Aaron Jensen [Sun, 19 Mar 2017 22:55:51 +0000 (23:55 +0100)]
org-src: Fix fontification error

* lisp/org-src.el (org-src-font-lock-fontify-block): Fix fontification
error introduced in commit f2a5104e45b6f44a08960ae49ba20c124a8fa9d8.

TINYCHANGE

2 months agoBackport commit 265a5d979 from Emacs
Michael Albinus [Thu, 16 Mar 2017 15:23:07 +0000 (16:23 +0100)]
Backport commit 265a5d979 from Emacs

* doc/org.texi (dir): Change example to use a method.

Document remote file name syntax change
265a5d9791bf42da0bab7bdbef4352e8d734ef31
Michael Albinus
Thu Mar 16 16:23:07 2017 +0100

2 months agoorg-clock: Fix percent formula column in clock table
Yasushi SHOJI [Sun, 19 Mar 2017 09:55:44 +0000 (10:55 +0100)]
org-clock: Fix percent formula column in clock table

* lisp/org-clock.el (org-clocktable-write-default): Fix percent
  formula column in clock table.

2 months agoob-exp: Fix export of src blocks with pathological name
Nicolas Goaziou [Sat, 18 Mar 2017 09:28:15 +0000 (10:28 +0100)]
ob-exp: Fix export of src blocks with pathological name

* lisp/ob-exp.el (org-babel-exp-process-buffer): Discard false
  positives.
* testing/lisp/test-ob-exp.el (ob-exp/src-block-with-affiliated-keyword):
  New test.

Reported-by: Skip Collins <skip.collins@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112797>

2 months agoorg-agenda: Fix agenda standard name when going unsticky
Marco Wahl [Fri, 17 Mar 2017 18:44:56 +0000 (19:44 +0100)]
org-agenda: Fix agenda standard name when going unsticky

* lisp/org-agenda.el (org-agenda-list): Reset `org-agenda-buffer-name'
  to the original name.
* testing/lisp/test-org-agenda.el: Pertaining unit test.  + 2 basic
  agenda tests.
* testing/examples/agenda-file.org: File to produce content for an
  agenda to test.

2 months agoorg-agenda: Fix off-by-one scheduled repeat
Nicolas Goaziou [Fri, 17 Mar 2017 07:35:47 +0000 (08:35 +0100)]
org-agenda: Fix off-by-one scheduled repeat

* lisp/org-agenda.el (org-agenda-get-scheduled): Make the second
  repeat appear as "Sched. 1x".

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

2 months agolisp/org-table.el: Bugfix: correctly handle increment of -/+ numbers
Bastien [Thu, 16 Mar 2017 21:15:11 +0000 (22:15 +0100)]
lisp/org-table.el: Bugfix: correctly handle increment of -/+ numbers

* lisp/org-table.el (org-table-copy-down): Bugfix: correctly
handle increment of numbers with a -/+ sign.

2 months agoFix custom timestamps during export (ox-groff)
Robert Klein [Mon, 13 Mar 2017 06:29:27 +0000 (07:29 +0100)]
Fix custom timestamps during export (ox-groff)

* contrib/lisp/ox-groff.el (org-groff-clock, org-groff-planning): Use
  org-translate-time'.

(propagate changes introduced to other export backends in commit
e1adb17ba509a43e9a03a5b367a98b8bc8de8b02.)

2 months agoorg.texi: Fix link
Nicolas Goaziou [Thu, 16 Mar 2017 12:00:39 +0000 (13:00 +0100)]
org.texi: Fix link

* doc/org.texi (Hooks): Fix link.

2 months agoox-org: Fix footnotes export, part 2
Nicolas Goaziou [Wed, 15 Mar 2017 13:30:52 +0000 (14:30 +0100)]
ox-org: Fix footnotes export, part 2

* lisp/ox-org.el (org-org--add-missing-sections): New function.
(org-org-section): Small refactoring.

Since footnote definitions are inserted in the section of the
headline, make sure those are not being skipped.