org-mode.git
73 min agoorg.texi: Updated doc for [+-]n in SRC/EXAMPLE export master
Brian J. Carlson [Mon, 30 May 2016 02:37:18 +0000]
org.texi: Updated doc for [+-]n in SRC/EXAMPLE export

* doc/org.texi (Timers): Added information about optional argument to
  -n/+n line-numbering
* etc/ORG-NEWS: Added infomation for "Provide offset to [+-]n in
  SRC/EXAMPLE export"  (commit af8e3d8)

47 hours agoBy default, use relative name for compilation
Nicolas Goaziou [Sun, 29 May 2016 22:13:22 +0000]
By default, use relative name for compilation

* lisp/org.el (org-compile-file): %f meant relative name of compiled
  file.  %F is its full name.  Also always set `default-directory' to
  the directory of the source.

Reported-by: Stig Brautaset <stig@brautaset.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/107348>

47 hours agoFix last commit
Nicolas Goaziou [Sun, 29 May 2016 22:02:27 +0000]
Fix last commit

* lisp/org.el (org-edit-headline): Fix `save-match-data' scope.

`org-trim' modifies match data. `read-string' doesn't.

3 days agoorg: Fix interactive headline edit
Marco Wahl [Sat, 28 May 2016 09:35:37 +0000]
org: Fix interactive headline edit

* lisp/org.el (org-edit-headline): Save match-data before calling
  read-string.

5 days agoorg-compat: Fix last commit
Nicolas Goaziou [Thu, 26 May 2016 14:41:17 +0000]
org-compat: Fix last commit

* lisp/org-compat.el (org-with-silent-modifications): Remove spurious
  definition introduced in last commit.

5 days agoorg-compat: Silence byte-compiler
Nicolas Goaziou [Thu, 26 May 2016 14:29:27 +0000]
org-compat: Silence byte-compiler

5 days agoSilence byte-compiler in Emacs 25.1
Nicolas Goaziou [Thu, 26 May 2016 14:21:50 +0000]
Silence byte-compiler in Emacs 25.1

* lisp/org-compat.el (org-get-x-clipboard): Use `gui-get-selection',
  which obsoletes `x-get-selection'.  Define the former as an alias for
  the latter for backward compatibility.

5 days agoorg-macro: Use cl-lib
Nicolas Goaziou [Thu, 26 May 2016 14:16:31 +0000]
org-macro: Use cl-lib

5 days agoorg-table: Add missing "cl-" prefixes
Nicolas Goaziou [Thu, 26 May 2016 14:12:42 +0000]
org-table: Add missing "cl-" prefixes

* lisp/org-table.el (org-table--descriptor-line):
(org-table--row-type): Add "cl-" prefixes.

5 days agoob-core: Do not require `cl' since `cl-lib' is used
Nicolas Goaziou [Thu, 26 May 2016 14:11:06 +0000]
ob-core: Do not require `cl' since `cl-lib' is used

* lisp/ob-core.el (org-babel-merge-params):
(org-babel-noweb-p):
(org-babel--script-escape-inner): Use "cl-" prefix.

5 days agoox-icalendar: Do not require `cl' since `cl-lib' is used
Nicolas Goaziou [Thu, 26 May 2016 14:08:15 +0000]
ox-icalendar: Do not require `cl' since `cl-lib' is used

* lisp/ox-icalendar.el (org-icalendar-get-categories):
(org-icalendar-entry):
(org-icalendar--vevent): Use "cl-" prefix.

5 days agoorg-table: Do not require `cl' since `cl-lib' is used
Nicolas Goaziou [Thu, 26 May 2016 14:05:09 +0000]
org-table: Do not require `cl' since `cl-lib' is used

* lisp/org-table.el (org-table-align):
(org-table-current-column):
(org-table-current-dline):
(org-table-sort-lines):
(org-table-paste-rectangle):
(org-table-analyze):
(org-table-get-range):
(org-table--row-type):
(org-table-recalculate):
(org-table-expand-lhs-ranges):
(org-table-formula-handle-first/last-rc):
(org-table-formula-substitute-names):
(orgtbl-send-table):
(orgtbl-to-generic): Use "cl-" prefix.

5 days agoox-beamer: Do not require `cl' since `cl-lib' is used
Nicolas Goaziou [Thu, 26 May 2016 13:56:16 +0000]
ox-beamer: Do not require `cl' since `cl-lib' is used

* lisp/ox-beamer.el (org-beamer--normalize-argument):
(org-beamer-link): Use "cl" prefix.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 26 May 2016 13:22:23 +0000]
Merge branch 'maint'

5 days agoox-rss: Encode characters to their XML entities
Arun Isaac [Thu, 26 May 2016 12:05:42 +0000]
ox-rss: Encode characters to their XML entities

* contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline):
  Encode disallowed characters in `title' to their XML entities.

The `title' field is user specified and may contain characters such as
"&", "<" or ">" that are disallowed in XML.  These characters should be
encoded into their corresponding XML entities.

5 days agoRemove final parts of XEmacs compatibility code
Nicolas Goaziou [Thu, 26 May 2016 10:18:00 +0000]
Remove final parts of XEmacs compatibility code

* lisp/org-compat.el: Declare `org-add-hook', `org-decompose-region',
  `org-detach-overlay', `org-file-equal-p', `org-float-time',
  `org-indent-line-to', `org-indent-to-column', `org-looking-at-p',
  `org-looking-back', `org-propertize', `org-re' and
  `org-select-frame-set-input-focus' as obsolete.
(org-overlay-display, org-overlay-before-string, org-find-overlays):
Move to "org.el"
(org-xemacs-key-equivalents, org-xemacs-p): Remove variables.
(org-region-active-p): Drop XEmacs support.
(org-xemacs-without-invisibility): Remove macro.
(org-get-x-clipboard-compat): Remove function.
* lisp/org-macs.el (org-match-string-no-properties): Remove function.

* lisp/ob-core.el:
* lisp/org-agenda.el:
* lisp/org-archive.el:
* lisp/org-clock.el:
* lisp/org-colview.el:
* lisp/org-crypt.el:
* lisp/org-element.el:
* lisp/org-faces.el:
* lisp/org-feed.el:
* lisp/org-footnote.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-indent.el:
* lisp/org-inlinetask.el:
* lisp/org-lint.el:
* lisp/org-list.el:
* lisp/org-mouse.el:
* lisp/org-pcomplete.el:
* lisp/org-src.el:
* lisp/org-table.el:
* lisp/org-timer.el:
* lisp/org.el:
* lisp/ox-ascii.el:
* lisp/ox-odt.el:
* lisp/ox.el:
* contrib/lisp/org-notify.el:
* contrib/lisp/ox-taskjuggler.el:
* contrib/lisp/org-wikinodes.el:
* testing/lisp/test-org-src.el:
* testing/lisp/test-org.el: Silence byte-compiler.

5 days agoRemove org-colview-xemacs.el
Nicolas Goaziou [Thu, 26 May 2016 10:16:09 +0000]
Remove org-colview-xemacs.el

* contrib/lisp/org-colview-xemacs.el: Remove file.

5 days agoRemove some XEmacs compatibility layer
Nicolas Goaziou [Thu, 26 May 2016 09:30:11 +0000]
Remove some XEmacs compatibility layer

* lisp/ob-calc.el (calc-trail):
* lisp/ob-python.el (org-babel-python-mode):
* lisp/org-agenda.el (org-agenda-tags-column):
(org-agenda-show-new-time):
* lisp/org-clock.el (org-clock-update-mode-line):
(org-clock-put-overlay):
(org-clock-resolve):
* lisp/org-faces.el (org-faces):
* lisp/org-indent.el (org-indent-mode):
* lisp/org-macs.el (org-load-noerror-mustsuffix):
* lisp/org-table.el (orgtbl-setup):
* lisp/org.el (org-key):
(org-self-insert-cluster-for-undo):
(org-tags-column):
(org-emphasis-alist):
(org-mode):
(org-set-font-lock-defaults):
(org-cycle-internal-local):
(org-tree-to-indirect-buffer):
(org-set-frame-title):
(org-priority):
(org-set-tags):
(org-set-current-tags-overlay):
(org-toggle-time-stamp-overlays):
(org-display-custom-time):
(org-diary-to-ical-string):
(org--format-latex-make-overlay):
(org-dvipng-color):
(org-latex-color):
(org-mode-map):
(org-speed-commands-default):
(org-reload):
(org-display-warning):
(org-end-of-line):
* lisp/ox-man.el (org-man-inline-src-block):
* contrib/lisp/org-vm.el (org-vm-follow-link):
* contrib/lisp/ox-groff.el (org-groff-inline-src-block):
(org-groff-src-block): Remove some XEmacs compatibility layer.

5 days agoox-latex: Use "cl-lib"
Nicolas Goaziou [Thu, 26 May 2016 09:03:11 +0000]
ox-latex: Use "cl-lib"

* lisp/ox-latex.el (org-latex--label):
(org-latex--caption/label-string):
(org-latex--find-verb-separator):
(org-latex--text-markup):
(org-latex-inline-src-block):
(org-latex-item):
(org-latex-keyword):
(org-latex--inline-image):
(org-latex-link):
(org-latex-plain-text):
(org-latex-matrices):
(org-latex--script-size):
(org-latex--align-string):
(org-latex--table.el-table):
(org-latex-timestamp): Use "cl-" prefix.

5 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 26 May 2016 08:55:00 +0000]
Merge branch 'maint'

5 days agoorg-agenda: Effectively preserve persistent bulk marks
Nicolas Goaziou [Thu, 26 May 2016 08:51:58 +0000]
org-agenda: Effectively preserve persistent bulk marks

* lisp/org-agenda.el (org-agenda-change-all-lines): Preserve bulk mark
  overlay when replacing an entry.

Reported-by: Jesse Johnson <holocronweaver@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107299>

5 days agoorg-agenda: Add missing docstring
Nicolas Goaziou [Thu, 26 May 2016 08:51:27 +0000]
org-agenda: Add missing docstring

* lisp/org-agenda.el (org-agenda-bulk-marked-p): Add missing docstring.

6 days agoox-latex: Fix bug introduced in 888ebfdeaf373012c7
Rasmus [Wed, 25 May 2016 17:48:51 +0000]
ox-latex: Fix bug introduced in 888ebfdeaf373012c7

* lisp/ox-latex.el (org-latex-footnote-reference): Handle anonymous
  footnotes.

Reported-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/107381>

6 days agoox-latex: More robust repeated footnote references
Rasmus [Sun, 22 May 2016 18:33:06 +0000]
ox-latex: More robust repeated footnote references

* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix typo
  in docstring.
(org-latex-footnote-defined-format): New defcustom.
(org-latex-footnote-reference): Refer to repeated footnotes using
labels.  Format using new defcustom.
* etc/ORG-NEWS: Mention change.
* doc/org.texi (Publishing options): Add new defcustom.

6 days agoox-org: Add footnote prefix
Rasmus [Wed, 25 May 2016 06:41:12 +0000]
ox-org: Add footnote prefix

* lisp/ox-org.el (org-org-section): Add mandatory "fn" prefix to
  footnotes.

Reported-by: Nick Dokos <ndokos@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107366>

7 days agoFix typo
Feng Shu [Tue, 24 May 2016 13:29:01 +0000]
Fix typo

* org.el (org-preview-latex-process-alist): Fix typo in docstring.

7 days agoox: Small refactoring
Nicolas Goaziou [Tue, 24 May 2016 19:40:43 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-get-loc): Refactor code.  Speed-up processing
  when the element doesn't require line numbering.
* testing/lisp/test-ox.el (test-org-gen-loc-list): Reformat code.

7 days agoox: Provide offset to [+-]n in SRC/EXAMPLE export
Brian Carlson [Mon, 16 May 2016 14:58:01 +0000]
ox: Provide offset to [+-]n in SRC/EXAMPLE export

* lisp/org-element.el (org-element-example-block-parser): Use cons cell
  for :number-lines specifying offset in addition to type (new/continue).
  ('continue . offset) for :number-lines will add this offset count to
  the last line number. ('new . offset) for :number-lines will reset the
  line number counting starting at offset
(org-element-src-block-parser): same for SRC block as EXAMPLE block

* lisp/ox-html.el (org-html-format-code):
* lisp/ox-latex.el (org-latex-src-block):
* lisp/ox-odt.el (org-odt-format-code):
* lisp/ox.el (org-export-resolve-coderef):
(org-export-get-loc):
(org-export-format-code-default):
* contrib/lisp/ox-groff.el (org-groff-src-block): Use new cons cell
  for :number-lines.

* testing/lisp/test-ox.el  (ert-deftest test-org-export/get-loc): Tests for
changes
(test-org-gen-loc-list): Helper function for `test-org-export/get-loc'.

7 days agoLatex previewing: imagemagick use pdflatex by default
Feng Shu [Tue, 24 May 2016 04:28:51 +0000]
Latex previewing: imagemagick use pdflatex by default

* org.el (org-preview-latex-process-alist): Use "pdflatex" instead of
  "latex".

8 days agoPlace `org-clock-heading' outside clock time
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.

8 days agoMerge branch 'maint' of orgmode.org:org-mode into maint
Rasmus [Mon, 23 May 2016 07:06:56 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12 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

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

12 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

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

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

12 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

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

12 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".

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

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

12 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).

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

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

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

13 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'.

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

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

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

Use # instead of #+comment:.

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

* contrib/orgmanual.org: New file.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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