org-mode.git
4 years agoob-core.el: Do not ask for confirmation if cached value is current
Achim Gratz [Tue, 26 Feb 2013 20:23:37 +0000 (21:23 +0100)]
ob-core.el: Do not ask for confirmation if cached value is current

* ob-core.el (org-babel-execute-src-block): Do not run
`org-babel-confirm-evaluate´ if source block has a cache and the
cache value is current (there is no evaluation involved in this
case).

4 years agoMerge branch 'maint'
Bastien Guerry [Wed, 27 Feb 2013 07:46:36 +0000 (08:46 +0100)]
Merge branch 'maint'

4 years agoFix commit 41882a99
Bastien Guerry [Wed, 27 Feb 2013 07:46:26 +0000 (08:46 +0100)]
Fix commit 41882a99

Thanks to Tassilo Horn for reporting this.

4 years agoSlideshow bugfixes and sync with ox-html function name changes.
Rick Frankel [Tue, 26 Feb 2013 19:26:27 +0000 (14:26 -0500)]
Slideshow bugfixes and sync with ox-html function name changes.

* contrib/lisp/ox-deck.el: Default org-deck-directories to "./deck.js".
(org-deck-toc): Sync w/ ox-html name change (org-html--toc-text.)
(org-deck-inner-template): Remove duplicate toc generation code.
* contrib/lisp/ox-s5.el: Add inner template to fix duplicate content
  div error.
(org-s5-toc): Sync w/ ox-html name change (org-html--toc-text) and
make toc entries static since s5 doesn't support deep linking.

4 years agoorg-element: OPTIONAL_TITLE becomes ALT_TITLE property
Nicolas Goaziou [Tue, 26 Feb 2013 23:00:33 +0000 (00:00 +0100)]
org-element: OPTIONAL_TITLE becomes ALT_TITLE property

* lisp/org-element.el (org-element-headline-parser):
  Rename :optional-title into :alt-title.
* lisp/ox.el (org-export-get-alt-title): Renamed from
  `org-export-get-optional-title'.
* lisp/ox-ascii.el (org-ascii--build-title): Apply name change.
* lisp/ox-html.el (org-html--format-toc-headline): Apply name change.
* lisp/ox-latex.el (org-latex-headline): Apply name change.
* lisp/ox-texinfo.el (org-texinfo--get-node,
  org-texinfo--generate-menu-items): Apply name change.
* testing/lisp/test-ox.el: Update tests.
* doc/org.texi (Table of contents): Update documentation.

4 years agoFix function declaration
Nicolas Goaziou [Tue, 26 Feb 2013 22:47:07 +0000 (23:47 +0100)]
Fix function declaration

4 years agoox: Fix bug where properties read from setupfile overwrite previous properties
Nicolas Goaziou [Tue, 26 Feb 2013 22:32:36 +0000 (23:32 +0100)]
ox: Fix bug where properties read from setupfile overwrite previous properties

* lisp/ox.el (org-export--get-inbuffer-options): Remove an optional
  argument.  Rewrite function.  Properties read from a setupfile do
  not overwrite anymore previously computed properties.
(org-export-get-environment): Apply changes to previous function.
* lisp/org.el (org-create-formula--latex-header): Apply arity change
  from `org-export--get-inbuffer-options'.
* testing/lisp/test-ox.el: Add test.
* testing/examples/setupfile.org: New file.

4 years agoorg-mew.el: Major enhancement
Tokuya Kameshima [Tue, 26 Feb 2013 22:28:58 +0000 (23:28 +0100)]
org-mew.el: Major enhancement

* org-mew.el (org-mew-inbox-folder, org-mew-use-id-db)
(org-mew-subject-alist, org-mew-capture-inbox-folders)
(org-mew-capture-guess-alist): New options.
(org-mew-store-link, org-mew-open): Rewrite.
(org-mew-folder-name, org-mew-follow-link)
(org-mew-folder-eixsts-p, org-mew-get-msgnum)
(org-mew-open-by-message-id, org-mew-search, org-mew-capture)
(org-mew-capture-guess-selection-keys): New functions.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 22:17:42 +0000 (23:17 +0100)]
Merge branch 'maint'

4 years agocontrib/org-toc.el: add forward and back commands
Aaron Ecay [Tue, 26 Feb 2013 19:45:09 +0000 (14:45 -0500)]
contrib/org-toc.el: add forward and back commands

These commands navigate among siblings in the outline, and are bound to
the ‘f’ and ‘b’ keys.  Move the function for toggling toc-follow to ‘F’.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 21:45:41 +0000 (22:45 +0100)]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 years agoFix a longstanding issue with ellispsis on top of the window
Bastien Guerry [Tue, 26 Feb 2013 21:45:04 +0000 (22:45 +0100)]
Fix a longstanding issue with ellispsis on top of the window

* org.el (org-show-context): Remove useless catch.  Make sure the
top of the window is a visible headline.
* org.el (org-activate-plain-links): Remove unused catch.

* org-macs.el (org-get-alist-option): Return nil, not (nil), so
that `org-show-context' DTRT.

Thanks to Samuel Wales for his patience in reporting this.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 21:02:25 +0000 (22:02 +0100)]
Merge branch 'maint'

4 years agoorg.el (org-imenu-get-tree): Fix bug when matching against empty headlines
Bastien Guerry [Tue, 26 Feb 2013 21:02:13 +0000 (22:02 +0100)]
org.el (org-imenu-get-tree): Fix bug when matching against empty headlines

* org.el (org-imenu-get-tree): Fix bug when matching against empty
headlines.

Thanks to Jambunathan for reporting this.

4 years agoorg.el: Add :version and :package-version to `orgstruct-heading-prefix-regexp'
Bastien Guerry [Tue, 26 Feb 2013 17:23:53 +0000 (18:23 +0100)]
org.el: Add :version and :package-version to `orgstruct-heading-prefix-regexp'

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 26 Feb 2013 17:21:40 +0000 (18:21 +0100)]
Merge branch 'master' of orgmode.org:org-mode

4 years agoBump :version to "24.4" and add :package-version.
Bastien Guerry [Tue, 26 Feb 2013 17:21:28 +0000 (18:21 +0100)]
Bump :version to "24.4" and add :package-version.

The options updated are those who won't be in Emacs 24.3.

4 years agoRemove :version keyword in non-emacs libraries
Bastien Guerry [Tue, 26 Feb 2013 16:57:13 +0000 (17:57 +0100)]
Remove :version keyword in non-emacs libraries

4 years agocontrib/babel/langs/ob-mathomatic.el: Delete whitespaces
Bastien Guerry [Tue, 26 Feb 2013 16:56:36 +0000 (17:56 +0100)]
contrib/babel/langs/ob-mathomatic.el: Delete whitespaces

4 years agoorg.el: Rebind structure-related variables within org-run-like-in-org-mode
Christopher Schmidt [Tue, 26 Feb 2013 16:51:03 +0000 (17:51 +0100)]
org.el: Rebind structure-related variables within org-run-like-in-org-mode

* org.el (orgstruct-make-binding): Rebind structure-related
variables within org-run-like-in-org-mode.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 15:28:36 +0000 (16:28 +0100)]
Merge branch 'maint'

4 years agoorg.el (org-overview): Stay on current line
Bastien Guerry [Tue, 26 Feb 2013 15:28:30 +0000 (16:28 +0100)]
org.el (org-overview): Stay on current line

* org.el (org-overview): Stay on current line.

This circumvents a bug in hide-sublevels which displays the
"..." ellipsis on top of the window when hiding levels that
are past the middle of the window---at least this is the
way I could understand the problem.

Thanks to Samuel Wales for reporting the problem, Arun Persaud and
William for creating reproducible recipes, Suvayu Ali, Nick Dokos
and Achim Gratz for further help.

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 26 Feb 2013 15:14:40 +0000 (16:14 +0100)]
Merge branch 'master' of orgmode.org:org-mode

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 15:14:03 +0000 (16:14 +0100)]
Merge branch 'maint'

Conflicts:
lisp/org.el

4 years agoFix commit 83bebfd8808
Bastien Guerry [Tue, 26 Feb 2013 15:13:39 +0000 (16:13 +0100)]
Fix commit 83bebfd8808

4 years agoupdated org-bullets to 0.2.2
sabof [Tue, 26 Feb 2013 14:33:30 +0000 (14:33 +0000)]
updated org-bullets to 0.2.2

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 14:14:42 +0000 (15:14 +0100)]
Merge branch 'maint'

4 years agoorg.el (org-map-entries): Fix docstring
Bastien Guerry [Tue, 26 Feb 2013 14:14:37 +0000 (15:14 +0100)]
org.el (org-map-entries): Fix docstring

* org.el (org-map-entries): Fix docstring.

Thanks to Christopher Schmidt for reporting this.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 13:37:15 +0000 (14:37 +0100)]
Merge branch 'maint'

4 years agoFix typo.
Bastien Guerry [Tue, 26 Feb 2013 13:37:05 +0000 (14:37 +0100)]
Fix typo.

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 13:36:36 +0000 (14:36 +0100)]
Merge branch 'maint'

Conflicts:
contrib/oldexp/org-exp.el
lisp/org.el

4 years agoUse `org-autoload' instead of `autoload'.
Bastien Guerry [Tue, 26 Feb 2013 13:35:25 +0000 (14:35 +0100)]
Use `org-autoload' instead of `autoload'.

4 years agoRemove top-level autoloads sexps.
Bastien Guerry [Tue, 26 Feb 2013 13:35:01 +0000 (14:35 +0100)]
Remove top-level autoloads sexps.

These autoloads were erroneously introduced by commit e4c31cf98.

4 years agoUse `org-latex-compile' when processing formulas with imagemagick
Nicolas Goaziou [Tue, 26 Feb 2013 08:28:59 +0000 (09:28 +0100)]
Use `org-latex-compile' when processing formulas with imagemagick

* lisp/ox-latex.el (org-latex-compile): Add an optional argument for
  latex snippet previewing.
* lisp/org.el (org-create-formula-image-with-imagemagick): Use
  `org-latex-compile' instead of rewriting it.

4 years agomk/server.mk: Add the AUTHORS file to ORGFULL
Bastien Guerry [Tue, 26 Feb 2013 10:31:06 +0000 (11:31 +0100)]
mk/server.mk: Add the AUTHORS file to ORGFULL

We do not add this file to the ELPA-with-contrib distribution
since the list of AUTHORS includes authors of contributed files.

4 years agoAdd AUTHORS, update contrib/README, clean-up and fix comment sections in other files
Bastien Guerry [Tue, 26 Feb 2013 10:28:59 +0000 (11:28 +0100)]
Add AUTHORS, update contrib/README, clean-up and fix comment sections in other files

4 years agoMerge branch 'maint'
Bastien Guerry [Tue, 26 Feb 2013 10:09:06 +0000 (11:09 +0100)]
Merge branch 'maint'

4 years agoFix commit b6b509.
Bastien Guerry [Tue, 26 Feb 2013 10:08:50 +0000 (11:08 +0100)]
Fix commit b6b509.

Thanks to Sébastien Vauban for reporting this.

4 years agoRevert "ox: Use tabulated list mode for asynchronous stack"
Nicolas Goaziou [Tue, 26 Feb 2013 08:46:02 +0000 (09:46 +0100)]
Revert "ox: Use tabulated list mode for asynchronous stack"

This reverts commit a965c062133dea33dfddb5e3eabf373e2084b466.

4 years agoWhitespace cleanup
Rick Frankel [Mon, 25 Feb 2013 18:09:31 +0000 (13:09 -0500)]
Whitespace cleanup

4 years agoUpdate contributed slide output to use uppercase properties
Rick Frankel [Mon, 25 Feb 2013 17:55:32 +0000 (12:55 -0500)]
Update contributed slide output to use uppercase properties

* contrib/lisp/ox-deck.el: Change menu key to ?d to avoid conflict
  with ox-s5.
(org-deck-toc): Use HTML_CONTAINER_CLASS instead of html-container-class.
(org-deck-headline): Simplify code to use HTML_CONTAINER_CLASS
directly, and use org-element-get-relative-level.
(org-deck-item): Use uppercase property.

* contrib/lisp/ox-s5.el (s5): Add configuration variables for S5 meta data.
(org-s5--build-meta-info): ditto.
(org-s5-headline): Simplify code to use HTML_CONTAINER_CLASS directly,
and use org-element-get-relative-level.
(org-s5-plain-list): Use uppercase property.
(org-s5-template-alist): Fix bug. (Don't try and substring nil.)

4 years agoox-html: Fix stack overflow in regexp matching
Nicolas Goaziou [Mon, 25 Feb 2013 23:29:04 +0000 (00:29 +0100)]
ox-html: Fix stack overflow in regexp matching

* lisp/ox-html.el (org-html-fontify-code): Do not use [^\000] in
  regexps that may match large strings.

Thanks to Kyle Machulis for reporting it.

4 years agoRe-introduce #+latex_header value when previewing a LaTeX snippet
Nicolas Goaziou [Mon, 25 Feb 2013 23:04:05 +0000 (00:04 +0100)]
Re-introduce #+latex_header value when previewing a LaTeX snippet

* lisp/org.el (org-create-formula--latex-header): New function.
(org-create-formula-image-with-dvipng,
org-create-formula-image-with-imagemagick): Use new function.

This functionality was removed in
0484c5c64d9628ca68937f75c6c236f57128cadf, when clearing out old export
framework from "org.el".

4 years agoox: Change order of retured elements in `org-export-get-previous-element'
Nicolas Goaziou [Mon, 25 Feb 2013 22:16:14 +0000 (23:16 +0100)]
ox: Change order of retured elements in `org-export-get-previous-element'

* lisp/ox.el (org-export-get-previous-element): Change order of
  retured elements in `org-export-get-previous-element'.
* testing/lisp/test-ox.el: Update test.

4 years agoorg-element: Only allow plain links in links
Nicolas Goaziou [Mon, 25 Feb 2013 20:32:15 +0000 (21:32 +0100)]
org-element: Only allow plain links in links

* lisp/org-element.el (org-element-all-successors): Add `plain-link'
  successor.
(org-element-object-restrictions): Remove `link' within `link'.  Allow
`plain-link' instead.
(org-element-plain-link-successor): New function.
* testing/lisp/test-org-element.el: Add test.

Plain links within links are needed for the following kind of syntax:

  [[http://orgmode.org][file:unicorn.png]]

No other link type is allowed within links.

4 years agosub/superscript character has to follow a non-blank character
Nicolas Goaziou [Mon, 25 Feb 2013 20:30:16 +0000 (21:30 +0100)]
sub/superscript character has to follow a non-blank character

* lisp/org.el (org-match-substring-regexp,
  org-match-substring-with-braces-regexp): Update regexp.
  A sub/superscript cannot start anymore at the beginning of the line
  or after a space.

4 years agoorg-element: Refactor object parsing
Nicolas Goaziou [Mon, 25 Feb 2013 20:28:18 +0000 (21:28 +0100)]
org-element: Refactor object parsing

* lisp/org-element.el (org-element--get-next-object-candidates):
  Rewrite function to simplify algorithm.
(org-element-context, (org-element--parse-elements)): Apply
changes.
* lisp/org.el (org-fill-paragraph): Apply changes.

4 years agoox-texinfo.el: Fix node listing description formatting
Jonathan Leech-Pepin [Mon, 25 Feb 2013 17:25:45 +0000 (12:25 -0500)]
ox-texinfo.el: Fix node listing description formatting

* lisp/ox-texinfo.el (org-texinfo--format-menu): Ensure two spaces
  after :: before including description.  Also adjusted logic to
  insert description on desired column (by accounting for added text
  when inserting node.

4 years agoorg.el: Bind org-shift* in orgstruct-mode.
Christopher Schmidt [Mon, 25 Feb 2013 16:11:54 +0000 (17:11 +0100)]
org.el: Bind org-shift* in orgstruct-mode.

* org.el (orgstruct-setup): Bind org-shift*.

4 years agoox-texinfo.el: Use :OPTIONAL_TITLE: instead of backend-specific
Jonathan Leech-Pepin [Mon, 25 Feb 2013 15:59:03 +0000 (10:59 -0500)]
ox-texinfo.el: Use :OPTIONAL_TITLE: instead of backend-specific
property

* lisp/ox-texinfo.el (org-texinfo--get-node)
  and (org-texinfo--generate-menu-items): Use :OPTIONAL_TITLE:.
  (org-export-define-backend): Remove :TEXINFO_MENU_TITLE from
  options-alist

4 years agoox-texinfo.el: Fix issue with long headlines and node listings
Jonathan Leech-Pepin [Mon, 25 Feb 2013 15:44:18 +0000 (10:44 -0500)]
ox-texinfo.el: Fix issue with long headlines and node listings

* lisp/ox-texinfo.el (org-texinfo-node-description-column): New custom
  variable.
  (org-texinfo--format-menu): Use new variable to set column for
  description in node listings.  If the headline extends past this
  column, add the description after the headline.

The default column is 32 as suggested by Thomas S. Dye,
http://article.gmane.org/gmane.emacs.orgmode/66664

4 years agoox-texinfo.el: Add support for # in info links
Jonathan Leech-Pepin [Mon, 25 Feb 2013 15:28:04 +0000 (10:28 -0500)]
ox-texinfo.el: Add support for # in info links

* lisp/ox-texinfo.el (org-texinfo-link): Fixed info link exporting to
  recognize # as well as : when finding the info node.

Issue reported by Thomas S. Dye in
http://article.gmane.org/gmane.emacs.orgmode/66655

4 years agoox-texinfo.el: Add support for @appendix headlines
Jonathan Leech-Pepin [Mon, 25 Feb 2013 15:14:53 +0000 (10:14 -0500)]
ox-texinfo.el: Add support for @appendix headlines

* lisp/ox-texinfo.el: Included support for appendices.

To include appendices, use a non-nil value for the :APPENDIX: property
of a headline.  This headline will be exported at the appropriate
level as an appendix.

4 years agoox-texinfo: Upcase property to comply to changes
Jonathan Leech-Pepin [Mon, 25 Feb 2013 15:04:37 +0000 (10:04 -0500)]
ox-texinfo: Upcase property to comply to changes

* lisp/ox-texinfo.el (org-texinfo-headline): Fix :INDEX property to
  match changes.  Must be uppercase.

4 years agoox-html: Attributes specified to a paragraph only apply to first link within
Nicolas Goaziou [Mon, 25 Feb 2013 13:28:55 +0000 (14:28 +0100)]
ox-html: Attributes specified to a paragraph only apply to first link within

* lisp/ox-html.el (org-html-link, org-html-link--inline-image):
  Attributes specified to a paragraph only apply to first link within.

4 years agoMake html exporter respect css-url configuration variable
Rick Frankel [Wed, 20 Feb 2013 00:06:49 +0000 (19:06 -0500)]
Make html exporter respect css-url configuration variable

* lisp/ox-html.el:
  (org-export-define-backend): Add css url option.
  (org-export-htmlized-org-css-url):  Modify docstring and options.
  (org-html--build-style): Include css-url if specified.

4 years agoorg-macs.el (org-unmodified): Update comment
Bastien Guerry [Mon, 25 Feb 2013 10:47:01 +0000 (11:47 +0100)]
org-macs.el (org-unmodified): Update comment

* org-macs.el (org-unmodified): Update comment.

4 years agoNew compatibility macro `org-with-silent-modifications'
Bastien Guerry [Mon, 25 Feb 2013 10:44:27 +0000 (11:44 +0100)]
New compatibility macro `org-with-silent-modifications'

* org-macs.el: Don't define `with-silent-modifications' for
emacsen that don't have it.

* org-compat.el (org-with-silent-modifications): New
compatibility macro.

* org.el (org-refresh-category-properties)
(org-refresh-properties, org-entry-blocked-p)
(org-agenda-prepare-buffers):
* org-indent.el (org-indent-remove-properties)
(org-indent-add-properties):
* org-colview.el (org-columns-display-here)
(org-columns-remove-overlays, org-columns-quit)
(org-columns-edit-value, org-columns-compute-all)
(org-columns-compute, org-agenda-colview-compute):
* org-clock.el (org-clock-sum): Use the compatibility macro
`org-with-silent-modifications' instead of
`with-silent-modifications'.

Thanks to Achim for a preliminary patch.

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 25 Feb 2013 10:21:25 +0000 (11:21 +0100)]
Merge branch 'master' of orgmode.org:org-mode

4 years agoox-latex: Fix 309ccd96499a3b4f7ceba8a53994eb0f8b3e2ddd
Nicolas Goaziou [Mon, 25 Feb 2013 10:14:57 +0000 (11:14 +0100)]
ox-latex: Fix 309ccd96499a3b4f7ceba8a53994eb0f8b3e2ddd

* lisp/ox-latex.el (org-latex-headline): Fix regexp in commit
  309ccd96499a3b4f7ceba8a53994eb0f8b3e2ddd.

4 years agoorg.el (org-sort-remove-invisible): Remove emphasis markers
Bastien Guerry [Mon, 25 Feb 2013 10:12:55 +0000 (11:12 +0100)]
org.el (org-sort-remove-invisible): Remove emphasis markers

* org.el (org-sort-remove-invisible): Remove emphasis markers.

4 years agoox-latex: Do not add optional section name when section is unnumbered
Nicolas Goaziou [Mon, 25 Feb 2013 10:03:56 +0000 (11:03 +0100)]
ox-latex: Do not add optional section name when section is unnumbered

* lisp/ox-latex.el (org-latex-headline): Do not add optional section
  name when section is unnumbered.

4 years agoRevert "org.el (org-sort-remove-invisible): Truly returns the visible part of the...
Bastien Guerry [Mon, 25 Feb 2013 10:00:55 +0000 (11:00 +0100)]
Revert "org.el (org-sort-remove-invisible): Truly returns the visible part of the string"

This reverts commit 30d6dc8baa699230f8d770a52485d10e59f84033.

4 years agoFix false positives in `org-in-verbatim-emphasis'
Nicolas Goaziou [Mon, 25 Feb 2013 09:52:11 +0000 (10:52 +0100)]
Fix false positives in `org-in-verbatim-emphasis'

* lisp/org.el (org-in-verbatim-emphasis): Fix false positive when
  point is just after the closing emphasis marker.

4 years agoMerge branch 'maint'
Bastien Guerry [Mon, 25 Feb 2013 09:47:47 +0000 (10:47 +0100)]
Merge branch 'maint'

4 years agodatetree: Recognize year headline with tags as a match
Tim Burt [Sun, 24 Feb 2013 21:03:22 +0000 (16:03 -0500)]
datetree: Recognize year headline with tags as a match

* lisp/org-datetree.el (org-datetree-find-year-create): Also match
headlines with tags.

Change made to fix the problem where a year headline of a
datetree was not matched if it had a tag.  The :NOEXPORT: tag
is one useful case that should be matched.

Initial problem observation reported by Jeffrey McBeth on the
org-mode mailing list.

TINYCHANGE

4 years agocontrib/lisp/: Update org-drill.el to version 2.3.7
Bastien Guerry [Mon, 25 Feb 2013 09:31:34 +0000 (10:31 +0100)]
contrib/lisp/: Update org-drill.el to version 2.3.7

Thanks to Paul Sexton for maintaining org-drill.el!

4 years agoorg.el (org-sort-remove-invisible): Truly returns the visible part of the string
Bastien Guerry [Mon, 25 Feb 2013 09:24:29 +0000 (10:24 +0100)]
org.el (org-sort-remove-invisible): Truly returns the visible part of the string

* org.el (org-sort-remove-invisible): Use defsust.  Do not
only check against invisible links, truly returns the visible
part of the string.

Thanks to François Pinard for suggesting this.

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 25 Feb 2013 09:15:49 +0000 (10:15 +0100)]
Merge branch 'master' of orgmode.org:org-mode

4 years agoRemove hidden links when comparing items or entries.
Bastien Guerry [Mon, 25 Feb 2013 09:15:44 +0000 (10:15 +0100)]
Remove hidden links when comparing items or entries.

* org.el (org-sort-remove-invisible): Add a docstring.
(org-sort-entries): Remove hidden links when comparing
entries.

* org-list.el (org-sort-list): Remove hidden links when
comparing list items.

Thanks to François Pinard for suggesting this.

4 years agoDo not move point when filling a table
Nicolas Goaziou [Mon, 25 Feb 2013 09:06:58 +0000 (10:06 +0100)]
Do not move point when filling a table

* lisp/org.el (org-fill-paragraph): Do not move point when filling
  a table.
* testing/lisp/test-org.el: Add test.

4 years agoox-ascii: Ignore empty lines between comments
Nicolas Goaziou [Mon, 25 Feb 2013 08:17:51 +0000 (09:17 +0100)]
ox-ascii: Ignore empty lines between comments

* lisp/ox-ascii.el (ascii): Add new filter.
(org-ascii-filter-comment-spacing): New function.

4 years agoox-html.el (org-html-headline): Fix typo
Bastien Guerry [Sun, 24 Feb 2013 18:42:12 +0000 (19:42 +0100)]
ox-html.el (org-html-headline): Fix typo

* ox-html.el (org-html-headline): Fix typo.

Thanks to Rick Frankel for reporting this.

4 years agoox-html.el (org-html-format-headline--wrap): Cosmetic change
Bastien Guerry [Sun, 24 Feb 2013 18:25:58 +0000 (19:25 +0100)]
ox-html.el (org-html-format-headline--wrap): Cosmetic change

* ox-html.el (org-html-format-headline--wrap): Cosmetic
change.

4 years agoMerge branch 'maint'
Bastien Guerry [Sun, 24 Feb 2013 18:19:01 +0000 (19:19 +0100)]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el
lisp/org.el

4 years agoMove `org-at-clock-log-p' from org-clock.el to org.el
Bastien Guerry [Sun, 24 Feb 2013 18:16:33 +0000 (19:16 +0100)]
Move `org-at-clock-log-p' from org-clock.el to org.el

* org.el (org-at-clock-log-p): Delete.
* org-clock.el (org-at-clock-log-p): Move here.

4 years agoReturn expanded code on programmatic calls
Eric Schulte [Sun, 24 Feb 2013 16:49:12 +0000 (09:49 -0700)]
Return expanded code on programmatic calls

* lisp/ob-core.el (org-babel-expand-src-block): Return value of expanded
  code block on non-interactive calls.

4 years agoCustomizable wrapper for variables in perl code
Eric Schulte [Sun, 24 Feb 2013 16:48:31 +0000 (09:48 -0700)]
Customizable wrapper for variables in perl code

* lisp/ob-perl.el (org-babel-perl-var-wrap): Customizable wrapper for
  variables in perl code.
  (org-babel-perl-var-to-perl): Use said wrapper.

4 years agoox-latex: Remove non-existent TOC value
Nicolas Goaziou [Sun, 24 Feb 2013 15:26:45 +0000 (16:26 +0100)]
ox-latex: Remove non-existent TOC value

* lisp/ox-latex.el (org-latex-keyword): Remove "figures" value.

4 years agoox-ascii: Fix docstring
Nicolas Goaziou [Sun, 24 Feb 2013 15:16:54 +0000 (16:16 +0100)]
ox-ascii: Fix docstring

* lisp/ox-ascii.el (org-ascii--list-tables): Fix docstring.

4 years agoorg.texi: Document lists of listings and lists of tables
Nicolas Goaziou [Sun, 24 Feb 2013 15:10:47 +0000 (16:10 +0100)]
org.texi: Document lists of listings and lists of tables

* doc/org.texi (Table of contents): Document lists of listings and
  lists of tables.

4 years agoox-html: Fix code typo in 1fd83e048760c38c23d422f649a53d79591ba5c3
Nicolas Goaziou [Sun, 24 Feb 2013 15:03:58 +0000 (16:03 +0100)]
ox-html: Fix code typo in 1fd83e048760c38c23d422f649a53d79591ba5c3

* lisp/ox-html.el (org-html--format-toc-headline): Fix function name.

4 years agoox-html: Add list of listings and list of tables
Nicolas Goaziou [Sun, 24 Feb 2013 14:57:46 +0000 (15:57 +0100)]
ox-html: Add list of listings and list of tables

* lisp/ox-html.el (org-html-toc, org-html--toc-text): Change to
  docstring.
(org-html-list-of-listings, org-html-list-of-tables): New functions.
(org-html-keyword): Use new functions.
(org-html-src-block): Add an ID attribute when a name is given.

4 years agoRequire 2 blank lines to separate footnote definition
Nicolas Goaziou [Thu, 21 Feb 2013 14:30:16 +0000 (15:30 +0100)]
Require 2 blank lines to separate footnote definition

* lisp/org-element.el (org-element-footnote-definition-parser):
  Require 2 blank lines to separate footnote definition.
* lisp/org-footnote.el (org-footnote-at-definition-p): Require 2 blank
  lines to separate footnote definition.
* doc/org.texi: Update documentation for footnotes.
* testing/lisp/test-org-element.el: Update tests.
* testing/lisp/test-org-footnote.el: Add tests.

Footnote definitions can still be separated with other footnote
definitions and headlines. This change allows to have multiple
paragraphs in a footnote definition without resorting to the "\par"
trick.

4 years agoox: Use tabulated list mode for asynchronous stack
Nicolas Goaziou [Sun, 24 Feb 2013 12:49:29 +0000 (13:49 +0100)]
ox: Use tabulated list mode for asynchronous stack

* lisp/ox.el (org-export-stack): Rewrite.
(org-export-stack-refresh): Refactor.
(org-export-stack-remove, org-export-stack-view): Apply renaming.
(org-export-stack-mode-map): Use tabulated list map as a basis.
(org-export-stack--generate, org-export-stack--num-predicate): New
function.

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 24 Feb 2013 10:33:34 +0000 (11:33 +0100)]
Merge branch 'master' of orgmode.org:org-mode

4 years agoox-html.el (org-html-format-headline-function): Fix docstring
Bastien Guerry [Sun, 24 Feb 2013 09:01:39 +0000 (10:01 +0100)]
ox-html.el (org-html-format-headline-function): Fix docstring

* ox-html.el (org-html-format-headline-function): Fix docstring.

4 years agoox: Better return value for `org-export-get-optional-title'
Nicolas Goaziou [Sun, 24 Feb 2013 08:15:26 +0000 (09:15 +0100)]
ox: Better return value for `org-export-get-optional-title'

* lisp/ox.el (org-export-get-optional-title): Return regular title
  when no optional title is found.
* lisp/ox-ascii.el (org-ascii--build-title): Apply change to
  `org-export-get-optional-title'.
* lisp/ox-html.el (org-html--format-toc-headline): Apply change to
  `org-export-get-optional-title'.
* lisp/ox-latex.el (org-latex-headline): Apply change to
  `org-export-get-optional-title'.
* testing/lisp/test-ox.el: Add tests.

4 years agoob-sql.el (org-babel-execute:sql): Add header row delimiter for both mysql and postgresql
Bastien Guerry [Sun, 24 Feb 2013 08:15:02 +0000 (09:15 +0100)]
ob-sql.el (org-babel-execute:sql): Add header row delimiter for both mysql and postgresql

* ob-sql.el (org-babel-execute:sql): Add header row delimiter
for both mysql and postgresql.

Thanks to Daniel for reporting this.

4 years agoorg.el (org-agenda-prepare-buffers): Don't use `with-silent-modifications' too early
Bastien Guerry [Sun, 24 Feb 2013 09:49:30 +0000 (10:49 +0100)]
org.el (org-agenda-prepare-buffers): Don't use `with-silent-modifications' too early

* org.el (org-agenda-prepare-buffers): Don't use
`with-silent-modifications' too early.

Thanks to J. David Boyd for reporting this and to Florian Beck for
confirming the problem.

4 years agoorg.texi: Remove "Initial text" node
Nicolas Goaziou [Sat, 23 Feb 2013 23:40:30 +0000 (00:40 +0100)]
org.texi: Remove "Initial text" node

4 years agoorg.texi: Add documentation for optional title
Nicolas Goaziou [Sat, 23 Feb 2013 23:19:23 +0000 (00:19 +0100)]
org.texi: Add documentation for optional title

* doc/org.texi (Table of contents): Add documentation for optional
  title and #+TOC: keyword.

4 years agoox-ascii/ox-latex/ox-html: Make use of optional title in toc
Nicolas Goaziou [Sat, 23 Feb 2013 21:02:37 +0000 (22:02 +0100)]
ox-ascii/ox-latex/ox-html: Make use of optional title in toc

* lisp/ox-ascii.el (org-ascii--build-title): Add an argument.  Use
  optional title when building a toc line.
(org-ascii--build-toc): Call `org-ascii--build-title' with appropriate
arguments.
* lisp/ox-latex.el (org-latex-headline): Use optional title for table
  of contents.
* lisp/ox-html.el (org-html--toc-text): Renamed from
  `org-html-toc-text'.  Add docstring.
(org-html--format-toc-headline): Renamed from
`org-html-format-toc-headline'.  Add docstring.  Use optional title if
possible.
(org-html-toc): Add docstring.

4 years agoorg-element/ox: Introduce :optional-title property and an accessor
Nicolas Goaziou [Sat, 23 Feb 2013 20:33:03 +0000 (21:33 +0100)]
org-element/ox: Introduce :optional-title property and an accessor

* lisp/org-element.el (org-element-headline-parser): Node
  property :OPTIONAL_TITLE: in a headline will be parsed and stored
  under :optional-title property.
* lisp/ox.el (org-export-get-optional-title): New function.

4 years agoox-latex: Fix 99d4c8f91542378620095708247567f7ddeab40c
Nicolas Goaziou [Sat, 23 Feb 2013 21:40:12 +0000 (22:40 +0100)]
ox-latex: Fix 99d4c8f91542378620095708247567f7ddeab40c

* lisp/ox-latex.el (org-latex-format-headline-default-function): Make
  the variable a function.

4 years agoox-publish: No error when resolving external fuzzy links outside publishing
Nicolas Goaziou [Sat, 23 Feb 2013 15:26:27 +0000 (16:26 +0100)]
ox-publish: No error when resolving external fuzzy links outside publishing

* lisp/ox-publish.el (org-publish-resolve-external-fuzzy-link): No
  error when resolving external fuzzy links outside publishing.  Though
  search option for these links will not be resolved.

4 years agoUse `with-silent-modifications' instead of `org-unmodified' when it makes sense
Bastien Guerry [Sat, 23 Feb 2013 13:57:51 +0000 (14:57 +0100)]
Use `with-silent-modifications' instead of `org-unmodified' when it makes sense

* org-macs.el: Add a comment on when to use `org-unmodified'
and when to use `with-silent-modifications'.

* org-colview.el (org-columns-display-here)
(org-columns-remove-overlays, org-columns-quit)
(org-columns-edit-value, org-columns-compute-all)
(org-columns-compute, org-agenda-colview-compute):
* org-clock.el (org-clock-sum):
* org.el (org-refresh-category-properties)
(org-refresh-properties, org-entry-blocked-p)
(org-agenda-prepare-buffers): Use `with-silent-modifications'
instead of `org-unmodified'.

Thanks to Stefan Monnier for reminding me about `with-silent-modifications'!

4 years agoMerge branch 'maint'
Bastien Guerry [Sat, 23 Feb 2013 13:42:45 +0000 (14:42 +0100)]
Merge branch 'maint'

4 years agoorg.el (org-tsr-regexp-both): Don't activate dates in links release_7.9.3f
Bastien Guerry [Sat, 23 Feb 2013 13:42:11 +0000 (14:42 +0100)]
org.el (org-tsr-regexp-both): Don't activate dates in links

* org.el (org-tsr-regexp-both): Don't activate dates in links.
(org-activate-dates): Change match boundaries according to the
new value of `org-tsr-regexp-both'.

Thanks to Richard Huang for reporting a related issue.

4 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 23 Feb 2013 13:37:43 +0000 (14:37 +0100)]
Merge branch 'master' of orgmode.org:org-mode