org-mode.git
22 hours agocontrib/lisp/org-velocity: Fix failure for big window master
Marco Wahl [Tue, 14 Oct 2014 18:07:31 +0000]
contrib/lisp/org-velocity: Fix failure for big window

* contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed
  the estimation against window-height.

22 hours agoorg-clock.el (org-clock-select-task): Kill temporary buffer
Bastien Guerry [Mon, 20 Oct 2014 13:27:46 +0000]
org-clock.el (org-clock-select-task): Kill temporary buffer

* org-clock.el (org-clock-select-task): Kill temporary buffer.

Thanks to Marcin Borkowski for this idea.

26 hours agoorg.texi: Remove extraneous backslash in key sequence
Rafael Laboissiere [Sun, 19 Oct 2014 20:37:39 +0000]
org.texi: Remove extraneous backslash in key sequence

* doc/org.texi (ASCII bar plots): Remove the backslash character in
the key binding sequence for orgtbl-ascii-plot command.

I think that this backslash is not needed, since previously in the
same section, at subheading "Graphical plots using Gnuplot", there is
a similar key sequence without backslash @kbd{C-c " g}.

TINYCHANGE

3 days agoox-latex: Possibly make a matrix out of tabular environment
Nicolas Goaziou [Sat, 18 Oct 2014 08:16:04 +0000]
ox-latex: Possibly make a matrix out of tabular environment

* lisp/ox-latex.el (org-latex--math-table): Properly create matrix if
  "tabular" environment is used.  Make sure cells are centered instead
  of applying usual alignment rules.

3 days agoox-latex: Tiny fix to latex-matrices pseudo-elements
Nicolas Goaziou [Sat, 18 Oct 2014 08:15:29 +0000]
ox-latex: Tiny fix to latex-matrices pseudo-elements

* lisp/ox-latex.el (org-latex--wrap-latex-matrices): Make sure
  contiguous element is also an Org table.

3 days agoox-latex: Add `org-latex-caption-above'
Nicolas Goaziou [Fri, 17 Oct 2014 15:19:30 +0000]
ox-latex: Add `org-latex-caption-above'

* lisp/ox-latex.el (org-latex-caption-above): New variable.
(org-latex-table-caption-above): Remove variable.  Make it an obsolete
alias of the previous one.
(org-latex--caption-above-p): New function.
(org-latex--inline-image, org-latex-src-block,
org-latex-special-block, org-latex table): Handle new variable.

* doc/org.texi (Publishing options):
* etc/ORG-NEWS: Document new option.

3 days agoox-latex: Refactor matrices code
Nicolas Goaziou [Fri, 17 Oct 2014 15:16:28 +0000]
ox-latex: Refactor matrices code

* lisp/ox-latex.el (latex): Introduce a dedicated pseudo-element:
  `latex-matrices'.
  (org-latex--wrap-latex-matrices, org-latex-matrices,
  org-latex-matrices-tree-filter): New functions.
  (org-latex--math-table): Delegate environment wrapping to new
  pseudo-element translator.

4 days agoORG-NEWS: Document new hook and new defcustom
Nicolas Goaziou [Thu, 16 Oct 2014 22:26:51 +0000]
ORG-NEWS: Document new hook and new defcustom

4 days agoorg-clock: Fix CLOCK_INTO_DRAWER property check
Kyle Meyer [Thu, 16 Oct 2014 19:17:00 +0000]
org-clock: Fix CLOCK_INTO_DRAWER property check

* lisp/org-clock.el (org-clock-into-drawer): Fix processing of
properties so that they can override global value.

Previously, if the 'CLOCK_INTO_DRAWER' or 'LOG_INTO_DRAWER' property was
nil, the local property setting would not override the global
variable [1]. These changes make the behavior match the docstring
description ('CLOCK_INTO_DRAWER' and 'LOG_INTO_DRAWER' properties
override `org-clock-into-drawer', with 'CLOCK_INTO_DRAWER' given
precedence).

[1] http://stackoverflow.com/questions/26405415/how-to-locally-unset-org-clock-into-drawer-t

TINYCHANGE

4 days agoorg-attach: Maybe delete heading attachments when archiving
Eric Abrahamsen [Tue, 14 Oct 2014 01:51:01 +0000]
org-attach: Maybe delete heading attachments when archiving

* lisp/org-attach.el (org-attach-archive-delete): New option
  controlling what to do with attachments when
  archiving.
(org-attach-archive-delete-maybe): New function that runs as a hook on
  org-archive-hook.  Checks the value of `org-attach-archive-delete',
  and behaves accordingly.

4 days agoorg-archive: Provide a hook during the archive process
Eric Abrahamsen [Tue, 14 Oct 2014 01:38:41 +0000]
org-archive: Provide a hook during the archive process

* lisp/org-archive.el (org-archive-hook): New hook.
  (org-archive-subtree): Run hook.

5 days agoMerge branch 'master' of orgmode.org:org-mode
David Arroyo Menéndez [Wed, 15 Oct 2014 13:08:54 +0000]
Merge branch 'master' of orgmode.org:org-mode

5 days agoorg-effectiveness.el: Add org-effectiveness-plot-save
David Arroyo Menéndez [Wed, 15 Oct 2014 12:58:13 +0000]
org-effectiveness.el: Add org-effectiveness-plot-save

* contrib/lisp/org-effectiveness.el (org-effectiveness-plot): Adapt source to save as file image.
(org-effectiveness-plot-save): Add function.

6 days agoorg-mac-link.el: Fix malformed Safari links
Alan Schmitt [Wed, 15 Oct 2014 08:17:34 +0000]
org-mac-link.el: Fix malformed Safari links

* contrib/lisp/org-mac-link.el (org-as-mac-safari-get-frontmost-url):
Run only the AppleScript.
(org-mac-safari-get-frontmost-url): reuse
`org-mac-paste-applescript-links' to properly deal with quotes.

6 days agoDocument ASCII-art plot
Thierry Banel [Tue, 14 Oct 2014 20:34:54 +0000]
Document ASCII-art plot

* doc/org.texi: Extend Gnuplot chapter to ASCII-art plotting.
* etc/ORG-NEWS: Document ASCII-art plot.

6 days agoorg-capture: Better indentation when creating a new list
Andrew Burgess [Tue, 7 Oct 2014 15:59:23 +0000]
org-capture: Better indentation when creating a new list

lisp/org-capture.el (org-capture-place-item): When starting a new list
use org-indent-line to establish the correct indentation rather than
just using 0.

Creating an entry in org-capture-templates of type item adds entries
into a list, however, currently, if the list is empty then the first
list item will always be indented to depth 0 (so hard on the left),
which looks like this:

  * Top Level
  ** Second Level
  - item #1
  - item #2
  - item #3

This is fine if org-adapt-indentation is nil, however, with the
default value of t lists should be indented more like this:

  * Top Level
  ** Second Level
     - item #1
     - item #2
     - item #3

The patch below changes org-capture-place-item so that, when starting
a new list, the items are indented as above.

Care is taken to preserve two features of the existing behaviour,
first, when adding to an existing list, new items are indented to
match the items already in the list.  And secondly, when there is some
introductory text before the list new items are inserted after the
text, like this:

  * Top Level
  ** Second Level
     This is some introductory text:
     - item #1
     - item #2
     - item #3

TINYCHANGE

7 days agoorg.texi: Tiny fix
Nicolas Goaziou [Tue, 14 Oct 2014 10:14:55 +0000]
org.texi: Tiny fix

* doc/org.texi (An example): Tiny fix.

7 days agoob-clojure: Silence byte-compiler
Nicolas Goaziou [Mon, 13 Oct 2014 20:05:12 +0000]
ob-clojure: Silence byte-compiler

7 days agoFix indentation in lists
Nicolas Goaziou [Mon, 13 Oct 2014 17:03:14 +0000]
Fix indentation in lists

* lisp/org-list.el (org-list-item-body-column): Take into
  consideration empty items and bullets followed by two spaces.

* lisp/org.el (org--get-expected-indentation): Fix return value for
  items in lists.
(org-indent-region): Fix infloop when indenting some types of plain
lists.  Also fix error when region starts with blank lines at the
beginning of the buffer.

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

7 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 13 Oct 2014 16:16:04 +0000]
Merge branch 'maint'

8 days agoImprove functionality of org-passwords.el
Jorge A. Alfaro Murillo [Sun, 12 Oct 2014 20:14:34 +0000]
Improve functionality of org-passwords.el

* contrib/lisp/org-passwords.el (org-passwords-default-password-size):
  New variable.
(org-passwords-default-random-words-number): New variable.
(org-passwords-copy-username, org-passwords-copy-password): Use
`org-entry-get' to obtain the property value.
(org-passwords-open-url): New function.
(org-passwords): Can be called with universal argument.
(org-passwords-generate-password): Use default size given by
`org-passwords-default-password-size'.
(org-passwords-random-words): Use default number given by
`org-passwords-default-random-words-number'.
(org-passwords-concat-this-with-string): Fix bug.

The patch adds several functionality:

Open the URL property directly from the mode. URLs can be inherit.

Universal argument in org-passwords allows for longer browsing. Two
arguments is used for editing.

There is a default password size and random-words number for faster
password generating.

Fix bug in C-u M-x org-passwords-generate-password.

Commentary in file has more information.

8 days ago[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda release_8.2.10
Marco Wahl [Sat, 11 Oct 2014 16:16:36 +0000]
[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

* lisp/org-agenda.el (org-get-entries-from-diary): Use the suitable
  display function.  Drop the usage of the obsolete diary-display-hook.

fancy-diary-display has been dropped in Emacs 25.  diary-fancy-display
is the long known replacement of fancy-diary-display.

diary-display-hook has been marked obsolete before Emacs 23.2.

8 days agoox: Fix failing test
Nicolas Goaziou [Sun, 12 Oct 2014 21:18:40 +0000]
ox: Fix failing test

* testing/lisp/test-ox.el (test-org-export/footnotes): Fix test.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 12 Oct 2014 20:55:38 +0000]
Merge branch 'maint'

8 days agoox: Fix 88457acff411eca9b32c04b4bc100ef094a23c5c
Nicolas Goaziou [Sun, 12 Oct 2014 20:47:48 +0000]
ox: Fix 88457acff411eca9b32c04b4bc100ef094a23c5c

* lisp/ox.el (org-export-async-start): Limit first argument to lambda
  expressions.
* lisp/ox-publish.el (org-publish, org-publish-all,
  org-publish-current-file): Replace `ignore', per limit stated above.

Due to a hack allowing to provide quasi-quoted lambda expressions,
symbols are not allowed as result handler.  This limitation is not
much of a problem as `org-export-async-start' is only meant to be used
internally.

8 days ago[export] Raise an error if footnote definition is not found.
Aaron Ecay [Sun, 28 Sep 2014 03:57:01 +0000]
[export] Raise an error if footnote definition is not found.

* lisp/ox.el (org-export-get-footnote-definition): Raise an error if
footnote definition is not found.

8 days agoWarn about unexpanded macros on export
Aaron Ecay [Sun, 28 Sep 2014 03:50:23 +0000]
Warn about unexpanded macros on export

* lisp/org-macro.el (org-macro-replace-all): Add optional `finalize'
argument.
* lisp/ox.el (org-export-as): Use it.

8 days agoorg-passwords.el: Fix `org-passwords-generate-password-with-symbols` to not insert...
Jonathan Leech-Pepin [Thu, 4 Sep 2014 12:31:09 +0000]
org-passwords.el: Fix `org-passwords-generate-password-with-symbols` to not insert password

* org-passwords.el (org-passwords-generate-password-with-symbols): Do not insert password,
this matches how `org-passwords-generate-password-without-symbols` behaves.

8 days agoEnable multiple files in :includes header
Thierry Banel [Thu, 4 Sep 2014 17:30:54 +0000]
Enable multiple files in :includes header

* ob-C.el (org-babel-C-expand-C, org-babel-C-expand-D): Let
:includes, :defines, :imports accept several items separated by
blanks without enclosing them in parenthesis.

Thanks to Will Everett for reporting this.

9 days agoAscii and Gnuplot key-bindings
Thierry Banel [Sat, 11 Oct 2014 13:59:17 +0000]
Ascii and Gnuplot key-bindings

* org.el (org-mode-map): change key-binding from C-c p to C-c " a add
C-c " g key-binding for Gnuplot
(org-tbl-menu): add sub-menu for plotting featuring Gnuplot and ascii
plot
* org-table.el (orgtbl-setup): add sub-menu for plotting featuring
Gnuplot and ascii plot

9 days agoorg-table: Field formulas can now create columns as needed
Dima Kogan [Wed, 1 Oct 2014 05:36:21 +0000]
org-table: Field formulas can now create columns as needed

* org-table.el (org-table-formula-create-columns): New variable.
(org-table-recalculate): Use the new org-table-formula-make-new-cols
customization to control whether org creates new columns when
a formula explicitly targets them.

9 days agoMerge branch 'maint'
Bastien Guerry [Sun, 12 Oct 2014 05:03:23 +0000]
Merge branch 'maint'

9 days agoorg.el (orgstruct-make-binding): Do not use loop in interpreted code. release_8.2.9
Christopher Schmidt [Sat, 11 Oct 2014 19:40:45 +0000]
org.el (orgstruct-make-binding): Do not use loop in interpreted code.

* lisp/org.el (orgstruct-make-binding): Do not use loop in
interpreted code.

9 days agoorg.el (orgstruct-make-binding): Do not use loop in interpreted code.
Christopher Schmidt [Sat, 11 Oct 2014 19:40:45 +0000]
org.el (orgstruct-make-binding): Do not use loop in interpreted code.

* lisp/org.el (orgstruct-make-binding): Do not use loop in
interpreted code.

9 days ago[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda
Marco Wahl [Sat, 11 Oct 2014 16:16:36 +0000]
[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

* lisp/org-agenda.el (org-get-entries-from-diary): Use the suitable
  display function.  Drop the usage of the obsolete diary-display-hook.

fancy-diary-display has been dropped in Emacs 25.  diary-fancy-display
is the long known replacement of fancy-diary-display.

diary-display-hook has been marked obsolete before Emacs 23.2.

9 days agoorg-table: Fix :raw parameter in radio tables
Nicolas Goaziou [Sat, 11 Oct 2014 15:01:59 +0000]
org-table: Fix :raw parameter in radio tables

* lisp/org-table.el (org-table--to-generic-cell): Use
  `org-element-interpret' data when parameter :raw is non-nil so
  pseudo elements and objects are not ignored.

* testing/lisp/test-org-table.el (test-org-table/to-latex): Add test.

Thanks to Giuseppe Lipari for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/91559

10 days agoob-R: fix interaction with ESS for new sessions
Aaron Ecay [Fri, 10 Oct 2014 04:35:41 +0000]
ob-R: fix interaction with ESS for new sessions

* lisp/ob-R.el (org-babel-R-initiate-session): Properly wait on a new
ESS process.

11 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 10 Oct 2014 09:11:06 +0000]
Merge branch 'maint'

11 days agoox: Fix "void-variable ignore" error when publishing
Nicolas Goaziou [Fri, 10 Oct 2014 09:05:06 +0000]
ox: Fix "void-variable ignore" error when publishing

* lisp/ox.el (org-export-async-start): Allow to use symbols as
  function.

Thanks to Julien Cubizolles for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/91532

11 days agoob-R.el: Add package name to read.table call
Rainer M. Krug [Mon, 6 Oct 2014 11:48:49 +0000]
ob-R.el: Add package name to read.table call

* lisp/ob-R.el: (ob-R-transfer-variable-table-with-header)
(ob-R-transfer-variable-table-without-header): Add package name to
call of R function `read.table'.

Thus, it now reads `utils::read.table'.  This clarifies the call as
well as avoids "could not find function" error in R with the devtools
package.  See
<https://github.com/hadley/devtools/issues/336#issuecomment-23517837>.

11 days agoorg-mac-link.el: Fix malformed message links
Alan Schmitt [Thu, 9 Oct 2014 12:12:05 +0000]
org-mac-link.el: Fix malformed message links

* contrib/lisp/org-mac-link.el (org-mac-message-get-links): Fix and use the `org-mac-paste-applescript-links' helper.

The existing code inserted links which should have been "[[message:ABC][the subject]]"
as "[[essage:ABC][the subjec]]".

Based on a patch by Steve Purcell <steve@sanityinc.com>.

12 days agoorg-mac-link.el: Fix multi-line file description
Steve Purcell [Wed, 24 Sep 2014 10:44:07 +0000]
org-mac-link.el: Fix multi-line file description

* contrib/lisp/org-mac-link.el: Shorten the file description, which shouldn't span lines.

TINYCHANGE

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

12 days agoorg-mac-link.el: Don't fail on machines without Growl installed
Steve Purcell [Wed, 24 Sep 2014 11:07:20 +0000]
org-mac-link.el: Don't fail on machines without Growl installed

* contrib/lisp/org-mac-link.el (org-as-get-flagged-mail): Don't assume Growl is installed.

Applescript can't run if it refers to uninstalled apps, so since Growl is not universally
installed, references to it should be dropped. This change also provides a less cryptic
message when `org-mac-mail-account' is unset at the time flagged messages are grabbed.

TINYCHANGE

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

12 days ago orgguide.texi: break lines after @noindent
David Arroyo Menéndez [Wed, 8 Oct 2014 13:06:42 +0000]
orgguide.texi: break lines after @noindent

    * doc/orgguide.texi: to avoid troubles with po4a, I've added break lines after @noindent

13 days agoorg-eww.el: Special kill in eww for Org for keeping the links
Marco Wahl [Tue, 7 Oct 2014 14:07:15 +0000]
org-eww.el: Special kill in eww for Org for keeping the links

* contrib/lisp/org-eww.el(org-eww-copy-for-org-mode): Realization of
  the kill.
  (org-eww-goto-next-url-property-change,
  org-eww-no-next-link-p, org-eww-url-below-point): Auxiliaries
  for accessing a eww buffer
  (org-eww-extend-eww-keymap): Add the new kill to eww keymap

The code has emerged from the very similar org-w3m.el.

13 days agoFix 464cd96
rasmus [Tue, 7 Oct 2014 13:19:38 +0000]
Fix 464cd96

* OrgOdtStyles.xml: Fix error introduced in 464cd96.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 7 Oct 2014 10:29:35 +0000]
Merge branch 'maint'

2 weeks agoorg-agenda.el: Update docstring
Mike McLean [Mon, 6 Oct 2014 09:54:09 +0000]
org-agenda.el: Update docstring

    * org-agenda.el (org-agenda-time-grid): Change docstring.

TINYCHANGE

2 weeks agoob-clojure.el: Fix compatibility issue
Bastien Guerry [Mon, 6 Oct 2014 13:47:40 +0000]
ob-clojure.el: Fix compatibility issue

* ob-clojure.el (org-babel-execute:clojure): Fix compatibility
issue with cider >0.7.0.  This breaks compatibility with Cider
<=0.7.0.

Thanks to Daniel Szmulewicz for the suggested fix.

2 weeks agoMerge branch 'maint'
Bastien Guerry [Mon, 6 Oct 2014 12:29:01 +0000]
Merge branch 'maint'

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 6 Oct 2014 12:25:40 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoob-clojure.el: Remove nrepl.el support
Bastien Guerry [Mon, 6 Oct 2014 09:56:04 +0000]
ob-clojure.el: Remove nrepl.el support

* ob-clojure.el (org-babel-clojure-backend)
(org-babel-execute:clojure): Remove nrepl.el support.

2 weeks agoBackport typo fixes from Emacs 24 branch
Bastien Guerry [Mon, 6 Oct 2014 09:52:30 +0000]
Backport typo fixes from Emacs 24 branch

2 weeks agoob-table: Updated documentation.
rasmus [Tue, 30 Sep 2014 09:53:36 +0000]
ob-table: Updated documentation.

* ob-table.el (org-sbe): Updated documentation.

2 weeks agoMerge remote-tracking branch 'origin/master'
Rasmus [Sat, 4 Oct 2014 10:06:14 +0000]
Merge remote-tracking branch 'origin/master'

2 weeks agoox-koma-letter.el: Update docstring.
Rasmus [Sat, 4 Oct 2014 10:00:22 +0000]
ox-koma-letter.el: Update docstring.

* ox-koma-letter.el (org-koma-letter-prefer-special-headings): Change
docstring.

2 weeks agoMerge remote-tracking branch 'origin/master'
Rasmus [Sat, 4 Oct 2014 09:47:17 +0000]
Merge remote-tracking branch 'origin/master'

2 weeks agoFix 464cd96
Nicolas Goaziou [Fri, 3 Oct 2014 20:23:25 +0000]
Fix 464cd96

* lisp/ox-html.el (org-html-link):
* lisp/ox-md.el (org-md-link): Fix errors introduced in
  464cd965cb916b1ff60754226a3c2cc85b874abf.

2 weeks agoox: Support unnumbered headlines via property
Rasmus [Sun, 21 Sep 2014 14:17:55 +0000]
ox: Support unnumbered headlines via property

* ox.el (org-export--collect-headline-numbering): Ignore unnumbered headline.
(org-export-get-headline-id,
org-export--collect-unnumbered-headline-id): New functions.
(org-export-numbered-headline-p): Further tests for unnumbered headline.
* ox-odt.el (org-odt-headline, org-odt-link,
org-odt-link--infer-description)
ox-md.el (org-md-headline, org-md-link),
ox-latex.el (org-latex-headline, org.latex-link),
ox-html.el (org-html-headline, org-html-link),
ox-ascii.el (org-ascii-link): Support unnumbered headlines.
* test-ox.el (test-org-export/org-export-get-headline-id): New test.
* OrgOdtStyles.xml: Add styles for unnumbered headings.

2 weeks agotest-ox.el: Fix test-error from 986037a.
rasmus [Thu, 2 Oct 2014 17:41:31 +0000]
test-ox.el: Fix test-error from 986037a.

* test-ox.el (test-org-export/expand-include): Updated tests.

2 weeks agoFix `org-edit-special' on file names with spaces
Nicolas Goaziou [Thu, 2 Oct 2014 17:23:03 +0000]
Fix `org-edit-special' on file names with spaces

* lisp/org.el (org-edit-special): Fix function when INCLUDE or
  SETUPFILE keyword points to a file name with spaces.

2 weeks agoox: Allow file-links with #+INCLUDE-keyword
Rasmus [Sun, 28 Sep 2014 19:05:17 +0000]
ox: Allow file-links with #+INCLUDE-keyword

* org.el (org-edit-special): Handle file-links for INCLUDE.
* ox.el (org-export--prepare-file-contents): Handle links and
add option no-heading.
* ox.el (org-export-expand-include-keyword): Resolve headline
links and add option :only-contents.
* orgguide.texi (Include files)
org.texi (Include files): Updated.
* testing/examples/include.org: New examples.
* test-ox.el (test-org-export/expand-include): New tests.

2 weeks agoMerge remote-tracking branch 'origin/master'
Rasmus [Wed, 1 Oct 2014 21:23:19 +0000]
Merge remote-tracking branch 'origin/master'

2 weeks agoorg-eww: Org-module to store url from eww
Marco Wahl [Tue, 23 Sep 2014 07:46:34 +0000]
org-eww: Org-module to store url from eww

* contrib/lisp/org-eww.el: New file
* contrib/README: Added org-eww.
* lisp/org.el (org-modules): Add org-eww to the pool of org-modules.

The hook gets hooked in the module.

The file is more or less a fraction of the org-w3m module with 'w3m'
replaced by 'eww'.

2 weeks agoMerge remote-tracking branch 'origin/master'
Rasmus [Tue, 30 Sep 2014 21:47:03 +0000]
Merge remote-tracking branch 'origin/master'

3 weeks agoox: Resurrect :input-buffer property
Nicolas Goaziou [Sun, 28 Sep 2014 21:29:59 +0000]
ox: Resurrect :input-buffer property

* lisp/ox.el (org-export--get-buffer-attributes):
  Resurrect :input-buffer property.

This property was removed in 604b9389. since it wasn't necessary
anymore internally.  It is back again as a consequence of a user
request.
http://permalink.gmane.org/gmane.emacs.orgmode/91230

3 weeks ago[ox-latex] add \phantomsection where appropriate.
Aaron Ecay [Sun, 28 Sep 2014 04:03:50 +0000]
[ox-latex] add \phantomsection where appropriate.

* lisp/ox-latex.el (org-latex--wrap-label): Add \phantomsection.

Without this, links will jump to the nearest sectioning command
instead of to the exact spot of definition.

3 weeks agoallow speed commands to have prefix args
Aaron Ecay [Tue, 23 Sep 2014 17:54:47 +0000]
allow speed commands to have prefix args

* lisp/org.el (org-self-insert-command): Allow speed commands to be
invoked with prefix args.

3 weeks agoorg-faces: remove org-copy-face
Aaron Ecay [Tue, 23 Sep 2014 17:21:22 +0000]
org-faces: remove org-copy-face

* lisp/org-faces.el (org-copy-face): Remove function.
(org-checkbox-statistics-todo, org-checkbox-statistics-done)
(org-block-begin-line, org-block-end-line, org-quote)
(org-verse, org-agenda-date, org-agenda-date-today)
(org-agenda-clocking, org-agenda-date-weekend)
(org-agenda-current-time, org-mode-line-clock)
(org-mode-line-clock-overrun): Convert to `defface' from
`org-copy-face'.

The ‘org-copy-face’ function didn’t properly deal with face
customizations and color themes.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 27 Sep 2014 12:58:51 +0000]
Merge branch 'maint'

3 weeks agoox-ascii: Fix boxquote characters in UTF-8 export release_8.2.8
Sebastien Vauban [Fri, 26 Sep 2014 10:12:07 +0000]
ox-ascii: Fix boxquote characters in UTF-8 export

* ox-ascii.el (org-ascii--box-string): Choose more universal Unicode
characters for boxquote corners.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 26 Sep 2014 09:11:34 +0000]
Merge branch 'maint'

3 weeks agoox.el: Fix typo in documentation
Kyle Meyer [Thu, 25 Sep 2014 23:11:33 +0000]
ox.el: Fix typo in documentation

* lisp/ox.el (org-export-show-temporary-export-buffer): Fix typo.

TINYCHANGE

4 weeks agoox-latex: support :float nil with caption for minted listings
Aaron Ecay [Sat, 23 Aug 2014 07:16:11 +0000]
ox-latex: support :float nil with caption for minted listings

* lisp/ox-latex.el (org-latex-src-block): Support :float nil with
caption for minted.
(org-latex-listings): Edit docstring to describe this usecase.
* lisp/org.el (org-latex-default-packages-alist): Add “capt-of”
package.

This takes advantage of the capt-of package’s \captionof command,
which allows to insert a caption (with autogenerated number and
\ref-able label) without creating a floating environment.  One example
of where this is useful is in the case of a minted source code listing
that spans more than one page.  (Latex floats can’t be larger than a
page, generally speaking.)

The listings package already handles this case using its own mechanism.

4 weeks agoMerge remote-tracking branch 'origin/master'
Rasmus [Mon, 22 Sep 2014 22:56:37 +0000]
Merge remote-tracking branch 'origin/master'

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Mon, 22 Sep 2014 15:43:30 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-latex.el

4 weeks agoox-latex: Fix link to unnumbered headline
Nicolas Goaziou [Mon, 22 Sep 2014 15:40:55 +0000]
ox-latex: Fix link to unnumbered headline

* lisp/ox-latex.el (org-latex-link): Improve test for unnumbered
  headlines.

4 weeks agoob-ruby: clean up the session code some more and work around an I/O sync problem...
Achim Gratz [Sun, 21 Sep 2014 15:59:49 +0000]
ob-ruby: clean up the session code some more and work around an I/O sync problem in comint

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Clean up the session code
  and remove a superfluous `butlast'.  Work around a problem in comint
  where the first prompt in a session may be printed after the
  evaluation has already started, thus producing a spurious line in
  the output.

* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output-1,
  test-ob-ruby/session-output-2 test-ob-ruby/session-output-3): Test
  correct transfer of interpreter state across several session
  invocations.

4 weeks agoob-ruby: fix a24775dc79 again
Achim Gratz [Sun, 21 Sep 2014 10:57:44 +0000]
ob-ruby: fix a24775dc79 again

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Temporarily disable the
  irb prompt to ensure that the output is properly recognized using
  the standard settings from inf-ruby and no extra settings in .irbrc
  or other configuration files from Ruby.  Remove superfluous
  `comint-send-input' that produced a spurious empty line in output.
* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output): Remove
  spurious emtpy line in expected output.

4 weeks agoob-sql.el: Clean mysql parameters generation
Steven Rémot [Sat, 20 Sep 2014 13:09:29 +0000]
ob-sql.el: Clean mysql parameters generation

* lisp/ob-sql.el (dbstring-mysql): Rename function and tweak a bit its
  implementation
  (org-babel-execute:sql): Use new function name

Prefix `dbstring-mysql' function with the namespace "org-babel-sql" to
avoid name collisions.

Also replace the call to `remq' by `delq' because it is a bit more
efficient, and also to be consistent with
`org-babel-sql-dbstring-postgresql'.

4 weeks agoob-sql.el: Enhance postgresql support
Steven Rémot [Sat, 20 Sep 2014 13:02:36 +0000]
ob-sql.el: Enhance postgresql support

* lisp/ob-sql.el (org-babel-sql-dbstring-postgresql): New function
  (org-babel-execute:sql): Use new function.

Before this patch, it was necessary to use :cmdline parameter to
specify host, user and database different the the default ones.  Now,
this can be done using parameters that are independents of the engine
used.

This is not trivial (and not recommended) to pass password as a
command line argument to psql, so :dbpassword is not supported.

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 20 Sep 2014 21:02:20 +0000]
Merge branch 'maint'

4 weeks agoFix to determine a bulk-markable line
marcowahlsoft@gmail.com [Sat, 20 Sep 2014 20:26:18 +0000]
Fix to determine a bulk-markable line

* lisp/org-agenda.el (org-agenda-bulk-mark,
  org-agenda-bulk-mark-regexp, org-agenda-bulk-toggle-all): This fixes
  e.g. org-agenda-bulk-mark-all when time-grid is shown.

TINYCHANGE

4 weeks agoMerge branch 'maint'
Achim Gratz [Sat, 20 Sep 2014 19:55:09 +0000]
Merge branch 'maint'

4 weeks agotest-ob-exp: fix failing test
Achim Gratz [Sat, 20 Sep 2014 19:54:21 +0000]
test-ob-exp: fix failing test

* testing/lisp/test-ob-exp.el (ob-exp/export-from-a-temp-buffer):
  Check for the correct expected output so the test stops failing.

4 weeks agoox-koma-letter: Fix "to" and "from"
Nicolas Goaziou [Sat, 20 Sep 2014 19:32:52 +0000]
ox-koma-letter: Fix "to" and "from"

* contrib/lisp/ox-koma-letter.el (koma-letter): Properly display
  default "from" address from template.
(org-koma-letter--determine-to-and-from): Do not provide a default
"to" value as it might be set through a LCO file.
(org-koma-letter-template): Remove trailing whitespace.

4 weeks agoox-ascii: Implement plain-lists own extra margin
Nicolas Goaziou [Sat, 20 Sep 2014 12:40:01 +0000]
ox-ascii: Implement plain-lists own extra margin

* lisp/ox-ascii.el (org-ascii-list-margin): New variable.
(ascii): New property.
(org-ascii--current-text-width, org-ascii-plain-list): Take into
account list margin.

* doc/org.texi (Publishing options):
* etc/ORG-NEWS (argument): Document new variable.

4 weeks agoox-koma-letter.el: update docstring
Rasmus [Sun, 24 Aug 2014 13:35:17 +0000]
ox-koma-letter.el: update docstring

* ox-koma-letter.el (org-koma-letter-prefer-special-headings): change
docstring.

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 23:06:22 +0000]
Merge branch 'maint'

4 weeks agoox-ascii: Fix filling with preserve break
Nicolas Goaziou [Fri, 19 Sep 2014 23:05:22 +0000]
ox-ascii: Fix filling with preserve break

* lisp/ox-ascii.el (org-ascii--fill-string): Allow filling even when
  `org-export-preserve-breaks' is non-nil.

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 22:35:09 +0000]
Merge branch 'maint'

Conflicts:
doc/org.texi

4 weeks agoorg.texi: Be more explicit about output file name
Nicolas Goaziou [Fri, 19 Sep 2014 22:33:54 +0000]
org.texi: Be more explicit about output file name

* doc/org.texi (Export settings): Be more explicit about how output
  file name is built.

4 weeks agoFix 788780296c0642b723598fa09300f2926a39e9f8
Nicolas Goaziou [Fri, 19 Sep 2014 20:45:22 +0000]
Fix 788780296c0642b723598fa09300f2926a39e9f8

4 weeks agoorg.texi: Document case-sensitivity of special blocks
Nicolas Goaziou [Fri, 19 Sep 2014 20:42:35 +0000]
org.texi: Document case-sensitivity of special blocks

* doc/org.texi (Special blocks, HTML doctypes, @LaTeX{} specific
  attributes): Take into account case-sensitivity of special blocks.

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 19:03:27 +0000]
Merge branch 'maint'

4 weeks agoFix headline insertion after an empty headline
Nicolas Goaziou [Fri, 19 Sep 2014 18:55:50 +0000]
Fix headline insertion after an empty headline

* lisp/org.el (org-N-empty-lines-before-current): Make sure to delete
  only empty lines, not trailing whitespaces.

* testing/lisp/test-org.el (test-org/insert-heading): Add test.

Thanks to Oleh for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90876

4 weeks agoorg-table: fix docstring
Aaron Ecay [Fri, 19 Sep 2014 18:37:46 +0000]
org-table: fix docstring

* lisp/org-table.el (org-table-get): Fix docstring.

4 weeks agoob-R: declare ess-current-process-name
Achim Gratz [Fri, 19 Sep 2014 10:03:43 +0000]
ob-R: declare ess-current-process-name

* lisp/ob-R.el: Forward declare `ess-current-process-name'.

4 weeks agoMerge branch 'maint'
Achim Gratz [Fri, 19 Sep 2014 09:53:46 +0000]
Merge branch 'maint'

4 weeks agoob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23
Achim Gratz [Fri, 19 Sep 2014 09:52:30 +0000]
ob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23

* lisp/ob-sh.el (org-babel-sh-initiate-session): After initiating a
  session, initialize the marker `comint-last-output-start' since it
  is going to be used by the ANSI color filter without further checks
  in Emacs 23 and throws an error.