org-mode.git
4 hours agoMerge branch 'maint' master
Nicolas Goaziou [Thu, 5 May 2016 11:15:34 +0000]
Merge branch 'maint'

5 hours agoFix `org-occur' when regexp matches a single char maint
Nicolas Goaziou [Thu, 5 May 2016 08:18:21 +0000]
Fix `org-occur' when regexp matches a single char

* lisp/org.el (org-occur): Fix infloop when regexp matches a single
  char.  Improve docstring.

(org-check-before-date):
(org-check-after-date):
(org-check-dates-range): Match correct object since point may be at the
beginning of the next one.

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

6 hours agoFix `org-occur' when called non-interactively
Nicolas Goaziou [Thu, 5 May 2016 09:45:35 +0000]
Fix `org-occur' when called non-interactively

* lisp/org.el (org-first-headline-recenter): Check if current buffer is
  actually displayed in a window before trying to recenter view.

27 hours agoMerge branch 'maint'
Nicolas Goaziou [Wed, 4 May 2016 12:23:57 +0000]
Merge branch 'maint'

27 hours agoorg-agenda: Fix error on empty headlines
Nicolas Goaziou [Wed, 4 May 2016 11:34:08 +0000]
org-agenda: Fix error on empty headlines

* lisp/org-agenda.el (org-agenda-get-timestamps):
(org-agenda-get-deadlines):
(org-agenda-get-scheduled):
(org-agenda-get-blocks): Handle empty headlines.

46 hours agoorg-capture: Adapt user-error for aborting by user
Chunyang Xu [Sun, 1 May 2016 06:11:43 +0000]
org-capture: Adapt user-error for aborting by user

* lisp/org-capture.el (org-capture):
(org-mks): Replace `error' with `user-error'.

When `org-capture` is aborted by user with 'q' or 'C-g', `user-error' is
better than `error' when exiting.

TINYCHANGE

46 hours agoob-plantuml: Add new output formats
Rainer M. Krug [Mon, 2 May 2016 09:00:23 +0000]
ob-plantuml: Add new output formats

* lisp/ob-paltuml (org-babel-execute:plantuml): add new output formats
  of plantuml:
  - pdf : this needs extra java mudules to run which are mentioned on the
    plantml website (http://fr.plantuml.com/pdf.html)
  - vdx
  - xmi
  - scxml
  - html
  - txt (ascii art)
  - utxt (ascii art using unicode)

  The output format is based on the extension of the output file.

4 days agoFix keywords in defcustom
Nicolas Goaziou [Sat, 30 Apr 2016 23:32:16 +0000]
Fix keywords in defcustom

* lisp/org.el (org-show-context-detail): Fix keywords according to
  commit c112f40.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 30 Apr 2016 23:30:57 +0000]
Merge branch 'maint'

4 days agoFix `org-flag-drawer' with optional argument
Nicolas Goaziou [Sat, 30 Apr 2016 23:27:30 +0000]
Fix `org-flag-drawer' with optional argument

* lisp/org.el (org-flag-drawer): Do not require point to be at a drawer
  in order to call the function with an optional argument.

* testing/lisp/test-org.el (test-org/flag-drawer): Narrow test.

4 days ago`org-show-context' always displays point
Nicolas Goaziou [Sat, 30 Apr 2016 23:14:10 +0000]
`org-show-context' always displays point

* lisp/org.el (org-show-set-visibility): Always show point, even when it
  is hidden in a block or a drawer.

* testing/lisp/test-org.el (test-org/show-set-visibility): Add tests.

Reported-by: Derek Feichtinger <dfeich@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106744>

6 days agoorg-agenda: Remove unnecessary visibility modification
Nicolas Goaziou [Fri, 29 Apr 2016 09:35:49 +0000]
org-agenda: Remove unnecessary visibility modification

* lisp/org.el (org-show-context-detail): Change default visibility span
  for agenda context.

* lisp/org-agenda.el (org-agenda-goto):
(org-agenda-todo):
(org-agenda-add-note):
(org-agenda-priority):
(org-agenda-set-tags):
(org-agenda-set-property):
(org-agenda-set-effort):
(org-agenda-toggle-archive-tag):
(org-agenda-clock-in): Special visibility is taken care of by
`org-show-context'.  Do not hard-code anything else.

* contrib/lisp/org-contacts.el (org-contacts-gnus-article-from-goto):
Special visibility is taken care of by `org-show-context'.  Do not
hard-code anything else.

6 days agoox-beamer: Fix "apply: Wrong number of arguments: max, 0"
Nicolas Goaziou [Thu, 28 Apr 2016 21:29:17 +0000]
ox-beamer: Fix "apply: Wrong number of arguments: max, 0"

* lisp/ox-beamer.el (org-beamer-select-environment): Use variable
  introduced in 4743d43.

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

6 days agoHandle correctly `shift-select-mode'
Nicolas Goaziou [Thu, 28 Apr 2016 21:28:15 +0000]
Handle correctly `shift-select-mode'

* lisp/org.el (org-beginning-of-line): Handle correctly `shift-select-mode'.

Reported-by: Mathieu Marques <mathieumarques78@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106783>

6 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 28 Apr 2016 20:08:01 +0000]
Merge branch 'maint'

6 days agoFix multiple groups of mutually exclusive tags
Nicolas Goaziou [Thu, 28 Apr 2016 20:04:49 +0000]
Fix multiple groups of mutually exclusive tags

* lisp/org.el (org-set-tags): Use a subtler mechansim to remove
  duplicate tags.  This fixes a bug introduced in 77b4fad.

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

7 days agoFix `org-export-babel-evaluate' handling
Nicolas Goaziou [Thu, 28 Apr 2016 15:25:31 +0000]
Fix `org-export-babel-evaluate' handling

* lisp/ob-exp.el (org-babel-exp-process-buffer): Handle
  `org-export-babel-evaluate' handling.
(org-babel-exp-results): Ignore `org-export-babel-evaluate' since it is
handled as a higher level.

* lisp/ox.el (org-export-as): Allow to short-circuit babel evaluation if
  `org-export-babel-evaluate' is nil.

* testing/lisp/test-ob-exp.el (ob-export/babel-evaluate): New test.

Reported-by: Nicolas Richard <nrichard@ulb.ac.be>
<http://permalink.gmane.org/gmane.emacs.orgmode/106767>

7 days agoSilence byte-compiler
Nicolas Goaziou [Thu, 28 Apr 2016 15:02:29 +0000]
Silence byte-compiler

7 days agoFix failing test
Nicolas Goaziou [Thu, 28 Apr 2016 14:55:24 +0000]
Fix failing test

* testing/lisp/test-ox.el (test-org-export/get-reference): Fix failing
  test.

8 days agoox: Internal references are always 10 character long
Nicolas Goaziou [Tue, 26 Apr 2016 19:04:41 +0000]
ox: Internal references are always 10 character long

* lisp/ox.el (org-export-format-reference): Internal references are
  always 10 character long.

This reduces further possible reference clashes with user-defined
labels.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 26 Apr 2016 19:03:45 +0000]
Merge branch 'maint'

8 days agoFix storing links to headlines containing multiple links
Nicolas Goaziou [Tue, 26 Apr 2016 18:59:33 +0000]
Fix storing links to headlines containing multiple links

* lisp/org.el (org-store-link): Fix storing links to headlines
  containing multiple links.

* testing/lisp/test-org.el (test-org/store-link): New test.

Reported-by: Georgiy Tugai <georgiy.tugai@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106606>

8 days agoFix links to elements with a name
Nicolas Goaziou [Tue, 26 Apr 2016 16:58:01 +0000]
Fix links to elements with a name

* lisp/org.el (org-store-link): Properly handle elements with a NAME
  keyword.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 26 Apr 2016 16:47:43 +0000]
Merge branch 'maint'

8 days agoox-ascii: Fix spurious links
Nicolas Goaziou [Tue, 26 Apr 2016 11:23:47 +0000]
ox-ascii: Fix spurious links

* lisp/ox-ascii.el (org-ascii--unique-links): Fix spurious links.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106667>

11 days agoob-comint.el: Revert yet another change
Charles Berry [Sun, 24 Apr 2016 00:01:37 +0000]
ob-comint.el: Revert yet another change

* ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
  Remove the `(ignore v)'.  This creates a byte-compiler warning for
  supposedly unused `v', but allows remote execution.

11 days agoob-comint.el: Reinstate let-bound variable from last commit.
Charles Berry [Sat, 23 Apr 2016 23:26:13 +0000]
ob-comint.el: Reinstate let-bound variable from last commit.

* ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
  Reinstate `let (v)' which `org-babel-evaluate-session' relies on.

11 days agoob-comint.el: Fix bug and remove unused let binding
Charles Berry [Sat, 23 Apr 2016 04:04:16 +0000]
ob-comint.el: Fix bug and remove unused let binding

* ob-comint.el: (tramp-flush-directory-property declaration): The
  file is now "tramp-cache".

* ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
  Remove unused let binding for `v' (which is let bound by
  `with-parsed-tramp-file-name').

Bug reported by Vikas Rawal
Subject: Using tramp to run R source code blocks on remote server
Archived-At: <http://permalink.gmane.org/gmane.emacs.orgmode/106557>

11 days agoMerge branch 'maint'
Kyle Meyer [Sat, 23 Apr 2016 21:40:16 +0000]
Merge branch 'maint'

11 days agoorg-yank: Correct docstring
Kyle Meyer [Sat, 23 Apr 2016 21:36:11 +0000]
org-yank: Correct docstring

* lisp/org.el (org-yank): Update docstring for change in default value
  of org-yank-adjusted-subtrees.

The default value was changed to nil in 2949012 (Change default values
of some variables., 2009-02-01).

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

2 weeks agoob-emacs-lisp: Defaut binding is dynamic
Nicolas Goaziou [Wed, 20 Apr 2016 21:45:32 +0000]
ob-emacs-lisp: Defaut binding is dynamic

* lisp/ob-emacs-lisp.el (org-babel-default-header-args:emacs-lisp):
  Change default value.

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

2 weeks agoorg-bibtex: Fix curly braces removal
Nicolas Goaziou [Wed, 20 Apr 2016 20:59:55 +0000]
org-bibtex: Fix curly braces removal

* lisp/org-bibtex.el (org-bibtex-read): Only remove one level of curly
  braces when parsing an entry.

Reported-by: timor <timor.dd@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106495>

2 weeks agoAvoid "Marker points into wrong buffer"
Oleh Krehel [Wed, 20 Apr 2016 15:20:46 +0000]
Avoid "Marker points into wrong buffer"

* lisp/org-indent.el (org-indent-initialize-buffer): Add a check.  The
bug occurred when trying to capture before any Org buffers were open.

2 weeks agoAdd detailed location to "org-mode fontification error"
Oleh Krehel [Tue, 19 Apr 2016 14:19:49 +0000]
Add detailed location to "org-mode fontification error"

* lisp/org.el (org-fontify-meta-lines-and-blocks): Update.

2 weeks agolisp/org-agenda.el (org-agenda-run-series): Prettify
Oleh Krehel [Tue, 29 Mar 2016 07:17:49 +0000]
lisp/org-agenda.el (org-agenda-run-series): Prettify

2 weeks agoob-emacs-lisp: Make lexical eval default for elisp src blocks
John Kitchin [Mon, 18 Apr 2016 17:55:34 +0000]
ob-emacs-lisp: Make lexical eval default for elisp src blocks

* lisp/ob-emacs-lisp.el (org-babel-header-args:emacs-lisp):
(org-babel-default-header-args:emacs-lisp): New variables.
(org-babel-execute:emacs-lisp): Add an optional argument to the eval
function.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 19 Apr 2016 19:31:30 +0000]
Merge branch 'maint'

2 weeks agoox-odt: Fix styles location
Nicolas Goaziou [Tue, 19 Apr 2016 19:30:39 +0000]
ox-odt: Fix styles location

* lisp/ox-odt.el (org-odt-styles-dir-list): Point to correct location
  for styles.

Reported-by: Colin Baxter <m43cap@yandex.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106209>

2 weeks agoorg-agenda: Fix "Void variable org-clock-current-task"
Nicolas Goaziou [Tue, 19 Apr 2016 19:14:54 +0000]
org-agenda: Fix "Void variable org-clock-current-task"

* lisp/org-agenda.el (org-agenda-mark-clocking-task):
(org-agenda-clock-goto): `org-clock-current-task' may not be defined, so
check that first.

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

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Mon, 18 Apr 2016 23:37:50 +0000]
Merge branch 'maint'

2 weeks agoRemove duplicate candidates when setting tags
Nicolas Goaziou [Mon, 18 Apr 2016 23:34:27 +0000]
Remove duplicate candidates when setting tags

* lisp/org.el (org-set-tags): Remove duplicate candidates from menu.

2 weeks agoorg-pcomplete: Fix TAGS completion
Nicolas Goaziou [Mon, 18 Apr 2016 17:34:08 +0000]
org-pcomplete: Fix TAGS completion

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option/tags):
(pcomplete/org-mode/tag): Use new `org-current-tag-alist' instead of
`org-tag-alist' so as to take `org-tag-persistent-alist' into
consideration.

2 weeks agoFix tag related defcustoms
Nicolas Goaziou [Sun, 17 Apr 2016 23:10:01 +0000]
Fix tag related defcustoms

* lisp/org.el (org-tag-alist):
(org-tag-persistent-alist): Improve docstring. Fix values.

2 weeks agoProperly handle `org-tag-persistent-alist'
Nicolas Goaziou [Sun, 17 Apr 2016 18:42:08 +0000]
Properly handle `org-tag-persistent-alist'

* lisp/org.el (org-current-tag-alist): New variable.
(org-set-tags):
(org-global-tags-completion-table):
(org-agenda-prepare-buffers): Use new variable.
(org-set-regexps-and-options): Use new variable.  Handle STARTUP early
so that "#+STARTUP: noptag" is taken into consideration.

* lisp/org-agenda.el (org-agenda-bulk-action): Use new variable.

* lisp/org-mobile.el (org-mobile-create-index-file): `org-tag-alist' is
  no longer buffer-local.

* testing/lisp/test-org.el (test-org/set-regexps-and-options): Add
  tests.

2 weeks agoFactorize tags parsing
Nicolas Goaziou [Sun, 17 Apr 2016 15:00:14 +0000]
Factorize tags parsing

* lisp/org.el (org-tag-string-to-alist):
(org-tag-alist-to-string):
(org-tag-alist-to-groups): New functions.
(org-set-regexps-and-options): Use new functions.

(org--setup-process-tags): Remove function.

(org--setup-collect-keywords): Return tag groups as a string instead of
a list so as to be compatible with new functions.

* lisp/org-mobile.el (org-mobile-create-index-file): Use new functions.

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option/tags): Use new
  functions.
(pcomplete/org-mode/tag): Small refactoring.

* testing/lisp/test-org.el (test-org/tag-string-to-alist):
(test-org/tag-alist-to-string):
(test-org/tag-alist-to-groups): New tests.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 16 Apr 2016 09:38:25 +0000]
Merge branch 'maint'

2 weeks agoFix "Invalid time zone specification" error
Nicolas Goaziou [Sat, 16 Apr 2016 09:33:28 +0000]
Fix "Invalid time zone specification" error

* lisp/org.el (org-timestamp-change): Correctly handle `encode-time'
  parameters.

Suggested-by: Derek Feichtinger <dfeich@gmail.com>
Reported-by: Eric Abrahamsen <eric@ericabrahamsen.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/106344>

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 16 Apr 2016 09:31:01 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Sat, 16 Apr 2016 09:30:31 +0000]
org.texi: Fix typo

* doc/org.texi (Timers): Fix typo.

Reported-by: Lee <maplainfly@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106430>

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Apr 2016 07:18:00 +0000]
Merge branch 'maint'

3 weeks agoFix typo
Nicolas Goaziou [Thu, 14 Apr 2016 07:17:34 +0000]
Fix typo

* lisp/org.el (org-property--local-values): Fix typo in doc string.

3 weeks agoox-ascii: Small refactoring
Nicolas Goaziou [Wed, 13 Apr 2016 21:50:15 +0000]
ox-ascii: Small refactoring

* lisp/ox-ascii.el (org-ascii--describe-links): Small refactoring.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Apr 2016 21:48:27 +0000]
Merge branch 'maint'

3 weeks agoorg-capture: Fix invalid table line specification
Nicolas Goaziou [Wed, 13 Apr 2016 21:47:36 +0000]
org-capture: Fix invalid table line specification

* lisp/org-capture.el (org-capture-place-table-line): Move point in
  front of the table before trying to analyze it.

Reported-by: Christian Moe <mail@christianmoe.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106356>

3 weeks agoob-lisp: Fix error when evaluating a lisp src-block
Nicolas Goaziou [Wed, 13 Apr 2016 21:29:41 +0000]
ob-lisp: Fix error when evaluating a lisp src-block

* lisp/ob-lisp.el (org-babel-lisp-eval-fn): Change values to functions
  instead of strings.
(org-babel-execute:lisp): Apply change.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 13 Apr 2016 21:18:29 +0000]
Merge branch 'maint'

3 weeks agoox-ascii: Fix export of links in headlines
Nicolas Goaziou [Wed, 13 Apr 2016 21:16:25 +0000]
ox-ascii: Fix export of links in headlines

* lisp/ox-ascii.el (org-ascii--unique-links):
(org-ascii-headline):
(org-ascii-section): Fix export of links in headlines.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106338>

3 weeks agoFix the paragraph on tag groups as regular expressions.
Nick Dokos [Wed, 13 Apr 2016 14:59:09 +0000]
Fix the paragraph on tag groups as regular expressions.

Reword the paragraph and fix the regexps to include
the requisite @ signs.

3 weeks agoob-lisp: Default evaluator is SLIME
Nicolas Goaziou [Tue, 12 Apr 2016 20:12:11 +0000]
ob-lisp: Default evaluator is SLIME

* lisp/ob-lisp.el (org-babel-lisp-eval-fn): Set default value to
  "slime-eval".

3 weeks agoob-lisp: Fix typo in doc string
Nick Dokos [Mon, 11 Apr 2016 19:05:35 +0000]
ob-lisp: Fix typo in doc string

* lisp/ob-lisp.el (org-babel-lisp-eval-fn): Fix typo.

3 weeks agoMerge branch 'maint'
Kyle Meyer [Mon, 11 Apr 2016 04:32:43 +0000]
Merge branch 'maint'

3 weeks agoUpdate format-time-string calls for argument change
Kyle Meyer [Mon, 11 Apr 2016 04:32:08 +0000]
Update format-time-string calls for argument change

* lisp/org.el (org-timestamp-format):
* lisp/ox-icalendar.el (org-icalendar-convert-timestamp): Specify t for
  the ZONE argument of format-time-string to indicate UTC.

As of Emacs's af32fa9 (New optional ZONE arg for format-time-string
etc., 2015-07-26), UTC is indicated by passing t as the third argument
to format-time-string rather than any non-nil value.

This change is in place of a backport of Emacs's b787d55 (More
format-time-string change fixups, 2016-04-02), which would not work for
earlier versions of Emacs.

3 weeks agoAdd ODT to default export back-ends
Nicolas Goaziou [Sun, 10 Apr 2016 08:22:08 +0000]
Add ODT to default export back-ends

* lisp/org.el (org-export-backends): Add `odt' to default value.

Reported-by: Uwe Brauer <oub@mat.ucm.es>
<http://permalink.gmane.org/gmane.emacs.orgmode/106198>

3 weeks agoorg-attach: Use relative path for git annex
Erik Hetzner [Fri, 26 Feb 2016 20:44:46 +0000]
org-attach: Use relative path for git annex

* lisp/org-attach.el (org-attach-annex-get-maybe): Use relative path as
  argument for git annex.  Fixes error in test with version 3 of git
  annex.

3 weeks agoob-lisp: Add SLY support
stardiviner [Fri, 1 Apr 2016 16:46:36 +0000]
ob-lisp: Add SLY support

* ob-lisp.el (org-babel-lisp-eval-fn): New variable.
(org-babel-execute:lisp): Support using SLY to evaluate lisp src block.

Let user can evaluate Lisp src block with SLY.

Modified from a patch proposal by stardiviner.

TINYCHANGE

3 weeks agoorg.texi: Replace broken example script for batch execution
Ethan Ligon [Thu, 7 Apr 2016 21:05:27 +0000]
org.texi: Replace broken example script for batch execution

* doc/org.texi: Example bash script to tangle from *.org file was broken
and obsolete; fixed to now work with recent versions of Org.

There is an example bash script in section  14.12 of the Org manual which
is meant to tangle source blocks from a supplied list of Org files.

The present version is broken in several small ways (it appears to date
from a period when babel was still part of contrib), and requires a
hard-coded specification of the path ORG_HOME.

I've fixed the issue with ORG_HOME, another issue with grepping for strings
that no longer are emitted by ob-tangle, and removed some obsolete
dependencies.

I'm finding the corrected script a useful thing to call from makefiles.

3 weeks agoorg.el: Fix bug from switch to lexical binding
Michael Strey [Fri, 8 Apr 2016 12:03:30 +0000]
org.el: Fix bug from switch to lexical binding

* lisp/org.el (org-check-dates-range): Fix a bug introduces with the
  switch to lexical binding in commit
  1f49e9fdfd8b527377b5592bd65ad3be6abb9e6a.

This change fixed the following bug:  C-c \ D leads to error message "Symbol's value as variable is void: start-date".

TINYCHANGE

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Apr 2016 20:52:32 +0000]
Merge branch 'maint'

3 weeks agoorgguide: Fix mis-uses of itemx
Nicolas Goaziou [Fri, 8 Apr 2016 20:51:04 +0000]
orgguide: Fix mis-uses of itemx

* doc/orgguide.texi (Agenda commands): Fix mis-uses of itemx.

Reported-by: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106211>

4 weeks agoox-koma-letter: Changes to LOCATION handling
Rasmus [Tue, 5 Apr 2016 13:28:12 +0000]
ox-koma-letter: Changes to LOCATION handling

* ox-koma-letter.el (options): Parse LOCATION and remove
  :with-location and :inbuffer-with-location.
  (org-koma-letter--get-tagged-contents): Change string handling.
  (org-koma-letter--get-value): Simplify function.
  (org-koma-letter-use-location): remove

4 weeks agoox-koma-letter: Fixed bug in filling 'location' field
Myles English [Mon, 4 Apr 2016 00:11:19 +0000]
ox-koma-letter: Fixed bug in filling 'location' field

* contrib/lisp/ox-koma-letter.el: Fix code apparently introduced
  in 3ee3663

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 6 Apr 2016 20:28:16 +0000]
Merge branch 'maint'

4 weeks agoox-texinfo: Fix erroneous count of blank lines in menu
Nicolas Goaziou [Wed, 6 Apr 2016 20:26:08 +0000]
ox-texinfo: Fix erroneous count of blank lines in menu

* lisp/ox-texinfo.el (org-texinfo-section):
(org-texinfo--build-menu): Normalize empty lines in generated menu.

Reported-by: Jonas Bernoulli <jonas@bernoul.li>
<http://permalink.gmane.org/gmane.emacs.orgmode/106145>

4 weeks agoAllow angular links within link descriptions
Nicolas Goaziou [Wed, 6 Apr 2016 09:08:53 +0000]
Allow angular links within link descriptions

* lisp/org-element.el (org-element-object-restrictions):
(org-element--object-lex): Allow angular links as equivalent to plain
links in description.

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

4 weeks agoKeep headlines named like current one in refile targets
Nicolas Goaziou [Tue, 5 Apr 2016 21:45:37 +0000]
Keep headlines named like current one in refile targets

* lisp/org.el (org-refile-get-targets): Change signature.
(org-refile-get-location): Change signature.  Also apply change above.
(org-goto):
(org-refile): Apply change above.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106051>

4 weeks agoorg-agenda: Fix Invalid Function 4 error
Nicolas Goaziou [Tue, 5 Apr 2016 21:31:21 +0000]
org-agenda: Fix Invalid Function 4 error

* lisp/org-agenda.el (org-tags-view): Fix wrong conversion introduced in
  commit a02a83793b55428ee90ba998003c41a8eacf09e8.

Reported-by: Ian Dunn <dunni@gnu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/106080>

4 weeks agoox-confluence: Add `org-confluence-lang-alist'
Paul Schorfheide [Wed, 9 Mar 2016 16:38:46 +0000]
ox-confluence: Add `org-confluence-lang-alist'

* ox-confluence.el (org-confluence-src-block): Add var for mapping
language name.

TINYCHANGE

4 weeks agoORG-NEWS: Document NAME handling for blocks
Nicolas Goaziou [Sat, 2 Apr 2016 08:44:09 +0000]
ORG-NEWS: Document NAME handling for blocks

4 weeks agoox-koma-letter: Add support for LOCATION
Myles English [Wed, 27 Jan 2016 18:18:38 +0000]
ox-koma-letter: Add support for LOCATION

* contrib/lisp/ox-koma-letter.el (koma-letter): Duplicated code
  used for 'place' variable, renamed as 'location'

Whenever OPTION keyword contains a 'location' item or LOCATION
keyword is used in the buffer, set KOMA option 'location' after
LCO inclusion.

4 weeks agoox-koma-letter: Small change
Rasmus [Thu, 31 Mar 2016 19:38:54 +0000]
ox-koma-letter: Small change

ox-koma-letter.el (org-koma-letter--build-settings): Simplify code.
(org-koma-letter--get-tagged-contents): Treat strings before
return.

4 weeks agoox-koma-letter: Allow buffer FROM keyword
Rasmus [Tue, 29 Mar 2016 15:20:08 +0000]
ox-koma-letter: Allow buffer FROM keyword

* ox-koma-letter.el (koma-letter backend): Add :inbuffer-from.
  (org-koma-letter--get-tagged-contents): Check that value is not empty.
  (org-koma-letter-template): Remove from address block from
  template and find to address directly.
  (org-koma-letter--build-settings): Determine from address.
  (org-koma-letter--special-contents-inline): Remove function.

4 weeks agoox-koma-letter: Add after_closing and cleanup
Rasmus [Tue, 29 Mar 2016 15:06:26 +0000]
ox-koma-letter: Add after_closing and cleanup

* ox-koma-letter.el
  (org-koma-letter-special-tags-after-closing): Add after_closing.
  (org-koma-letter-special-tags-as-macro): New defvar.
  (koma-letter backend): Revamp special tags options.
  (org-koma-letter--get-value): Rewrite function.
  (org-koma-letter--keyword-or-headline): Get special tags dynamically
  (org-koma-letter-template): Use new specifications.

4 weeks agoox-koma-letter: Fix docstring
Rasmus [Tue, 29 Mar 2016 14:09:06 +0000]
ox-koma-letter: Fix docstring

* ox-koma-letter.el (org-koma-letter-special-tags-as-macro): Fix docstring.

5 weeks agoox-html: Silence byte-compiler
Nicolas Goaziou [Wed, 30 Mar 2016 15:18:47 +0000]
ox-html: Silence byte-compiler

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 30 Mar 2016 15:17:51 +0000]
Merge branch 'maint'

5 weeks agoox-html: Fix planning info export
Nicolas Goaziou [Wed, 30 Mar 2016 15:17:07 +0000]
ox-html: Fix planning info export

* lisp/ox-html.el (org-html-planning): Properly escape angle brackets in
  time-stamps.

Reported-by: Keith Sutton <kesutt@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/105945>

5 weeks agoox-html: Add html attributes to special blocks
John Kitchin [Mon, 28 Mar 2016 19:06:52 +0000]
ox-html: Add html attributes to special blocks

* lisp/ox-html.el (org-html-special-block): enables #+attr_html and puts
  an id in when the special block is named.

5 weeks agoox-html: Add html attributes to quote-block
John Kitchin [Mon, 28 Mar 2016 19:06:51 +0000]
ox-html: Add html attributes to quote-block

* lisp/ox-html.el (org-html-quote-block): Enables #+attr_html: and puts
  a id attribute when the block is named into the html element.

5 weeks agoox-html: Add id attribute to example-block on html export
John Kitchin [Mon, 28 Mar 2016 19:06:50 +0000]
ox-html: Add id attribute to example-block on html export

* lisp/ox-html.el (org-html-example-block): Add "id" attribute according
  to name.

This allows you to hyperlink to the block.

5 weeks agoorg-info.el: Generate HTML links to gnu.org
Richard Kim [Thu, 10 Mar 2016 14:29:48 +0000]
org-info.el: Generate HTML links to gnu.org

* lisp/org-info.el (org-info-export): Convert info links to HTML URL's
that point to appropriate gnu.org or other pages.  User's can customize
the behavior using `org-info-emacs-documents' and
`org-info-other-documets' new variables.

TINYCHANGE

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 30 Mar 2016 13:36:16 +0000]
Merge branch 'maint'

5 weeks agoFix indentation bug
Nicolas Goaziou [Wed, 30 Mar 2016 13:34:24 +0000]
Fix indentation bug

* lisp/org.el (org--get-expected-indentation): Return correct columns
  when at the end of an empty item.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

5 weeks agoorg.texi: Add documentation on list nesting
Rasmus [Mon, 28 Mar 2016 15:52:19 +0000]
org.texi: Add documentation on list nesting

* org.texi (@LaTeX{} specific attributes): Document how to get
  more than four levels.

Suggested-by: 9661031 <9661031@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/105427>

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Mon, 28 Mar 2016 09:07:27 +0000]
Merge branch 'maint'

5 weeks agoox-html: Fix Usenet links
Nicolas Goaziou [Mon, 28 Mar 2016 09:06:56 +0000]
ox-html: Fix Usenet links

* lisp/ox-html.el (org-html-link): Properly export Usenet links.

Reported-by: Michael Welle <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/105915>

5 weeks agoob-C: Add :libs to babel C++
Thierry Banel [Sun, 20 Mar 2016 13:50:17 +0000]
ob-C: Add :libs to babel C++

* lisp/ob-C.el (org-babel-C-execute): add support for :libs header
  parameter to specify libraries to link with.

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 25 Mar 2016 23:29:20 +0000]
Merge branch 'maint'

5 weeks agoob-C: use size_t in babel D
Thierry Banel [Sun, 20 Mar 2016 14:24:14 +0000]
ob-C: use size_t in babel D

* lisp/ob-C.el (org-babel-C-header-to-C): change ulong to size_t for
  indexing a table as mandated by the latest version of the D language
  (thanks to Chris Andrews)

5 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 25 Mar 2016 23:20:47 +0000]
Merge branch 'maint'

5 weeks agoorg-table: Add tests
Nicolas Goaziou [Fri, 25 Mar 2016 23:20:08 +0000]
org-table: Add tests

* testing/lisp/test-org-table.el (test-org-table/eval-formula):
(test-org-table/last-rc): New tests.
(test-org-table/first-rc): Add tests.