org-mode.git
41 hours agoMerge branch 'maint' master
Nicolas Goaziou [Thu, 21 Sep 2017 19:17:04 +0000 (21:17 +0200)]
Merge branch 'maint'

41 hours agoAdd publishing function to "Simple example" maint
Nick Dokos [Wed, 20 Sep 2017 12:03:49 +0000 (08:03 -0400)]
Add publishing function to "Simple example"

The simple example project definition is missing a publishing
function. Added org-html-publish-to-html as the publishing function.

41 hours agoRevert "Table of contents ignore unnumbered headlines"
Nicolas Goaziou [Thu, 21 Sep 2017 19:08:36 +0000 (21:08 +0200)]
Revert "Table of contents ignore unnumbered headlines"

This reverts commit bd2378161e76932103c9ef1f8343ffcc0d275007.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 20 Sep 2017 10:56:17 +0000 (12:56 +0200)]
Merge branch 'maint'

3 days agoRephrase `org-cycle-global-at-bob' documantion
Nicolas Goaziou [Wed, 20 Sep 2017 10:52:43 +0000 (12:52 +0200)]
Rephrase `org-cycle-global-at-bob' documantion

* doc/org.texi (Global and local cycling): Rephrase
  `org-cycle-global-at-bob' documantion.

Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00447.html>

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 19 Sep 2017 20:01:07 +0000 (22:01 +0200)]
Merge branch 'maint'

3 days agoox-html.el: Partially revert d5bbf36553
N. Raghavendra [Tue, 19 Sep 2017 17:07:02 +0000 (22:37 +0530)]
ox-html.el: Partially revert d5bbf36553

* lisp/ox-html.el (org-html-src-block): Unless klipse is used, export
source code blocks as content of `pre' elements, and not as content of
`code' children of `pre' elements.  Restores the previous way of
exporting source code blocks, and fixes the display of language
indicators while hovering over the blocks in the exported HTML file,
when klipse is not used.
(org-html-keep-old-src): Remove it.  Not needed because it is now the
default, unless klipse is used.

4 days agoMove `org-get-at-bol' into "org-macs.el"
Nicolas Goaziou [Mon, 18 Sep 2017 19:26:18 +0000 (21:26 +0200)]
Move `org-get-at-bol' into "org-macs.el"

* lisp/org.el (org-get-at-bol): Move...
* lisp/org-macs.el: ... here.

4 days agoMove `org-uniquify' into "org-macs.el"
Nicolas Goaziou [Mon, 18 Sep 2017 19:25:15 +0000 (21:25 +0200)]
Move `org-uniquify' into "org-macs.el"

* lisp/org.el (org-uniquify): Move function...
* lisp/org-macs.el: ... here.

4 days agoorg-macs: Re-order functions and macros
Nicolas Goaziou [Mon, 18 Sep 2017 19:24:23 +0000 (21:24 +0200)]
org-macs: Re-order functions and macros

4 days agoSilence byte-compiler
Nicolas Goaziou [Mon, 18 Sep 2017 19:15:31 +0000 (21:15 +0200)]
Silence byte-compiler

4 days agoMove `org-trim' in "org-macs.el"
Nicolas Goaziou [Mon, 18 Sep 2017 19:07:13 +0000 (21:07 +0200)]
Move `org-trim' in "org-macs.el"

* lisp/org.el (org-trim): Move function...
* lisp/org-macs.el: ... here.

4 days agoRe-bind `org-show-children' to C-c TAB
Nicolas Goaziou [Mon, 18 Sep 2017 18:20:35 +0000 (20:20 +0200)]
Re-bind `org-show-children' to C-c TAB

* lisp/org.el (org-ctrl-c-tab): New function.

4 days agoMerge branch 'maint'
Kyle Meyer [Mon, 18 Sep 2017 17:10:32 +0000 (13:10 -0400)]
Merge branch 'maint'

4 days agoob-hledger.el: Correct file name in header
Kyle Meyer [Mon, 18 Sep 2017 17:09:56 +0000 (13:09 -0400)]
ob-hledger.el: Correct file name in header

6 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 17 Sep 2017 10:48:59 +0000 (12:48 +0200)]
Merge branch 'maint'

6 days agoRemove useless binding
Nicolas Goaziou [Sun, 17 Sep 2017 10:48:17 +0000 (12:48 +0200)]
Remove useless binding

* lisp/org.el (org-mode-map): Remove [(meta return)] binding, handled
  by (kbd "M-RET").

Suggested-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00411.html>

6 days agoMerge branch 'maint'
Kyle Meyer [Sun, 17 Sep 2017 05:17:10 +0000 (01:17 -0400)]
Merge branch 'maint'

6 days agoAdjust the license link in new lisp/*.el files release_9.1.1
Kyle Meyer [Sun, 17 Sep 2017 05:00:09 +0000 (01:00 -0400)]
Adjust the license link in new lisp/*.el files

Emacs's bc511a64f6d made tree-wide changes to prefer https to http.
For Org, this resulted in the header of every lisp/*.el file being
changed.  Make the same changes in lisp/*.el files that were added
since Org version 9.0.10 (the last version that was synced with
Emacs).

6 days agoBackport commit bc511a64f from Emacs
Paul Eggert [Wed, 13 Sep 2017 22:52:52 +0000 (15:52 -0700)]
Backport commit bc511a64f from Emacs

Prefer HTTPS to FTP and HTTP in documentation
bc511a64f6da9ab51acc7c8865e80c4a4cb655c2
Paul Eggert
Wed Sep 13 15:54:37 2017 -0700

6 days agoBackport commit 5da53a019 from Emacs
Paul Eggert [Wed, 13 Sep 2017 22:46:16 +0000 (15:46 -0700)]
Backport commit 5da53a019 from Emacs

* lisp/org-info.el (org-info-other-documents)
(org-info-map-html-url):
* lisp/ox-html.el (org-html-creator-string): Use HTTPS instead of
HTTP.

Prefer HTTPS to HTTP for gnu.org
5da53a01912c2f5d46f5df4ef8cc13a34b5017d4
Paul Eggert
Wed Sep 13 15:54:25 2017 -0700

6 days agoBackport commit 74b8615fc from Emacs
Paul Eggert [Mon, 11 Sep 2017 05:22:55 +0000 (22:22 -0700)]
Backport commit 74b8615fc from Emacs

* lisp/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file
behavior.

Adjust ob-tangle to new copy-file behavior
74b8615fcceba7b92c4938e1bcc92015f10ae899
Paul Eggert
Sun Sep 10 22:31:23 2017 -0700

6 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 16 Sep 2017 15:19:55 +0000 (17:19 +0200)]
Merge branch 'maint'

6 days agoAdd M-RET binding for terminal
Nicolas Goaziou [Sat, 16 Sep 2017 15:19:00 +0000 (17:19 +0200)]
Add M-RET binding for terminal

* lisp/org.el (org-mode-map): Add M-RET binding.

Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00386.html>

7 days agoRemove auto-repair of malformed property drawers
Nicolas Goaziou [Sat, 16 Sep 2017 12:14:46 +0000 (14:14 +0200)]
Remove auto-repair of malformed property drawers

* lisp/org.el (org-buffer-property-keys): Remove optional argument
  IGNORE-MALFORMED.
* lisp/org-pcomplete.el (pcomplete/org-mode/prop): Update call to
  previous function.

* testing/lisp/test-org.el (test-org/buffer-property-keys): Remove
  a test.

More often than not, the question just gets in the way.  Use `M-x
org-lint' instead.

7 days agoMerge branch 'maint'
Kyle Meyer [Fri, 15 Sep 2017 22:59:45 +0000 (18:59 -0400)]
Merge branch 'maint'

7 days agoorg.texi: Update for library-of-babel.org move
Kyle Meyer [Fri, 15 Sep 2017 22:58:41 +0000 (18:58 -0400)]
org.texi: Update for library-of-babel.org move

* doc/org.texi (Library of Babel): Point to library-of-babel.org's new
location (as of 517637012).

7 days agoorgguide.texi: Fix Library of Babel link
Kyle Meyer [Fri, 15 Sep 2017 22:58:41 +0000 (18:58 -0400)]
orgguide.texi: Fix Library of Babel link

* doc/orgguide.texi (Working With Source Code): Fix typo in Library of
Babel link.

7 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 15 Sep 2017 19:12:17 +0000 (21:12 +0200)]
Merge branch 'maint'

7 days agoox-texinfo: Add missing autoload cookies
Nicolas Goaziou [Fri, 15 Sep 2017 19:10:29 +0000 (21:10 +0200)]
ox-texinfo: Add missing autoload cookies

* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.

7 days agoox-texinfo: Add missing autoload cookies
Nicolas Goaziou [Fri, 15 Sep 2017 19:10:29 +0000 (21:10 +0200)]
ox-texinfo: Add missing autoload cookies

* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.

8 days agoChange emphasis regexp
Nicolas Goaziou [Thu, 14 Sep 2017 22:12:34 +0000 (00:12 +0200)]
Change emphasis regexp

* lisp/org.el (org-emphasis-regexp-components): Change emphasis
  regexp.

Reported-by: Reuben Thomas <rrt@sc3d.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00363.html>

8 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Sep 2017 13:44:06 +0000 (15:44 +0200)]
Merge branch 'maint'

8 days agoFix `org-auto-repeat-maybe'
Nicolas Goaziou [Thu, 14 Sep 2017 13:33:51 +0000 (15:33 +0200)]
Fix `org-auto-repeat-maybe'

* lisp/org.el (org-auto-repeat-maybe): Fix `org-auto-repeat-maybe'.

* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Add test.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00298.html>

8 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Sep 2017 13:25:36 +0000 (15:25 +0200)]
Merge branch 'maint'

8 days agoob-scheme: Fix results error on unspecified and void values
Nicolas Goaziou [Thu, 14 Sep 2017 13:19:14 +0000 (15:19 +0200)]
ob-scheme: Fix results error on unspecified and void values

* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Return
  "#<void>" or "#<unspecified>" when the REPL says so.

* testing/lisp/test-ob-scheme.el (test-ob-scheme/unspecified): New
  test.
(test-ob-scheme/prologue): Fix tests.

Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00346.html>

9 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Sep 2017 12:47:15 +0000 (14:47 +0200)]
Merge branch 'maint'

9 days agoox-html: Fix missing Mathjax config with maths elements in captions
Nicolas Goaziou [Thu, 14 Sep 2017 12:40:33 +0000 (14:40 +0200)]
ox-html: Fix missing Mathjax config with maths elements in captions

* lisp/ox-html.el (org-html--build-mathjax-config): Fix missing
  Mathjax config with maths elements in captions.

Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00302.html>

10 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Sep 2017 12:17:24 +0000 (14:17 +0200)]
Merge branch 'maint'

10 days agoorg-table: Fix `org-table-copy-down' with timestamps
Nicolas Goaziou [Wed, 13 Sep 2017 11:03:11 +0000 (13:03 +0200)]
org-table: Fix `org-table-copy-down' with timestamps

* lisp/org-table.el (org-table-copy-down): Allow matching inactive
  timestamps.

Reported-by: Alan Schmitt <alan.schmitt@polytechnique.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00304.html>

11 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 12 Sep 2017 07:02:43 +0000 (09:02 +0200)]
Merge branch 'maint'

11 days agoFix `org-forward-sentence' on a headline
Nicolas Goaziou [Tue, 12 Sep 2017 07:02:02 +0000 (09:02 +0200)]
Fix `org-forward-sentence' on a headline

* lisp/org.el (org-forward-sentence): Fix `org-forward-sentence' on a headline.

* testing/lisp/test-org.el (test-org/forward-sentence): Add tests.

Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00282.html>

11 days agoAdd missing documentation part about shrunk columns
Nicolas Goaziou [Tue, 12 Sep 2017 07:00:27 +0000 (09:00 +0200)]
Add missing documentation part about shrunk columns

* doc/org.texi (In-buffer settings): Document
  `org-startup-shrink-all-tables'.

12 days agoMerge branch 'maint'
Kyle Meyer [Sun, 10 Sep 2017 20:54:02 +0000 (16:54 -0400)]
Merge branch 'maint'

12 days agoBackport commit cdef84fb6 from Emacs
Paul Eggert [Sun, 10 Sep 2017 16:20:27 +0000 (09:20 -0700)]
Backport commit cdef84fb6 from Emacs

Spelling fixes
cdef84fb6893f69ffee1a99fe82a262e02e59bf5
Paul Eggert
Sun Sep 10 09:24:37 2017 -0700

12 days agoox-texinfo: Do not add @node for unnumbered headings
Nicolas Goaziou [Sun, 10 Sep 2017 17:17:44 +0000 (19:17 +0200)]
ox-texinfo: Do not add @node for unnumbered headings

* lisp/ox-texinfo.el (org-texinfo-headline): Do not add @node for
  unnumbered headings.

12 days agoTable of contents ignore unnumbered headlines
Nicolas Goaziou [Sun, 10 Sep 2017 13:53:20 +0000 (15:53 +0200)]
Table of contents ignore unnumbered headlines

* doc/org.texi (Table of contents): Document behavior.
* lisp/ox-texinfo.el (org-texinfo-classes): Use @heading commands and
  alike for unnumbered sections.
* lisp/ox.el (org-export-collect-headlines): Ignore unnumbered
  headlines.

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

13 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 10 Sep 2017 12:12:52 +0000 (14:12 +0200)]
Merge branch 'maint'

13 days agoorg-agenda: Fix `org-agenda-skip-if-todo'
Nicolas Goaziou [Sun, 10 Sep 2017 12:10:49 +0000 (14:10 +0200)]
org-agenda: Fix `org-agenda-skip-if-todo'

* lisp/org-agenda.el (org-agenda-skip-if-todo): Make sure TODO search
  is case sensitive.  Refactor function.

13 days agoorg-agenda: Fix `org-agenda-skip-if'
Nicolas Goaziou [Sun, 10 Sep 2017 12:08:16 +0000 (14:08 +0200)]
org-agenda: Fix `org-agenda-skip-if'

* lisp/org-agenda.el (org-agenda-skip-if): Prevent some checks from
  moving point, since this stops following checks from running
  properly.

Reported-by: "cro cefisso" <crocefisso@gmx.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00182.html>

13 days agoorg-colview: Fix defcustom type
Nicolas Goaziou [Sun, 10 Sep 2017 09:16:40 +0000 (11:16 +0200)]
org-colview: Fix defcustom type

* lisp/org-colview.el (org-columns-summary-types): Fix defcustom type.

13 days agoorg-colview: Allow custom COLLECT functions for derived properties
Stig Brautaset [Fri, 8 Sep 2017 19:26:56 +0000 (20:26 +0100)]
org-colview: Allow custom COLLECT functions for derived properties

* lisp/org-colview.el (org-columns-summary-types): Allow new format.
(org-columns--summarize): Update to new summary type format.
(org-columns--collect): New function.
(org-columns--compute-spec): Apply changes.

* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Add test.

In addition to (LABEL . SUMMARIZE), org-columns-summary-types now
accepts (LABEL SUMMARIZE COLLECT) entries. The new COLLECT function is
called with one argument, the property being summarized.

TINYCHANGE

13 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 10 Sep 2017 07:39:50 +0000 (09:39 +0200)]
Merge branch 'maint'

13 days agoEnsure that top-level capture targets are pasted at level 1
Matt Lundin [Sat, 9 Sep 2017 16:08:06 +0000 (11:08 -0500)]
Ensure that top-level capture targets are pasted at level 1

* lisp/org-capture.el: (org-capture-place-entry) Ensure that level is
  set to 1 (i.e., the top level) if there is no headline target
  defined. Otherwise, captured items are improperly nested by context.

13 days agoox-html: Prevent spurious target below headlines
Nicolas Goaziou [Sat, 9 Sep 2017 22:16:12 +0000 (00:16 +0200)]
ox-html: Prevent spurious target below headlines

* lisp/ox-html.el (org-html-headline):
(org-html-link): Do not insert an additional target.

* lisp/ox-publish.el (org-publish-resolve-external-link): Add an
  optional argument.

* lisp/ox.el (org-export-get-reference): Improve docstring.

* testing/examples/pub/a.org:
* testing/examples/pub/b.org: New files.
* testing/lisp/test-ox-publish.el (test-org-publish/resolve-external-link):
  New test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Sep 2017 20:37:16 +0000 (22:37 +0200)]
Merge branch 'maint'

2 weeks agoorg-agenda: Fix typo
Nicolas Goaziou [Fri, 8 Sep 2017 20:35:54 +0000 (22:35 +0200)]
org-agenda: Fix typo

* lisp/org-agenda.el (org-search-view): Add missing :test keyword.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Sep 2017 19:19:53 +0000 (21:19 +0200)]
Merge branch 'maint'

2 weeks agoorg-agenda: Better state change detection
Nicolas Goaziou [Fri, 8 Sep 2017 19:18:22 +0000 (21:18 +0200)]
org-agenda: Better state change detection

* lisp/org-agenda.el (org-agenda-get-progress): Use appropriate regexp
  as TODO keywords are not limited to alphanumeric characters.

Reported-by: email@edgar-kalkowski.de
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00206.html>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Sep 2017 11:21:22 +0000 (13:21 +0200)]
Merge branch 'maint'

2 weeks agoFix duplicate tests
Nicolas Goaziou [Fri, 8 Sep 2017 11:20:48 +0000 (13:20 +0200)]
Fix duplicate tests

Reported-by: Stig Brautaset <stig@brautaset.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00187.html>

2 weeks agoRemove duplicate test
Nicolas Goaziou [Fri, 8 Sep 2017 11:11:25 +0000 (13:11 +0200)]
Remove duplicate test

* testing/lisp/test-org-table.el (test-org-table/align): Remove test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Sep 2017 05:00:00 +0000 (07:00 +0200)]
Merge branch 'maint'

2 weeks agoFix logic of calling org-make-link-desciption-function
Reuben Thomas [Tue, 5 Sep 2017 16:00:25 +0000 (17:00 +0100)]
Fix logic of calling org-make-link-desciption-function

* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Sep 2017 04:49:34 +0000 (06:49 +0200)]
Merge branch 'maint'

2 weeks agoImprove Scheme code evaluation
Neil Jerram [Sun, 20 Aug 2017 16:25:58 +0000 (17:25 +0100)]
Improve Scheme code evaluation

* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Use
  Geiser's explicit 'retort' object, instead of catching and parsing
  an expected Emacs message (which for me is in any case overwritten
  by a following "Mark set" message); this also means we don't need
  the with-output-to-string approach for getting 'output' results.
  Also 'let' Geiser variables so as to avoid popping up the REPL
  and *Geiser dbg* buffers.

2 weeks agoMerge branch 'maint'
Kyle Meyer [Thu, 7 Sep 2017 20:59:39 +0000 (16:59 -0400)]
Merge branch 'maint'

2 weeks agoUpdate customize-package-emacs-version-alist
Kyle Meyer [Thu, 7 Sep 2017 20:56:11 +0000 (16:56 -0400)]
Update customize-package-emacs-version-alist

* lisp/org.el (customize-package-emacs-version-alist): Add entries for
all existing ":package-version" values, and remove entries for
versions that aren't used as ":package-version" values.

Note that this alist has a limited effect because we specify
":version" in almost all of our defcustoms.  Two functions make use of
this alist: describe-variable-custom-version-info and
customize-changed-options.  The former only looks at the alist if
:version isn't specified, and the latter only looks at :version if an
entry for :package-version isn't found in the alist.

We should consider removing the defcustom :version specifications so
that the package-version->version mapping only needs to be maintained
in one place.

2 weeks agoCorrect defcustom version information
Kyle Meyer [Thu, 7 Sep 2017 20:56:11 +0000 (16:56 -0400)]
Correct defcustom version information

* lisp/ob-lilypond.el (org-babel-lilypond-commands):
* lisp/ob-lua.el (org-babel-lua-command):
(org-babel-lua-mode):
(org-babel-lua-hline-to):
(org-babel-lua-None-to):
* lisp/org-agenda.el (org-agenda-search-view-max-outline-level):
* lisp/org.el (org-mouse-1-follows-link):
(org-src-fontify-natively):
(orgstruct-heading-prefix-regexp):
* lisp/ox-ascii.el (org-ascii-format-inlinetask-function):
* lisp/ox-latex.el (org-latex-format-drawer-function):
(org-latex-listings-langs):
* lisp/ox-odt.el (org-odt-format-drawer-function):
* lisp/ox.el (org-export-with-properties): Correct ":version" value.

* lisp/org-attach.el (org-attach-annex-auto-get): Correct
":package-version" value.

2 weeks agoMerge branch 'maint'
Kaushal Modi [Thu, 7 Sep 2017 18:23:20 +0000 (14:23 -0400)]
Merge branch 'maint'

2 weeks agoMake ob-sclang.el work on emacs 24.3
Kaushal Modi [Thu, 7 Sep 2017 18:08:31 +0000 (14:08 -0400)]
Make ob-sclang.el work on emacs 24.3

* contrib/lisp/ob-sclang.el: Use eval-after-load instead of
  with-eval-after-load.

2 weeks agoSilence byte-compiler
Nicolas Goaziou [Thu, 7 Sep 2017 16:21:01 +0000 (18:21 +0200)]
Silence byte-compiler

2 weeks agoorg-table: Fix failing tests
Nicolas Goaziou [Thu, 7 Sep 2017 16:13:13 +0000 (18:13 +0200)]
org-table: Fix failing tests

* lisp/org-table.el (org-table--shrink-columns): Use compatibility function.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Sep 2017 16:03:03 +0000 (18:03 +0200)]
Merge branch 'maint'

2 weeks agoFix `org-confirm-babel-evaluate' with `org-sbe'
Nicolas Goaziou [Thu, 7 Sep 2017 15:43:32 +0000 (17:43 +0200)]
Fix `org-confirm-babel-evaluate' with `org-sbe'

* lisp/ob-core.el (org-babel-check-confirm-evaluate): Do not move
  point, as it is neither necessary nor expected by
  `org-babel-check-confirm-evaluate'.

Reported-by: Alex Bennée <alex.bennee@linaro.org>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00167.html

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Sep 2017 13:55:20 +0000 (15:55 +0200)]
Merge branch 'maint'

2 weeks agoorg-agenda: Remove duplicate files when building a search view
Nicolas Goaziou [Thu, 7 Sep 2017 13:52:56 +0000 (15:52 +0200)]
org-agenda: Remove duplicate files when building a search view

* lisp/org-agenda.el (org-search-view): Remove duplicate files when
  building a search view.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html>

2 weeks agoRestriction lock means no extra files in agenda search view
Nicolas Goaziou [Thu, 7 Sep 2017 13:51:30 +0000 (15:51 +0200)]
Restriction lock means no extra files in agenda search view

* lisp/org-agenda.el (org-search-view): Restriction lock means no
  extra files in agenda search view.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Sep 2017 13:29:03 +0000 (15:29 +0200)]
Merge branch 'maint'

2 weeks agoTolerate editing an export block without type
Nicolas Goaziou [Thu, 7 Sep 2017 13:27:55 +0000 (15:27 +0200)]
Tolerate editing an export block without type

* lisp/org-src.el (org-edit-export-block): Tolerate editing an export
  block without type.

2 weeks agoorg-archive: Fix failing tests
Nicolas Goaziou [Thu, 7 Sep 2017 13:24:36 +0000 (15:24 +0200)]
org-archive: Fix failing tests

* testing/lisp/test-org-archive.el (test-org-element/archive-update-status-cookie):
Fix failing tests.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Sep 2017 13:21:35 +0000 (15:21 +0200)]
Merge branch 'maint'

2 weeks agoorg-duration: Fix `org-duration-to-minutes' with the empty string
Nicolas Goaziou [Thu, 7 Sep 2017 13:20:26 +0000 (15:20 +0200)]
org-duration: Fix `org-duration-to-minutes' with the empty string

* lisp/org-duration.el (org-duration-to-minutes): Accept the empty
  string.

* testing/lisp/test-org-duration.el (test-org-duration/to-minutes):
  Add test.

For backward compatibility with `org-duration-string-to-minutes'
accept the empty string as a duration.

2 weeks agoorg.texi: Fix last commit
Nicolas Goaziou [Thu, 7 Sep 2017 12:39:54 +0000 (14:39 +0200)]
org.texi: Fix last commit

* doc/org.texi (Column width and alignment): Fix keybinding and
  function syntax.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Sep 2017 12:38:23 +0000 (14:38 +0200)]
Merge branch 'maint'

2 weeks agoORG-NEWS: Add incompatible change about `org-split-string'
Nicolas Goaziou [Thu, 7 Sep 2017 12:37:49 +0000 (14:37 +0200)]
ORG-NEWS: Add incompatible change about `org-split-string'

2 weeks agoUse `split-string' instead of `org-split-string'
Nicolas Goaziou [Thu, 7 Sep 2017 12:34:25 +0000 (14:34 +0200)]
Use `split-string' instead of `org-split-string'

* contrib/lisp/org-depend.el (org-depend-trigger-todo):
(org-depend-block-todo):
* contrib/lisp/ox-bibtex.el (org-bibtex-get-arguments):
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template):
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-unique-id):
(org-taskjuggler-resolve-dependencies):
* lisp/ob-core.el (org-babel-insert-result):
* lisp/org-agenda.el (org-search-view):
* lisp/org-lint.el (org-lint-duplicate-target):
(org-lint-wrong-header-value):
* lisp/org.el (org--setup-collect-keywords):
(org-make-org-heading-search-string):
(org-search-radio-target):
(org-local-logging):
(org-entry-add-to-multivalued-property):
(org-entry-remove-from-multivalued-property):
(org-entry-member-in-multivalued-property):
(org-entry-get-multivalued-property):
(org-entry-put-multivalued-property):
(org-wrap):
* lisp/ox-beamer.el (org-beamer-allowed-property-values):
* lisp/ox.el (org-export--get-subtree-options):
(org-export--get-inbuffer-options): Use `split-string' instead of
`org-split-string'.

2 weeks agoorg.texi: Hint to "C-h ." to see hidden cell value
Marco Wahl [Thu, 7 Sep 2017 09:44:25 +0000 (11:44 +0200)]
org.texi: Hint to "C-h ." to see hidden cell value

2 weeks agoorg-agenda: Silence byte-compiler
Nicolas Goaziou [Wed, 6 Sep 2017 13:39:32 +0000 (15:39 +0200)]
org-agenda: Silence byte-compiler

2 weeks agoorg-table: Obey <c> cookie when aligning a table
Nicolas Goaziou [Sat, 19 Aug 2017 16:45:41 +0000 (18:45 +0200)]
org-table: Obey <c> cookie when aligning a table

* lisp/org-table.el (org-table--align-field): New function.
(org-table-align): Use new function.  Refactor code.
(org-table-justify-field-maybe): Use new function.
(org-table-get-remote-range): Remove duplicate bindings.

* doc/org.texi (Column width and alignment): Remove footnote.

* testing/lisp/test-org-table.el (test-org-table/align): New test.

2 weeks agoDocument new column display
Nicolas Goaziou [Sat, 19 Aug 2017 13:32:54 +0000 (15:32 +0200)]
Document new column display

* doc/org.texi (Column width and alignment): Document new column
  display.

2 weeks agoorg-table: Implement org-table-expand
Nicolas Goaziou [Sat, 19 Aug 2017 13:39:04 +0000 (15:39 +0200)]
org-table: Implement org-table-expand

* lisp/org-table.el (org-table-expand): New function.
(org-table--expand-all-columns): Remove function.
(org-table-with-shrunk-columns):
(org-table-insert-column):
(org-table-delete-column):
(org-table-move-column):
(org-table-toggle-column-width): Use new function.

2 weeks agoorg-table: Change behavior of `org-table-toggle-column-width'
Nicolas Goaziou [Sat, 19 Aug 2017 12:09:50 +0000 (14:09 +0200)]
org-table: Change behavior of `org-table-toggle-column-width'

* lisp/org-table.el (org-table-toggle-column-width): Change behavior
  of `org-table-toggle-column-width'.
(org-table-shrink): Allow optional arguments.

* testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
  Update tests.

2 weeks agoorg-table: Allow to shrink tables upon opening a document
Nicolas Goaziou [Wed, 26 Jul 2017 23:44:23 +0000 (01:44 +0200)]
org-table: Allow to shrink tables upon opening a document

* lisp/org-table.el (org-table-shrink): New function.
* lisp/org.el (org-startup-align-all-tables): Update docstring.
(org-startup-shrink-all-tables): New variable.
(org-mode): Use new function and new variable.

2 weeks agoRemove visual effect of width cookies in tables
Nicolas Goaziou [Mon, 10 Jul 2017 11:35:00 +0000 (13:35 +0200)]
Remove visual effect of width cookies in tables

* lisp/org-colview.el (org-dblock-write:columnview): Remove :width
  parameter.

* lisp/org-table.el (org-narrow-column-arrow): Remove variable.
(org-table-cleanup-narrow-column-properties): Remove function.
(org-table-align): Ignore width cookies when aligning table.
(org-table-justify-field-maybe):
(org-table-finish-edit-field):
(org-table-follow-fields-with-editor):
(orgtbl-setup): Remove reference to `org-cwidth' property.

* lisp/org.el (org-mode):
(org-hide-wide-columns): Remove function.
(org-set-font-lock-defaults): Apply previous removal.
(org-shorten-string): Ignore `org-cwidth' property.

* testing/lisp/test-org-colview.el (test-org-colview/dblock): Remove
  a test.

Export back-ends may still use width cookie to alter table's output.

2 weeks agoorg-table: Implement shrunk columns
Nicolas Goaziou [Tue, 27 Jun 2017 21:06:02 +0000 (23:06 +0200)]
org-table: Implement shrunk columns

* lisp/org-table.el (org-table-shrunk-column-indicator): New variable.
(org-table-with-shrunk-columns): New macro.
(org-table--shrunk-field):
(org-table--list-shrunk-columns):
(org-table--shrink-field):
(org-table--read-column-selection):
(org-table--expand-all-columns):
(org-table-toggle-column-width): New functions.

(org-table-align):
(org-table-get-field):
(org-table-insert-column):
(org-table-delete-column):
(org-table-move-column):
(org-table-move-row):
(org-table-insert-row):
(org-table-insert-hline):
(org-table-kill-row):
(org-table-sort-lines): Use new functions.

(org-table-overlay-coordinates):
(org-table-toggle-coordinate-overlays): Tiny refactoring.

* testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
(test-org-table/shrunk-columns): New tests.

2 weeks agoorg-archive.el: Update statistic cookies when archiving
Jay Kamat [Wed, 6 Sep 2017 12:31:01 +0000 (14:31 +0200)]
org-archive.el: Update statistic cookies when archiving

* lisp/org-archive.el (org-archive-subtree): Update todo statistics
  when calling `org-archive-subtree'.
(org-archive-to-archive-sibling): Update cookie statistics when
calling `org-archive-to-archive-sibling'.

* testing/lisp/test-org-archive.el: New file.

This can be disabled by setting `org-provide-todo-statistics' to nil.

2 weeks agoFix ORG-NEWS
Nicolas Goaziou [Wed, 6 Sep 2017 11:22:13 +0000 (13:22 +0200)]
Fix ORG-NEWS

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 6 Sep 2017 11:19:37 +0000 (13:19 +0200)]
Merge branch 'maint'

2 weeks agoFix table variable with commas in ob-sqlite
Eduardo Bellani [Tue, 5 Sep 2017 21:17:22 +0000 (18:17 -0300)]
Fix table variable with commas in ob-sqlite

* lisp/ob-sqlite.el (org-babel-sqlite-expand-vars): Stop interfering
  with the 'orgtbl-to-csv' default formatting.

* testing/lisp/test-ob-sqlite.el: New file.

The problem here was that ob-sqlite was providing a format to the
`orgtbl-to-csv' that actually overwrote the default format in that
function, and in the case where there were commas in the content of
the table, broke the table as argument mechanism.

TINYCHANGE