org-mode.git
3 days agoMerge branch 'maint' master
Nicolas Goaziou [Thu, 23 Feb 2017 19:49:43 +0000 (20:49 +0100)]
Merge branch 'maint'

3 days agoorg.texi: Fix example maint
Nicolas Goaziou [Thu, 23 Feb 2017 18:15:22 +0000 (19:15 +0100)]
org.texi: Fix example

* doc/org.texi (noweb-ref): Update Babel parameter syntax in example.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 23 Feb 2017 13:19:06 +0000 (14:19 +0100)]
Merge branch 'maint'

4 days agoorg.el: Make faces org-quote and org-verse be appended
Anders Johansson [Thu, 23 Feb 2017 13:14:50 +0000 (14:14 +0100)]
org.el: Make faces org-quote and org-verse be appended

* lisp/org.el (org-fontify-quote-and-verse-blocks): Append faces.  Use
  `add-face-text-property'.

This means fontification of emphasis, links etc. is kept in quote and
verse blocks even with org-fontify-quote-and-verse-blocks non-nil.

TINYCHANGE

4 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 23 Feb 2017 11:59:45 +0000 (12:59 +0100)]
Merge branch 'maint'

4 days agoorg-capture: Tiny refactoring
Nicolas Goaziou [Thu, 23 Feb 2017 11:59:24 +0000 (12:59 +0100)]
org-capture: Tiny refactoring

* lisp/org-capture.el (org-capture-refile): Tiny refactoring.

4 days agoorg-duration: `org-duration-to-minutes' accepts plain numbers
Nicolas Goaziou [Thu, 23 Feb 2017 11:46:37 +0000 (12:46 +0100)]
org-duration: `org-duration-to-minutes' accepts plain numbers

* lisp/org-duration.el (org-duration-to-minutes): Accept plain numbers
  for backward compatibility with `org-hh:mm-string-to-minutes'.

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

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

4 days agoorg-duration: Fix bug with decimal units
Nicolas Goaziou [Wed, 22 Feb 2017 18:34:44 +0000 (19:34 +0100)]
org-duration: Fix bug with decimal units

* lisp/org-duration.el (org-duration-to-minutes): Fix bug where the
  same unit with a decimal unit would be matched multiple times.
* testing/lisp/test-org-duration.el (test-org-duration/to-minutes):
  Fix test.

5 days agoorg-duration: Improve docstring
Nicolas Goaziou [Wed, 22 Feb 2017 10:51:44 +0000 (11:51 +0100)]
org-duration: Improve docstring

* lisp/org-duration.el (org-duration-format): Clarify docstring.

5 days agoorg-agenda: Display all past repeated events for plain timestamps
Nicolas Goaziou [Tue, 21 Feb 2017 18:20:17 +0000 (19:20 +0100)]
org-agenda: Display all past repeated events for plain timestamps

* lisp/org-agenda.el (org-agenda-prefer-last-repeat): Document special
  behaviour for bare timestamps.
(org-agenda-get-timestamps): Show every past repeated event when
`org-agenda-prefer-last-repeat' is non-nil.

Reported-by: Jarmo Hurri <jarmo.hurri@iki.fi>
<http://permalink.gmane.org/gmane.emacs.orgmode/111731>

5 days agoorg-compat: Fix migration to `org-duration-format'
Nicolas Goaziou [Tue, 21 Feb 2017 17:44:55 +0000 (18:44 +0100)]
org-compat: Fix migration to `org-duration-format'

* lisp/org-compat.el (org-time-clocksum-format):
(org-time-clocksum-use-fractional):
(org-time-clocksum-fractional-format):
(org-time-clocksum-use-effort-durations): Do not make an alias to
a variable with an incompatible value.

Reported-by: Achim Gratz <Stromeko@nexgo.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112266>

5 days agoMerge branch 'maint'
Bastien [Tue, 21 Feb 2017 14:42:12 +0000 (15:42 +0100)]
Merge branch 'maint'

5 days agoorg-capture: Fix commit 7d7c38
Bastien [Tue, 21 Feb 2017 14:41:15 +0000 (15:41 +0100)]
org-capture: Fix commit 7d7c38

6 days agonew version 5.2.3 with more performance and customizations
U-IHM-NOTEBOOK\Olli [Mon, 20 Feb 2017 19:38:29 +0000 (20:38 +0100)]
new version 5.2.3 with more performance and customizations

7 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 19 Feb 2017 14:37:41 +0000 (15:37 +0100)]
Merge branch 'maint'

7 days agoorg-capture: Fix `org-capture-refile'
Nicolas Goaziou [Sun, 19 Feb 2017 14:27:09 +0000 (15:27 +0100)]
org-capture: Fix `org-capture-refile'

* lisp/org-capture.el (org-capture-refile): Preserve location of point
  when refiling.

* testing/lisp/test-org-capture.el (test-org-capture/refile): New
  test.

Reported-by: Liu Hui <liuhui1610@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112202>

8 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 19 Feb 2017 08:39:50 +0000 (09:39 +0100)]
Merge branch 'maint'

8 days agoorg-clock: Add german translation.
Axel Kielhorn [Sun, 19 Feb 2017 06:25:01 +0000 (07:25 +0100)]
org-clock: Add german translation.

* lisp/org-clocl.el (org-clock-clocktable-language-setup): German
  translations added.

Axel Kielhorn <org-mode@axelkielhorn.de>
TINYCHANGE

8 days agoorg-clock: Refactor tests
Nicolas Goaziou [Sat, 18 Feb 2017 19:55:40 +0000 (20:55 +0100)]
org-clock: Refactor tests

* testing/lisp/test-org-clock.el (test-org-clock-clocktable-contents):
  Change signature.
(test-org-clock/clocktable/ranges):
(test-org-clock/clocktable/tags):
(test-org-clock/clocktable/scope):
(test-org-clock/clocktable/maxlevel):
(test-org-clock/clocktable/formula):
(test-org-clock/clocktable/lang):
(test-org-clock/clocktable/compact):
(test-org-clock/clocktable/properties): Use updated function.

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

8 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 18 Feb 2017 13:57:04 +0000 (14:57 +0100)]
Merge branch 'maint'

8 days agoorg-src: Fix typo in code comment
Nicolas Goaziou [Sat, 18 Feb 2017 13:56:41 +0000 (14:56 +0100)]
org-src: Fix typo in code comment

* lisp/org-src.el (org-edit-src-save): Fix typo.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 18 Feb 2017 13:55:45 +0000 (14:55 +0100)]
Merge branch 'maint'

8 days agoorg-clock: Small refactoring
Nicolas Goaziou [Sat, 18 Feb 2017 13:54:43 +0000 (14:54 +0100)]
org-clock: Small refactoring

* lisp/org-clock.el (org-clocktable-write-default): Small refactoring.
* testing/lisp/test-org-clock.el (test-org-clock/clocktable/compact):
  Add tests.

9 days agoorg-clock: Fix number of columns with :compact parameter
Nicolas Goaziou [Sat, 18 Feb 2017 13:20:18 +0000 (14:20 +0100)]
org-clock: Fix number of columns with :compact parameter

* lisp/org-clock.el (org-clocktable-write-default): Fix number of
  columns with :compact parameter.

Reported-by: Stefan Nobis <stefan-ml@snobis.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112217>

9 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 17 Feb 2017 21:33:16 +0000 (22:33 +0100)]
Merge branch 'maint'

9 days agoProperly save source blocks with `save-some-buffers'
Nicolas Goaziou [Fri, 17 Feb 2017 21:29:06 +0000 (22:29 +0100)]
Properly save source blocks with `save-some-buffers'

* lisp/org-src.el (org-src-mode-configure-edit-buffer): Set
  `write-contents-functions' so that saving a remote editing buffer
  always call `org-edit-src-save'.
(org-edit-src-save): Return a non-nil value explicitly.

Reported-by: Thibault Polge <thibault@thb.lt>
<http://permalink.gmane.org/gmane.emacs.orgmode/112201>

9 days agoFix: Prevent spurious newlines when inserting a new heading
Nicolas Goaziou [Fri, 17 Feb 2017 20:51:16 +0000 (21:51 +0100)]
Fix: Prevent spurious newlines when inserting a new heading

* lisp/org.el (org-insert-heading): Do not insert spurious newline
  characters when inserting a headline.

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

Reported-by: Kyle Sherman <kylewsherman@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112205>

9 days agoorg-clock: Fall back to English when no translation is available
Nicolas Goaziou [Fri, 17 Feb 2017 14:00:07 +0000 (15:00 +0100)]
org-clock: Fall back to English when no translation is available

* lisp/org-clock.el (org-clock--translate): New function.
(org-clocktable-write-default): Use new function.

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

10 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 17 Feb 2017 13:38:45 +0000 (14:38 +0100)]
Merge branch 'maint'

10 days agoorg-clock: Fix error when using unknown language
Nicolas Goaziou [Fri, 17 Feb 2017 13:34:19 +0000 (14:34 +0100)]
org-clock: Fix error when using unknown language

* lisp/org-clock.el (org-clocktable-write-default): Be careful
  that (nth 4 lwords) and (nth 5 lwords) can be nil, if :lang as an
  unknown value.

10 days agoPrefer `compilation-mode' over `special-mode' for log buffers
Nicolas Goaziou [Fri, 17 Feb 2017 12:35:07 +0000 (13:35 +0100)]
Prefer `compilation-mode' over `special-mode' for log buffers

* lisp/org.el (org-compile-file): Use `compilation-mode' instead of
  `special-mode'.

10 days agoUse `special-mode' for compilation output
Nicolas Goaziou [Fri, 17 Feb 2017 12:32:05 +0000 (13:32 +0100)]
Use `special-mode' for compilation output

* lisp/org.el (org-compile-file): Switch to `special-mode' for log
  buffer.

Suggested-by: Florian Lindner <mailinglists@xgm.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112164>

10 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 17 Feb 2017 12:24:06 +0000 (13:24 +0100)]
Merge branch 'maint'

10 days agoorg-lint: Add checker for empty headlines with tags
Nicolas Goaziou [Fri, 17 Feb 2017 12:23:26 +0000 (13:23 +0100)]
org-lint: Add checker for empty headlines with tags

* lisp/org-lint.el (org-lint--checkers): Add checker.
(org-lint-empty-headline-with-tags): New function.

* testing/lisp/test-org-lint.el (test-org-lint/empty-headline-with-tags):
  New test.

10 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 17 Feb 2017 07:37:55 +0000 (08:37 +0100)]
Merge branch 'maint'

10 days agoFix file:// uri handling for windows-nt and cygwin
Fabrice Popineau [Thu, 16 Feb 2017 21:42:59 +0000 (22:42 +0100)]
Fix file:// uri handling for windows-nt and cygwin

* lisp/org-element.el (org-element-link-parser):
  Handle drive names in uri like file:///c:/dir/file

* lisp/ox.el (org-export-file-uri):
  Handle drive names in uri like file:///c:/dir/file

* testing/lisp/test-ox.el (test-org-export/file-uri):
  Generate the right uri to be tested against link exporter.

12 days agoox-html: Fix last commit (part 2)
Nicolas Goaziou [Tue, 14 Feb 2017 16:27:26 +0000 (17:27 +0100)]
ox-html: Fix last commit (part 2)

* lisp/ox-html.el (org-html-plain-list): Fix typo.

12 days agoox-html: Fix last commit
Nicolas Goaziou [Tue, 14 Feb 2017 15:34:17 +0000 (16:34 +0100)]
ox-html: Fix last commit

* lisp/ox-html.el (org-html-plain-list): Fix last commit.

12 days agoox-html: Silence byte-compiler
Nicolas Goaziou [Tue, 14 Feb 2017 15:32:44 +0000 (16:32 +0100)]
ox-html: Silence byte-compiler

* lisp/ox-html.el (org-html-plain-list): Silence byte-compiler.  Small
  refactoring.

12 days agoox-html: More newlines around lists
Rasmus [Tue, 14 Feb 2017 11:03:16 +0000 (12:03 +0100)]
ox-html: More newlines around lists

* lisp/ox-html.el (org-html-headline):
(org-html-format-list-item):
(org-html-section): Insert more newlines.

13 days agoox-html: Plain list supports arbitrary attributes
Rasmus [Mon, 13 Feb 2017 16:52:38 +0000 (17:52 +0100)]
ox-html: Plain list supports arbitrary attributes

* lisp/ox-html.el (org-html-begin-plain-list):
(org-html-end-plain-list): Remove.
(org-html-plain-list):
(org-html-headline): Remove dependency on org-html-begin-plain-list
     and org-html-end-plain-list.

13 days agoorg-duration: Tolerate leading and trailing blanks in durations
Nicolas Goaziou [Tue, 14 Feb 2017 08:58:26 +0000 (09:58 +0100)]
org-duration: Tolerate leading and trailing blanks in durations

* lisp/org-duration.el (org-duration--h:mm-re):
(org-duration--h:mm:ss-re): Tolerate leading in trailing blanks.
Change into a defconst.
(org-duration-set-regexps): Tolerate leading in trailing blanks.

Reported-by: Detlef Steuer <steuer@unibw-hamburg.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112111>

13 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 13 Feb 2017 20:32:28 +0000 (21:32 +0100)]
Merge branch 'maint'

13 days agoorg-clock: Fix regression in Clock table
Nicolas Goaziou [Mon, 13 Feb 2017 20:24:40 +0000 (21:24 +0100)]
org-clock: Fix regression in Clock table

* lisp/org-clock.el (org-clocktable-write-default): Do not raise an
  error when :maxlevel is 0.  Small refactoring.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Split
into ...
(test-org-clock/clocktable/ranges):
(test-org-clock/clocktable/tags):
(test-org-clock/clocktable/scope):
(test-org-clock/clocktable/maxlevel):
(test-org-clock/clocktable/formula): ... these.  Add tests.

This fixes regression introduced in ccf832e83.

Reported-by: Christoph LANGE <math.semantic.web@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112091>

13 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 13 Feb 2017 16:22:22 +0000 (17:22 +0100)]
Merge branch 'maint'

13 days agoFix some tests
Nicolas Goaziou [Mon, 13 Feb 2017 16:14:38 +0000 (17:14 +0100)]
Fix some tests

* testing/lisp/test-org-element (test-org-element/link-parser): Remove
  a test.
* testing/lisp/test-org-pcomplete (test-org-pcomplete/keyword):
* testing/lisp/test-ox.el (test-org-export/file-uri): Fix tests.

13 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 13 Feb 2017 15:35:32 +0000 (16:35 +0100)]
Merge branch 'maint'

13 days agoorg-element: Fix `org-element-insert-before'
Nicolas Goaziou [Mon, 13 Feb 2017 15:29:54 +0000 (16:29 +0100)]
org-element: Fix `org-element-insert-before'

* lisp/org-element.el (org-element-insert-before): Do not call
  `reverse' as contents might use `eq' objects.

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

Reported-by: Justin Kirby <justinkirby@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112065>

13 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 13 Feb 2017 14:39:10 +0000 (15:39 +0100)]
Merge branch 'maint'

13 days agoorg-table: Move table column with leaving text-properties untouched
Stefan-W. Hahn [Sun, 12 Feb 2017 11:41:19 +0000 (12:41 +0100)]
org-table: Move table column with leaving text-properties untouched

* lisp/org-table.el (org-table-move-column): Use `transpose-regions'.

Moving org-table rows is implemented with delete-region and insert which
preserve text-properties. Moving org-table columns is implemented
with replace-string, which removes text-properties.

My proposal is to use transpose-regions in org-table-move-column which
will preserve text-properties when moving columns in org-tables.

13 days agoorg-duration: Fix typo
Nicolas Goaziou [Mon, 13 Feb 2017 13:57:06 +0000 (14:57 +0100)]
org-duration: Fix typo

13 days agoorg-duration: Fix typos
Nicolas Goaziou [Mon, 13 Feb 2017 13:56:07 +0000 (14:56 +0100)]
org-duration: Fix typos

2 weeks agoUse Org duration library
Nicolas Goaziou [Wed, 8 Feb 2017 21:24:32 +0000 (22:24 +0100)]
Use Org duration library

* contrib/lisp/org-depend.el (org-depend-trigger-todo): Use new
  functions.

* contrib/lisp/org-invoice.el (org-invoice-heading-info):
(org-invoice-info-to-table):
(org-invoice-list-to-table): Use new functions.

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Use
  new functions.

* lisp/org-agenda.el (org-agenda-show-clocking-issues):
(org-agenda-format-item):
(org-agenda-filter-effort-form): Use new functions.

* lisp/org-clock.el (org-clock-get-clock-string):
(org-clock-modify-effort-estimate):
(org-clock-notify-once-if-expired):
(org-clock-out):
(org-clock-display):
(org-clock-put-overlay):
(org-clocktable-write-default): Use new functions.

* lisp/org-table.el (org-table-sort-lines): Use new functions.

* lisp/org.el (org-properties-postprocess-alist):
(org-refresh-effort-properties):
(org-set-effort):
(org-entry-properties):
(org-property-next-allowed-value): Use new functions.

(org-time-clocksum-format):
(org-time-clocksum-use-fractional):
(org-time-clocksum-use-fractional-format):
(org-time-clocksum-use-effort-durations): Declare as obsolete.  Move
to "org-compat.el".

(org-minutes-to-clocksum-string):
(org-hh:mm-string-to-minutes):
(org-duration-string-to-minutes): Declare as obsolete.  Move to
"org-compat.el".
(org-hours-to-clocksum-string): Remove function.

* lisp/org-colview.el (org-columns--collect-values): Use new
  functions.
(org-columns--duration-re): Remove variable.
(org-columns--time-to-seconds): Rename to...
(org-columns--age-to-minutes): ... this.
(org-columns--format-age): New function.
(org-columns--summary-apply-times):
(org-columns--summary-min-age):
(org-columns--summary-max-age):
(org-columns--summary-mean-age): Use new functions.

* testing/lisp/test-org-clock.el (test-org-clock-clocktable-contents-at-point):
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Update tests.

2 weeks agoAdd tests for "org-duration.el"
Nicolas Goaziou [Mon, 13 Feb 2017 10:54:22 +0000 (11:54 +0100)]
Add tests for "org-duration.el"

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

2 weeks agoorg-duration: Implement duration library
Nicolas Goaziou [Wed, 8 Feb 2017 20:41:46 +0000 (21:41 +0100)]
org-duration: Implement duration library

* lisp/org-duration.el: New file.

2 weeks agoMerge branch 'maint'
Marco Wahl [Sun, 12 Feb 2017 08:19:06 +0000 (09:19 +0100)]
Merge branch 'maint'

2 weeks agoMerge branch 'improve-org-eww' into maint
Marco Wahl [Sun, 12 Feb 2017 08:08:52 +0000 (09:08 +0100)]
Merge branch 'improve-org-eww' into maint

2 weeks agoorg-eww: Fix copy of form-elements
Marco Wahl [Sun, 12 Feb 2017 08:00:56 +0000 (09:00 +0100)]
org-eww: Fix copy of form-elements

* lisp/org-eww.el (org-eww-copy-for-org-mode): New behavior: Just add
  link-title when link-location is not a string.  This fixes copying
  from www.indeed.co.uk.

Reported and a suggestion of a fix by Andrea.
<http://permalink.gmane.org/gmane.emacs.orgmode/112052>.

2 weeks agoMerge branch 'maint'
Kyle Meyer [Sat, 11 Feb 2017 22:39:33 +0000 (17:39 -0500)]
Merge branch 'maint'

2 weeks agoorgcard: Update export section
Kyle Meyer [Sat, 11 Feb 2017 22:33:18 +0000 (17:33 -0500)]
orgcard: Update export section

* doc/orgcard.tex (Export and Publishing): Correct stale bindings.
  Add asynchronous, body, and subtree bindings.

This section now includes all bindings listed in
(info "(org)The Export Dispatcher").

Reported-by: Charles C. Berry <ccberry@ucsd.edu>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00200.html>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 11 Feb 2017 17:38:02 +0000 (18:38 +0100)]
Merge branch 'maint'

2 weeks agoSilence byte-compiler
Nicolas Goaziou [Sat, 11 Feb 2017 17:37:32 +0000 (18:37 +0100)]
Silence byte-compiler

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 11 Feb 2017 01:36:15 +0000 (02:36 +0100)]
Merge branch 'maint'

2 weeks agoFix header in LaTeX snippets
Nicolas Goaziou [Sat, 11 Feb 2017 01:35:00 +0000 (02:35 +0100)]
Fix header in LaTeX snippets

* lisp/ox-latex.el (org-latex-make-preamble): Add optional argument.
* lisp/org.el (org-create-formula-image): Use it.

Reported-by: plus <ctre@users.sourceforge.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/112015>

2 weeks agoMerge branch 'maint'
Kyle Meyer [Thu, 9 Feb 2017 17:58:39 +0000 (12:58 -0500)]
Merge branch 'maint'

2 weeks agoorgcard: Remove another timeline entry release_9.0.5
Kyle Meyer [Thu, 9 Feb 2017 17:55:27 +0000 (12:55 -0500)]
orgcard: Remove another timeline entry

* doc/orgcard.tex (Filtering and Sparse Trees): Don't mention timeline
  because this feature will be removed in version 9.1.

90f87cb98 removed the org-timeline reference in the "Agenda Views"
section but missed this one.

As a bonus, this fixes a column formatting issue in the
orgcard_letter.pdf output (orgcard.pdf was not affected) that was
caused by an extra line added in 4340cc78f.

Reported-by: David Talmage <david.talmage@shoutpoint.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00193.html>

2 weeks agoMerge branch 'maint'
Kyle Meyer [Thu, 9 Feb 2017 02:49:17 +0000 (21:49 -0500)]
Merge branch 'maint'

2 weeks agoorgcard.tex: Remove timeline reference
Kyle Meyer [Thu, 9 Feb 2017 02:41:57 +0000 (21:41 -0500)]
orgcard.tex: Remove timeline reference

* doc/orgcard.tex: Don't mention timeline because this feature will be
  removed in version 9.1.

2 weeks agoUpdate few bindings' descriptions based on org 9.0.4
Kaushal Modi [Sun, 5 Feb 2017 20:05:19 +0000 (15:05 -0500)]
Update few bindings' descriptions based on org 9.0.4

* doc/orgcard.tex: Update descriptions for M-UP/DOWN and M-S-UP/DOWN
  bindings for structural editing.  Removed the C-c C-q binding
  description in the Tables/Regions section as it sets org tags as
  usual, does not fill paragraph.

2 weeks agoRevert commit c90c7a33f53ad88dfcc583ad4c77bec306da0b22
Marco Wahl [Tue, 7 Feb 2017 22:49:29 +0000 (23:49 +0100)]
Revert commit c90c7a33f53ad88dfcc583ad4c77bec306da0b22

targets.mk: Revert to cleanup at every compile for 'standard' targets.

Note: You can do 'dirty' builds with 'make compile-dirty' and 'make
test-dirty'.
- Disadvantage: these builds may fail due to the missing clean.
- Advantage: typically the 'dirty' builds are much faster.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 7 Feb 2017 16:01:10 +0000 (17:01 +0100)]
Merge branch 'maint'

2 weeks agoorg-clock: Fix clock percent
Nicolas Goaziou [Tue, 7 Feb 2017 15:48:14 +0000 (16:48 +0100)]
org-clock: Fix clock percent

* lisp/org-clock.el (org-clocktable-write-default): Fix percent computation.
(org-clock-time%): Remove function.

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

As a consequence of this patch, a ":formula %" doesn't generate
a TBLFM line anymore.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 5 Feb 2017 08:23:12 +0000 (09:23 +0100)]
Merge branch 'maint'

3 weeks agoox-bibtex: Take key with spaces or non-alphabetic characters into account
Sebastien Le Maguer [Sun, 5 Feb 2017 07:11:16 +0000 (08:11 +0100)]
ox-bibtex: Take key with spaces or non-alphabetic characters into account

* ox-bibtex.el (org-bibtex-process-bib-files): Solve a bug in which
ox-bibtex was not considering enterily keys like "Author et&bsp; al.,
1999" as valid.

TINYCHANGE

3 weeks agoRemove duplicate test
Nicolas Goaziou [Sat, 4 Feb 2017 20:54:34 +0000 (21:54 +0100)]
Remove duplicate test

3 weeks agoMerge branch 'master' of orgmode.org:org-mode
Nicolas Goaziou [Sat, 4 Feb 2017 20:52:36 +0000 (21:52 +0100)]
Merge branch 'master' of orgmode.org:org-mode

3 weeks agoChange `org-get-repeater' signature
Nicolas Goaziou [Sat, 4 Feb 2017 20:45:35 +0000 (21:45 +0100)]
Change `org-get-repeater' signature

* lisp/org.el (org-get-repeater): Change optional argument meaning.
* lisp/org-habit.el (org-habit-parse-todo): Apply signature change.
* testing/test-org.el (test-org/get-repeater): Add tests.

3 weeks agoFix "Fix `org-get-repeat'"
Nicolas Goaziou [Sat, 4 Feb 2017 20:13:40 +0000 (21:13 +0100)]
Fix "Fix `org-get-repeat'"

* lisp/org.el (org-get-repeat): Make sure matching group refers to the
  proper regexp.
* testing/lisp/test-org.el (test-org/get-repeat): New test.

The bug was introduced in aef7eef0f.

3 weeks agoFix org-get-repeat
Marco Wahl [Fri, 3 Feb 2017 23:19:49 +0000 (00:19 +0100)]
Fix org-get-repeat

* lisp/org.el (org-get-repeat): Wrap call to save match data against
  side effects.

* testing/lisp/test-org.el (test-org/get-repeat): New test for
  `org-get-repeat'.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 3 Feb 2017 21:53:30 +0000 (22:53 +0100)]
Merge branch 'maint'

3 weeks agoorg-clock: Do not associate a note to removed zero time CLOCKs
Nicolas Goaziou [Fri, 3 Feb 2017 21:51:56 +0000 (22:51 +0100)]
org-clock: Do not associate a note to removed zero time CLOCKs

* lisp/org-clock.el (org-clock-out): When a zero time CLOCK is
  removed, do not offer to add a note for it.

3 weeks agoNotes associated to CLOCKs are located after the clock
Nicolas Goaziou [Fri, 3 Feb 2017 21:46:15 +0000 (22:46 +0100)]
Notes associated to CLOCKs are located after the clock

* lisp/org.el (org-store-log-note): Make sure a note added after
  clocking out is inserted right after the CLOCK line.

Reported-by: Jorge Morais Neto <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111795>

3 weeks agoox.el: Slovenian translations for exporting
Martin Vuk [Fri, 3 Feb 2017 11:05:50 +0000 (12:05 +0100)]
ox.el: Slovenian translations for exporting

* lisp/ox.el (org-export-dictionary): Slovenian translations.

* lisp/ox.el (org-export-smart-quotes-alist): Slovenian quotes and
apostrophes for exporting documents.

TINYCHANGE

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 3 Feb 2017 21:04:12 +0000 (22:04 +0100)]
Merge branch 'maint'

3 weeks agoFix indentation of some elements
Nicolas Goaziou [Fri, 3 Feb 2017 20:59:08 +0000 (21:59 +0100)]
Fix indentation of some elements

* lisp/org.el (org--get-expected-indentation): Tiny refactoring.
(org-indent-line): Ignore LaTex environments.
(org-indent-region): Better handling for export blocks, LaTeX
environments and example blocks.

* testing/lisp/test-org.el (test-org/indent-line):
(test-org/indent-region): Add tests.

3 weeks agoAdd tests
Nicolas Goaziou [Thu, 2 Feb 2017 23:36:05 +0000 (00:36 +0100)]
Add tests

* testing/lisp/test.org.el (test-org/auto-repeat-maybe):
(test-org/at-timestamp-p): New tests.

3 weeks agoFix `org-auto-repeat-maybe'
Nicolas Goaziou [Thu, 2 Feb 2017 23:34:01 +0000 (00:34 +0100)]
Fix `org-auto-repeat-maybe'

* lisp/org.el (org-auto-repeat-maybe): Properly find clocks in entry.
  Ignore invalid time stamps.

3 weeks agoHarden `org-at-clock-log-p'
Nicolas Goaziou [Thu, 2 Feb 2017 23:33:25 +0000 (00:33 +0100)]
Harden `org-at-clock-log-p'

* lisp/org.el (org-at-clock-log-p): Do strict checking.

3 weeks agoFix `org-get-repeat'
Nicolas Goaziou [Thu, 2 Feb 2017 23:32:16 +0000 (00:32 +0100)]
Fix `org-get-repeat'

* lisp/org.el (org-get-repeat): Prevent false positive.

3 weeks agoHarden `org-at-timestamp-p'
Nicolas Goaziou [Thu, 2 Feb 2017 23:20:12 +0000 (00:20 +0100)]
Harden `org-at-timestamp-p'

* lisp/org.el (org-ts-what): Remove variable.
(org-at-timestamp-p): Do strict checking.  Also return a value instead
of setting `org-ts-what'.  Improve docstring.
(org-timestamp-change): Remove use of `org-ts-what'.
(org-shiftcontrolup):
(org-shiftcontroldown): Optimize.
* lisp/org-clock.el (org-clock-timestamp-change): Remove use of `org-ts-what'.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 2 Feb 2017 18:54:24 +0000 (19:54 +0100)]
Merge branch 'maint'

3 weeks agoFix repeating entries without a TODO keyword
Nicolas Goaziou [Thu, 2 Feb 2017 13:17:04 +0000 (14:17 +0100)]
Fix repeating entries without a TODO keyword

* lisp/org.el (org-auto-repeat-maybe): Allow repeating entries without
  a TODO keyword.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 1 Feb 2017 21:42:12 +0000 (22:42 +0100)]
Merge branch 'maint'

3 weeks agoorg-agenda: Fix scheduled and deadline S-exp entries display
Nicolas Goaziou [Wed, 1 Feb 2017 21:36:29 +0000 (22:36 +0100)]
org-agenda: Fix scheduled and deadline S-exp entries display

* lisp/org-agenda.el (org-agenda-get-deadlines):
(org-agenda-get-scheduled): Properly handle S-exp entries.

Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111805>

3 weeks agoImplement `org-edit-latex-environment'
Nicolas Goaziou [Wed, 1 Feb 2017 20:30:54 +0000 (21:30 +0100)]
Implement `org-edit-latex-environment'

* lisp/org-src.el (org-edit-latex-environment): New function.
* lisp/org.el (org-edit-special): Use new function.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 1 Feb 2017 20:02:48 +0000 (21:02 +0100)]
Merge branch 'maint'

3 weeks agoorg-table: Fix error with `org-table-get-field' at bob
Nicolas Goaziou [Wed, 1 Feb 2017 19:56:38 +0000 (20:56 +0100)]
org-table: Fix error with `org-table-get-field' at bob

* lisp/org-table.el (org-table-get-field): Do not return
  `beginning-of-buffer' error when called at beginning of buffer.

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

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 1 Feb 2017 14:43:18 +0000 (15:43 +0100)]
Merge branch 'maint'

3 weeks agoReplace org-set-local by setq-local in the documentation
Nicolas Goaziou [Wed, 1 Feb 2017 14:42:04 +0000 (15:42 +0100)]
Replace org-set-local by setq-local in the documentation

* contrib/orgmanual.org (Conflicts): Update yasnippet instructions.

* doc/org.texi (Packages that conflict with Org mode): Update
  yasnippet instructions

TINYCHANGE