org-mode.git
18 hours agoPlace `org-clock-heading' outside clock time master
Trevor Murphy [Sun, 22 May 2016 19:45:25 +0000]
Place `org-clock-heading' outside clock time

* org-clock.el (org-clock-get-clock-string): When `org-clock-effort'
  is nil, arrange the format string components separately, similar to
  how they are arranged when o-c-e is not-nil.

32 hours agoox-latex.el: Format-spec checks Polyglossia
Rasmus [Mon, 23 May 2016 07:00:54 +0000]
ox-latex.el: Format-spec checks Polyglossia

* ox-latex.el (org-latex--format-spec): Also check Polyglossia language.

32 hours agoMerge branch 'maint'
Rasmus [Mon, 23 May 2016 06:59:29 +0000]
Merge branch 'maint'

32 hours agoox-latex: Detect languages irrespective of case
Rasmus [Mon, 23 May 2016 06:45:54 +0000]
ox-latex: Detect languages irrespective of case

* ox-latex.el (org-latex-guess-babel-language):
* ox-latex.el (org-latex--format-spec): Detect languages correctly
  irrespective of case.

40 hours agoMerge branch 'maint'
Nicolas Goaziou [Sun, 22 May 2016 23:20:17 +0000]
Merge branch 'maint'

40 hours agoorg-table: Fix 4914f89
Nicolas Goaziou [Sun, 22 May 2016 23:19:29 +0000]
org-table: Fix 4914f89

* lisp/org-table.el (orgtbl-setup): Fix improper key binding
  specification.

Reported-by: Alex <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107287>

40 hours agoMerge branch 'maint'
Nicolas Goaziou [Sun, 22 May 2016 23:17:23 +0000]
Merge branch 'maint'

40 hours agoorg-list: Fix `org-list-send-list' in LaTeX buffers
Nicolas Goaziou [Sun, 22 May 2016 23:12:51 +0000]
org-list: Fix `org-list-send-list' in LaTeX buffers

* lisp/org-list.el (org-list-send-list): Find correct translator.

Reported-by: Charles Millar <millarc@verizon.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107290>

2 days agoMerge branch 'maint'
Rasmus [Sun, 22 May 2016 13:31:27 +0000]
Merge branch 'maint'

2 days agoox-html: Find preamble-spec case-insensitively
Rasmus [Sun, 22 May 2016 13:30:11 +0000]
ox-html: Find preamble-spec case-insensitively

* ox-html.el (org-html--build-pre/postamble): Find the spec based on the
  language case-insensitively.

Note that the default org-html-preamble-format and
org-export-default-language are incompatible.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 21 May 2016 12:41:38 +0000]
Merge branch 'maint'

3 days agoorg-table: Fix DEL using orgtbl minor mode in prog derived mode
Nicolas Goaziou [Sat, 21 May 2016 12:39:26 +0000]
org-table: Fix DEL using orgtbl minor mode in prog derived mode

* lisp/org-table.el (orgtbl-setup): Hijack DEL key.  We also hijack
  `delete-backward-char' but major modes derived from `prog-mode'
  usually bypass it.

Reported-by: Alex G <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107232>

3 days agoUse dvisvgm to preview latex formulas
Feng Shu [Thu, 19 May 2016 14:01:24 +0000]
Use dvisvgm to preview latex formulas

* ox-html.el (org-html-with-latex): Add dvisvgm support.
(org-html-with-latex): Add dvisvgm support.
(org-html-format-latex): "ltxpng" -> "ltximg".
(org-html-latex-environment): Add dvisvgm support.
(org-html-latex-fragment): Add dvisvgm support.

* org.el (org-preview-latex-default-process): New variable.
(org-latex-create-formula-image-program): Rename it to `org-preview-latex-default-process'.
(org-latex-preview-ltximg-directory): Rename it to `org-preview-latex-image-directory'.
(org-preview-latex-image-directory): New variable.
(org--format-latex-make-overlay): Add optional image-type, which used to deal with svg.
(org-toggle-latex-fragment): "org-ltxpng" -> "org-ltximg".
(org-format-latex): Add dvisvgm support.
(org-create-formula-image): Big refactor, merge dvipng and imagemagick
backend's feature.  Add dvisvgm feature.
(org-preview-latex-process-alist): Add new variable, which used to set
latex preview processes.
(org-create-formula-image-with-dvipng):
(org-create-formula-image-with-imagemagick): Useless, removed.

* org.texi (@LaTeX{} fragments):
(Previewing @LaTeX{} fragments):
(Math formatting in HTML export):
(Working with @LaTeX{} math snippets): Add dvisvgm information.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 20 May 2016 21:05:59 +0000]
Merge branch 'maint'

3 days agoorg-table: Fix orgtbl-self-insert-command on white spaces
Nicolas Goaziou [Fri, 20 May 2016 21:03:18 +0000]
org-table: Fix orgtbl-self-insert-command on white spaces

* lisp/org-table.el (orgtbl-self-insert-command): Properly overwrite
  white spaces when there is room for it.  This is on par with what
  `org-self-insert-command' does in Org tables.

Reported-by: Alex <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107112>

3 days agoFix `org-open-at-point-global'
Nicolas Goaziou [Fri, 20 May 2016 20:04:11 +0000]
Fix `org-open-at-point-global'

* lisp/org.el (org-open-at-point-global): Handle any external link
  looking like an Org link or time-stamp.

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

3 days agoFix `org-open-at-point' tests
Nicolas Goaziou [Fri, 20 May 2016 19:59:50 +0000]
Fix `org-open-at-point' tests

* testing/lisp/test-org.el (test-org/open-at-point-in-keyword):
(test-org/open-at-point-in-property):
(test-org/open-at-point-in-comment):
(test-org/open-at-point/inline-image): Simplify tests so as to not rely
on info.

(test-org/open-at-point/info): Remove test as it fails on the build bot.

4 days agoImplement conditional case-fold search in org-occur
Nicolas Goaziou [Fri, 20 May 2016 11:58:41 +0000]
Implement conditional case-fold search in org-occur

* lisp/org.el (org-occur-case-fold-search): New variable.
(org-occur): Use new variable.

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

4 days agoob-exp: Small speed-up
Nicolas Goaziou [Fri, 20 May 2016 11:38:57 +0000]
ob-exp: Small speed-up

* lisp/ob-exp.el (org-babel-exp-src-block): Refer to block position
  instead of line.

`org-current-line' is costly in large buffers.

4 days agoorgmanual: Fix ALT_TITLE property
Nicolas Goaziou [Thu, 19 May 2016 20:25:23 +0000]
orgmanual: Fix ALT_TITLE property

4 days agoorgmanual: Add GFDL
Nicolas Goaziou [Thu, 19 May 2016 20:20:18 +0000]
orgmanual: Add GFDL

4 days agoorgmanual: Use special blocks instead of wrapper macros
Nicolas Goaziou [Thu, 19 May 2016 18:41:37 +0000]
orgmanual: Use special blocks instead of wrapper macros

4 days agoox-texinfo: Allow :options attribute on special blocks
Nicolas Goaziou [Thu, 19 May 2016 17:15:55 +0000]
ox-texinfo: Allow :options attribute on special blocks

* lisp/ox-texinfo.el (org-texinfo-special-block): Handle :options
  attribute.
* doc/org.texi (Texinfo specific attributes): Add special block section.

4 days agoorgmanual: Move macro definitions in a dedicated section
Nicolas Goaziou [Thu, 19 May 2016 16:20:31 +0000]
orgmanual: Move macro definitions in a dedicated section

4 days agoorgmanual: Remove unnecessary code macro
Nicolas Goaziou [Thu, 19 May 2016 16:14:37 +0000]
orgmanual: Remove unnecessary code macro

4 days agoorgmanual: Remove unnecessary header
Nicolas Goaziou [Thu, 19 May 2016 16:12:37 +0000]
orgmanual: Remove unnecessary header

4 days agoorgmanual: Use double space convention in Texinfo
Nicolas Goaziou [Thu, 19 May 2016 16:11:46 +0000]
orgmanual: Use double space convention in Texinfo

4 days agoorgmanual: Fix badly converted index macros
Nicolas Goaziou [Thu, 19 May 2016 16:01:45 +0000]
orgmanual: Fix badly converted index macros

4 days agoorgmanual: Export to info without failure
Nicolas Goaziou [Thu, 19 May 2016 15:53:42 +0000]
orgmanual: Export to info without failure

Also remove the need for "org-version.inc".

5 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 19 May 2016 08:37:08 +0000]
Merge branch 'maint'

5 days agoorg-agenda: Fix agenda filter by empty tag string
Nicolas Goaziou [Thu, 19 May 2016 08:31:27 +0000]
org-agenda: Fix agenda filter by empty tag string

* lisp/org-agenda.el (org-agenda-filter-make-matcher-tag-exp): Handle
  empty tag strings.

Reported-by: Eric Abrahamsen <eric@ericabrahamsen.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107121>

5 days agoAdd `org-compile-file' and `org-file-newer-than-p'
Nicolas Goaziou [Tue, 17 May 2016 21:37:18 +0000]
Add `org-compile-file' and `org-file-newer-than-p'

* lisp/org.el (org-compile-file):
(org-file-newer-than-p): New functions.

* lisp/ox-latex.el (org-latex-compile): Use new functions.

* lisp/ox-man.el (org-man-compile): Use new functions.
(org-man-collect-errors): Remove it.

* lisp/ox-texinfo.el (org-texinfo-compile): Use new functions.
(org-texinfo-collect-errors): Remove function as it is not accurate
enough (e.g., it doesn't handle internationalization).

5 days agoox-publish: Correct docstring typo
Kyle Meyer [Thu, 19 May 2016 02:03:58 +0000]
ox-publish: Correct docstring typo

* lisp/ox-publish.el (org-publish-project-alist): Correct typo in
  docstring.

5 days agoAdjust function declaration changes from 291938d
Kyle Meyer [Thu, 19 May 2016 02:01:59 +0000]
Adjust function declaration changes from 291938d

* lisp/org-macro.el (org-with-wide-buffer): Remove unnecessary
declaration.
(vc-call): Signal that FN is not a defun.  Match arguments.

5 days agoorg-macro.el: Allow modification-time from vc.el
Rasmus [Wed, 18 May 2016 09:23:46 +0000]
org-macro.el: Allow modification-time from vc.el

* org-macro.el (org-macro--vc-modified-time): New function.
* org-macro.el (org-macro-initialize-templates): Add support for new
  function.
* doc/org.texi (Macro replacement): Document new behavior.
* etc/ORG-NEWS: Mention new behavior.

6 days agoox-publish.el: Document `:recursive'
Rasmus [Fri, 29 Apr 2016 14:55:07 +0000]
ox-publish.el: Document `:recursive'

* ox-publish.el (org-publish-project-alist): Document `:recursive'.

7 days agoorgmanual: Pacify linter
Nicolas Goaziou [Mon, 16 May 2016 23:04:15 +0000]
orgmanual: Pacify linter

7 days agoorgmanual: Use dedicated index keywords
Nicolas Goaziou [Mon, 16 May 2016 22:53:59 +0000]
orgmanual: Use dedicated index keywords

7 days agoorgmanual: Fix comments
Nicolas Goaziou [Mon, 16 May 2016 22:01:18 +0000]
orgmanual: Fix comments

Use # instead of #+comment:.

7 days agocontrib: Add Org manual
Nicolas Goaziou [Mon, 16 May 2016 21:54:45 +0000]
contrib: Add Org manual

* contrib/orgmanual.org: New file.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 16 May 2016 09:21:05 +0000]
Merge branch 'maint'

8 days agoorg-capture: Support all capture template target-file variants in Customize
Phil Hudson [Mon, 16 May 2016 08:34:30 +0000]
org-capture: Support all capture template target-file variants in Customize

* lisp/org-capture.el (`org-capture-templates'): Adjust the
  `org-capture-templates' defcustom template to support specifying the capture
  target file using either a literal pathname, a function, a variable or a
  form, as documented.  Previously the Customize UI supported specifying only a
  literal pathname.
  (org-capture-templates): Clarify the documentation for the `function' method
  for setting up the capture target.

* doc/org.texi (Template elements): Clarify the `function' method for setting up
  the capture target.

8 days agoob-comint: Remove unnecessary function declarations
Kyle Meyer [Sun, 15 May 2016 23:54:39 +0000]
ob-comint: Remove unnecessary function declarations

These aren't needed because tramp is explicitly loaded.

8 days agoFix remaining declare-function issues on master
Kyle Meyer [Sun, 15 May 2016 23:15:28 +0000]
Fix remaining declare-function issues on master

* lisp/org-list.el (org-export-create-backend):
Indicate that FN is not a defun.
* lisp/org-list.el (org-export-create-backend):
(org-export-data-with-backend):
(org-export-get-backend):
(org-export-get-environment):
(org-export-get-next-element):
(org-export-with-backend):
Correct source file name.
* lisp/org.el (calendar-check-holidays):
(org-agenda-format-item):
Correct argument list.

8 days agoMerge branch 'maint'
Kyle Meyer [Sun, 15 May 2016 23:00:30 +0000]
Merge branch 'maint'

8 days agoFix remaining declare-function issues
Kyle Meyer [Sun, 15 May 2016 21:42:47 +0000]
Fix remaining declare-function issues

* lisp/ob-shell.el (org-babel-comint-in-buffer):
(org-babel-comint-with-output):
* lisp/org-table.el (org-export-create-backend):
* lisp/org.el (org-babel-do-in-edit-buffer): Indicate that FN is not a
defun.
* lisp/ob-tangle.el (org-string-nw-p):
* lisp/org-table.el (org-export-create-backend):
(org-export-data-with-backend):
(org-export-filter-apply-functions):
(org-export-first-sibling-p):
(org-export-get-backend):
(org-export-get-environment):
(org-export-install-filters):
(org-export-table-has-special-column-p):
(org-export-table-row-is-special-p): Correct source file name.
* lisp/ob-R.el (ess-wait-for-process):
* lisp/org-clock.el (calendar-iso-to-absolute):
* lisp/org-list.el (org-previous-line-empty-p):
* lisp/org-pcomplete.el (org-entry-properties):
* lisp/org-table.el (org-export-data-with-backend):
(org-export-get-environment):
* lisp/org.el (org-element-interpret-data): Correct argument list.

8 days agoorg-compat: Quiet font-lock-fontify-buffer warning
Kyle Meyer [Sun, 15 May 2016 20:02:02 +0000]
org-compat: Quiet font-lock-fontify-buffer warning

* lisp/org-compat.el (org-font-lock-ensure): Quiet byte compiler warning
  about font-lock-fontify-buffer.

8 days agoorg-compat: Check for w32-focus-frame
Kyle Meyer [Sun, 15 May 2016 17:53:14 +0000]
org-compat: Check for w32-focus-frame

* lisp/org-compat.el (org-select-frame-set-input-focus): Check for
  w32-focus-frame to quiet byte compiler.

Don't use declare-function because this function was marked obsolete in
Emacs 23.1 (44fe0f6).

8 days agoorg-gnus: Check nnimap-group-overview-filename
Kyle Meyer [Sun, 15 May 2016 16:56:29 +0000]
org-gnus: Check nnimap-group-overview-filename

* lisp/org-gnus.el (org-gnus-nnimap-cached-article-number): Check that
  nnimap-group-overview-filename, which was removed from Emacs in 2010,
  is defined before calling.

8 days agoFix up last backport
Kyle Meyer [Sun, 15 May 2016 16:24:59 +0000]
Fix up last backport

* lisp/org.el (org-export-backend-options): Add back removed
declare-function call.
* lisp/ob-awk.el (orgtbl-to-generic):
* lisp/ob-core.el (orgtbl-to-generic):
* lisp/ob-gnuplot.el (orgtbl-to-generic): Remove BACKEND argument from
declare-function calls.

The last backport added this argument to match orgtbl-to-generic's
signature in Emacs's version of Org, but the BACKEND argument to
orgtbl-to-generic was later removed in 9209aa3 (org-table: Use "ox.el"
internally for radio tables, 2014-08-24).

8 days agoBackport commit 65c8c7c from Emacs
Paul Eggert [Sun, 15 May 2016 02:56:53 +0000]
Backport commit 65c8c7c from Emacs

* lisp/ob-awk.el (orgtbl-to-generic):
* lisp/ob-core.el (orgtbl-to-generic):
* lisp/ob-exp.el (org-element-context):
* lisp/ob-gnuplot.el (org-time-string-to-time)
(orgtbl-to-generic):
* lisp/ob-haskell.el (org-export-to-file):
* lisp/ob-latex.el (org-create-formula-image)
(org-latex-compile):
* lisp/ob-python.el (run-python):
* lisp/ob-tangle.el (org-link-escape, org-back-to-heading):
* lisp/org-colview.el (org-agenda-redo):
* lisp/org-feed.el (url-retrieve-synchronously):
* lisp/org-info.el (Info-find-node):
* lisp/org-list.el (org-previous-line-empty-p):
* lisp/org-macs.el (org-string-match-p):
* lisp/org.el (org-beamer-mode):
Fix prototype to match current definition.
* lisp/ob-comint.el (tramp-flush-directory-property):
* lisp/ob-tangle.el (org-babel-update-block-body):
* lisp/org-bibtex.el (org-babel-trim):
* lisp/org-pcomplete.el (org-export-backend-options):
* lisp/org-protocol.el (org-publish-get-project-from-filename):
Fix file name in declare-function.
* lisp/ob-comint.el (with-parsed-tramp-file-name)
* lisp/ob-core.el (with-parsed-tramp-file-name):
* lisp/org.el (org-beamer-mode):
Append ‘t’ to declare-function, since the declaration isn’t a defun.
* lisp/ob-core.el (org-save-outline-visibility):
Remove; not needed.
* lisp/ob-scheme.el (run-geiser, geiser-mode)
(geiser-eval-region, geiser-repl-exit):
* lisp/ox-org.el (htmlize-buffer):
Prepend "ext:" to file name, since it is not part of Emacs.
* lisp/org-gnus.el (nnimap-group-overview-filename):
Remove decl, since function was removed.
* lisp/org-macro.el (org-with-wide-buffer):
Omit unnecessary (and mismatching) decl.
* lisp/org-clock.el (calendar-iso-to-absolute):
Declare calendar-iso-to-absolute instead, since it is the
non-obsolete version of this function.
* lisp/org-compat.el (w32-focus-frame):
Remove decl, since function is now obsolete.

Pacify ‘make check-declare’
65c8c7cb96c14f9c6accd03cc8851b5a3459049e
Paul Eggert
Sat May 14 19:57:44 2016 -0700

10 days agoox-org: Handle export blocks
Nicolas Goaziou [Fri, 13 May 2016 15:57:11 +0000]
ox-org: Handle export blocks

* lisp/ox-org.el (org-org-export-block): New function.

10 days agoorg-element: Properly unescape data in export blocks
Nicolas Goaziou [Fri, 13 May 2016 15:53:22 +0000]
org-element: Properly unescape data in export blocks

* lisp/org-element.el (org-element-export-block-parser): Remove commas
  in export blocks.
* testing/lisp/test-org-element.el (test-org-element/export-block-parser):
  Add test.

11 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 13 May 2016 15:37:49 +0000]
Merge branch 'maint'

11 days agoox-rss: Prevent dropping lower level headlines
Arun Isaac [Thu, 12 May 2016 03:51:18 +0000]
ox-rss: Prevent dropping lower level headlines

* contrib/lisp/ox-rss.el (org-rss-headline): Transcode lower level
  headlines (headlines with level > 1) using the html backend.  Do not
  drop them.

Previously, lower level headlines were dropped and did not appear in the
exported RSS output.

12 days agoorg-src: Allow writing remote edit buffers to file
Nicolas Goaziou [Wed, 11 May 2016 21:18:38 +0000]
org-src: Allow writing remote edit buffers to file

* lisp/org-src.el (org-src-mode-configure-edit-buffer): Do not treat
  each save as meant to save source buffer.

Reported-by: David Dynerman <david@block-party.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/106998>

12 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 May 2016 20:50:38 +0000]
Merge branch 'maint'

12 days agoorg-agenda: Fix `org-agenda-bulk-custom-functions' supported Customize type
Nicolas Goaziou [Wed, 11 May 2016 20:49:25 +0000]
org-agenda: Fix `org-agenda-bulk-custom-functions' supported Customize type

* org-agenda.el (`org-agenda-bulk-custom-functions'): Change the defcustom
  template to recognize that the code expects this alist's elements to be
  two-element lists like (?a b), not conses like (?a . b).

The Customize UI previously incorrectly presented the latter.  When
saved, this led to the agenda bulk-commands menu correctly presenting
the accelerator key 'a' but then erroring when it tried to execute the
associated command 'b'.

12 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 May 2016 16:46:28 +0000]
Merge branch 'maint'

12 days agoorg-clock: Fix `org-clock-drawer-name'
Nicolas Goaziou [Wed, 11 May 2016 16:44:02 +0000]
org-clock: Fix `org-clock-drawer-name'

* lisp/org-clock.el (org-clock-drawer-name): When
  `org-clock-into-drawer' is a number and `org-log-into-drawer' is t,
  default to "LOGBOOK".

* testing/lisp/test-org-clock.el (test-org-clock/into-drawer):
(test-org-clock/drawer-name): New tests.

13 days agoob-comint.el: Require `tramp' and declare tramp functions
Charles Berry [Sun, 24 Apr 2016 04:18:10 +0000]
ob-comint.el: Require `tramp' and declare tramp functions

* ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
  The tramp macro `with-parsed-tramp-file-name' invokes a bunch of
  tramp functions.  These are now declared and tramp is explicitly
  required.

13 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 10 May 2016 21:08:34 +0000]
Merge branch 'maint'

13 days agoorg-clock: Fix generated drawer when `org-clock-into-drawer' is numerical
Nicolas Goaziou [Tue, 10 May 2016 20:29:53 +0000]
org-clock: Fix generated drawer when `org-clock-into-drawer' is numerical

* lisp/org-clock.el (org-clock-find-position): Create a default
  "LOGBOOK" drawer when `org-clock-into-drawer' is a numeric value.

Reported-by: Carlos Noguera <carlos.francisco.noguera@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106886>

13 days agoox-html: Support more programming languages in CSS
Robert Klein [Mon, 14 Mar 2016 13:43:46 +0000]
ox-html: Support more programming languages in CSS

* lisp/ox-html.el (org-html-style-default): Add languages.

The standard CSS for HTML export only supported a couple of
programming languages to have a language name "hover" on src
blocks.  This patch adds all languages supported per Org
manual, those from org.el's org-babel-load-languages-alist,
additional language identifiers in ob-*.el and languages
which have a) an emacs mode and b) are supported by the LaTeX
listings package.  Additional a language "conf" is supported
for generic configuraiton files; an emacs mode exists for
this, but for LaTeX listings a language " " has to be faked.
As this patch is for HTML, this is no impediment.

Thanks for reporting the missing support to Tianxian XIONG.

13 days agoORG-NEWS: Document new plantuml output formats
Nicolas Goaziou [Tue, 10 May 2016 20:18:43 +0000]
ORG-NEWS: Document new plantuml output formats

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 5 May 2016 11:15:34 +0000]
Merge branch 'maint'

2 weeks agoFix `org-occur' when regexp matches a single char
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.

2 weeks 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.

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

2 weeks 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.

2 weeks 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

2 weeks 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.

3 weeks 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.

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

3 weeks 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.

3 weeks 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>

3 weeks 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.

3 weeks 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>

3 weeks 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>

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

3 weeks 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>

3 weeks 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>

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

3 weeks 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.

3 weeks 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.

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

3 weeks 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>

3 weeks 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.

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

3 weeks 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>

4 weeks 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.

4 weeks 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.

4 weeks 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>

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

4 weeks 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>

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

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

4 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.

4 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.

4 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