org-mode.git
2 years agoAdd support for indented tables in ODT export
Jambunathan K [Mon, 16 Jan 2012 20:55:47 +0000]
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
list.
(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'.
(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:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00515.html

2 years agofix bug in property list updates
Eric Schulte [Wed, 11 Jan 2012 17:14:24 +0000]
fix bug in property list updates

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

2 years agofixed bug in org-babel-balanced-split when run on Emacs22
Eric Schulte [Tue, 3 Jan 2012 18:44:32 +0000]
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.

2 years agospecify "," as default sqlite output seperator
Eric Schulte [Sat, 18 Feb 2012 21:49:49 +0000]
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.

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

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

2 years agomanual: fix references to Calc manual
Michael Brand [Sat, 18 Feb 2012 16:03:36 +0000]
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
match.

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

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

2 years agoFix old Babel syntax
Sebastien Vauban [Thu, 16 Feb 2012 14:50:17 +0000]
Fix old Babel syntax

2 years agoGeneralize to multiple "prop+" properties.
Eric Schulte [Sat, 18 Feb 2012 15:28:40 +0000]
Generalize to multiple "prop+" properties.

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

2 years agoAccumulate properties from subtree property drawers.
Eric Schulte [Wed, 15 Feb 2012 15:01:29 +0000]
Accumulate properties from subtree property drawers.

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

2 years agoorg-footnote: Fix bogus defvar declares
Nicolas Goaziou [Tue, 7 Feb 2012 07:43:09 +0000]
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
  declarations.

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

2 years agoFix special C-a and C-e behaviour with visual lines
Nicolas Goaziou [Sat, 4 Feb 2012 15:32:34 +0000]
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.

2 years agoupdated babel key binding documentation in manual
Eric Schulte [Fri, 3 Feb 2012 18:44:58 +0000]
updated babel key binding documentation in manual

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

2 years agoconcluding cherry pick
Eric Schulte [Fri, 3 Feb 2012 17:25:30 +0000]
concluding cherry pick

2 years agochanged the name of exporting comment blocks
Eric Schulte [Fri, 3 Feb 2012 17:25:30 +0000]
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.

2 years agoorg-footnote: Better blank lines control when inserting a footnote
Nicolas Goaziou [Thu, 2 Feb 2012 20:02:18 +0000]
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.

2 years agoorg-footnote: Fix export bug introduced by previous commit
Nicolas Goaziou [Thu, 2 Feb 2012 19:39:40 +0000]
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.

2 years agoorg-footnote: Fix normalization when no footnote section is defined
Nicolas Goaziou [Thu, 2 Feb 2012 09:01:50 +0000]
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.

2 years agoorg-footnote: Fix definition ending retrieval with no footnote section
Nicolas Goaziou [Thu, 2 Feb 2012 08:08:28 +0000]
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.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Tue, 31 Jan 2012 23:10:06 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoorg-exp: Fix export error with code blocks within lists
Nicolas Goaziou [Tue, 31 Jan 2012 19:21:44 +0000]
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.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Tue, 31 Jan 2012 08:27:47 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agofix bug introduced by 794319dfd9f11827ca0fce2043dfa95547eafe84
Eric Schulte [Tue, 31 Jan 2012 01:35:49 +0000]
fix bug introduced by 794319dfd9f11827ca0fce2043dfa95547eafe84

2 years agodon't allow newlines in source names in noweb references
Eric Schulte [Tue, 31 Jan 2012 01:27:33 +0000]
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.

2 years agoinhibit R evaluation visibility regardless of local user customization
Vitalie Spinu [Mon, 30 Jan 2012 16:30:39 +0000]
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.

2 years agosplitting large tests up into smaller units
Eric Schulte [Mon, 30 Jan 2012 15:54:25 +0000]
splitting large tests up into smaller units

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

2 years agoinline src block tests by Martyn Jago
Eric Schulte [Mon, 30 Jan 2012 15:51:17 +0000]
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.

2 years agoLink to Org file: regard startup view state
Michael Brand [Wed, 25 Jan 2012 17:24:58 +0000]
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:
#+BEGIN_SRC org
  ,* section
  ,  [[file:myfile.org::*mytarget]]
#+END_SRC

example target file myfile.org:
#+BEGIN_SRC org
  ,* mytarget
  ,  text
  ,*** subsection
#+END_SRC

2 years agoDon't insert extra space between inline src block and results on export.
Eric Schulte [Fri, 27 Jan 2012 23:29:03 +0000]
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.

2 years agoallow *any* punctuation to proceed an inline src block
Eric Schulte [Fri, 27 Jan 2012 23:21:49 +0000]
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.

2 years agoadd ( to the list of characters allowed to proceed an inline src block
Eric Schulte [Fri, 27 Jan 2012 23:17:21 +0000]
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.

2 years agofixed two issues with noweb reference expansion
Eric Schulte [Tue, 24 Jan 2012 14:23:43 +0000]
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.

2 years agoupdate tests
Eric Schulte [Tue, 24 Jan 2012 07:02:33 +0000]
update tests

2 years agoreplace org-babel-noweb-separator variable with :noweb-sep header argument
Eric Schulte [Tue, 24 Jan 2012 06:57:51 +0000]
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
  argument.
  (org-babel-expand-noweb-references): Use header argument rather than
  customization variable.

2 years agocustomizable noweb reference separator
Eric Schulte [Tue, 24 Jan 2012 02:40:21 +0000]
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
  references.
* doc/org.texi (noweb-ref): Documentation of this new custom variable.

2 years agodon't report valid header arguments as suspicious
Eric Schulte [Mon, 23 Jan 2012 18:07:27 +0000]
don't report valid header arguments as suspicious

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

2 years agoevaluate all executables in buffer order on export
Eric Schulte [Mon, 23 Jan 2012 17:33:12 +0000]
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.

2 years agocorrectly position point when mapping hits an inline code block
Eric Schulte [Fri, 20 Jan 2012 18:58:07 +0000]
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.

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

2 years agoEnsure params are incorporated *before* checking if evaluation is legal
Eric Schulte [Fri, 20 Jan 2012 18:44:12 +0000]
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.

2 years agoEnsure markers are used during lob export
Eric Schulte [Fri, 20 Jan 2012 18:32:49 +0000]
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.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into origin-maint
Eric Schulte [Fri, 20 Jan 2012 17:55:32 +0000]
Merge branch 'maint' of orgmode.org:org-mode into origin-maint

2 years agoorg.el: Fix bug in done headline fontification.
Bastien Guerry [Fri, 20 Jan 2012 15:44:25 +0000]
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.

2 years agoRevert "remove #+name and #+result hiding"
Eric Schulte [Thu, 19 Jan 2012 14:50:17 +0000]
Revert "remove #+name and #+result hiding"

This reverts commit 8a8a56c27715740053d8a7ea2ba6411b781a22f1.

2 years agoremove all calls to `gensym'
Eric Schulte [Thu, 19 Jan 2012 14:34:58 +0000]
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.

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

2 years agoorg.html: Initialize `html-pre-real-contents' correctly.
Bastien Guerry [Sun, 15 Jan 2012 09:27:51 +0000]
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.

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

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

2 years agofix whole-buffer evaluation order and symbol intrusion in related macros
Eric Schulte [Fri, 13 Jan 2012 01:11:52 +0000]
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
  elements.
  (org-babel-execute-buffer): Execute elements in buffer order instead
  of arbitrarily.

2 years agoC-c C-c renumbers ordered lists again
Nicolas Goaziou [Thu, 12 Jan 2012 17:37:08 +0000]
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.

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

Thanks to Paweł Menich for spotting this.

2 years agoReferenced code block should not be evaluated on code block edit
Eric Schulte [Thu, 12 Jan 2012 14:47:30 +0000]
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.

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

2 years agodefault to all-caps #+RESULTS: for code-block generated content
Eric Schulte [Wed, 11 Jan 2012 20:54:20 +0000]
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.

2 years agoorg-indent: Handle indentation change with headline manual insertion
Nicolas Goaziou [Mon, 9 Jan 2012 17:47:22 +0000]
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.

2 years agofix bug in property list updates
Eric Schulte [Wed, 11 Jan 2012 17:14:24 +0000]
fix bug in property list updates

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

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

2 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]
* doc/org.texi: :results wrap produces a drawer instead of a begin_results block

2 years agoonly the last value for any specific property is kept
Eric Schulte [Fri, 6 Jan 2012 18:20:11 +0000]
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.

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

2 years agoBug fix in ob-emacs-lisp.el.
Martyn Jago [Thu, 5 Jan 2012 18:00:12 +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
  fix.

2 years agoresurrect dropped pieces of a previous patch
Eric Schulte [Thu, 5 Jan 2012 17:42:17 +0000]
resurrect dropped pieces of a previous patch

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

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

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

2 years agoadd Maxima to the Makefile
Eric Schulte [Thu, 5 Jan 2012 17:28:36 +0000]
add Maxima to the Makefile

* Makefile (LISPF): Add Maxima.

2 years agofixed bug in org-babel-balanced-split when run on Emacs22
Eric Schulte [Tue, 3 Jan 2012 18:44:32 +0000]
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.

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

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

2 years agodocumentation of *org-babel-use-quick-and-dirty-noweb-expansion*
Eric Schulte [Mon, 2 Jan 2012 18:10:48 +0000]
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.

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

Thanks to Tomas Grigera for a preliminary patch.

2 years agoMore small fixes on `C-u C-c C-c' and checkboxes.
Bastien Guerry [Sat, 31 Dec 2011 17:20:30 +0000]
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.

2 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]
Revert "Fix problem with `org-ctrl-c-ctrl-c' on the checkbox of the first item."

This reverts commit 4789bb5a79f004346c37e3a84d12f90ada24d277.

2 years agoBe a bit more flexible when matching time values in timestamps.
Bastien Guerry [Sat, 31 Dec 2011 08:39:58 +0000]
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.

2 years agoDocument the new behavior of `C-u C-c C-c' on checkboxes.
Bastien Guerry [Sat, 31 Dec 2011 16:47:53 +0000]
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.

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

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

2 years agoMake Org work with bbdb 3.0
Carsten Dominik [Sat, 31 Dec 2011 16:04:27 +0000]
Make Org work with bbdb 3.0

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

Patch by Ivan Kanis

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

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

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

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

Thanks to Michael Heerdegen for mentioning this.

2 years agoorg-agenda.el: Use `read-char-exclusive' instead of `read-char'.
Bastien Guerry [Sat, 31 Dec 2011 10:45:54 +0000]
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'.

2 years agoFix bug in mapper function
Carsten Dominik [Sat, 31 Dec 2011 08:26:56 +0000]
Fix bug in mapper function

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

2 years agoFix clock regexps
Carsten Dominik [Sat, 31 Dec 2011 08:05:11 +0000]
Fix clock regexps

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

Patch by Joe Vornehm Jr.

TINYCHANGE

2 years agoFix tiny typos.
Bastien Guerry [Sat, 31 Dec 2011 07:59:49 +0000]
Fix tiny typos.

Those have been fixed by Paul Eggert in Emacs first.

2 years agoFix typos.
Bastien Guerry [Fri, 30 Dec 2011 23:38:06 +0000]
Fix typos.

Fixes already done in Emacs by Paul Eggert.

2 years agoResolve :noweb-ref when set at the property level during noweb expansion
Eric Schulte [Thu, 29 Dec 2011 19:46:42 +0000]
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
  behavior.

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

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

2 years agoOrgOdtContentTemplate.xml: table-cells are now top aligned by default
Jambunathan K [Thu, 29 Dec 2011 10:54:27 +0000]
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.

See http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00780.html

2 years agoorg-drill.el: fix a few wrong :type spec.
Bastien Guerry [Mon, 26 Dec 2011 14:40:02 +0000]
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.

2 years agoorg.el: Also match cumulating properties like ":prop+:".
Bastien Guerry [Mon, 26 Dec 2011 14:12:39 +0000]
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.

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

2 years agoorg.texi: Split the table to fix the display of items.
Bastien Guerry [Mon, 26 Dec 2011 13:24:08 +0000]
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.

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

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

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

Thanks to Elias Assarsson for mentioning this problem.

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

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

2 years agoorg-odt.el: Honor author. timestamp and email options in preamble
Jambunathan K [Sat, 24 Dec 2011 04:06:29 +0000]
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

http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00539.html

2 years agoorg-exp-blocks.el: Fix regexp for matching the end of a block.
Bastien Guerry [Fri, 23 Dec 2011 16:40:37 +0000]
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.

2 years agoorg.texi (Plain lists): Fix misplaced explantion.
Bastien Guerry [Wed, 21 Dec 2011 18:41:41 +0000]
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.

2 years agoEscape link path only if path contains space or non-ascii character
David Maus [Sun, 18 Dec 2011 18:23:57 +0000]
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 <http://article.gmane.org/gmane.emacs.orgmode/48731>.

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

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