Nicolas Goaziou
0d72c34937
Improve a docstring
...
* lisp/org.el (org-delete-all): Improve docstring.
2016-06-24 09:21:38 +02:00
Nicolas Goaziou
bffa144f54
org-mobile: Fix TODO keywords generation
...
* lisp/org-mobile.el (org-mobile-create-index-file): Call
`org-delete-all' later since it is a destructive operation.
Reported-by: Ian Dunn <dunni@gnu.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/107900 >
2016-06-24 09:18:30 +02:00
Nicolas Goaziou
5485170263
org-capture: Remove forbidden value type from "file" templates
...
* lisp/org-capture.el (org-capture-expand-file): Remove plain S-exps
from allowed values.
2016-06-24 01:11:49 +02:00
Nicolas Goaziou
8860c92f62
ob-exp: Small fix
...
* lisp/ob-exp.el (org-babel-exp-src-block): Use `symbol-name' instead of
`eval' since the argument is a dynamically scoped variable anyhow.
2016-06-24 00:55:03 +02:00
Nicolas Goaziou
3bfbd26acd
org-clock: Remove handling for illicit :scope values
...
* lisp/org-clock.el (org-dblock-write:clocktable): :scope is not meant
to be a s-exp, so don't use `eval' on it.
2016-06-24 00:52:19 +02:00
Nicolas Goaziou
ba4831bba8
Fix `org-no-properties' called with an optional argument
...
* lisp/org-macs.el (org-no-properties): Fix function so that optional
argument `restricted' is not ignored.
2016-06-23 15:55:39 +02:00
Nicolas Goaziou
89d2006e84
Remove `org-substitute-posix-classes'
...
* lisp/org-macs.el (org-substitute-posix-classes): Remove function.
This function is unused throughout the code base and not part of any
public API.
2016-06-23 15:28:45 +02:00
Nicolas Goaziou
aae0b22a0c
Deprecate org-format-seconds' in favor of
format-seconds'
...
* lisp/org-macs.el (org-format-seconds): Remove function.
* lisp/org-compat.el (org-format-seconds): Mark function as an obsolete
alias.
* lisp/org-table.el (org-table-time-seconds-to-string):
* lisp/ox.el (org-export-stack-refresh): Apply removal.
2016-06-23 15:26:17 +02:00
Nicolas Goaziou
ee7aa9878f
Deprecate org-no-warnings' in favor of
with-no-warnings'
...
* lisp/org-macs.el (org-no-warnings): Rewove macro.
* lisp/org-compat.el (org-no-warnings): Mark `org-no-warnings' as
obsolete.
* contrib/lisp/org-contacts.el (defvar):
* contrib/lisp/org-wl.el (org-wl-open):
* lisp/org-agenda.el (defvar):
(org-anniversary):
(org-cyclic):
(org-block):
(org-date):
* lisp/org-bbdb.el (defvar):
* lisp/org-clock.el (org-clock-out):
(org-clock-cancel):
* lisp/org-mouse.el (org-mouse-show-context-menu):
* lisp/org.el (org-modify-ts-extra):
(org-order-calendar-date-args): Small refactoring.
* lisp/ox-odt.el (org-odt-htmlfontify-string):
2016-06-23 15:20:32 +02:00
Nicolas Goaziou
28ba698262
org-macs: Remove `org-replace-match-keep-properties'
...
* lisp/org-macs.el (org-replace-match-keep-properties): Remove function.
This function is unused through the code base and doesn't specifically
belong to a public API.
2016-06-23 15:13:14 +02:00
Nicolas Goaziou
999f224299
Deprecate org-called-interactively-p' in favor of
called-interactively-p'
...
* lisp/org-compat.el (org-called-interactively-p): Make it an obsolete
alias for `called-interactively-p'.
* lisp/org-macs.el (org-called-interactively-p): Remove function.
* contrib/lisp/org-expiry.el (org-expiry-insinuate):
(org-expiry-deinsinuate):
(org-expiry-process-entry):
(org-expiry-process-entries):
(org-expiry-archive-subtree):
(org-expiry-add-keyword):
* lisp/ob-core.el (org-babel-expand-src-block):
(org-babel-sha1-hash):
* lisp/org-agenda.el (org-toggle-sticky-agenda):
(org-agenda-write):
(org-agenda-dim-blocked-tasks):
(org-agenda-redo):
(org-agenda-show-1):
(org-agenda-set-tags):
* lisp/org-lint.el (org-lint):
* lisp/org-table.el (org-table-blank-field):
(org-table-current-column):
(org-table-current-dline):
(org-table-sort-lines):
(org-table-sum):
(org-table-rotate-recalc-marks):
(org-table-eval-formula):
(orgtbl-send-table):
* lisp/org.el (org-mode):
(org-copy-subtree):
(org-paste-subtree):
(org-store-link):
(org-todo):
(org-occur):
(org-create-math-formula):
(org-toggle-inline-images):
(org-mark-subtree):
(org-mark-element): Apply removal.
2016-06-23 15:08:03 +02:00
Nicolas Goaziou
75f61e11c3
Remove `org-inhibit-invisibility'
...
* lisp/org-macs.el (org-inhibit-invisibility): Remove function.
* lisp/org.el (org-set-tags): Apply removal.
2016-06-23 14:28:20 +02:00
Nicolas Goaziou
5721fd890a
Remove `org-maybe-intangible'
...
* lisp/org-macs.el (org-maybe-intangible): Remove macro.
* lisp/org.el (org-activate-bracket-links):
(org-hide-wide-columns): Apply removal.
2016-06-23 14:25:51 +02:00
Nicolas Goaziou
ff80654617
Mark `org-bound-and-true-p' as obsolete
...
* lisp/org-macs.el (org-bound-and-true-p): Remove macro.
* lisp/org-compat.el (org-bound-and-true-p): Deprecated alias for
`bound-and-true-p'.
* lisp/ob-core.el (org-babel-confirm-evaluate):
* lisp/org-agenda.el (org-agenda-write):
(org-agenda-add-entry-text):
(org-agenda-todo):
* lisp/org-clock.el (org-clocktable-defaults):
(org-clocktable-write-default):
* lisp/org-colview.el (org-columns):
(org-columns--compute-spec):
(org-agenda-columns):
* lisp/org-indent.el (org-indent-set-line-properties):
* lisp/org-inlinetask.el (org-inlinetask-fontify):
* lisp/org-mobile.el (org-mobile-write-agenda-for-mobile):
* lisp/org-pcomplete.el (pcomplete/org-mode/file-option/options):
(pcomplete/org-mode/file-option/infojs_opt):
* lisp/org-src.el (org-src-mode-configure-edit-buffer):
(org-edit-table.el):
* lisp/org.el (org-store-link):
(org-refile):
(org-get-export-keywords):
(org-set-tags):
(org-order-calendar-date-args):
(org-mode-restart):
(org-tbl-menu):
(org-beginning-of-line):
(org-end-of-line):
(org-kill-line):
(org-truely-invisible-p):
(org-remove-flyspell-overlays-in): Use `bound-and-true-p' instead of
`org-bound-and-true-p'.
2016-06-23 14:23:52 +02:00
Nicolas Goaziou
23d84285bf
Deprecate org-char-to-string' in favor of
char-to-string'
...
* lisp/org-macs.el (org-char-to-string): Remove function.
* lisp/org-compat.el (org-char-to-string): Declare function as obsolete.
* lisp/org.el (org-link-unescape-compound): Apply removal.
2016-06-23 14:10:34 +02:00
Nicolas Goaziou
b3d2b354c9
org-list: Silence byte-compiler
...
* lisp/org-list.el (org-list-item-body-column): Silence byte-compiler.
2016-06-23 10:21:07 +02:00
Nicolas Goaziou
d13b0745dc
Mark a few functions as obsolete
...
* lisp/ob-R.el (org-babel-variable-assignments:R):
* lisp/ob-ref.el (org-babel-ref-goto-headline-id):
* lisp/org-agenda.el (org-agenda-prepare-window):
(org-agenda-switch-to):
* lisp/org-capture.el (org-capture-goto-target):
* lisp/org-clock.el (org-clock-goto):
(org-clock-special-range):
* lisp/org-ctags.el (org-ctags-visit-buffer-or-file):
* lisp/org-eshell.el (org-eshell-open):
* lisp/org-feed.el (org-feed-show-raw-feed):
* lisp/org-id.el (org-id-goto):
* lisp/org-irc.el (org-irc-visit-erc):
* lisp/org-macs.el (org-string-nw-p):
* lisp/org-mobile.el (org-mobile-apply):
* lisp/org-src.el (org-src-switch-to-buffer):
* lisp/org.el (org-get-location):
(org-tree-to-indirect-buffer):
(org-mark-ring-goto):
(org-refile):
(org-add-log-note):
(org-revert-all-org-buffers):
(org-switchb):
(org-cycle-agenda-files):
(org-submit-bug-report):
(org-goto-marker-or-bmk):
* lisp/ox-html.el (org-html-htmlize-generate-css): Silence byte
compiler.
The following functions are marked as obsolete:
- `org-string-match-p'
- `org-number-sequence'
- `org-floor*'
- `org-pop-to-buffer-same-window'
- `org-delete-directory'
- `org-buffer-narrowed-p'
2016-06-23 10:00:00 +02:00
Nicolas Goaziou
bfed384cd8
org-compat: Use lexical binding
...
* lisp/org-compat.el (org-move-to-column):
(org-pop-to-buffer-same-window): Silence byte-compiler.
2016-06-23 09:25:33 +02:00
Nicolas Goaziou
705904552c
Deprecate org-find-if' in favor of
cl-find-if'
...
* lisp/org.el (org-find-if): Remove function.
(org-key):
* contrib/lisp/org-contacts.el (org-contacts-db-need-update-p):
(org-contacts-filter):
(org-contacts-test-completion-prefix):
(org-contacts-remove-ignored-property-values): Use `cl-find-if'
* lisp/org-compat.el (org-find-if): Mark function as an obsolete alias
for `cl-find-if'.
2016-06-23 09:22:49 +02:00
Nicolas Goaziou
a24f339f58
Work around a display bug when previewing LaTeX fragments
...
* lisp/org.el (org-format-latex): Change signature.
(org-toggle-latex-fragment):
* lisp/ox-html.el (org-html-format-latex): Apply signature change.
2016-06-23 00:56:18 +02:00
Nicolas Goaziou
2f2e6625ac
Work around a display bug when previewing LaTeX fragments
...
* lisp/org.el (org-format-latex): Change signature.
(org-toggle-latex-fragment):
* lisp/ox-html.el (org-html-format-latex): Apply signature change.
2016-06-23 00:33:22 +02:00
Nicolas Goaziou
24852ef060
Merge branch 'maint'
2016-06-22 22:43:19 +02:00
Nicolas Goaziou
ecffcbcf1c
Tiny fix to `org-set-effort'
...
* lisp/org.el (org-set-effort): Use `equal' instead of `string='.
Since (string= "nil" nil) is non-nil, a "nil" heading could be mistaken
for the current clocked task if `org-clock-current-task' is not bound,
or if there is no current clocked task.
2016-06-22 22:39:50 +02:00
Nicolas Goaziou
411524a31c
Merge branch 'maint'
2016-06-22 22:38:07 +02:00
Nicolas Goaziou
2be2a15566
Merge branch 'maint' of orgmode.org:org-mode into maint
2016-06-22 22:36:22 +02:00
Nicolas Goaziou
85dd02b0dd
ox: Fix export of empty footnote definitions outside scope
...
* lisp/ox.el (org-export-get-footnote-definition): When a definition is
empty, but does exist, return the empty string instead of raising an
error.
* testing/lisp/test-ox.el (test-org-export/get-footnote-definition): New
test.
Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107873 >
2016-06-22 22:34:53 +02:00
Nicolas Goaziou
5cd793c59a
ox-publish: Change signature for preparation and completion functions
...
* doc/org.texi (Sources and destinations): Document new signature.
* lisp/ox-publish.el (org-publish-project-alist): Update docstring.
(org-publish-projects): Call preparation and
completion functions with the project properties as the sole argument.
`project-plist' used to be dynamically scoped. This is no longer
possible due to the switch to lexical binding.
Reported-by: Arun Isaac <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107856 >
2016-06-22 15:31:48 +02:00
Nicolas Goaziou
6b7944805f
org-mobile: Use lexical binding
...
* lisp/org-agenda.el (org-agenda-keep-restricted-file-list): New
variable, dynamically scoped.
(org-agenda): Variable is now necessarily bound.
* lisp/org-mobile.el (org-mobile-create-index-file): Silence
byte-compiler.
2016-06-22 00:01:10 +02:00
Nicolas Goaziou
d87f4e1570
org-w3m: Use lexical binding
2016-06-21 23:41:41 +02:00
Nicolas Goaziou
11335f0ec0
org-rmail: Use lexical binding
2016-06-21 23:38:39 +02:00
Nicolas Goaziou
267af5e2fb
org-protocol: Tiny clean up
2016-06-21 23:37:19 +02:00
Nicolas Goaziou
097edbfde4
org-protocol: Silence byte-compiler
2016-06-21 23:36:31 +02:00
Nicolas Goaziou
3dab837aef
org-protocol: Use lexical binding
...
* lisp/org-protocol.el (org-protocol-store-link):
(org-protocol-open-source):
(org-protocol-check-filename-for-protocol):
(org-protocol-create): Silence byte-compiler.
2016-06-21 23:23:18 +02:00
Nicolas Goaziou
62d3d24f0b
org-plot: Use lexical binding
...
* lisp/org-plot.el (org-plot/add-options-to-plist): Silence
byte-compiler.
2016-06-21 23:19:11 +02:00
Nicolas Goaziou
313a97fca3
org-pcomplete: Small clean-up
2016-06-21 23:16:19 +02:00
Nicolas Goaziou
b35d05ac2e
org-pcomplete: Use lexical binding
2016-06-21 23:14:49 +02:00
Nicolas Goaziou
6bd701f44f
org-mouse: Use lexical binding
...
* lisp/org-mouse.el (org-mouse-main-buffer): New dynamically scoped
variable.
(org-mouse-replace-match-and-surround):
(org-mouse-for-each-item):
(org-mouse-move-tree-start):
(org-mouse-do-remotely):
(org-mouse-agenda-context-menu): Silence byte-compiler.
2016-06-21 23:12:23 +02:00
Nicolas Goaziou
994fe3e566
org-macs: Silence byte-compiler
...
* lisp/org-macs.el (org-save-outline-visibility): Remove unused symbol.
2016-06-21 23:02:35 +02:00
Nicolas Goaziou
3c5d215274
org-mhe: Use lexical binding
2016-06-21 23:01:52 +02:00
Nicolas Goaziou
5fcb15d976
org-macs: Use lexical binding
...
* lisp/org-macs.el (org-save-outline-visibility): Small refactoring.
2016-06-21 22:56:46 +02:00
Nicolas Goaziou
b2835f3b8f
org-irc: Use lexical binding
...
* lisp/org-irc.el (org-irc-ellipsify-description): Replace `mapc' +
`lambda' with `dolist'.
2016-06-21 22:45:08 +02:00
Nicolas Goaziou
8d87417111
org-inlinetask: Use lexical binding
2016-06-21 22:42:09 +02:00
Nicolas Goaziou
26f0f938f4
org-info: Use lexical binding
...
* lisp/org-info.el (org-info-store-link): Small refactoring.
2016-06-21 22:38:51 +02:00
Nicolas Goaziou
bb4b0d7efc
org-gnus: Use lexical binding
2016-06-21 22:36:06 +02:00
Nicolas Goaziou
b1c05d5169
org-eshell: Use lexical binding
2016-06-21 22:34:25 +02:00
Nicolas Goaziou
c69fd5bf61
org-entities: Tiny refactoring
...
* lisp/org-entities.el (org-entities--user-safe-p): Use pattern matching
and strengthen check for name.
2016-06-21 16:53:27 +02:00
Nicolas Goaziou
27c5cf153f
org-entities: Use lexical binding
...
* lisp/org-entities.el (org-entities):
(org-entities-create-table):
(org-entities-help): Silence byte-compiler.
2016-06-21 16:40:08 +02:00
Nicolas Goaziou
4f63cfabb3
Deprecate org-babel-trim' in favor of
org-trim'
...
* lisp/org.el (org-trim): Add optional argument.
* contrib/lisp/ob-mathematica.el (org-babel-execute:mathematica):
* contrib/lisp/org-bibtex-extras.el (obe-html-export-citations):
* contrib/lisp/org-mime.el (org-mime-compose):
* lisp/ob-C.el (org-babel-C-execute):
* lisp/ob-calc.el (org-babel-execute:calc):
* lisp/ob-clojure.el (org-babel-expand-body:clojure):
* lisp/ob-core.el (org-babel-initiate-session):
(org-babel-parse-multiple-vars):
(org-babel-read-element):
(org-babel-insert-result):
(org-babel-expand-noweb-references):
(org-babel-trim): Mark obsolete.
* lisp/ob-forth.el (org-babel-forth-session-execute):
* lisp/ob-fortran.el (org-babel-execute:fortran):
* lisp/ob-haskell.el (org-babel-execute:haskell):
* lisp/ob-latex.el (org-babel-expand-body:latex):
* lisp/ob-lisp.el (org-babel-expand-body:lisp):
* lisp/ob-ocaml.el (org-babel-execute:ocaml):
* lisp/ob-octave.el (org-babel-octave-evaluate-session):
* lisp/ob-python.el (org-babel-python-evaluate-external-process):
(org-babel-python-evaluate-session):
* lisp/ob-ref.el (org-babel-ref-split-args):
* lisp/ob-ruby.el (org-babel-ruby-evaluate):
* lisp/ob-shell.el (org-babel-sh-evaluate):
* lisp/ob-table.el (org-sbe):
* lisp/ob-tangle.el (org-babel-spec-to-string):
* lisp/org-bibtex.el (org-bibtex-get):
* testing/lisp/test-ob.el (test-ob/parse-header-args): Use `org-trim'
instead of `org-babel-trim'.
2016-06-21 15:33:00 +02:00
Nicolas Goaziou
1c30dea0ec
ob-core: Small refactoring
...
* lisp/ob-core.el (org-babel-get-src-block-info): Small refactoring.
2016-06-21 14:42:17 +02:00
Nicolas Goaziou
f8eb0b30ea
ob-shell: Fix "wrong type sequencep: function" error
...
* lisp/ob-shell.el (org-babel-shell-names): Fix error introduced when
switching to lexical binding.
2016-06-20 22:12:02 +02:00
Nicolas Goaziou
47fdeb1f48
org-ctags: Do not require "cl" at compile time
2016-06-20 15:08:25 +02:00
Nicolas Goaziou
7d3380612f
org-ctags: Use lexical binding
...
* lisp/org-ctags.el (org-ctags-open-file):
(org-ctags-fail-silently): Silence byte-compiler.
2016-06-20 15:04:33 +02:00
Nicolas Goaziou
b67a3ff715
org-crypt: Use lexical binding
2016-06-20 15:00:47 +02:00
Nicolas Goaziou
2108f0c23a
ob-shell: Use lexical binding
...
* lisp/ob-shell.el (org-babel-sh-initiate-session): Silence
byte-compiler.
2016-06-20 14:58:32 +02:00
Nicolas Goaziou
d4ea5decea
ob-lob: Fix docstring
...
* lisp/ob-lob.el (org-babel-lob--src-info): Fix typo.
2016-06-20 14:47:22 +02:00
Nicolas Goaziou
a5cf0f6fb8
ob-lob: Remove `org-babel-lob-files'
...
* lisp/ob-lob.el (org-babel-lob-files): Remove variable.
(org-babel-library-of-babel): Fix docstring.
Since its creation, `org-babel-lob-files' has been a no-op. Since no-one
noticed it during those 7 years, it can safely be removed.
Reported-by: "Charles C. Berry" <ccberry@ucsd.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/107824 >
2016-06-20 14:47:10 +02:00
Nicolas Goaziou
bae2286393
ob-core: Tiny refactoring
...
* lisp/ob-core.el (org-babel-graphical-output-file): Refactor code. Fix
error messages.
2016-06-20 14:41:04 +02:00
Nicolas Goaziou
6cefae1637
ob-core: Use lexical binding
...
* lisp/ob-core.el (org-babel-get-src-block-info):
(org-babel-insert-header-arg):
(org-babel-enter-header-arg-w-completion):
(org-babel-params-from-properties):
(org-babel-process-params):
(org-babel-read): Use lexical scoping when eval'ing.
(org-babel-examplify-region): Silence byte-compiler.
(org-babel-merge-params):
(org-babel-noweb-p): Refactor code.
2016-06-20 14:35:16 +02:00
Kyle Meyer
160efb5129
Merge branch 'maint'
2016-06-19 14:18:10 -04:00
Kyle Meyer
792bb9b655
org-set-effort: Fix void variable error
...
* lisp/org.el (org-set-effort): Check if org-clock-current-task is
defined because org-clock.el may not be loaded yet.
2016-06-19 14:11:25 -04:00
Kyle Meyer
b237d4df04
org-set-effort: Remove extra space in prompt
...
* lisp/org.el (org-set-effort): Make spacing across different prompt
cases consistent. Simplify prompt concatenation.
2016-06-19 14:11:20 -04:00
Nicolas Goaziou
69552bd42f
ob-tangle: Fix failing test on Emacs 24.3
...
* lisp/ob-tangle.el (org-babel-tangle): Do not use `add-to-list' on
a let-bound symbol.
2016-06-19 00:57:03 +02:00
Nicolas Goaziou
65e9dcee8d
ob-tangle: Use lexical binding
...
* lisp/ob-tangle.el (org-babel-process-comment-text):
(org-babel-spec-to-string):
(org-babel-tangle-single-block):
(org-babel-tangle-comment-links):
(org-babel-tangle-jump-to-org): Silence byte-compiler.
2016-06-19 00:38:22 +02:00
Nicolas Goaziou
270ed02b02
ob-exp: Tiny refactoring
...
* lisp/ob-exp.el (org-export-babel-evaluate): Tiny refactoring.
2016-06-19 00:38:22 +02:00
Nicolas Goaziou
ce19c05e34
ob-exp: Use lexical binding
...
* lisp/ob-exp.el (org-babel-exp-src-block): Use `eval' with optional
LEXICAL argument.
(org-babel-exp-process-buffer): Remove unused bindings.
2016-06-19 00:38:22 +02:00
Nicolas Goaziou
72d4c3db2d
ob-exp: Do not require `cl' at compile time
...
* lisp/ob-exp.el (org-babel-exp-process-buffer): Use `pcase' instead of
`case'.
2016-06-19 00:38:22 +02:00
Nicolas Goaziou
e1139e1895
ob-exp: Consolidate export of code blocks
...
* lisp/ob-exp.el (org-babel-exp--at-source): New macro.
(org-babel-exp-in-export-file): Remove macro.
(org-babel-exp-src-block): Remove unused argument. Use new macro.
(org-babel-exp-process-buffer): Apply signature change above. Put
temporary properties on top of Babel code so as to find original
location without relying on heuristics.
(org-babel-exp-results): Use new macro.
Export process has to know context of Babel code being evaluated (e.g.,
so as to retrieve parameters from node properties). However, evaluating
previous code can drastically change the buffer. The library used some
heuristics to find the original location. Those are not necessary
anymore.
2016-06-19 00:38:22 +02:00
Nicolas Goaziou
cfaf0d54d7
ox: Remove `org-export-execute-babel-code'
...
* lisp/ox.el (org-export-execute-babel-code): Remove function.
(org-export-as): Replace previous function with
`org-babel-exp-process-buffer'.
* lisp/ob-exp.el (org-babel-exp-process-buffer): Change signature.
Copy buffer before evaluating code.
* testing/lisp/test-ob-exp.el (ob-exp/exports-inline-code):
(ob-exp/exports-inline-code-double-eval):
(ob-exp/exports-inline-code-eval-code-once):
(ob-exp/exports-inline-code-double-eval-exports-both):
(ob-export/export-with-results-before-block):
(ob-export/export-src-block-with-switches):
(ob-export/export-src-block-with-flags):
(ob-export/export-and-indentation):
(ob-export/export-under-commented-headline):
(ob-export/reference-in-post-header):
(ob-export/babel-evaluate):
(org-test-with-expanded-babel-code):
* testing/lisp/test-ob-lob.el (test-ob-lob/export-lob-lines):
(test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export): Apply
change.
This patch merges `org-export-execute-babel-code' within
`org-babel-exp-process-buffer', removing one level of indirection. Now,
all the Babel evaluation is on the Babel side.
2016-06-18 22:11:14 +02:00
Nicolas Goaziou
f195259821
Merge branch 'maint'
2016-06-17 14:17:23 +02:00
Nicolas Goaziou
0279d84cd7
ob-exp: Remove spurious comma un-escaping
...
* lisp/ob-exp.el (org-babel-exp-code): Remove spurious comma
un-escaping.
2016-06-17 14:16:39 +02:00
Nicolas Goaziou
ee7ca3cc43
org-list: Allow multiple receiver locations for radio lists
...
* lisp/org-list.el (org-list-send-list): Allow multiple receiver
locations.
* testing/lisp/test-org-list.el (test-org-list/send-list): Add test.
2016-06-17 10:19:07 +02:00
Nicolas Goaziou
3781a3dbbd
org-table: Allow multiple receiver locations for radio tables
...
* lisp/org-table.el (orgtbl-send-replace-tbl): Allow multiple receiver
locations.
* testing/lisp/test-org-table.el (test-org-table/send-region): Add test.
2016-06-17 10:05:40 +02:00
Nicolas Goaziou
4b3bdd019e
Merge branch 'maint'
2016-06-17 00:41:54 +02:00
Nicolas Goaziou
75238d25ed
Fix refiling to an empty headline
...
* lisp/org.el (org-refile): Do not assume the headline is not empty.
Reported-by: Fabrice Popineau <fabrice.popineau@supelec.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/107772 >
2016-06-17 00:39:52 +02:00
Xi Shen
35df86c5c0
ob-sql.el: Support sqlcmd in Cygwin environment
...
* lisp/ob-sql.el (org-babel-sql-dbstring-mssql): Format Microsoft
`sqlcmd' command line args.
(org-babel-sql-convert-standard-filename): Convert a Posix path to
Windows long path in Cygwin environment, or do nothing.
(org-babel-execute:sql): Add `mssql' engine support and remove support
for `msosql' engine.
The `osql' command line tool was last updated in 2004,
https://technet.microsoft.com/en-us/library/aa214012(v=sql.80).aspx , and
could not output the query result in a way that morden `org-table.el'
expects. The `sqlcmd' is the preferred command line tool to connect the
Microsoft SQL Server and it also has a Linux version,
https://msdn.microsoft.com/en-us/library/hh568447(v=sql.110).aspx .
TINYCHANGE
2016-06-17 00:26:20 +02:00
Nicolas Goaziou
8416402269
Silence byte-compiler
2016-06-17 00:24:12 +02:00
Nicolas Goaziou
db671e1449
ob-ref: Fix reference expansion
...
* lisp/ob-ref.el (org-babel-ref-resolve): Properly expand a reference to
a Babel call.
2016-06-16 23:44:53 +02:00
Nicolas Goaziou
c3b42e917f
ob: Remove `org-babel-lob-execute'
...
* lisp/ob-lob.el (org-babel-lob-execute): Remove function
(org-babel-lob-execute-maybe):
* lisp/ob-ref.el (org-babel-ref-resolve):
* testing/lisp/test-ob-header-arg-defaults.el (test-ob-header-arg-defaults/global/call):
(test-ob-header-arg-defaults/tree/overwrite/call):
(test-ob-header-arg-defaults/tree/accumulate/call):
(test-ob-header-arg-defaults/tree/complex/call):
* testing/lisp/test-ob-lob.el (test-ob-lob/named-caching-call-line):
(test-ob-lob/caching-call-line):
(test-ob-lob/call-with-header-arguments): Apply removal.
2016-06-16 23:37:40 +02:00
Nicolas Goaziou
dbb375fdfc
Simplify Babel calls evaluation
...
* lisp/ob-lob.el (org-babel-default-lob-header-args): Merge value with
`org-babel-default-header-args' since this variable is meant to
replace the latter.
(org-babel-lob-ingest): Make sure `org-babel-default-lob-header-args' is
used instead of `org-babel-default-header-args'.
(org-babel-lob--src-info): New function.
(org-babel-lob-get-info): Use new function. Make return value
a replacement for `org-babel-get-src-block-info'.
(org-babel-lob-execute): Use `org-babel-execute-src-block' instead of
duplicating functionalities.
* lisp/ob-exp.el (org-babel-exp-process-buffer): Apply changes to
`org-babel-lob-get-info' return value.
* testing/examples/ob-header-arg-defaults.org:
* testing/lisp/test-ob-header-arg-defaults.el (test-ob-header-arg-defaults/tree/accumulate/call):
(test-ob-header-arg-defaults/tree/complex/call):
(test-ob-header-arg-defaults/tree/overwrite/call):
* testing/lisp/test-ob-lob.el (test-ob-lob/caching-call-line):
(test-ob-lob/named-caching-call-line): Update tests.
The purpose of this commit is to make Babel calls more
predictable (e.g., wrt property inheritance) and to remove code
duplication. Also, Babel calls results are no longer treated as Emacs
Lisp values.
2016-06-16 23:15:01 +02:00
Nicolas Goaziou
a04752d38c
org-element: Small fix
...
* lisp/org-element.el (org-element-inline-babel-call-parser): Empty
arguments return nil instead of the empty string, so as to be on par
with `org-element-babel-call-parser'.
2016-06-16 22:34:12 +02:00
Nicolas Goaziou
e3e52a45bb
ob-lob: Use lexical binding
2016-06-16 22:34:12 +02:00
Nicolas Goaziou
ddd661a783
ob-lob: Use cl-lib
2016-06-16 22:34:12 +02:00
Nicolas Goaziou
758629d6a0
ob-ref: Remove unnecessary function declarations
2016-06-16 22:34:12 +02:00
Nicolas Goaziou
9d448128b7
ox: Fix typo
...
* lisp/ox.el (org-export-get-reference): Fix typo.
2016-06-16 22:33:21 +02:00
Marco Wahl
2c4e13c56a
org-timer: User can always set timer by prefix arg
...
* lisp/org-timer.el (org-timer-set-timer): The user can always set the
timer with a numeric prefix argument.
Before, when the effort property has been set, the user lost control to
explicitly set the timer to a different time.
2016-06-14 21:49:44 +02:00
Marco Wahl
1aef73caa4
Fix a compiler warning
...
* lisp/org-clock.el (org-clock-timestamps-change): Switch to the
seasonable interface for subtracting times.
2016-06-14 20:49:20 +02:00
Charles Berry
dd944fb590
org-babel-goto-named-src-block bugfix
...
* lisp/ob-core.el (org-babel-goto-named-src-block): The user prompt
(i.e. `initial-input' arg of `completing-read') will be the name of
the results block, noweb reference, call reference, or symbol if
point is in such.
* testing/lisp/test-ob.el (test-ob/goto-named-src-block): Simulate
interactive use of `org-babel-goto-named-src-block'.
2016-06-14 09:40:35 -07:00
Nicolas Goaziou
65e4370d46
Merge branch 'maint'
2016-06-11 13:40:52 +02:00
Nicolas Goaziou
819cdb3a09
Preserve list visibility when inserting a new item
...
* lisp/org.el (org-insert-heading): Do not reveal gratuitously too much
context before inserting an item.
* testing/lisp/test-org.el (test-org/insert-heading): Add test.
Reported-by: Steinar Bang <sb@dod.no>
<http://permalink.gmane.org/gmane.emacs.orgmode/107665 >
2016-06-11 13:33:50 +02:00
Nicolas Goaziou
0603f42cb7
org-element: Fix inline src blocks parameter syntax
...
* lisp/org-element.el (org-element--parse-paired-brackets): New function.
(org-element-inline-babel-call-parser):
(org-element-inline-src-block-parser): Use new function.
* testing/lisp/test-org-element.el (test-org-element/inline-src-block-parser):
Add test.
Reported-by: Charles Millar <millarc@verizon.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107629 >
2016-06-10 23:42:50 +02:00
Nicolas Goaziou
b9c64b1ecb
Merge branch 'maint'
2016-06-10 18:24:55 +02:00
Nicolas Goaziou
c07175bfaa
Remove reference to removed function in menu
...
* lisp/org.el (org-org-menu): Remove reference to
`org-beamer-insert-options-template'.
Reported-by: Giacomo M <jackjackk@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107658 >
2016-06-10 18:22:16 +02:00
Rasmus
af463605f1
Document org-block face changes
...
* doc/org.texi (Editing source code): Document org-block and
org-block-LANG faces.
* lisp/org-faces.el (org-block): Mention org-block-LANG faces.
* lisp/org.el (org-src-fontify-natively): Add reference to org-block.
* etc/ORG-NEWS: Update entry.
2016-06-10 10:11:03 +02:00
Rasmus
b0def38b4b
org-src: Allow per language block face
...
* lisp/org-src.el (org-src-font-lock-fontify-block):
* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Allow per-block
face.
Suggested-by: Karl Voit <devnull <at> Karl-Voit.at>
<http://thread.gmane.org/gmane.emacs.orgmode/103833/focus=107645
2016-06-10 09:20:30 +02:00
Rasmus
81af689d0f
org-src: Src-blocks also inherit org-block face
...
* lisp/org-src.el (org-src-font-lock-fontify-block): Inherit org-block
face in addition to language specific faces.
* etc/ORG-NEWS: Add entry.
2016-06-09 16:18:17 +02:00
Marco Wahl
7e57cf5d40
org: Fix tags extraction
...
* lisp/org.el (org-get-tags-at): Use non-greedy match up to colon to
match all tags (and not just the last.)
* testing/lisp/test-org.el (test-org/tags-at): One test to cover the
issue.
2016-06-09 10:06:14 +02:00
Nicolas Goaziou
f94df5456f
ox-texinfo: Add support for strike-through and underline markup
...
* lisp/ox-texinfo.el (texinfo): Add transcoders.
(org-texinfo-text-markup-alist): Allow `strike-though' and `underline'
as keys. Remove unused `comment'.
(org-texinfo-strike-through):
(org-texinfo-underline): New functions.
By default, new markup produce no Texinfo code, but can be customized by
users for specific uses.
2016-06-04 22:40:21 +02:00
Nicolas Goaziou
6daad64277
org-compat: Silence byte-compiler
2016-06-04 22:09:15 +02:00
Nicolas Goaziou
2c70283641
org-colview: Fix docstrings
...
* lisp/org-colview.el (org-columns--summary-min-age):
(org-columns--summary-max-age):
(org-columns--summary-mean-age): Fix argument name in docstrings.
2016-06-04 21:29:27 +02:00
Don March
bd49486db9
Make today's deadlines "close" without lead time
...
* lisp/org.el (org-deadline-close): A timestamp is close if the days
between now and the timestamp are less then or equal to the days of
lead time.
* testing/lisp/test-org.el: Add tests for org-deadline-close.
2016-06-04 20:45:41 +02:00