org-mode.git
6 hours agoox-md: Allow custom link type export function maint
Nicolas Goaziou [Thu, 21 Aug 2014 09:05:45 +0000]
ox-md: Allow custom link type export function

* lisp/ox-md.el (org-md-link): Allow custom link type export function.

`md' back-end is now on par with other core export back-ends.

Thanks to Ken Markoff for reponting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90011

13 hours agoRevert "org-clean-before-export matches non-special columns spuriously"
Nick Dokos [Thu, 21 Aug 2014 02:14:53 +0000]
Revert "org-clean-before-export matches non-special columns spuriously"

This reverts commit 79873390edd26a44cefc2050c7af470a7ed8fd07.
The fix was wrong and gave rise to a different problem  - see

   http://thread.gmane.org/gmane.emacs.orgmode/89945

Revert it for now, since there is a workaround for the original
problem and plan on a correct fix in the near future.

20 hours agoob-lilypond: change prefix to org-babel-lilypond
Achim Gratz [Wed, 20 Aug 2014 19:10:00 +0000]
ob-lilypond: change prefix to org-babel-lilypond

* lisp/ob-lilypond.el, testing/lisp/test-ob-lilypond.el: Change prefix
  from `ly-' to `org-babel-lilypond-' throughout.

42 hours agoox-texinfo: Fix language case
Nicolas Goaziou [Tue, 19 Aug 2014 21:35:08 +0000]
ox-texinfo: Fix language case

* lisp/ox-texinfo.el (org-texinfo-template): Fix language and encoding
  case.

Thanks to Brian J. Carlson for reporting it and providing a patch.
http://permalink.gmane.org/gmane.emacs.orgmode/89965

5 days agoox-md: Fix blank lines in output
Nicolas Goaziou [Sat, 16 Aug 2014 14:19:01 +0000]
ox-md: Fix blank lines in output

* lisp/ox-md.el (org-md-separate-elements): Outside of lists, preserve
  blank lines between paragraphs and plain lists.

For example

    Consider this list:

    - three
    - four

should become

  # Another test<a id="sec-2"></a>

  Consider this list:

  -   three
  -   four

Thanks to Rafael for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89840

5 days agoorg-list: Fix failing test
Nicolas Goaziou [Fri, 15 Aug 2014 19:51:42 +0000]
org-list: Fix failing test

* testing/lisp/test-org-list.el (test-org-list/to-texinfo): Fix
  failing test.

5 days agoorg-element: Fix common indentation removal in verse block
Nicolas Goaziou [Fri, 15 Aug 2014 19:46:46 +0000]
org-element: Fix common indentation removal in verse block

* lisp/org-element.el (org-element-normalize-contents): Fix
  indentation removal when there is an empty line within a verse block.
* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add test.

7 days agoox-texinfo: Fix parse tree corruption
Nicolas Goaziou [Thu, 14 Aug 2014 12:08:16 +0000]
ox-texinfo: Fix parse tree corruption

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Properly add
  a section to the contents.

7 days agoox-texinfo: Small refactoring
Nicolas Goaziou [Thu, 14 Aug 2014 09:44:52 +0000]
ox-texinfo: Small refactoring

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Do not set
  pre blanks since the value is now hard-coded.
(org-texinfo-headline): Force one blank line before contents, when non
empty.  Refactoring.
(org-texinfo-src-block): Refactor code.  Comply to predicate naming.

9 days agoox-texinfo: Fix corner case when fixing a node name
Nicolas Goaziou [Mon, 11 Aug 2014 17:47:47 +0000]
ox-texinfo: Fix corner case when fixing a node name

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): Handle
  " (not)allowed" case.

10 days agoox-texinfo: Remove wrong code comments
Nicolas Goaziou [Mon, 11 Aug 2014 13:44:12 +0000]
ox-texinfo: Remove wrong code comments

* lisp/ox-texinfo.el (org-texinfo-headline): Remove wrong code
  comments.

10 days agoorg.texi: Document menus in Texinfo export
Nicolas Goaziou [Mon, 11 Aug 2014 12:24:51 +0000]
org.texi: Document menus in Texinfo export

* doc/org.texi (Headings and sectioning structure): Document menus.

10 days agoox-texinfo: Remove `not-in-toc' case in headline export
Nicolas Goaziou [Mon, 11 Aug 2014 12:05:27 +0000]
ox-texinfo: Remove `not-in-toc' case in headline export

* lisp/ox-texinfo.el (org-texinfo-headline): Remove `not-in-toc'
  special case for tags.

Check is useless for 2 reasons :

  1. there is no way to control @contents in the file header so
     sectioning name,

  2. menu entries provide their own title.  If it has to be handled,
     that should be elsewhere anyway.

10 days agoox-texinfo: Remove left-over LaTeXism
Nicolas Goaziou [Mon, 11 Aug 2014 11:55:11 +0000]
ox-texinfo: Remove left-over LaTeXism

* lisp/ox-texinfo.el (org-texinfo-headline): Remove LaTeXism (optional
  arguments within square brackets).

10 days agoox-texinfo: Tiny refactoring
Nicolas Goaziou [Mon, 11 Aug 2014 11:44:13 +0000]
ox-texinfo: Tiny refactoring

* lisp/ox-texinfo.el (org-texinfo-info-process): Fix docstring.
(org-texinfo-compile): Do not check for impossible cases (e.g., if the
previous variable contains a function).

10 days agoox-texinfo: Fix a docstring
Nicolas Goaziou [Mon, 11 Aug 2014 00:11:32 +0000]
ox-texinfo: Fix a docstring

* lisp/ox-texinfo.el (org-texinfo-max-toc-depth): Fix docstring.

10 days agoox-texinfo: Remove unused internal functions
Nicolas Goaziou [Sun, 10 Aug 2014 21:48:29 +0000]
ox-texinfo: Remove unused internal functions

* lisp/ox-texinfo.el (org-texinfo--make-option-string,
  org-texinfo--sanitize-headline,
  org-texinfo--sanitize-headline-contents): Remove.

10 days agoox-texinfo: Fix node names
Nicolas Goaziou [Sun, 10 Aug 2014 21:10:57 +0000]
ox-texinfo: Fix node names

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): "@", "{" and "}"
  characters are allowed in a node name.  So are "(" and ")" unless
  "(" starts the name and there is ")" somewhere in the name.  Also
  trim and collapse whitespace characters.  Renamed from
  `org-texinfo--sanitize-menu'.
(org-texinfo--get-node): Do not sanitize node names over zealously.
Ensure returned node names are unique.
(org-texinfo-headline): Only add @node command where it makes sense.

10 days agoox-texinfo: Fix docstrings
Nicolas Goaziou [Sun, 10 Aug 2014 20:55:20 +0000]
ox-texinfo: Fix docstrings

* lisp/ox-texinfo.el (org-texinfo--sanitize-menu,
  org-texinfo--sanitize-content): Fix docstrings.

10 days agoox-texinfo: Fix blank lines in output
Nicolas Goaziou [Sat, 9 Aug 2014 00:01:18 +0000]
ox-texinfo: Fix blank lines in output

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Make sure
  a blank line always follows nodes.

10 days agoox-texinfo: Fix menus
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:51 +0000]
ox-texinfo: Fix menus

* lisp/ox-texinfo.el (org-texinfo-make-menu): Change signature.
  Remove some intermediate functions.  Generate the full master menu
  when asked.
(org-texinfo--build-menu):  Use a simpler algorithm.
(org-texinfo--format-entries): Fix entries when both node and title
are different.
(org-texinfo--menu-entries): Renamed from `org-texinfo--generate-menu-list'.
(org-texinfo-headline): Move menu handling to next function.
(org-texinfo-section): Handle menu for current parent.
(org-texinfo--menu-headlines, org-texinfo--generate-detailed): Remove
functions.
(org-texinfo--normalize-headlines): New function.

10 days agoox-texinfo: Fix appendix command
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:11 +0000]
ox-texinfo: Fix appendix command

* lisp/ox-texinfo.el (org-texinfo-headline): Fix @appendix command.

10 days agoox-texinfo: Fix heading text
Nicolas Goaziou [Fri, 8 Aug 2014 22:43:39 +0000]
ox-texinfo: Fix heading text

* lisp/ox-texinfo.el (org-texinfo-headline): Do not sanitize heading
  text for sectioning command.

For example

  * This is ~code~

should be possibly exported as

  @chapter This is @code{code}

not

  @chapter This is @@code@{code@}

12 days agoox-texinfo: Fix ":COPYING: nil" node properties
Nicolas Goaziou [Fri, 8 Aug 2014 22:05:43 +0000]
ox-texinfo: Fix ":COPYING: nil" node properties

* lisp/ox-texinfo.el (org-texinfo--generate-menu-list): ":COPYING:
  nil" is expected to be equivalent to no COPYING property at all.

12 days agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 8 Aug 2014 21:57:16 +0000]
org.texi: Fix typo

12 days agoorg.texi: Fix e5aceea
Nicolas Goaziou [Fri, 8 Aug 2014 21:51:09 +0000]
org.texi: Fix e5aceea

12 days agoorg.texi: Fixes to Texinfo documentation
Nicolas Goaziou [Fri, 8 Aug 2014 21:35:24 +0000]
org.texi: Fixes to Texinfo documentation

12 days agoox-texinfo: Fix blank lines between in items
Nicolas Goaziou [Fri, 8 Aug 2014 20:42:08 +0000]
ox-texinfo: Fix blank lines between in items

* lisp/ox-texinfo.el (org-texinfo-item): Fix blank lines between
  items.

13 days agoorg.texi: Document Texinfo export back-end
Nicolas Goaziou [Thu, 31 Jul 2014 08:40:18 +0000]
org.texi: Document Texinfo export back-end

2 weeks agoox-texinfo: Code comments clean-up
Nicolas Goaziou [Wed, 6 Aug 2014 21:53:42 +0000]
ox-texinfo: Code comments clean-up

2 weeks agoox-texinfo: Fix plain lists export
Nicolas Goaziou [Wed, 6 Aug 2014 21:46:04 +0000]
ox-texinfo: Fix plain lists export

* lisp/ox-texinfo.el (org-texinfo-plain-list): Fix format string.
  Small refactoring.

2 weeks agoox-texinfo: Allow to set a different title for hard copy
Nicolas Goaziou [Tue, 5 Aug 2014 20:53:19 +0000]
ox-texinfo: Allow to set a different title for hard copy

* lisp/ox-texinfo.el (texinfo): Provide new export property.
(org-texinfo-template): Use dedicated title for hard copy, when
available.

2 weeks agoox-texinfo: Appendix has precedence over regular sectionning
Nicolas Goaziou [Tue, 5 Aug 2014 07:59:00 +0000]
ox-texinfo: Appendix has precedence over regular sectionning

* lisp/ox-texinfo.el (org-texinfo-headline): Always obey to
  a non-nil :APPENDIX: property.  Small refactoring.

2 weeks agoox-texinfo: Fix verse block export
Nicolas Goaziou [Mon, 4 Aug 2014 13:21:51 +0000]
ox-texinfo: Fix verse block export

* lisp/ox-texinfo.el (org-texinfo-verse-block): Generate somewhat
  meaningful Texinfo code instead of LaTeX.

2 weeks agoox-texinfo: Fix table export
Nicolas Goaziou [Mon, 4 Aug 2014 13:03:29 +0000]
ox-texinfo: Fix table export

* lisp/ox-texinfo.el (org-texinfo-table): Remove reference to
  "verbatim" attribute.  Handle table.el tables.  Tiny refactoring.
(org-texinfo-table--org-table, org-texinfo-table--table.el-table):
Remove functions.
(org-texinfo-table-column-widths): Indent code correctly.  Ignore
special column, if any.  Add a comment about the limitation on the
width computation.
(org-texinfo-table-row): Small refactoring.

2 weeks agoox-texinfo: Fix @setfilename command
Nicolas Goaziou [Mon, 4 Aug 2014 09:48:09 +0000]
ox-texinfo: Fix @setfilename command

* lisp/ox-texinfo.el (texinfo): Do not provide a default value for
  @setfilename value.
(org-texinfo-filename): Remove variable.
(org-texinfo-template): Correctly find value for @setfilename command.
If none is possible, do not provide the command at all.

2 weeks agoox: Provide output file name, if any, to back-ends
Nicolas Goaziou [Mon, 4 Aug 2014 08:53:54 +0000]
ox: Provide output file name, if any, to back-ends

* lisp/ox.el (org-export-to-file): Provide output file name in
  communication channel, through :output-file property.

This change is needed to fix back-ends needing this information during
the process, e.g., `texinfo'.

2 weeks agoox-texinfo: Do not hardcode "Manual" in top node
Nicolas Goaziou [Mon, 4 Aug 2014 00:31:36 +0000]
ox-texinfo: Do not hardcode "Manual" in top node

* lisp/ox-texinfo.el (org-texinfo-template): Do not hardcode "Manual"
  in top node.

2 weeks agoox-texinfo: Fix `org-texinfo-classes'
Nicolas Goaziou [Mon, 4 Aug 2014 09:47:40 +0000]
ox-texinfo: Fix `org-texinfo-classes'

* lisp/ox-texinfo.el (org-texinfo-classes): Change default value.
  Update docstring.
(org-texinfo-template): Insert header string from current class after
"@settitle" command.  Always provide "\input texinfo" at the beginning
of the output.

Header string in the class was inserted before "@setfilename".
Texinfo ignores anything between "\input texinfo" and that command,
making any value besides the default one useless.

2 weeks agoox-texinfo: Remove spurious blank lines in output
Nicolas Goaziou [Tue, 5 Aug 2014 08:52:14 +0000]
ox-texinfo: Remove spurious blank lines in output

* lisp/ox-texinfo.el (org-texinfo-template): Remove spurious blank
  lines in output.  Refactor code.

2 weeks agoox-texinfo: Fix multi-line subtitles
Nicolas Goaziou [Sun, 3 Aug 2014 23:17:47 +0000]
ox-texinfo: Fix multi-line subtitles

* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line subtitles.

2 weeks agoox-texinfo: Check options before inserting TOC
Nicolas Goaziou [Sun, 3 Aug 2014 23:12:45 +0000]
ox-texinfo: Check options before inserting TOC

* lisp/ox-texinfo.el (org-texinfo-template): Make sure table of
  contents are allowed before inserting them.

2 weeks agoox-texinfo: Handle documents without copying information
Nicolas Goaziou [Sun, 3 Aug 2014 23:10:10 +0000]
ox-texinfo: Handle documents without copying information

* lisp/ox-texinfo.el (org-texinfo-template): Check if copying data is
  not nil before using it.

2 weeks agoox-texinfo: Properly handle subauthors and email
Nicolas Goaziou [Sun, 3 Aug 2014 23:02:41 +0000]
ox-texinfo: Properly handle subauthors and email

* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line
  subauthors.  Correctly add email, when provided.  Check if author
  info is wanted first.

This patch also removes AUTHOR variable since it's up to the user to
set it or not, through a class or a header keyword.

2 weeks agoox-texinfo: Fix docstrings
Nicolas Goaziou [Sun, 3 Aug 2014 22:17:20 +0000]
ox-texinfo: Fix docstrings

* lisp/ox-texinfo.el (org-texinfo-node-description-column,
  org-texinfo-format-drawer-function): Fix docstrings.

2 weeks agoox-texinfo: Fix comments handling
Nicolas Goaziou [Sun, 3 Aug 2014 22:12:11 +0000]
ox-texinfo: Fix comments handling

* lisp/ox-texinfo.el (texinfo): Make sure comments are ignored.
(org-texinfo-comment, org-texinfo-comment-block): Remove functions.

This is consistent with all other back-ends, which ignore any comment.

2 weeks agoox-texinfo: Fix error with wide @direntry
Nicolas Goaziou [Sun, 3 Aug 2014 20:30:11 +0000]
ox-texinfo: Fix error with wide @direntry

* lisp/ox-texinfo.el (org-texinfo-template): Properly pad @direntry
  description.

3 weeks agoorg-element: Fix docstring
Nicolas Goaziou [Thu, 31 Jul 2014 10:17:35 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-headline-parser): Add missing
  `:post-blank' property in docstring.

3 weeks agoProtect open buffers when publishing sitemap release_8.2.7c
Matt Lundin [Tue, 29 Jul 2014 18:35:41 +0000]
Protect open buffers when publishing sitemap

* lisp/ox-publish.el: (org-publish-find-title) (org-publish-find-date)
  Make sure to call org-export-get-environment in copy of buffer if
  emacs is already visiting. Otherwise, #+bind variables meant for
  export can be set in live buffers.

This patch also optimizes the above functions by inhibiting
org-startup on buffers emacs visits temporarily.

3 weeks agoFix docstring of org-agenda-inhibit-startup
Matt Lundin [Tue, 29 Jul 2014 15:59:19 +0000]
Fix docstring of org-agenda-inhibit-startup

* lisp/org.el: org-agenda-inhibit-startup: fix docstring to reflect
  default value

3 weeks agomk/targets.mk: consider only release_* tags for constructing version strings
Achim Gratz [Wed, 2 Jul 2014 18:32:24 +0000]
mk/targets.mk: consider only release_* tags for constructing version strings

Cherry-picked from d1692902f1, which was dropped by force-pushing 79873390ed.

3 weeks agoRemove unnecessary invocations of org-mode
Matt Lundin [Tue, 29 Jul 2014 04:56:42 +0000]
Remove unnecessary invocations of org-mode

* lisp/ox-publish.el: (org-publish-find-title) (org-publish-find-date)
  Fix unnecessary invocations of org-mode with
  org-inhibit-startup.

The functions above call org-mode with org-inhibit-startup in org
buffers that are already open. The result is that these open buffers
lose some crucial local variables during publishing. For instance,
an open buffer will lose its dir-local-variables-alist setting
during publishing. There is no need to call org-mode here, because
org-mode is a) either already initialized in the buffer or b)
initialized via earlier call to find-file-no-select.

This looks to me like a relic of some past time when these functions were
called in temporary buffers that contained copies of the file's contents.

3 weeks agoorg-agenda.el (org-agenda-prepare): Reset preset filters
Bastien Guerry [Mon, 28 Jul 2014 17:22:53 +0000]
org-agenda.el (org-agenda-prepare): Reset preset filters

* org-agenda.el (org-agenda-prepare): Reset preset filters
when using sticky agendas.

Thanks to Thomas Morgan for reporting this.

3 weeks agoorg-agenda.el (org-agenda-get-sexps): Don't add tags as text properties
Bastien Guerry [Mon, 28 Jul 2014 16:21:58 +0000]
org-agenda.el (org-agenda-get-sexps): Don't add tags as text properties

* org-agenda.el (org-agenda-get-sexps): Don't add tags as text
properties.

Thanks to Raimund Berger for reporting this.

3 weeks agoorg-capture.el (org-capture-fill-template): Small fix
Bastien Guerry [Mon, 28 Jul 2014 16:08:34 +0000]
org-capture.el (org-capture-fill-template): Small fix

* org-capture.el (org-capture-fill-template): Take
`org-extend-today-until' into account when setting the format
time string.

3 weeks agoox-latex: Fix defcustoms
Nicolas Goaziou [Mon, 28 Jul 2014 13:25:50 +0000]
ox-latex: Fix defcustoms

* lisp/ox-latex.el (org-latex-table-scientific-notation): Set
  appropriate value.
(org-latex-listings-options): Fix docstring.

3 weeks agoorg.el (org-paste-subtree): Fix match subexpression
Bastien Guerry [Sun, 27 Jul 2014 23:02:50 +0000]
org.el (org-paste-subtree): Fix match subexpression

* org.el (org-paste-subtree): Fix match subexpression.

Thanks to Anders Johansson for reporting this.

3 weeks agoorg.texi (Key bindings and useful functions): Fix typos
Bastien Guerry [Sun, 27 Jul 2014 18:19:18 +0000]
org.texi (Key bindings and useful functions): Fix typos

* org.texi (Key bindings and useful functions): Fix typo.  Use
the correct function's name.

Thanks to Marco Wahl for the suggested fix.

3 weeks agoox: Implement predicate for export blocks
Nicolas Goaziou [Sat, 26 Jul 2014 15:18:10 +0000]
ox: Implement predicate for export blocks

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

* testing/lisp/test-ox.el (test-org-export/raw-special-block-p): New
  test.

This patch is a forward-compatibility measure since the function is
mandatory for export back-ends in Org 8.3. It makes it easier for
back-end maintainers to provide a back-end compatible with both Org
8.2 and 8.3.

3 weeks agoorg-element: Fix parsing multi-line links
Nicolas Goaziou [Sat, 26 Jul 2014 08:47:29 +0000]
org-element: Fix parsing multi-line links

* lisp/org-element.el (org-element-link-parser): Properly handle
  multi-line links according to RFC 3986 when enclosed within square
  brackets.

* testing/lisp/test-org-element.el (test-org-element/link-parser): Add
  test.

3 weeks agoorg-element: Fix object parsing in captions
Nicolas Goaziou [Fri, 25 Jul 2014 12:47:38 +0000]
org-element: Fix object parsing in captions

* lisp/org-element.el (org-element-parse-secondary-string): Clone all
  local variables from current buffer before parsing a secondary
  string.  Small refactoring.
(org-element-object-variables): Remove variable.

* testing/lisp/test-org-element.el (test-org-element/secondary-string-parsing):
  Add test.

Thanks to Thomas S. Dye for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88850

3 weeks agoox-odt: Silence byte-compiler
Nicolas Goaziou [Fri, 25 Jul 2014 09:20:49 +0000]
ox-odt: Silence byte-compiler

* lisp/ox-odt.el (org-odt--format-paragraph): Change signature to
  include info.
(org-odt-footnote-reference, org-odt-paragraph): Apply signature
change.

3 weeks agoorg-clock: Update syntax for indentation in clock tables
Nicolas Goaziou [Fri, 25 Jul 2014 09:02:55 +0000]
org-clock: Update syntax for indentation in clock tables

* lisp/org-clock.el (org-clocktable-indent-string): Use "\emsp"
  instead of "\__", which is not supported anymore since Org 8.0.

Thanks to Buddy Butterfly for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88842

4 weeks agoox-odt: Fix handling of quoted and centered paragraphs
Nicolas Goaziou [Thu, 24 Jul 2014 12:48:47 +0000]
ox-odt: Fix handling of quoted and centered paragraphs

* lisp/ox-odt.el (org-odt--paragraph-style): New function.
(org-odt--format-paragraph): Use new function to get proper style to
apply.

Thanks to Baptiste for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/88798

4 weeks agoWhen editing a table formula, point is not necessarily on its referent.
Nick Dokos [Tue, 22 Jul 2014 21:11:36 +0000]
When editing a table formula, point is not necessarily on its referent.

* org-table.el (org-table-show-reference): Call `set-window-start'
  with the calculated values `min' and `max', not with
  (point-min) and (point-max).

Reported by Luke Crook (http://article.gmane.org/gmane.emacs.orgmode/88610)
    Thorsten Grothe (http://thread.gmane.org/gmane.emacs.orgmode/88698)
    and Robert Klein in the latter thread.

Robert Klein bisected it down to 30220ffcdcef45c0237f80a2347d4da19877f64a.

4 weeks agoorg-element: Fix test failure
Nicolas Goaziou [Wed, 23 Jul 2014 08:07:55 +0000]
org-element: Fix test failure

* lisp/org-element.el (org-element--current-element): Fix regexp.

4 weeks agoorg-element: Fix regexp matching LaTeX environments
Nicolas Goaziou [Tue, 22 Jul 2014 09:52:32 +0000]
org-element: Fix regexp matching LaTeX environments

* lisp/org-element.el (org-element--current-element): Fix regexp
  matching latex environments.  Discrepancy with regexp used in
  `org-element-latex-environment-parser' introduced matching errors.

4 weeks agoorg-clean-before-export matches non-special columns spuriously
Nick Dokos [Fri, 18 Jul 2014 13:09:38 +0000]
org-clean-before-export matches non-special columns spuriously

* org-table.el (org-table-clean-before-export): The regexes match
  spaces in addition to the special characters that might be used in
  the first column as special marking characters.  Remove the space
  from the character class.

  In addition, the `special' variable included a backslash which
  afaict does nothing: delete it.

  The function itself takes an optional parameter which is not used by
  any of the callers: get rid of it.  Getting rid of it allows a small
  simplification of the code.

The bug was found by Thorsten Grothe:

    http://thread.gmane.org/gmane.emacs.orgmode/88634

8 weeks agoox-ascii: Fix tables with a width cookie
Nicolas Goaziou [Thu, 26 Jun 2014 10:17:28 +0000]
ox-ascii: Fix tables with a width cookie

* lisp/ox-ascii.el (org-ascii--table-cell-width): Correctly export
  tables with width cookies.

8 weeks agoFix typos: backport revision r117377 from emacs trunk release_8.2.7b
Bastien Guerry [Mon, 23 Jun 2014 07:40:19 +0000]
Fix typos: backport revision r117377 from emacs trunk

2 months agoorg.el: Delete `org-fix-ellipsis-at-bol'
Bastien Guerry [Fri, 20 Jun 2014 06:41:34 +0000]
org.el: Delete `org-fix-ellipsis-at-bol'

* org.el (org-fix-ellipsis-at-bol): Delete.
(org-mode, org-show-context, org-isearch-end): Don't use
`org-fix-ellipsis-at-bol'.

2 months agoox-koma-letter.el (koma-letter): Use `org-koma-letter-from-address' release_8.2.7a
IOhannes m zmoelnig [Wed, 18 Jun 2014 22:47:42 +0000]
ox-koma-letter.el (koma-letter): Use `org-koma-letter-from-address'

* ox-koma-letter.el (koma-letter): Use
`org-koma-letter-from-address'.

TINYCHANGE

2 months agoorg-agenda.el (org-agenda-filter-apply): Fix setting of `org-agenda-filtered-by-category'
Bastien Guerry [Mon, 16 Jun 2014 09:41:14 +0000]
org-agenda.el (org-agenda-filter-apply): Fix setting of `org-agenda-filtered-by-category'

* org-agenda.el (org-agenda-filter-apply): Fix setting of
`org-agenda-filtered-by-category'.

2 months agoorg.el (org-fontify-meta-lines-and-blocks-1): Fix handling of `org-hidden-keywords'
Bastien Guerry [Sun, 15 Jun 2014 08:49:01 +0000]
org.el (org-fontify-meta-lines-and-blocks-1): Fix handling of `org-hidden-keywords'

* org.el (org-fontify-meta-lines-and-blocks-1): Fix handling
of `org-hidden-keywords'.

Thanks to Leu Zhe for reporting this.

2 months agoorg-agenda.el (org-cmp-ts): Fix agenda entry type checking
Bastien Guerry [Sun, 15 Jun 2014 08:43:17 +0000]
org-agenda.el (org-cmp-ts): Fix agenda entry type checking

* org-agenda.el (org-cmp-ts): Fix agenda entry type checking.

Thanks to Trevor Murphy for reporting this.

2 months agoorg-agenda.el (org-entries-lessp): Fix inactive timestamp comparison
Bastien Guerry [Sun, 15 Jun 2014 08:36:59 +0000]
org-agenda.el (org-entries-lessp): Fix inactive timestamp comparison

* org-agenda.el (org-entries-lessp): Fix inactive timestamp
comparison.

2 months agoorg-macs: Remove restriction when locating markers
Bernt Hansen [Sun, 15 Jun 2014 02:50:07 +0000]
org-macs: Remove restriction when locating markers

* org-macs.el: Remove restriction when locating markers

Allows org-with-point-at to locate point outside the current
restriction.

2 months agofix semi-backend bug in org-mime release_8.2.7
Eric Schulte [Thu, 12 Jun 2014 18:40:32 +0000]
fix semi-backend bug in org-mime

* contrib/lisp/org-mime.el (org-mime-multipart): Fix bug in use of the
  semi org-mime-library when converting emails to HTML.

2 months agoFix 30220ff
Bastien Guerry [Thu, 12 Jun 2014 13:25:42 +0000]
Fix 30220ff

2 months agoorg-agenda.el: Fix bug when redoing sticky agendas with log mode and/or clockreport...
Bastien Guerry [Thu, 12 Jun 2014 13:07:35 +0000]
org-agenda.el: Fix bug when redoing sticky agendas with log mode and/or clockreport mode on

* org-agenda.el (org-agenda-mode): Let `org-agenda-redo' DTRT
when agenda are sticky.
(org-agenda-tag-filter-while-redo): Delete.
(org-agenda-list, org-agenda-redo, org-agenda-filter-by-tag):
Remove unused code.
(org-agenda-clockreport-mode, org-agenda-set-mode-name): Don't
consider tag filters.

Thanks to Bernt Hansen for reporting this.

2 months agoPrefer `set-window-start' over `recenter' in some places.
Bastien Guerry [Thu, 12 Jun 2014 10:04:24 +0000]
Prefer `set-window-start' over `recenter' in some places.

* org-agenda.el (org-agenda-show-1):
* org-table.el (org-table-show-reference):
* org.el (org-fix-ellipsis-at-bol)
(org-first-headline-recenter): Use `set-window-start' instead
of `recenter'.

* org-agenda.el (org-recenter-heading): Delete.

2 months agoorg.el (org-insert-heading): Be more consistent in respecting content
Bastien Guerry [Wed, 11 Jun 2014 15:45:13 +0000]
org.el (org-insert-heading): Be more consistent in respecting content

* org.el (org-insert-heading): With one universal prefix
argument or `org-insert-heading-respect-content' set to `t',
always respect the content, i.e. don't insert a list item and
don't convert normal lines into headings.  Update docstring.
(org-insert-heading-respect-content): Remove unused arg.
(org-insert-todo-heading-respect-content): Don't use
`org-insert-todo-heading-respect-content', use the second
argument of `org-insert-todo-heading' instead.

* org-mobile.el (org-mobile-edit): Use only one arg.

Thanks to Bernt Hansen for reporting this.

2 months agoorg.el (org-overview): Don't call `recenter'
Bastien Guerry [Thu, 15 May 2014 09:11:43 +0000]
org.el (org-overview): Don't call `recenter'

* org.el (org-overview): Don't call `recenter'.

Thanks to Nicolas Richard for suggesting this.

2 months agoFix `org-insert-heading' before first headline
Nicolas Goaziou [Mon, 9 Jun 2014 16:07:07 +0000]
Fix `org-insert-heading' before first headline

* lisp/org.el (org-insert-heading): Fix error when inserting
  a headline before first headline, with point not at bol.  Remove
  source block check for consistency with behavior after first
  headline.  Tiny fix to docstring.

* testing/lisp/test-org.el (test-org/meta-return): Remove unnecessary
  test (not testing specifications).
(test-org/insert-heading): New test.

2 months agoFix typo
Nicolas Goaziou [Tue, 3 Jun 2014 21:28:08 +0000]
Fix typo

* lisp/org.el (org-scan-tags): Fix typo in docstring.

2 months agoox: Fix priority bug in :title property
Nicolas Goaziou [Tue, 3 Jun 2014 20:07:35 +0000]
ox: Fix priority bug in :title property

* lisp/ox.el (org-export--get-inbuffer-options): Return the empty
  string instead of nil when TITLE keywords has no value.
(org-export--get-buffer-attributes): Do not set :title property
early.
(org-export--get-global-options): Do not ignore anymore nil values.
Small refactoring.
(org-export-as): Correctly set :title here.

Thanks to Nicolas Richard for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/87149

2 months agomk/server.mk: add testing/ directory to distribution tarball
Achim Gratz [Mon, 2 Jun 2014 17:33:27 +0000]
mk/server.mk: add testing/ directory to distribution tarball

* mk/server.mk (ORGFULL): Add testing/ directory to distribution
  tarball.

2 months agoMakefile: remove empty line in help output
Achim Gratz [Mon, 2 Jun 2014 17:32:26 +0000]
Makefile: remove empty line in help output

* Makefile (help helpall): Remove empty line in help output.

2 months agoorg-agenda.el (org-agenda-custom-commands-local-options): Fix misquoted values
Bastien Guerry [Mon, 2 Jun 2014 17:59:36 +0000]
org-agenda.el (org-agenda-custom-commands-local-options): Fix misquoted values

* org-agenda.el (org-agenda-custom-commands-local-options):
Fix misquoted values.

Thanks to Thomas Morgan for reporting this.

2 months agoorg.el: Fix setting and deleting properties with a null value
Bastien Guerry [Mon, 2 Jun 2014 13:40:04 +0000]
org.el: Fix setting and deleting properties with a null value

* org.el (org-property-re): Also match null properties by
default.
(org-entry-delete): Also delete null properties.
(org-read-property-value): Allow the empty string as a new
value.
(org-delete-property): Throw a message when there is not
property to delete.

Thanks to Andrea Rossetti for reporting this.

2 months agoorg.texi: Add f-1 to TBLFM example about nan
Michael Brand [Sun, 1 Jun 2014 13:27:07 +0000]
org.texi: Add f-1 to TBLFM example about nan

* doc/org.texi (Formula syntax for Calc): Add `f-1' to TBLFM example
about `nan'.

2 months agoReverting "org-footnote: forward declare functions"
Achim Gratz [Sun, 1 Jun 2014 12:28:13 +0000]
Reverting "org-footnote: forward declare functions"
Revert "org-footnote: forward declare functions"

This reverts commit 814188ac7e25c500433c13d8696af47d62f0de23.

Accidentally applied to the wrong branch.

2 months agoorg-footnote: forward declare functions
Achim Gratz [Sun, 1 Jun 2014 12:19:25 +0000]
org-footnote: forward declare functions

* lisp/org-footnote.el: Forward declare `org-element-context',
  `org-element-property' and `org-element-type'.

Introduced with 51e1131ff8.

2 months agoorg-list: Fix typo in docstring
Nicolas Goaziou [Sun, 1 Jun 2014 12:20:12 +0000]
org-list: Fix typo in docstring

* lisp/org-list.el (org-list-repair): Fix typo in docstring.

2 months agoDocumentation fix
Nicolas Goaziou [Sun, 1 Jun 2014 06:52:16 +0000]
Documentation fix

* doc/org.texi (Include files):
* doc/orgguide.texi (Include files): Remove reference to non-existent
  "quote" markup.

2 months agoorg-agenda.el (org-agenda-insert-diary-make-new-entry): Fix docstring
Bastien Guerry [Fri, 30 May 2014 11:58:50 +0000]
org-agenda.el (org-agenda-insert-diary-make-new-entry): Fix docstring

* org-agenda.el (org-agenda-insert-diary-make-new-entry): Fix
docstring.

Thanks to Nikolai Weibull for reporting this.

2 months agoorg.el: Fix bug when setting properties with a null value
Bastien Guerry [Fri, 30 May 2014 06:46:39 +0000]
org.el: Fix bug when setting properties with a null value

* org.el (org-re-property): New parameter `allow-null' to
match property with a null value.
(org-entry-put): Correctly update a property with a null
value.

Thanks to Andrea Rossetti for reporting this and suggesting a fix.

2 months agoox-md.el (org-md-headline): Add anchors when exporting with a table of contents
Bastien Guerry [Thu, 29 May 2014 19:20:55 +0000]
ox-md.el (org-md-headline): Add anchors when exporting with a table of contents

* ox-md.el (org-md-headline): When exporting with a HTML table
of contents, add HTML anchors to Markdown headlines.

Thanks to Marko Dimjašević for reporting this.

2 months agoorg.el (org-insert-heading): Don't insert an item when called with two universal...
Bastien Guerry [Thu, 29 May 2014 17:48:47 +0000]
org.el (org-insert-heading): Don't insert an item when called with two universal prefix arguments

* org.el (org-insert-heading): Don't insert an item when
called with two universal prefix arguments.

2 months agoorg-agenda.el (org-agenda-finalize): Remove duplicate check for 'org-hd-marker
Bastien Guerry [Thu, 29 May 2014 07:57:19 +0000]
org-agenda.el (org-agenda-finalize): Remove duplicate check for 'org-hd-marker

* org-agenda.el (org-agenda-finalize): Remove duplicate check
for 'org-hd-marker.