5 years agoAdd support for indented tables in ODT export
Jambunathan K [Mon, 16 Jan 2012 20:55:47 +0000 (02:25 +0530)]
Add support for indented tables in ODT export

* etc/styles/OrgOdtContentTemplate.xml
(OrgIndentedSection-Level-*): New section styles. These
sections are indented to the same level as the corresponding
list entries.  These sections hold tables that occur within a
(OrgTable): Increased relative width from 90% to 96% for
aesthetic reasons.

* lisp/org-odt.el (org-odt-table-indentedp): New variable
(org-odt-begin-table): Modified.  If the table is within a
list, temporarily leave the list and begin an indented section
before emitting the table.
(org-odt-end-table): Modified.  If the table was within a
list, close the indented section and re-open the list
immediately after ending the table.
(org-odt-continue-list, org-odt-discontinue-list): Helper
routines to temporarily discontinue and continue a list.
(org-odt-list-stack-stashed): New variable to hold the state
of a pending list.
(org-odt-begin-list, org-odt-begin-list-item)
(org-odt-end-list-item): Modified. Handle nitty-gritties for
continuing a list and list item.
(org-odt-section-count): New variable that keeps track of
section count.  Used in conjunction with naming of sections.
(org-odt-begin-section, org-odt-end-section): New defuns.
(org-odt-init-outfile): Initialize
`org-odt-list-stack-stashed' and `org-odt-section-count'.

* lisp/org-lparse.el (org-lparse-list-item-count): Removed. Was a
superfluous variable.
(org-lparse-list-level): Removed.  Now derived from
(org-lparse-list-stack): New.  List that records the list
types - ordered, unordered or descriptive - in the following
order: self, parent, grand-parent etc.
(org-do-lparse): Added, removed above let-bound vars.
Disallowed regular tables within list-table block.
(org-lparse-begin-list, org-lparse-end-list)
(org-lparse-begin-list-item, org-lparse-end-list-item):
Propagate above changes.

OpenDocument doesn't permit tables to occur in the middle of a
list.  Use list continuations and indented sections to typeset
indented tables.

Fixes the following bug:

5 years agofix bug in property list updates
Eric Schulte [Wed, 11 Jan 2012 17:14:24 +0000 (10:14 -0700)]
fix bug in property list updates

* lisp/org.el (org-update-property-plist): Fix bug in property list

5 years agofixed bug in org-babel-balanced-split when run on Emacs22
Eric Schulte [Tue, 3 Jan 2012 18:44:32 +0000 (11:44 -0700)]
fixed bug in org-babel-balanced-split when run on Emacs22

 Thanks to Martyn Jago for the test case

* lisp/ob.el (org-babel-balanced-split): Explicit checking if list
  before calling member.
* testing/lisp/test-ob.el (test-ob/org-babel-balanced-split): Testing
  the new Emacs22-proof behavior.

5 years agospecify "," as default sqlite output seperator
Eric Schulte [Sat, 18 Feb 2012 21:49:49 +0000 (14:49 -0700)]
specify "," as default sqlite output seperator

* lisp/ob-sqlite.el (org-babel-execute:sqlite): Specify the use of ","
  as the separator to `org-table-convert-region'.  Fixes errors when
  only one result per line of output.

5 years agounified stripping of protective commas -- idempotent org-edit-src-code
Eric Schulte [Sat, 18 Feb 2012 17:35:33 +0000 (10:35 -0700)]
unified stripping of protective commas -- idempotent org-edit-src-code

* lisp/ob.el (org-babel-strip-protective-commas): Use
* lisp/org-exp.el (org-export-select-backend-specific-text): Use
* lisp/org-src.el (org-edit-src-code): Use
* lisp/org.el (org-strip-protective-commas): Single definition for
  this functionality.

5 years agomanual: fix references to Calc manual
Michael Brand [Sat, 18 Feb 2012 16:03:36 +0000 (17:03 +0100)]
manual: fix references to Calc manual

* doc/org.texi: Decapitalize file name in references to Calc manual.

On a case sensitive file system the references from the HTML Org
manual (e. g. the link href="Calc.html#Embedded-Mode" or
href="../Calc/Embedded-Mode.html#Embedded-Mode") to the HTML Calc
manual (e. g. the file calc.html or calc/Embedded-Mode.html) do not

5 years agomention ob-sqlite in the comments of ob-sql
Eric Schulte [Sat, 18 Feb 2012 16:26:02 +0000 (09:26 -0700)]
mention ob-sqlite in the comments of ob-sql

* lisp/ob-sql.el: Mention ob-sqlite in the comments of ob-sql.

5 years agoFix old Babel syntax
Sebastien Vauban [Thu, 16 Feb 2012 14:50:17 +0000 (15:50 +0100)]
Fix old Babel syntax

5 years agoGeneralize to multiple "prop+" properties.
Eric Schulte [Sat, 18 Feb 2012 15:28:40 +0000 (08:28 -0700)]
Generalize to multiple "prop+" properties.

* lisp/org.el (org-entry-get): Generalize to multiple "prop+" properties.

5 years agoAccumulate properties from subtree property drawers.
Eric Schulte [Wed, 15 Feb 2012 15:01:29 +0000 (08:01 -0700)]
Accumulate properties from subtree property drawers.

* lisp/org.el (org-entry-get): Accumulate properties from subtree
  property drawers.

5 years agoorg-footnote: Fix bogus defvar declares
Nicolas Goaziou [Tue, 7 Feb 2012 07:43:09 +0000 (08:43 +0100)]
org-footnote: Fix bogus defvar declares

* lisp/org-footnote.el (org-blank-before-new-entry,
  org-export-footnotes-seen, org-export-footnotes-data): Fix bogus

This fixes bug #10745.  Thanks to Steve Revilak for the report and to
Glenn Morris for the solution.

5 years agoFix special C-a and C-e behaviour with visual lines
Nicolas Goaziou [Sat, 4 Feb 2012 15:32:34 +0000 (16:32 +0100)]
Fix special C-a and C-e behaviour with visual lines

* lisp/org.el (org-beginning-of-line, org-end-of-line): Fix special
  C-a and C-e behaviour with visual lines.

5 years agoupdated babel key binding documentation in manual
Eric Schulte [Fri, 3 Feb 2012 18:44:58 +0000 (11:44 -0700)]
updated babel key binding documentation in manual

* doc/org.texi (Key bindings and useful functions): Updated babel key
  binding documentation in manual.

5 years agoconcluding cherry pick
Eric Schulte [Fri, 3 Feb 2012 17:25:30 +0000 (10:25 -0700)]
concluding cherry pick

5 years agochanged the name of exporting comment blocks
Eric Schulte [Fri, 3 Feb 2012 17:25:30 +0000 (10:25 -0700)]
changed the name of exporting comment blocks

* lisp/org-exp-blocks.el (org-export-blocks): Changed the name of
  exporting comment blocks given that it seems regular comment blocks
  no longer export.

5 years agoorg-footnote: Better blank lines control when inserting a footnote
Nicolas Goaziou [Thu, 2 Feb 2012 20:02:18 +0000 (21:02 +0100)]
org-footnote: Better blank lines control when inserting a footnote

* lisp/org-footnote.el (org-footnote-create-definition): Fix space
  insertion when creating a new footnote. This fixes newline munching
  when `org-footnote-section' is nil and blank lines stacking when it
  isn't nil.

Thanks to Eric Abrahamsen for reporting this.

5 years agoorg-footnote: Fix export bug introduced by previous commit
Nicolas Goaziou [Thu, 2 Feb 2012 19:39:40 +0000 (20:39 +0100)]
org-footnote: Fix export bug introduced by previous commit

* lisp/org-footnote.el (org-footnote-normalize): Make sure that
  footnotes are moved to a single place during export.

5 years agoorg-footnote: Fix normalization when no footnote section is defined
Nicolas Goaziou [Thu, 2 Feb 2012 09:01:50 +0000 (10:01 +0100)]
org-footnote: Fix normalization when no footnote section is defined

* lisp/org-footnote.el (org-footnote-normalize): Ensure footnote
  definition will be inserted at the end of the section corresponding
  to to its first reference.

5 years agoorg-footnote: Fix definition ending retrieval with no footnote section
Nicolas Goaziou [Thu, 2 Feb 2012 08:08:28 +0000 (09:08 +0100)]
org-footnote: Fix definition ending retrieval with no footnote section

* lisp/org-footnote.el (org-footnote-at-definition-p): Make sure to
  move point at the beginning of the separator before skiping white
  spaces.  Refactor code.

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Tue, 31 Jan 2012 23:10:06 +0000 (00:10 +0100)]
Merge branch 'maint' of into maint

5 years agoorg-exp: Fix export error with code blocks within lists
Nicolas Goaziou [Tue, 31 Jan 2012 19:21:44 +0000 (20:21 +0100)]
org-exp: Fix export error with code blocks within lists

* lisp/org-exp.el (org-export-select-backend-specific-text): Always
  preserve original indentation as a text property so that lists do
  not get broken by indentation at column 0.

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Tue, 31 Jan 2012 08:27:47 +0000 (09:27 +0100)]
Merge branch 'maint' of into maint

5 years agofix bug introduced by 794319dfd9f11827ca0fce2043dfa95547eafe84
Eric Schulte [Tue, 31 Jan 2012 01:35:49 +0000 (18:35 -0700)]
fix bug introduced by 794319dfd9f11827ca0fce2043dfa95547eafe84

5 years agodon't allow newlines in source names in noweb references
Eric Schulte [Tue, 31 Jan 2012 01:27:33 +0000 (18:27 -0700)]
don't allow newlines in source names in noweb references

* lisp/ob.el (org-babel-expand-noweb-references): Don't allow newlines
  in source names in noweb references.

5 years agoinhibit R evaluation visibility regardless of local user customization
Vitalie Spinu [Mon, 30 Jan 2012 16:30:39 +0000 (09:30 -0700)]
inhibit R evaluation visibility regardless of local user customization

* lisp/ob-R.el (org-babel-R-evaluate-session): Inhibit R evaluation
  visibility regardless of local user customization.

5 years agosplitting large tests up into smaller units
Eric Schulte [Mon, 30 Jan 2012 15:54:25 +0000 (08:54 -0700)]
splitting large tests up into smaller units

  This make it easier to track down the cause of failing tests.

5 years agoinline src block tests by Martyn Jago
Eric Schulte [Mon, 30 Jan 2012 15:51:17 +0000 (08:51 -0700)]
inline src block tests by Martyn Jago

* testing/lisp/test-ob.el (test-org-babel/inline-src_blk-preceded-punct):
  Inline src block tests by Martyn Jago.

5 years agoLink to Org file: regard startup view state
Michael Brand [Wed, 25 Jan 2012 17:24:58 +0000 (18:24 +0100)]
Link to Org file: regard startup view state

* lisp/org.el (org-open-link-from-string): Regard `reference-buffer'
when setting `org-inhibit-startup'.

When opening a link to another Org file not yet opened (first close it
if opened) before this patch:
1) When point is on the line with the link and the line is not a
   heading then the target file is opened with the target file startup
   view state, e. g. the default OVERVIEW.
2) When point is on the heading of the entry of which the link is part
   of then the target file is opened with "SHOW ALL". But it is
   expected to regard the target file startup view state like case 1).
Note: Only in case 2) `org-open-at-point' uses
`org-offer-links-in-entry' and from there `org-open-link-from-string'.

example current buffer with link:
  ,* section
  ,  [[*mytarget]]

example target file
  ,* mytarget
  ,  text
  ,*** subsection

5 years agoDon't insert extra space between inline src block and results on export.
Eric Schulte [Fri, 27 Jan 2012 23:29:03 +0000 (16:29 -0700)]
Don't insert extra space between inline src block and results on export.

* lisp/ob-exp.el (org-babel-exp-non-block-elements): Don't insert
  extra space between inline src block and results on export.

5 years agoallow *any* punctuation to proceed an inline src block
Eric Schulte [Fri, 27 Jan 2012 23:21:49 +0000 (16:21 -0700)]
allow *any* punctuation to proceed an inline src block

  Thanks to Martyn Jago for this change.

* lisp/ob.el (org-babel-get-inline-src-block-matches): Allow *any*
  punctuation to proceed an inline src block.

5 years agoadd ( to the list of characters allowed to proceed an inline src block
Eric Schulte [Fri, 27 Jan 2012 23:17:21 +0000 (16:17 -0700)]
add ( to the list of characters allowed to proceed an inline src block

* lisp/ob.el (org-babel-get-inline-src-block-matches): Add ( to the
  list of characters allowed to proceed an inline src block.

5 years agofixed two issues with noweb reference expansion
Eric Schulte [Tue, 24 Jan 2012 14:23:43 +0000 (07:23 -0700)]
fixed two issues with noweb reference expansion

* lisp/ob.el (org-babel-expand-noweb-references): Only allow
  reference names which start and end with non-whitespace characters.
  Also, raise errors as appropriate given org-babel-noweb-error-langs.

5 years agoupdate tests
Eric Schulte [Tue, 24 Jan 2012 07:02:33 +0000 (00:02 -0700)]
update tests

5 years agoreplace org-babel-noweb-separator variable with :noweb-sep header argument
Eric Schulte [Tue, 24 Jan 2012 06:57:51 +0000 (23:57 -0700)]
replace org-babel-noweb-separator variable with :noweb-sep header argument

* doc/org.texi (noweb-sep): Document new header argument.
* lisp/ob.el (org-babel-common-header-args-w-values): Add new header
  (org-babel-expand-noweb-references): Use header argument rather than
  customization variable.

5 years agocustomizable noweb reference separator
Eric Schulte [Tue, 24 Jan 2012 02:40:21 +0000 (19:40 -0700)]
customizable noweb reference separator

* lisp/ob.el (org-babel-noweb-separator): Custom variable for
  accumulated noweb references.
  (org-babel-expand-noweb-references): Allow separator for noweb
* doc/org.texi (noweb-ref): Documentation of this new custom variable.

5 years agodon't report valid header arguments as suspicious
Eric Schulte [Mon, 23 Jan 2012 18:07:27 +0000 (11:07 -0700)]
don't report valid header arguments as suspicious

* lisp/ob.el (org-babel-check-src-block): Don't report valid header
  arguments as suspicious.

5 years agoevaluate all executables in buffer order on export
Eric Schulte [Mon, 23 Jan 2012 17:33:12 +0000 (10:33 -0700)]
evaluate all executables in buffer order on export

* lisp/ob-exp.el (org-babel-exp-non-block-elements): Map over both
  inline src blocks and call lines on export.

5 years agocorrectly position point when mapping hits an inline code block
Eric Schulte [Fri, 20 Jan 2012 18:58:07 +0000 (11:58 -0700)]
correctly position point when mapping hits an inline code block

* lisp/ob.el (org-babel-map-executables): Correctly position point when
  mapping hits an inline code block.

5 years agoMap "screen" to shell-script-mode
Litvinov Sergey [Fri, 20 Jan 2012 17:26:59 +0000 (18:26 +0100)]
Map "screen" to shell-script-mode

5 years agoEnsure params are incorporated *before* checking if evaluation is legal
Eric Schulte [Fri, 20 Jan 2012 18:44:12 +0000 (11:44 -0700)]
Ensure params are incorporated *before* checking if evaluation is legal

* lisp/ob.el (org-babel-execute-src-block): Ensure params are
  incorporated *before* checking if evaluation is legal.

5 years agoEnsure markers are used during lob export
Eric Schulte [Fri, 20 Jan 2012 18:32:49 +0000 (11:32 -0700)]
Ensure markers are used during lob export

* lisp/ob-exp.el (org-babel-exp-lob-one-liners): Ensure `end' is a
  marker so it is updated as required during export.

5 years agoMerge branch 'maint' of into origin-maint
Eric Schulte [Fri, 20 Jan 2012 17:55:32 +0000 (10:55 -0700)]
Merge branch 'maint' of into origin-maint

5 years agoorg.el: Fix bug in done headline fontification.
Bastien Guerry [Fri, 20 Jan 2012 15:44:25 +0000 (16:44 +0100)]
org.el: Fix bug in done headline fontification.

* org.el (org-set-font-lock-defaults): Fix bug in done
headline fontification.

Thanks to Brian J. Carlson for pointing this error and
a solution.

5 years agoRevert "remove #+name and #+result hiding"
Eric Schulte [Thu, 19 Jan 2012 14:50:17 +0000 (07:50 -0700)]
Revert "remove #+name and #+result hiding"

This reverts commit 8a8a56c27715740053d8a7ea2ba6411b781a22f1.

5 years agoremove all calls to `gensym'
Eric Schulte [Thu, 19 Jan 2012 14:34:58 +0000 (07:34 -0700)]
remove all calls to `gensym'

* lisp/ob.el (org-babel-map-src-blocks): Replace gensym with make-symbol.
  (org-babel-map-inline-src-blocks): Replace gensym with make-symbol.
  (org-babel-map-call-lines): Replace gensym with make-symbol.
  (org-babel-map-executables): Replace gensym with make-symbol.

5 years agodoc timestamp for diary-style sexp entries
Michael Brand [Sat, 14 Jan 2012 08:03:01 +0000 (09:03 +0100)]
doc timestamp for diary-style sexp entries

5 years agoorg.html: Initialize `html-pre-real-contents' correctly.
Bastien Guerry [Sun, 15 Jan 2012 09:27:51 +0000 (10:27 +0100)]
org.html: Initialize `html-pre-real-contents' correctly.

* org-html.el (org-export-as-html): Initialize
`html-pre-real-contents' correctly.

Thanks to Bill Jackson for this fix.

5 years agoremoved dependency on deprecated swank-clojure
Eric Schulte [Fri, 13 Jan 2012 20:07:54 +0000 (13:07 -0700)]
removed dependency on deprecated swank-clojure

* lisp/ob-clojure.el (org-babel-execute:clojure): Removed dependency
  on deprecated swank-clojure.

5 years agofix whole-buffer evaluation order and symbol intrusion in related macros
Eric Schulte [Fri, 13 Jan 2012 01:11:52 +0000 (18:11 -0700)]
fix whole-buffer evaluation order and symbol intrusion in related macros

* lisp/ob.el (org-babel-map-src-blocks): Don't pollute symbol space.
  (org-babel-map-inline-src-blocks): Don't pollute symbol space.
  (org-babel-map-call-lines): Don't pollute symbol space.
  (org-babel-map-executables): Map over *all* executable Org-mode
  (org-babel-execute-buffer): Execute elements in buffer order instead
  of arbitrarily.

5 years agoC-c C-c renumbers ordered lists again
Nicolas Goaziou [Thu, 12 Jan 2012 17:37:08 +0000 (18:37 +0100)]
C-c C-c renumbers ordered lists again

* lisp/org.el (org-ctrl-c-ctrl-c): Fix a naive structure backup.
  Those must be done with `copy-tree'.

Thanks to Anthony Lander for reporting it.

5 years agoDocfix: using `org-sort' with a double prefix doesn't delete duplicates.
Bastien Guerry [Thu, 12 Jan 2012 15:13:33 +0000 (16:13 +0100)]
Docfix: using `org-sort' with a double prefix doesn't delete duplicates.

Thanks to Paweł Menich for spotting this.

5 years agoReferenced code block should not be evaluated on code block edit
Eric Schulte [Thu, 12 Jan 2012 14:47:30 +0000 (07:47 -0700)]
Referenced code block should not be evaluated on code block edit

* lisp/org-src.el (org-edit-src-code): Referenced code block should
  not be evaluated on code block edit.

5 years ago* doc/org.texi: #+RESULTS now user-configurable
Thomas Dye [Wed, 11 Jan 2012 22:38:36 +0000 (15:38 -0700)]
* doc/org.texi: #+RESULTS now user-configurable

5 years agodefault to all-caps #+RESULTS: for code-block generated content
Eric Schulte [Wed, 11 Jan 2012 20:54:20 +0000 (13:54 -0700)]
default to all-caps #+RESULTS: for code-block generated content

* lisp/ob.el (org-babel-results-keyword): New user-configurable
  results keyword.
  (org-babel-where-is-src-block-result): Use new user-configurable
  results keyword.

5 years agoorg-indent: Handle indentation change with headline manual insertion
Nicolas Goaziou [Mon, 9 Jan 2012 17:47:22 +0000 (18:47 +0100)]
org-indent: Handle indentation change with headline manual insertion

* lisp/org-indent.el (org-indent-refresh-maybe): Check for new
  headlines from the beginning of the line to be sure to catch
  any newly inserted headline there.

5 years agofix bug in property list updates
Eric Schulte [Wed, 11 Jan 2012 17:14:24 +0000 (10:14 -0700)]
fix bug in property list updates

* lisp/org.el (org-update-property-plist): Fix bug in property list

5 years ago* doc/org.texi: Edit :noweb no header argument for correctness
Thomas Dye [Tue, 10 Jan 2012 16:06:49 +0000 (06:06 -1000)]
* doc/org.texi: Edit :noweb no header argument for correctness

5 years ago* doc/org.texi: :results wrap produces a drawer instead of a begin_results block
Thomas Dye [Sun, 8 Jan 2012 06:38:53 +0000 (20:38 -1000)]
* doc/org.texi: :results wrap produces a drawer instead of a begin_results block

5 years agoonly the last value for any specific property is kept
Eric Schulte [Fri, 6 Jan 2012 18:20:11 +0000 (11:20 -0700)]
only the last value for any specific property is kept

* lisp/org.el (org-update-property-plist): Remove old instances of
  property when adding a new value for property.

5 years agoFix to test-org-babel/org-babel-get-inline-src-block-matches. * testing/lisp/test...
Martyn Jago [Wed, 4 Jan 2012 21:09:46 +0000 (21:09 +0000)]
Fix to test-org-babel/org-babel-get-inline-src-block-matches. * testing/lisp/test-ob.el: Character position offset -=2 to account for removal of trailing spaces

5 years agoBug fix in ob-emacs-lisp.el.
Martyn Jago [Thu, 5 Jan 2012 18:00:12 +0000 (18:00 +0000)]
Bug fix in ob-emacs-lisp.el.

* lisp/ob-emacs-lisp.el: A comment on the last line of an emacs-lisp
code block would cause an error when the block is was executed. This
fix cures this behaviour.

* testing/lisp/test-ob-emacs-lisp.el:  Regression tests for the above

5 years agoresurrect dropped pieces of a previous patch
Eric Schulte [Thu, 5 Jan 2012 17:42:17 +0000 (10:42 -0700)]
resurrect dropped pieces of a previous patch

* lisp/ob.el (org-babel-expand-noweb-references): Resurrect dropped
  pieces of a previous patch.

5 years agofix compiler warning in ob-maxima.el
Eric Schulte [Thu, 5 Jan 2012 17:31:30 +0000 (10:31 -0700)]
fix compiler warning in ob-maxima.el

* lisp/ob-maxima.el (org-babel-execute:maxima): Fix compiler warning.

5 years agoadd Maxima to the Makefile
Eric Schulte [Thu, 5 Jan 2012 17:28:36 +0000 (10:28 -0700)]
add Maxima to the Makefile

* Makefile (LISPF): Add Maxima.

5 years agofixed bug in org-babel-balanced-split when run on Emacs22
Eric Schulte [Tue, 3 Jan 2012 18:44:32 +0000 (11:44 -0700)]
fixed bug in org-babel-balanced-split when run on Emacs22

 Thanks to Martyn Jago for the test case

* lisp/ob.el (org-babel-balanced-split): Explicit checking if list
  before calling member.
* testing/lisp/test-ob.el (test-ob/org-babel-balanced-split): Testing
  the new Emacs22-proof behavior.

5 years agoRelease 7.8.03 release_7.8.03
Bastien Guerry [Tue, 3 Jan 2012 08:31:59 +0000 (08:31 +0000)]
Release 7.8.03

5 years agoMerge branch 'master' into maint
Bastien Guerry [Tue, 3 Jan 2012 08:31:58 +0000 (08:31 +0000)]
Merge branch 'master' into maint

5 years agodocumentation of *org-babel-use-quick-and-dirty-noweb-expansion*
Eric Schulte [Mon, 2 Jan 2012 18:10:48 +0000 (11:10 -0700)]
documentation of *org-babel-use-quick-and-dirty-noweb-expansion*

* doc/org.texi (Noweb reference syntax): Adding documentation of
  the *org-babel-use-quick-and-dirty-noweb-expansion* variable.

5 years agoAdd a note about :noweb-ref.
Bastien Guerry [Mon, 2 Jan 2012 14:28:07 +0000 (15:28 +0100)]
Add a note about :noweb-ref.

Thanks to Tomas Grigera for a preliminary patch.

5 years agoMore small fixes on `C-u C-c C-c' and checkboxes.
Bastien Guerry [Sat, 31 Dec 2011 17:20:30 +0000 (18:20 +0100)]
More small fixes on `C-u C-c C-c' and checkboxes.

* org.el (org-ctrl-c-ctrl-c): Preserve symmetry when adding
and removing checkboxes with `C-u C-c C-c' on the first item
of a list.  Also, don't reinitialize checkboxes that are
already ticked.

Thanks to Nicolas Goaziou for these fixes.

5 years agoRevert "Fix problem with `org-ctrl-c-ctrl-c' on the checkbox of the first item."
Bastien Guerry [Sat, 31 Dec 2011 17:13:23 +0000 (18:13 +0100)]
Revert "Fix problem with `org-ctrl-c-ctrl-c' on the checkbox of the first item."

This reverts commit 4789bb5a79f004346c37e3a84d12f90ada24d277.

5 years agoBe a bit more flexible when matching time values in timestamps.
Bastien Guerry [Sat, 31 Dec 2011 08:39:58 +0000 (09:39 +0100)]
Be a bit more flexible when matching time values in timestamps.

* org.el (org-ts-regexp0, org-ts-regexp1): Also match a time
value with only one digit for the hours.

Thanks to François Pinard for mentioning this.

5 years agoDocument the new behavior of `C-u C-c C-c' on checkboxes.
Bastien Guerry [Sat, 31 Dec 2011 16:47:53 +0000 (17:47 +0100)]
Document the new behavior of `C-u C-c C-c' on checkboxes.

* org.texi (Checkboxes): Document the new behavior of `C-u C-c
C-c' on checkboxes.

5 years agoFix problem with `org-ctrl-c-ctrl-c' on the checkbox of the first item.
Bastien Guerry [Sat, 31 Dec 2011 16:41:23 +0000 (17:41 +0100)]
Fix problem with `org-ctrl-c-ctrl-c' on the checkbox of the first item.

* org.el (org-ctrl-c-ctrl-c): Don't make `C-c C-c' special
when ticking the checkbox of the first item.

5 years agoorg-list: Change behaviour of C-c C-c at a list item with an argument
Nicolas Goaziou [Sat, 31 Dec 2011 14:36:53 +0000 (15:36 +0100)]
org-list: Change behaviour of C-c C-c at a list item with an argument

* lisp/org-list.el (org-list-write-struct): Add an optional argument
  for structure changes happening outside the function.
* lisp/org.el (org-ctrl-c-ctrl-c): Now, C-u C-c C-c on the first item
  of a sub-list should toggle check-box presence of every item in the
  same sub-list.  Also fix check-box insertion on a single item.

5 years agoMake Org work with bbdb 3.0
Carsten Dominik [Sat, 31 Dec 2011 16:04:27 +0000 (17:04 +0100)]
Make Org work with bbdb 3.0

* lisp/org-bbdb.el (org-bbdb-old): New variable.
(org-bbdb-open): Check for `org-bbdb-old'.
(org-bbdb-open-new): New functions.

Patch by Ivan Kanis

5 years agoorg-agenda.el: Small code cleanup.
Bastien Guerry [Sat, 31 Dec 2011 12:31:02 +0000 (13:31 +0100)]
org-agenda.el: Small code cleanup.

* org-agenda.el (org-batch-agenda, org-batch-agenda-csv):
Remove deleted function `org-encode-for-stdout'.

5 years agoorg.el (org-show-context): Complete docstring.
Bastien Guerry [Sat, 31 Dec 2011 10:47:50 +0000 (11:47 +0100)]
org.el (org-show-context): Complete docstring.

* org.el (org-show-context): Complete docstring.

Thanks to Michael Heerdegen for mentioning this.

5 years agoorg-agenda.el: Use `read-char-exclusive' instead of `read-char'.
Bastien Guerry [Sat, 31 Dec 2011 10:45:54 +0000 (11:45 +0100)]
org-agenda.el: Use `read-char-exclusive' instead of `read-char'.

* org-agenda.el (org-agenda-filter-by-tag): Use
`read-char-exclusive' instead of `read-char'.

5 years agoFix bug in mapper function
Carsten Dominik [Sat, 31 Dec 2011 08:26:56 +0000 (09:26 +0100)]
Fix bug in mapper function

* lisp/org.el (org-scan-tags): Make sure org-map-continue-from is nil
at each match

5 years agoFix clock regexps
Carsten Dominik [Sat, 31 Dec 2011 08:05:11 +0000 (09:05 +0100)]
Fix clock regexps

* lisp/org-clock.el (org-clock-in):
(org-clock-find-position): Remove erraneous space in regexp

Patch by Joe Vornehm Jr.


5 years agoFix tiny typos.
Bastien Guerry [Sat, 31 Dec 2011 07:59:49 +0000 (08:59 +0100)]
Fix tiny typos.

Those have been fixed by Paul Eggert in Emacs first.

5 years agoFix typos.
Bastien Guerry [Fri, 30 Dec 2011 23:38:06 +0000 (00:38 +0100)]
Fix typos.

Fixes already done in Emacs by Paul Eggert.

5 years agoResolve :noweb-ref when set at the property level during noweb expansion
Eric Schulte [Thu, 29 Dec 2011 19:46:42 +0000 (12:46 -0700)]
Resolve :noweb-ref when set at the property level during noweb expansion

* lisp/ob.el (org-babel-expand-noweb-references): Rather than using a
  pure regexp solution to resolve noweb references, actually check the
  information of every code block in the buffer.  This will cause a
  slowdown in noweb reference expansion, but is necessary for correct

5 years agoorg.el (org-map-continue-from): Fix typo in docstring.
Bastien Guerry [Thu, 29 Dec 2011 16:46:47 +0000 (17:46 +0100)]
org.el (org-map-continue-from): Fix typo in docstring.

* org.el (org-map-continue-from): Fix typo in docstring.

5 years agoOrgOdtContentTemplate.xml: table-cells are now top aligned by default
Jambunathan K [Thu, 29 Dec 2011 10:54:27 +0000 (16:24 +0530)]
OrgOdtContentTemplate.xml: table-cells are now top aligned by default

* etc/styles/OrgOdtContentTemplate.xml (OrgTblCell): Modify
style:vertical-align attribute to top.
(OrgTblCell*): Inherit from OrgTblCell.
(Custom*TableCell): Force style:vertical-align to top.


5 years agoorg-drill.el: fix a few wrong :type spec.
Bastien Guerry [Mon, 26 Dec 2011 14:40:02 +0000 (15:40 +0100)]
org-drill.el: fix a few wrong :type spec.

* org-drill.el (org-drill-leech-method, org-drill-scope)
(org-drill-spaced-repetition-algorithm): Fix wrong :type spec.

Thanks to Joost Kremers for spotting this.

5 years agoorg.el: Also match cumulating properties like ":prop+:".
Bastien Guerry [Mon, 26 Dec 2011 14:12:39 +0000 (15:12 +0100)]
org.el: Also match cumulating properties like ":prop+:".

* org.el (org-property-re): Also match cumulating properties
like ":prop+:".

Thanks to Christoph LANGE for spotting this.

5 years agoorg-mouse.el: Remove useless commented functions.
Bastien Guerry [Mon, 26 Dec 2011 13:39:47 +0000 (14:39 +0100)]
org-mouse.el: Remove useless commented functions.

5 years agoorg.texi: Split the table to fix the display of items.
Bastien Guerry [Mon, 26 Dec 2011 13:24:08 +0000 (14:24 +0100)]
org.texi: Split the table to fix the display of items.

* org.texi (Plain lists): Split the table to fix the display
of items.

Thanks to Elias Assarsson for spotting this, and to Takaaki
ISHIKAWA for providing a preliminary patch.

5 years agoUse CD@LaTeX{} instead of CDLa@TeX.
Bastien Guerry [Sun, 25 Dec 2011 08:43:30 +0000 (09:43 +0100)]
Use CD@LaTeX{} instead of CDLa@TeX.

5 years agoNormalize the use of @LaTeX{} in the Org compact guide.
Bastien Guerry [Sun, 25 Dec 2011 08:42:08 +0000 (09:42 +0100)]
Normalize the use of @LaTeX{} in the Org compact guide.

5 years agoorg.texi: Normalize the use of @LaTeX{} in the manual.
Bastien Guerry [Sun, 25 Dec 2011 08:36:20 +0000 (09:36 +0100)]
org.texi: Normalize the use of @LaTeX{} in the manual.

Thanks to Elias Assarsson for mentioning this problem.

5 years agoorg-odt.el: Declare vars and functions from htmlfontify
Jambunathan K [Sat, 24 Dec 2011 06:48:45 +0000 (12:18 +0530)]
org-odt.el: Declare vars and functions from htmlfontify

5 years agoorg-odt.el (org-odt-styles-dir): It is etc/org/ under vanilla Emacs
Jambunathan K [Sat, 24 Dec 2011 06:03:54 +0000 (11:33 +0530)]
org-odt.el (org-odt-styles-dir): It is etc/org/ under vanilla Emacs

* org-odt.el (org-odt-styles-dir): Assume that the styles
files are located under `data-directory' of Emacs distribution
as etc/org/OrgOdtStyles.xml and
etc/org/OrgOdtContentTemplate.xml.  Also update docstring.
(org-export-odt-schema-dir): Update docstring.

5 years agoorg-odt.el: Honor author. timestamp and email options in preamble
Jambunathan K [Sat, 24 Dec 2011 04:06:29 +0000 (09:36 +0530)]
org-odt.el: Honor author. timestamp and email options in preamble

* org-odt.el (org-odt-format-preamble): Honor following user
options: author, timestamp and email.  See

5 years agoorg-exp-blocks.el: Fix regexp for matching the end of a block.
Bastien Guerry [Fri, 23 Dec 2011 16:40:37 +0000 (17:40 +0100)]
org-exp-blocks.el: Fix regexp for matching the end of a block.

* org-exp-blocks.el (org-export-blocks-preprocess): Fix regexp
for matching the end of a block.

Thanks to Robert Lupton the Good for reporting this and to Nick
Dokos for digging the issue further.

5 years agoorg.texi (Plain lists): Fix misplaced explantion.
Bastien Guerry [Wed, 21 Dec 2011 18:41:41 +0000 (19:41 +0100)]
org.texi (Plain lists): Fix misplaced explantion.

* org.texi (Plain lists): Fix misplaced explantion.

Thanks to Takaaki ISHIKAWA for spotting this and for
a patch to this effect.

5 years agoEscape link path only if path contains space or non-ascii character
David Maus [Sun, 18 Dec 2011 18:23:57 +0000 (19:23 +0100)]
Escape link path only if path contains space or non-ascii character

* org.el (org-open-at-point): Escape link path for http:, https:,
ftp:, news:, and doi: links only if the path contains space or
non-ascii character.

This should take care of mistakenly double-escaped links as reported
by Jeff Horn in <>.

We are just guessing here and push the responsibility for proper
escaping to the target application.

5 years ago* org.texi (Plain lists, Agenda files): Add index entries.
Bastien Guerry [Tue, 20 Dec 2011 22:22:29 +0000 (23:22 +0100)]
* org.texi (Plain lists, Agenda files): Add index entries.