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
c247993f67
Merge branch 'maint'
2016-06-23 00:56:57 +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
e33ca741c0
org.texi: Fix typo
...
* doc/org.texi (Sources and destinations): Add missing word.
2016-06-22 18:36:29 +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