org-mode.git
6 years agoMerge branch 'maint'master
Bastien [Fri, 29 Dec 2017 17:58:41 +0000 (29 18:58 +0100)]
Merge branch 'maint'

6 years agoREADME_contribute: Update instructions
Bastien [Fri, 29 Dec 2017 17:58:14 +0000 (29 18:58 +0100)]
README_contribute: Update instructions

6 years agoorg: Enhance non-interactive calls to `org-insert-link`
Bastien [Fri, 29 Dec 2017 17:43:40 +0000 (29 18:43 +0100)]
org: Enhance non-interactive calls to `org-insert-link`

* org.el (org-insert-link): When called non-interactivily,
don't allow to edit the default description.

6 years agoorg.el: New value for `org-todo-repeat-to-state'
Bastien [Fri, 29 Dec 2017 17:36:27 +0000 (29 18:36 +0100)]
org.el: New value for `org-todo-repeat-to-state'

* lisp/org.el (org-todo-repeat-to-state): Allow `t' to use
the previous TODO state.

* doc/org.texi (Repeated tasks): Document the new optional
value of `org-todo-repeat-to-state'.

6 years agoorg-colview: Allow to filter by tags/property when capturing colview
Bastien [Fri, 29 Dec 2017 17:18:14 +0000 (29 18:18 +0100)]
org-colview: Allow to filter by tags/property when capturing colview

* org-colview.el (org-columns--capture-view): New
argument "match" to filter out unmatched entries.
(org-dblock-write:columnview): Use the new argument.

Thanks to Thierry Stoehr for proposing this.

6 years agoorg-table: Correctly match ".[0-9]+" as a numbermaint
Bastien [Fri, 29 Dec 2017 17:14:42 +0000 (29 18:14 +0100)]
org-table: Correctly match ".[0-9]+" as a number

* lisp/org-table.el (org-table-copy-down): Correctly match
".[0-9]+" as a number.

6 years agoMerge branch 'maint'
Marco Wahl [Thu, 28 Dec 2017 18:15:43 +0000 (28 19:15 +0100)]
Merge branch 'maint'

6 years agoinlinetask: Fix folding of directly consecutive inlinetask children
Marco Wahl [Thu, 28 Dec 2017 18:12:36 +0000 (28 19:12 +0100)]
inlinetask: Fix folding of directly consecutive inlinetask children

6 years agoMerge branch 'maint'
Marco Wahl [Thu, 28 Dec 2017 17:05:54 +0000 (28 18:05 +0100)]
Merge branch 'maint'

6 years agoorg-inlinetask:Fix folding of inline tasks within plain list
Marco Wahl [Thu, 28 Dec 2017 16:59:52 +0000 (28 17:59 +0100)]
org-inlinetask:Fix folding of inline tasks within plain list

This is the fix proposed by Nicolas.  See
http://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00564.html

Add and accommodate some tests.

6 years agoMerge branch 'maint'
Marco Wahl [Thu, 28 Dec 2017 14:44:34 +0000 (28 15:44 +0100)]
Merge branch 'maint'

6 years agotesting/README Document use of regexp filter for testing
Marco Wahl [Thu, 28 Dec 2017 14:35:19 +0000 (28 15:35 +0100)]
testing/README Document use of regexp filter for testing

6 years agoMerge branch 'maint'
Nicolas Goaziou [Thu, 28 Dec 2017 11:30:44 +0000 (28 12:30 +0100)]
Merge branch 'maint'

6 years agoRevert "org-table: Improve bidirectional reordering in tables"
Nicolas Goaziou [Thu, 28 Dec 2017 11:29:04 +0000 (28 12:29 +0100)]
Revert "org-table: Improve bidirectional reordering in tables"

This reverts commit f4ae1941c90e578e914268891bceff5751fbfd70.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 27 Dec 2017 22:57:37 +0000 (27 23:57 +0100)]
Merge branch 'maint'

6 years agoFix `org-todo'
Adrian Bradd [Sun, 10 Dec 2017 21:07:57 +0000 (10 16:07 -0500)]
Fix `org-todo'

* org.el (org-todo): Use marker `change-plist' position property to
  permit triggering through "org-depend.el" with parent heading
  statistics.

When TODO statistics in parent headings were updated it shifted the point
defining the :position property in `change-plist' causing headlines
with TRIGGER properties to fail to evaluate.

TINYCHANGE

6 years agoox-publish: Cache results for `org-publish-find-date'
Nicolas Goaziou [Wed, 27 Dec 2017 22:44:55 +0000 (27 23:44 +0100)]
ox-publish: Cache results for `org-publish-find-date'

* lisp/ox-publish.el (org-publish-find-date): Cache results.
(org-publish-find-title): Tiny refactoring.

Reported-by: Lorenzo Bolla <lbolla@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00561.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 27 Dec 2017 22:24:08 +0000 (27 23:24 +0100)]
Merge branch 'maint'

6 years agoFix inserting link
Nicolas Goaziou [Wed, 27 Dec 2017 22:22:07 +0000 (27 23:22 +0100)]
Fix inserting link

* lisp/org.el (org-insert-link): Fix when search option in a file link
  contains two consecutive slashes.

Reported-by: Ag Ibragimov <agzam.ibragimov@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00560.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 25 Dec 2017 22:54:36 +0000 (25 23:54 +0100)]
Merge branch 'maint'

6 years agoFix visibility cycling when point is invisible
Nicolas Goaziou [Mon, 25 Dec 2017 22:53:26 +0000 (25 23:53 +0100)]
Fix visibility cycling when point is invisible

* lisp/org.el (org-cycle-internal-local): Fix visibility cycling when
  point is invisible.

Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00314.html>

6 years agoMerge branch 'maint'
Kyle Meyer [Mon, 25 Dec 2017 17:35:42 +0000 (25 12:35 -0500)]
Merge branch 'maint'

6 years agoob-haskell: Fix indentation from b46787743
Kyle Meyer [Mon, 25 Dec 2017 17:29:27 +0000 (25 12:29 -0500)]
ob-haskell: Fix indentation from b46787743

This fails Emacs's pre-commit check (lisp/org/ob-haskell.el:77: space
before tab in indent).

6 years agomanual: Document "(eval" macro template
Nicolas Goaziou [Mon, 25 Dec 2017 09:49:31 +0000 (25 10:49 +0100)]
manual: Document "(eval" macro template

* contrib/manual.org: Document "(eval" macro template.  Add an example
  for macros.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Sun, 24 Dec 2017 23:14:51 +0000 (25 00:14 +0100)]
Merge branch 'maint'

6 years agoob-exp: Fix source blocks generated by other source blocks
Nicolas Goaziou [Sun, 24 Dec 2017 23:10:39 +0000 (25 00:10 +0100)]
ob-exp: Fix source blocks generated by other source blocks

* lisp/ob-exp.el (org-babel-exp--at-source): Source blocks generated
  by evaluating other source blocks may not be found in the original
  buffer.  In that case, do not move point.

Reported-by: "Berry, Charles" <ccberry@ucsd.edu>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00538.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Sat, 23 Dec 2017 22:44:11 +0000 (23 23:44 +0100)]
Merge branch 'maint'

6 years agoorg-table: Improve bidirectional reordering in tables
Nicolas Goaziou [Sat, 23 Dec 2017 22:37:45 +0000 (23 23:37 +0100)]
org-table: Improve bidirectional reordering in tables

* lisp/org-table.el (org-table-separator-space): New variable.
(org-table-align): Use new variable.

6 years agoorg-table: Improve bidirectional reordering in tablesrelease_9.1.5
Nicolas Goaziou [Sat, 23 Dec 2017 22:37:45 +0000 (23 23:37 +0100)]
org-table: Improve bidirectional reordering in tables

* lisp/org-table.el (org-table-separator-space): New variable.
(org-table-align): Use new variable.

6 years agoob-core: All Noweb parameters are read at point of definition
Nicolas Goaziou [Sat, 23 Dec 2017 14:56:53 +0000 (23 15:56 +0100)]
ob-core: All Noweb parameters are read at point of definition

* lisp/ob-core.el (org-babel-params-from-properties): Do not force
  using `org-babel-current-src-block-location'.  Extract properties
  from point.
(org-babel--noweb-reference): Remove function.
(org-babel-expand-noweb-references): Apply function removal.  Small
refactoring.
* lisp/ob-lob.el (org-babel-lob-get-info): Small refactoring.

6 years agoob-core: Do not always evaluate Lisp code in parameters
Nicolas Goaziou [Thu, 21 Dec 2017 23:06:39 +0000 (22 00:06 +0100)]
ob-core: Do not always evaluate Lisp code in parameters

* lisp/ob-core.el (org-babel-get-src-block-info):
(org-babel-params-from-properties):
(org-babel-parse-header-arguments): Add optional argument disabling
Lisp evaluation in parameters.

6 years agoob-core: Tiny refactoring
Nicolas Goaziou [Sat, 23 Dec 2017 13:03:52 +0000 (23 14:03 +0100)]
ob-core: Tiny refactoring

* lisp/ob-core.el (org-babel-expand-noweb-references): Tiny
  refactoring.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Sat, 23 Dec 2017 13:03:47 +0000 (23 14:03 +0100)]
Merge branch 'maint'

6 years agoFix recursive Noweb expansion
Nicolas Goaziou [Sat, 23 Dec 2017 12:58:25 +0000 (23 13:58 +0100)]
Fix recursive Noweb expansion

* lisp/ob-core.el (org-babel-expand-noweb-references): Recursive Noweb
  expansion obey to :noweb parameter.
* testing/lisp/test-ob.el (test-ob/noweb-expansion): Add tests.

Fixes: 17523

6 years agoMerge branch 'maint'
Nicolas Goaziou [Fri, 22 Dec 2017 18:22:06 +0000 (22 19:22 +0100)]
Merge branch 'maint'

6 years agoorg-clock: Fix timezone in `org-clock-get-sum-start'
Nicolas Goaziou [Fri, 22 Dec 2017 18:19:49 +0000 (22 19:19 +0100)]
org-clock: Fix timezone in `org-clock-get-sum-start'

* lisp/org-clock.el (org-clock-get-sum-start): Remove timezone
  argument from `encode-time'.

Reported-by: Ihor Radchenko <ihor_radchenko@mymail.sutd.edu.sg>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00499.html>

6 years agoMerge branch 'maint'
Kaushal Modi [Wed, 20 Dec 2017 22:15:52 +0000 (20 17:15 -0500)]
Merge branch 'maint'

6 years agoFix double-escaping of # and ![ in Markdown export
Kaushal Modi [Wed, 20 Dec 2017 18:01:06 +0000 (20 13:01 -0500)]
Fix double-escaping of # and ![ in Markdown export

* lisp/ox-md.el (org-md-plain-text): Fix the order of replacements in
  plain text.

<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00460.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 20 Dec 2017 12:16:28 +0000 (20 13:16 +0100)]
Merge branch 'maint'

6 years agoob-core: Get :noweb-ref from definition instead of point of call
Nicolas Goaziou [Wed, 20 Dec 2017 12:06:52 +0000 (20 13:06 +0100)]
ob-core: Get :noweb-ref from definition instead of point of call

* lisp/ob-core.el (org-babel-expand-noweb-references): Get :noweb-ref
  from definition instead of point of call.

* testing/lisp/test-ob.el (test-ob/noweb-expansion-1):
(test-ob/noweb-expansion-2): Merge tests.  Add test.

6 years agoob-core: Correctly find Noweb reference
Nicolas Goaziou [Wed, 20 Dec 2017 12:01:48 +0000 (20 13:01 +0100)]
ob-core: Correctly find Noweb reference

* lisp/ob-core.el (org-babel--noweb-reference): New function.
(org-babel-expand-noweb-references): Use new function.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Tue, 19 Dec 2017 19:29:21 +0000 (19 20:29 +0100)]
Merge branch 'maint'

6 years agoFix Scheme evaluation in fresh Emacs
Neil Jerram [Tue, 19 Dec 2017 18:15:00 +0000 (19 18:15 +0000)]
Fix Scheme evaluation in fresh Emacs

* lisp/ob-scheme.el: Require geiser-impl so that
  geiser-default-implementation is defined.  Otherwise, unless Geiser
  has previously been run (e.g. with `run-geiser'), you'll see an
  error that geiser-default-implementation is undefined.

6 years agoORG-NEWS: Fix typo
Rasmus [Tue, 19 Dec 2017 17:22:00 +0000 (19 18:22 +0100)]
ORG-NEWS: Fix typo

6 years agoMerge branch 'maint'
Kyle Meyer [Tue, 19 Dec 2017 05:00:49 +0000 (19 00:00 -0500)]
Merge branch 'maint'

6 years agoob-python: Fix :session :results output multiline behavior
Jack Kamm [Sat, 2 Dec 2017 09:03:00 +0000 (2 09:03 +0000)]
ob-python: Fix :session :results output multiline behavior

* lisp/ob-python.el (orb-babel-python-evaluate-session): When :session
:results output, send multiline code blocks to tmpfile and execute in
Python with exec().
(org-babel-python--exec-tmpfile): New variable.
* testing/lisp/test-ob-python.el (test-ob-python/session-multiline):
Test for :session with multiple lines and indentation.

6 years agomanual: Edits to the introductory section of "Working with source code"
tsdye [Mon, 18 Dec 2017 20:21:11 +0000 (18 10:21 -1000)]
manual: Edits to the introductory section of "Working with source code"

6 years agoPreserve file local variables during some operations
Nicolas Goaziou [Mon, 18 Dec 2017 14:50:51 +0000 (18 15:50 +0100)]
Preserve file local variables during some operations

* lisp/org-macs.el (org-preserve-local-variables): New macro.
* lisp/org-footnote.el (org-footnote--clear-footnote-section):
(org-footnote--goto-local-insertion-point):
(org-footnote-create-definition):
(org-footnote-delete):
(org-footnote-renumber-fn:N):
(org-footnote-sort):
(org-footnote-normalize):
* lisp/org.el (org-move-subtree-down):
(org-copy-subtree):
(org-sort-entries):
(org-refile): Use new macro.
* testing/lisp/test-org-footnote.el (test-org-footnote/normalize):
(test-org-footnote/delete):
(test-org-footnote/sort):
(test-org-footnote/normalize):
* testing/lisp/test-org.el (test-org/sort-entries): Add tests.

Operations affected include copying, killing, refiling, archiving and
moving subtrees.  It also affects sorting, creating and deleting
footnotes.

6 years agomanual.org: Fix typo
Nicolas Goaziou [Sun, 17 Dec 2017 12:37:29 +0000 (17 13:37 +0100)]
manual.org: Fix typo

6 years agoRename "orgmanual.org" to "manual.org"
Nicolas Goaziou [Sun, 17 Dec 2017 10:04:50 +0000 (17 11:04 +0100)]
Rename "orgmanual.org" to "manual.org"

6 years agoUpdate ".dir-locals.el"
Nicolas Goaziou [Sun, 17 Dec 2017 09:56:01 +0000 (17 10:56 +0100)]
Update ".dir-locals.el"

* .dir-locals.el (org-mode): Add Org mode specific options so manual
   is more homogeneous.

6 years agoUpdate Org manual to current release
Nicolas Goaziou [Mon, 5 Jun 2017 16:02:33 +0000 (5 18:02 +0200)]
Update Org manual to current release

6 years agoAdd some `:safe' keywords
Nicolas Goaziou [Sun, 17 Dec 2017 10:01:25 +0000 (17 11:01 +0100)]
Add some `:safe' keywords

* lisp/org-src.el (org-edit-src-content-indentation):
* lisp/org.el (org-adapt-indentation): Add :safe keyword.

6 years agoRemove ".dir-settings.el"
Nicolas Goaziou [Sun, 17 Dec 2017 08:52:26 +0000 (17 09:52 +0100)]
Remove ".dir-settings.el"

* .dir-settings.el: Remove file.
* .dir-locals.el: Remove reference to ".dir-settings.el".

6 years agoorg-macro: Placeholders in (eval ...) macros are always strings
Nicolas Goaziou [Sat, 16 Dec 2017 15:07:09 +0000 (16 16:07 +0100)]
org-macro: Placeholders in (eval ...) macros are always strings

* lisp/org-macro.el (org-macro-initialize-templates): Update
  templates.
(org-macro-expand): Ensure placeholders in "eval" macros are strings.

* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Update
  tests.

6 years agoorg: Insert a blank with structure template type "src"
Marco Wahl [Sat, 16 Dec 2017 17:17:10 +0000 (16 18:17 +0100)]
org: Insert a blank with structure template type "src"

6 years agoMerge branch 'maint'
Nicolas Goaziou [Sat, 16 Dec 2017 12:45:43 +0000 (16 13:45 +0100)]
Merge branch 'maint'

6 years agoox: Fix plain text export with `org-export-with-backend'
Nicolas Goaziou [Sat, 16 Dec 2017 12:44:56 +0000 (16 13:44 +0100)]
ox: Fix plain text export with `org-export-with-backend'

* lisp/ox.el (org-export-with-backend): Handle arity for plain text
  transcoder.
* testing/lisp/test-ox.el (test-org-export/with-backend): Add test.

6 years agoorg-duration: Remove unnecessary declaration
Nicolas Goaziou [Fri, 15 Dec 2017 22:23:49 +0000 (15 23:23 +0100)]
org-duration: Remove unnecessary declaration

6 years agoMerge branch 'maint'
Nicolas Goaziou [Fri, 15 Dec 2017 22:21:34 +0000 (15 23:21 +0100)]
Merge branch 'maint'

6 years agoSilence byte-compiler
Nicolas Goaziou [Fri, 15 Dec 2017 22:21:15 +0000 (15 23:21 +0100)]
Silence byte-compiler

6 years agoMerge branch 'maint'
Nicolas Goaziou [Fri, 15 Dec 2017 21:50:38 +0000 (15 22:50 +0100)]
Merge branch 'maint'

6 years agoox-latex: Merge check-boxes with bullets
Nicolas Goaziou [Fri, 15 Dec 2017 21:48:57 +0000 (15 22:48 +0100)]
ox-latex: Merge check-boxes with bullets

* lisp/ox-latex.el (org-latex-item): Do not display both bullet and
  checkbox.

Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00225.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Fri, 15 Dec 2017 21:26:01 +0000 (15 22:26 +0100)]
Merge branch 'maint'

6 years agoFix function declarations
Nicolas Goaziou [Fri, 15 Dec 2017 21:24:44 +0000 (15 22:24 +0100)]
Fix function declarations

Fixes: 29722

6 years agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Dec 2017 23:00:55 +0000 (15 00:00 +0100)]
Merge branch 'maint'

6 years agoob-ref: Fix parsing arguments with a newline character
Nicolas Goaziou [Thu, 14 Dec 2017 22:57:50 +0000 (14 23:57 +0100)]
ob-ref: Fix parsing arguments with a newline character

* lisp/ob-ref.el (org-babel-ref-split-regexp): Remove variable.
(org-babel-ref-parse): Handle arguments containing a newline
character (e.g., strings).

* testing/lisp/test-ob-lob.el (test-ob-lob/assignment-with-newline):
  New test.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Dec 2017 21:40:55 +0000 (14 22:40 +0100)]
Merge branch 'maint'

6 years agoFix fuzzy link escaping
Nicolas Goaziou [Thu, 14 Dec 2017 21:39:54 +0000 (14 22:39 +0100)]
Fix fuzzy link escaping

* lisp/org.el (org-make-link-string): Properly escape square brackets
  and percent sings in fuzzy links.

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

Reported-by: Paulo Matos <paulo@matos-sorge.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00269.html>

6 years agoORG-NEWS: Take note of org-attach-dired-to-subtree
Marco Wahl [Thu, 14 Dec 2017 09:30:58 +0000 (14 10:30 +0100)]
ORG-NEWS: Take note of org-attach-dired-to-subtree

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Dec 2017 23:40:58 +0000 (14 00:40 +0100)]
Merge branch 'maint'

6 years agoFix defcustom type
Nicolas Goaziou [Wed, 13 Dec 2017 23:31:58 +0000 (14 00:31 +0100)]
Fix defcustom type

* lisp/org-agenda.el (org-agenda-custom-commands-local-options):
* lisp/org-duration.el (org-duration-units):
* lisp/org.el (org-occur-case-fold-search): Remove spurious quote.

Fixes: 29694

lignes

6 years agoorg-tempo: Fix typo
Nicolas Goaziou [Wed, 13 Dec 2017 23:25:59 +0000 (14 00:25 +0100)]
org-tempo: Fix typo

* lisp/org-tempo.el (org-tempo-tags): Fix typo

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Dec 2017 23:18:20 +0000 (14 00:18 +0100)]
Merge branch 'maint'

6 years agoFix defgroups
Nicolas Goaziou [Wed, 13 Dec 2017 23:16:18 +0000 (14 00:16 +0100)]
Fix defgroups

* lisp/org.el (org-structure-template-alist): Use `org-edit-structure'
  instead of non-existent `org-completion'.
* lisp/ox-publish.el (org-export-publish): Rename from `org-publish'.
* lisp/org-pcomplete.el (org-complete): Remove unused group.

Fixes: 29698

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Dec 2017 22:52:06 +0000 (13 23:52 +0100)]
Merge branch 'maint'

6 years agoFix some defcustoms types
Nicolas Goaziou [Wed, 13 Dec 2017 22:51:10 +0000 (13 23:51 +0100)]
Fix some defcustoms types

* lisp/ob-stan.el (org-babel-stan-cmdstan-directory):
* lisp/org.el (org-latex-default-packages-alist):
* lisp/ox-odt.el (org-odt-with-latex): Fix type mismatch.

Fixes: 29695

6 years agoorg.texi: Document how to attach from a dired buffer
Marco Wahl [Wed, 13 Dec 2017 11:44:57 +0000 (13 12:44 +0100)]
org.texi: Document how to attach from a dired buffer

6 years agoorg-archive: Add a test
Nicolas Goaziou [Mon, 11 Dec 2017 22:22:21 +0000 (11 23:22 +0100)]
org-archive: Add a test

* testing/lisp/test-org-archive.el (test-org-archive/to-archive-sibling):
New test.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 11 Dec 2017 22:21:07 +0000 (11 23:21 +0100)]
Merge branch 'maint'

6 years agoorg-archive: Fix point after archiving to sibling
Nicolas Goaziou [Mon, 11 Dec 2017 22:19:40 +0000 (11 23:19 +0100)]
org-archive: Fix point after archiving to sibling

* lisp/org-archive.el (org-archive-to-archive-sibling): Move point in
  a consistent way upon archiving to a sibling.

Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00158.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 11 Dec 2017 14:14:01 +0000 (11 15:14 +0100)]
Merge branch 'maint'

6 years agoFix ob-haskell.el to work with custom ghci prompts
Doro Rose [Sat, 2 Dec 2017 21:25:54 +0000 (2 22:25 +0100)]
Fix ob-haskell.el to work with custom ghci prompts

* lisp/ob-haskell.el (haskell-prompt-regexp):  Define defvar
`haskell-prompt-regexp`.  This variable will override the variable set by
inf-haskell, when `org-babel-execute:haskell` is called.
(org-babel-execute:haskell):  Make sure that
`comint-prompt-regexp` is set appropriately to enable  correct parsing
of "λ"-prompts.  Set `comint-preoutput-filter-functions` appropriately to
enable correct parsing of coloured ghci prompts.

The problem was that code sent back from the inf-haskell buffer to
 org-babel wasn't parsed correctly in `org-babel-comint-with-output`.
 This occured when the user uses the commonly used "λ"-prompt.

TINYCHANGE

6 years agoox: Fix inline source block evaluation
Nicolas Goaziou [Mon, 11 Dec 2017 13:50:02 +0000 (11 14:50 +0100)]
ox: Fix inline source block evaluation

* lisp/ox.el (org-export-as): Specifically expand {{{results}}} macro
  after Babel code execution.
* testing/lisp/test-ox.el (test-org-export/expand-macro): Add test.

Reported-by: "Berry, Charles" <ccberry@ucsd.edu>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00202.html>

6 years agoFix last commit
Nicolas Goaziou [Sun, 10 Dec 2017 22:50:30 +0000 (10 23:50 +0100)]
Fix last commit

* lisp/org.el (org-show-all): Remove function.

6 years agoMove `org-unlogged-message' to "org-macs.el"
Nicolas Goaziou [Sun, 10 Dec 2017 22:37:59 +0000 (10 23:37 +0100)]
Move `org-unlogged-message' to "org-macs.el"

* lisp/org.el (org-unlogged-message): Move function to...
* lisp/org-macs.el: ... here.

6 years agoob-core: Insert lowercase results
Nicolas Goaziou [Sun, 10 Dec 2017 22:05:32 +0000 (10 23:05 +0100)]
ob-core: Insert lowercase results

* lisp/ob-core.el (org-babel-insert-result): Insert lower case blocks
  and drawers.

* testing/lisp/test-ob.el (test-ob/org-babel-remove-result--results-wrap):
(test-ob/org-babel-remove-result--results-org):
(test-ob/org-babel-remove-result--results-html):
(test-ob/org-babel-remove-result--results-latex):
(test-ob/org-babel-remove-result--results-code): Update tests.

6 years agoorg-tempo: Tiny refactoring
Nicolas Goaziou [Sun, 10 Dec 2017 16:11:24 +0000 (10 17:11 +0100)]
org-tempo: Tiny refactoring

* lisp/org-tempo.el (org-tempo--include-file): Tiny refactoring.

6 years agoorg-tempo: Enable Tempo in all Org buffers after load
Rasmus [Sun, 10 Dec 2017 10:50:38 +0000 (10 11:50 +0100)]
org-tempo: Enable Tempo in all Org buffers after load

* lisp/org-tempo.el: Enable Org Tempo in all buffers after load.

Reported-by: Charles Berry <ccberry@ucsd.edu>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00172.html

6 years agoUpdate README_mainter
Rasmus [Wed, 6 Dec 2017 13:51:06 +0000 (6 14:51 +0100)]
Update README_mainter

6 years agoorg-tempo.el: New file for expansion of templates
Rasmus [Tue, 5 Dec 2017 10:33:59 +0000 (5 11:33 +0100)]
org-tempo.el: New file for expansion of templates

* lisp/org-tempo.el: New file.
* doc/org.texi (Structure templates):
* lisp/org.el (org-modules): Add org-tempo.
* testing/lisp/test-org-tempo.el: New file.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Thu, 7 Dec 2017 13:20:33 +0000 (7 14:20 +0100)]
Merge branch 'maint'

6 years agoAllow gnuplot to generate plots in different directories
Eric S Fraga [Thu, 7 Dec 2017 06:56:41 +0000 (7 06:56 +0000)]
Allow gnuplot to generate plots in different directories

* lisp/ob-gnuplot.el (org-babel-expand-body:gnuplot) if the Org buffer
  is associated with a file, direct gnuplot to change to the directory
  for that file.

6 years agoMerge branch 'maint'
Nicolas Goaziou [Wed, 6 Dec 2017 22:16:55 +0000 (6 23:16 +0100)]
Merge branch 'maint'

6 years agoFix `org-files-list'
Nicolas Goaziou [Wed, 6 Dec 2017 22:15:59 +0000 (6 23:15 +0100)]
Fix `org-files-list'

* lisp/org.el (org-files-list): Prevent duplicates in result.

Reported-by: Renato Ferreira <renatofdds@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00134.html>

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 4 Dec 2017 21:43:31 +0000 (4 22:43 +0100)]
Merge branch 'maint'

6 years agoRemove some references to reserved keybinding prefix `C-c a'release_9.1.4
Nicolas Goaziou [Mon, 4 Dec 2017 21:42:16 +0000 (4 22:42 +0100)]
Remove some references to reserved keybinding prefix `C-c a'

* lisp/org-agenda.el (org-stuck-projects):
(org-agenda-menu):
* lisp/org.el (org-org-menu): Remove references to reserved keybinding
  prefix `C-c a'.

Fixes: 28263

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 4 Dec 2017 21:21:25 +0000 (4 22:21 +0100)]
Merge branch 'maint'

6 years agoorg-feed: Fix parsing <guid>
Nicolas Goaziou [Mon, 4 Dec 2017 21:20:25 +0000 (4 22:20 +0100)]
org-feed: Fix parsing <guid>

* lisp/org-feed.el (org-feed-parse-rss-feed): Fix regexp for <guid>.

Fixes: 27711

6 years agoMerge branch 'maint'
Nicolas Goaziou [Mon, 4 Dec 2017 17:55:29 +0000 (4 18:55 +0100)]
Merge branch 'maint'