org.el (org-insert-link): Fix bug when inserting links to headlines containing the ">" character

* org.el (org-insert-link): Fix bug when inserting links to
headlines containing the ">" character.

Thanks to William Léchelle for reporting this.
org-clock.el (org-clock-persist): Docstring fix: document the 'history value

* org-clock.el (org-clock-persist): Docstring fix: document
the 'history value.

Thanks to Ivan Andrus for reporting this.
org.el (org-cycle-internal-local): Fix bug: allow headings with leading blank characters

* org.el (org-cycle-internal-local): Fix bug: allow headings
with leading blank characters.

Thanks to Rémi Vanicat for sending a patch for this.
Pass the dir option on through org-export-as-string

* lisp/org-exp.el (org-export-string): Pass the dir option on through to
  any subsequent export functions.
org.el: Don't re-generate latex previews if already present

* org.el (org-format-latex): Do not re-generate a latex preview if the
image already exists.

This feature was lost in commit 27101a3e0ee7
org-agenda.el: Docstring fixes.

* org-agenda.el (org-agenda-Quit, org-agenda-quit)
(org-agenda-exit, org-agenda-kill-all-agenda-buffers):
Docstring fixes.
Merge branch 'maint'
Revert "org.el: (org-mode): Use `face-background' instead of `org-find-invisible-foreground'"

This reverts commit 4549f0c99cef65c68879641d2a96ad486b64e6b1.
org.el (org-store-link): Fix the naming of internal links to lines starting with a keyword

* org.el (org-store-link): Fix the naming of internal links to
lines starting with a keyword.

Thanks to Thomas S. Dye for reporting a related issue.
Allow to follow internal links from the agenda

* org-agenda.el (org-agenda-open-link): Allow to open an
internal link by using the new `org-offer-links-in-entry'
function.

* org.el (org-offer-links-in-entry): Do not open the link
directly through `org-open-link-from-string', only offer to
select a link and return a cons with the link (as a string)
and the end of entry.
(org-open-at-point): Use `org-offer-links-in-entry' correctly.

Thanks to Memnon Anon for reporting this.
org-src.el: Fix compiler warning
Merge branch 'maint'
org.el (org-entry-blocked-p): Don't set the buffer as modified

* org.el (org-blocker-hook): Update the docstring to mention
that functions in this hook should not modify the buffer.
(org-trigger-hook): Small docstring fix.
(org-entry-blocked-p): Use `with-buffer-modified-unmodified'
so that the function never modifies the buffer.

Thanks to Sven Bretfeld for reporting this.

When building the agenda, checking for blocked items should not
set the buffers as modified, otherwise exiting the agenda will ask
for confirmation each time it kills a buffer.
Merge branch 'maint'
org-inlinetask.el: Add a note about mixing inline tasks and plain list

The note reads:

;; Note that you should not try to use inline tasks within plain list,
;; visibility cycling is known to be problematic when doing so.

Thanks to Gregor Zattler for pointing at limitations in this area.
Merge branch 'maint'
org-src.el (org-edit-src-exit): Don't comma-escape the content of a fixed width region

* org-src.el (org-edit-src-exit): Don't comma-escape the
content of a fixed width region.

Thanks to Bernt Hansen for reporting this.
Merge branch 'maint'
org-clock.el: Implement a new parameter :wstart to define the week start day

* org-clock.el (org-clock-special-range): New parameter
'weekstart to define the week start day.
(org-clock-special-range, org-dblock-write:clocktable)
(org-dblock-write:clocktable, )
(org-clocktable-write-default, org-clocktable-steps)
(org-clock-get-table-data): Use the new parameter.
(org-clocktable-defaults): Set monday as the starting day of
the week by setting :wstart to 1.

* org.texi (The clock table): Document :wstart as a way to set
the starting day of the week.

Thanks to Raghavendra D Prabhu for suggesting this feature.
org-clock.el (org-clock-special-range): Small docstring fix

* org-clock.el (org-clock-special-range): Small docstring fix.