Bastien Guerry
0584dffefe
ob-exp.el (obe-marker): Delete useless var.
...
* ob-exp.el (obe-marker): Delete useless var.
2012-12-13 17:36:52 +01:00
Bastien Guerry
ac1b11753f
Merge branch 'maint'
2012-12-13 17:24:31 +01:00
Bastien Guerry
70b0f422b4
Fix copyright notices for test files.
2012-12-13 17:24:19 +01:00
Le Wang
a0cb4a3edc
add tests for org-src-edit
2012-12-13 17:18:50 +01:00
Bastien Guerry
f72bb5733d
Merge branch 'master' of orgmode.org:org-mode
2012-12-13 17:06:18 +01:00
Bastien Guerry
22ee29b5ef
Merge branch 'maint'
2012-12-13 17:04:48 +01:00
Bastien Guerry
7a770c10c1
org-src.el (org-edit-src-code): Fix bug on Emacs <24.1.
...
* org-src.el (org-edit-src-code): Fix bug triggered by the
sexp (copy-marker nil) on Emacs <24.1.
Thanks to Bernt Hansen for reporting this.
2012-12-13 17:04:38 +01:00
Nicolas Goaziou
06872a4570
export back-ends: Activate asynchronous export
...
* contrib/lisp/org-e-ascii.el (org-e-ascii-export-as-ascii,
org-e-ascii-export-to-ascii): Activate asynchronous export.
* contrib/lisp/org-e-beamer.el (org-e-beamer-export-as-latex,
org-e-beamer-export-to-latex): Activate asynchronous export.
* contrib/lisp/org-e-groff.el (org-e-groff-export-to-groff,
org-e-groff-export-to-pdf): Activate asynchronous export.
* contrib/lisp/org-e-html.el (org-e-html-export-as-html,
org-e-html-export-to-html): Activate asynchronous export.
* contrib/lisp/org-e-icalendar.el (org-e-icalendar-export-to-ics):
Activate asynchronous export.
* contrib/lisp/org-e-latex.el (org-e-latex-export-as-latex,
org-e-latex-export-to-latex, org-e-latex-export-to-pdf): Activate
asynchronous export.
* contrib/lisp/org-e-man.el (org-e-man-export-to-man,
org-e-man-export-to-pdf): Activate asynchronous export.
* contrib/lisp/org-e-odt.el (org-e-odt-export-to-odt): Activate
asynchronous export. Remove body-only argument.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-export-to-texinfo,
org-e-texinfo-export-to-info): Activate asynchronous export.
* contrib/lisp/org-md.el (org-md-export-as-markdown,
org-md-export-to-markdown): Activate asynchronous export.
2012-12-13 15:36:51 +01:00
Nicolas Goaziou
5319cec24e
org-e-publish: Activate asynchronous publishing
...
* contrib/lisp/org-e-publish.el (org-e-publish, org-e-publish-all,
org-e-publish-current-file, org-e-publish-current-project): Activate
asynchronous publishing.
(org-e-publish-initial-buffer): Remove unused variable.
* contrib/lisp/org-export.el (org-export-dispatch): Send asynchronous
flag to publishing functions, when needed.
2012-12-13 15:36:51 +01:00
Nicolas Goaziou
ffb630b85d
org-export: Add asynchronous process wrapper for export
...
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-13 15:36:51 +01:00
Jonathan Leech-Pepin
5c1eab535b
* contrib/lisp/org-e-texinfo.el: Provided export of info: links
...
(org-e-texinfo-link): Parse info: links to allow linking to
appropriate info nodes.
2012-12-13 08:38:31 -05:00
Bastien Guerry
31d24aa213
Merge branch 'maint'
2012-12-13 11:58:54 +01:00
Bastien Guerry
82db0aab3b
org.texi: Fix typos.
2012-12-13 11:58:42 +01:00
Bastien Guerry
8c04fb72cb
org-exp.el (org-export-copy-to-kill-ring): Add a new choice 'if-interactive and use it as the default.
...
* org-exp.el (org-export-copy-to-kill-ring): Add a new choice
'if-interactive and use it as the default.
(org-export-push-to-kill-ring): Use the new choice.
2012-12-13 00:38:46 +01:00
Nicolas Goaziou
627d5733be
org-e-html: Small refactoring
...
* contrib/lisp/org-e-html.el (org-e-html-fontify-code): Activating
major mode before inserting contents avoid problem of initial
visibility for an Org buffer.
2012-12-12 23:16:51 +01:00
Nicolas Goaziou
2c39a4ae85
export back-ends: Apply line break changes
...
* contrib/lisp/org-e-html.el (org-e-html-line-break): Apply line break
changes.
* contrib/lisp/org-e-latex.el (org-e-latex-line-break): Apply line
break changes.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-line-break): Apply line
break changes.
* contrib/lisp/org-md.el (org-md-line-break): Apply line break
changes.
2012-12-12 22:48:06 +01:00
Nicolas Goaziou
6e37a4d114
org-element: Fix line break parsing
...
* lisp/org-element.el (org-element-line-break-parser): Line break
includes the newline character following the backslashes.
(org-element-line-break-interpreter): Apply changes to line break
parsing.
2012-12-12 22:47:12 +01:00
Eric Schulte
8dd3fa301a
Use the org-mime-default-header customized variable
...
* contrib/lisp/org-mime.el (org-mime-htmlize): Use the
org-mime-default-header customized variable.
2012-12-12 10:48:57 -07:00
Eric Schulte
2c34715ae6
option to byte-compile elisp loaded from Org files
...
* lisp/ob-tangle.el (org-babel-load-file): When called with a prefix
argument the tangled emacs-lisp file will be byte compiled.
2012-12-12 10:48:57 -07:00
Eric Schulte
5e3b8259c7
tangled files should not be writable
...
Hopefully this will help keep people from editing tangled source files
by accident.
* lisp/ob-tangle.el (org-babel-tangle): Tangled files should not be
writable.
2012-12-12 10:48:57 -07:00
Eric Schulte
ff0081847c
requiring ob now pulls in all of Babel
2012-12-12 10:48:56 -07:00
Eric Schulte
0694965865
renaming lisp/ob.el to lisp/ob-core.el
2012-12-12 10:48:56 -07:00
Achim Gratz
ba59eebb12
ob-python: specify defcustom parameters
...
* lisp/ob-python.el (org-babel-python-hline-to,
org-babel-python-None-to): Specify customize group as 'org-babel and
widget type as 'string.
2012-12-12 10:48:56 -07:00
Achim Gratz
01bf706f7f
org-babel: fix bug introduced in commit 78cdf149
...
* lisp/ob.el (org-babel-result-cond): Macro expansion needs to unquote
formal parameter `result-params´.
2012-12-12 10:48:56 -07:00
Bastien Guerry
cf9838febd
org.el: Display the blocking heading when a TODO state change is blocked.
...
* org.el (org-block-entry-blocking): New variable.
(org-todo): Use it. Also use `user-error' when a TODO state
change is blocked.
(org-block-todo-from-children-or-siblings-or-parent): Display
`org-block-entry-blocking' in the user-error message.
Thanks to Mirko Vukovic for triggering this change.
2012-12-12 15:59:27 +01:00
Bastien Guerry
1bfea39fd4
Support `C-1' prefix for `org-agenda-capture' and `org-capture'.
...
* org.el (org-get-cursor-date): New optional argument
WITH-TIME to add the time of the day.
* org-capture.el (org-capture): When capturing from the agenda
and with a non-nil value for `org-capture-use-agenda-date', a
`C-1' prefix will set the capture time to the HH:MM of the
current line or the current HH:MM.
* org-agenda.el (org-agenda-capture): New optional argument
WITH-TIME: when set to 1, the capture time will be set to the
HH:MM time of the current line, or the current HH:MM time.
From an agenda buffer, C-1 k (i.e. org-agenda-capture) and
C-1 M-x org-capture RET will use the time of the day of the
current line, or the current time of the day. The date is
not changed by using this prefix.
Thanks to Rene for triggering this change.
2012-12-12 15:21:10 +01:00
Bastien Guerry
275f07c16a
Merge branch 'maint'
2012-12-12 13:53:37 +01:00
Bastien Guerry
488eea6d25
org-latex.el: Escape raw path when exporting links to files.
...
* org-latex.el (org-export-latex-links): Escape raw path when
exporting links to files.
Thanks to John Smith for reporting this.
2012-12-12 10:57:34 +01:00
Bastien Guerry
47ea16660e
Merge branch 'maint'
2012-12-12 10:14:59 +01:00
Bastien Guerry
570ecb4e31
org-src.el: Fix bug: the S-TAB key should not trigger a native TAB command.
...
* org-src.el (org-src-native-tab-command-maybe): Fix bug: the
S-TAB key should not trigger a native TAB command.
2012-12-12 09:09:04 +01:00
Bastien Guerry
1c13115780
org.texi: Small reformatting.
...
* org.texi (Summary, Code block specific header arguments)
(Code block specific header arguments)
(Header arguments in function calls, var, noweb)
(Results of evaluation, Code evaluation security): Small
reformatting: add a blank line before some example.
2012-12-12 08:54:30 +01:00
Bastien Guerry
7abad97db7
org.texi: Fix indendation of Elisp code examples.
...
* org.texi (System-wide header arguments)
(Header arguments in Org mode properties, Conflicts)
(Dynamic blocks, Using the mapping API): Fix indendation of
Elisp code examples.
2012-12-12 08:50:00 +01:00
Bastien Guerry
20b3d550e0
org.el: Allow to open any link within footnotes definition, not only bracket links.
...
* org.el (org-open-at-point): Allow to open any link within
footnotes definition, not only bracket links.
2012-12-12 08:42:55 +01:00
Bastien Guerry
5508053d63
Merge branch 'maint'
2012-12-11 18:14:00 +01:00
Bastien Guerry
7f0e7cb9b9
org.el (org-sort-entries): Bugfix: keep track of the clock marker when sorting entries.
...
* org.el (org-sort-entries): Bugfix: keep track of the clock
marker when sorting entries. Enhance the docstring.
2012-12-11 18:13:41 +01:00
Bastien Guerry
0c68a27ac9
org-clock.el (org-clock-out): Use `user-error'.
...
* org-clock.el (org-clock-out): Use `user-error' when the user
tries to clock out while there is no running clock.
2012-12-11 18:11:24 +01:00
Bastien Guerry
c3a0dc11a3
org-table.el: Ensure table coordinates are correctly displayed when sorting.
...
* org-table.el (org-table-sort-lines): Ensure coordinates are
correctly displayed when sorting.
* org.el (org-do-sort): Enhance prompt.
2012-12-11 17:29:38 +01:00
Bastien Guerry
980e52282d
org-agenda.el (org-agenda-finalize): Fix order of link activation.
...
* org-agenda.el (org-agenda-finalize): Fix order of link
activation.
2012-12-11 17:20:33 +01:00
Bastien Guerry
08e411109e
org-agenda.el (org-agenda-finalize): Activate plain links.
...
* org-agenda.el (org-agenda-finalize): Activate plain links.
2012-12-11 17:08:00 +01:00
Bastien Guerry
57a13ab9d9
org-timer.el (org-timer-stop): Add message.
...
* org-timer.el (org-timer-stop): Add message.
2012-12-11 16:56:00 +01:00
Bastien Guerry
5d673e890a
org-agenda.el (org-agenda-schedule, org-agenda-deadline): Fix redundant messages.
...
* org-agenda.el (org-agenda-schedule, org-agenda-deadline):
Fix redundant messages.
2012-12-11 16:53:44 +01:00
Bastien Guerry
1a41eeae1d
org-agenda.el (org-agenda-finalize): Fix clock highlighting.
...
* org-agenda.el (org-agenda-finalize): Fix clock highlighting.
Thanks to Rares Pop who reported this.
2012-12-11 16:44:03 +01:00
Nicolas Goaziou
b1f36921d7
org-export: Allow to retrieve all previous/next exportable objects
...
* contrib/lisp/org-export.el (org-export-get-previous-element,
org-export-get-next-element): Allow to retrieve all previous/next
exportable objects by specifying a non-nil, non positive integer
argument.
* testing/lisp/test-org-export.el: Add tests.
2012-12-10 08:54:52 +01:00
Bastien Guerry
48703624d5
Merge branch 'maint'
...
Conflicts:
doc/org.texi
2012-12-09 23:48:29 +01:00
Bastien Guerry
e5ea08f01b
doc/org.texi: Fix minor whitespace issues after "." in manual.
...
See revno: 110998 by Paul Eggert in Emacs repo.
revno: 110998
fixes bug: http://debbugs.gnu.org/12973
committer: Paul Eggert <eggert@cs.ucla.edu>
branch nick: emacs-24
timestamp: Wed 2012-12-05 14:27:56 -0800
message: Fix minor whitespace issues after "." in manual.
2012-12-09 23:46:25 +01:00
Nicolas Goaziou
66c6642e68
org-e-html: Fix error when exporting an Org src block
...
* contrib/lisp/org-e-html.el (org-e-html-fontify-code): Expand
everything in the buffer before calling htmlize. Remove an assert.
Add docstring.
2012-12-09 12:30:26 +01:00
Nicolas Goaziou
2cdddb96c4
org-e-html: Remove unused variable
...
* contrib/lisp/org-e-html.el (org-e-html-cvt-link-fn): Remove
variable.
2012-12-09 12:17:16 +01:00
Nicolas Goaziou
b95793d200
org-e-html: Small refactoring
...
* contrib/lisp/org-e-html.el (org-e-html--textarea-block): New
function.
(org-e-html--make-string): Renamed from `org-e-html-make-string'.
(org-e-html-format-toc-headline): Use previous function.
(org-e-html-do-format-code, org-e-html-format-code): Remove argument
relative to textareas. Add docstring.
(org-e-html-example-block, org-e-html-src-block): Refactoring relative
to textareas.
2012-12-09 12:16:37 +01:00
Nicolas Goaziou
2aac1818d5
org-md: Fix export error with inline images
...
* contrib/lisp/org-md.el (org-md-link): Fix error with inline images.
2012-12-08 19:30:27 +01:00
Nicolas Goaziou
cbb96d69d3
org-export: Add an optional argument to previous an next elements getters
...
* contrib/lisp/org-export.el (org-export-get-previous-element,
org-export-get-next-element): Change signature.
* testing/lisp/test-org-export.el: Add tests.
2012-12-08 18:57:10 +01:00